Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
requests-topic
Theme Swither Plugin
Avatar
Chris
Guest
Guests
Feb 11, 2009 - 8:36 am

Hey, Im using the lastest version of Wordpress with the Theme Swither plugin. This gives users the option to switch between themes.

If say I had one theme that was white and blue then this board would fit in with the scheme, but if I had another theme that was red and black then this board would look different to the theme.

Is it possible to define in the Wordpress theme (like in header.php) which stylesheet to send to the forum?

If I just added a style link in each theme relevant to the corresponding forum theme?. Would that be possible?

Thanks, great plugin,

Chris

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 11, 2009 - 4:40 pm

I don't know of course if you can code up php but I can tell you that the CSS file that the forum will use (the 'skin') is stored in the WP Options table in the following construct:

$sfstyle['sfskin'] = 'skin_name';
$sfstyle['sficon'] = 'Icon_set_name';
$sfstyle['sfsize'] = '';

so if you can code up a way of mapping your WP themes to forum skins and changing the option values above BEFORE the forum starts to load then you could do what yoiu want.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625