-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, sorry for being absent for such a long time - but I got a lot things to for work :-/ I've tried to accomplish a port of the theme switcher plugin known from wordpress and stumbled over the function 'rss_theme_path' in the misc.php wrapper wondering why this wrapper is the only function which is not the $_REQUEST['theme'] part implementing. I'm not sure - but after patching it to that - the theme switcher was working for me. I've attached the diff - maybe someone can tell me if it works as it should. I will also publish the theme switcher - which only works with this patch - if you agree with the diff. It is in an early state and could be enhanced for sure. But true to software devlopment - release early and often ;-) regards, marcus - -- Marcus Kimpenhaus Polsumer Str. 56 45896 Gelsenkirchen +49 (209) 9256075 marcus at kimpenhaus.de -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: GnuPT-Light 0.4 Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDkN7QRuI7h7b3Yu8RAj+fAKC19Jw8k0EtZgyisMdIVgJer7BdtQCgkYr4 aCA8fawe6mLS8qBYT0nb56g= =BpGX -----END PGP SIGNATURE----- -------------- next part -------------- Index: cls/wrappers/misc.php =================================================================== --- cls/wrappers/misc.php (Revision 1052) +++ cls/wrappers/misc.php (Arbeitskopie) @@ -27,12 +27,20 @@ ///// MISC WRAPPERS ///// -function rss_theme_path() { +function rss_theme_path() +{ $theme = getConfig('rss.output.theme'); - if (defined('THEME_OVERRIDE')) { + + if (defined('THEME_OVERRIDE')) + { $theme = THEME_OVERRIDE; } - return getPath(). RSS_THEME_DIR."/$theme"; + elseif (isset($_REQUEST['theme'])) + { + $theme = preg_replace('/[^a-zA-Z0-9_]/','',$_REQUEST['theme']); + } + + return getPath(). RSS_THEME_DIR."/$theme"; } -?> \ No newline at end of file +?>