miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Specific miniBB Support Forums / Specific /   

Multiple Skins

Author Prince
Registered
#1 | Posted: 24 Jul 2012 17:13 
Hello,

I wanted to add 2 different skins for my forums! for example for general forums: $skin='general'; and for other forums: $skin='other';

I tried setting this in plugins:
if(isset($General) and in_array($forum,$General)) $skin='general'; else $skin='other';

My question is how to set $skin='general'; or $skin='other'; in setup_options to get this works?

Thanks

Author tom322
Registered
#2 | Posted: 24 Jul 2012 18:22 | Edited by: tom322 
Probably a way to do it is to change 'bb_default_style.css' in the header file to something like {$CSSstyle} and then in bb_plugins.php (or in setup_options.php):

if(isset($General) and in_array($forum,$General)) $CSSstyle='bb_default_style.css'; else $CSSstyle='bb_other_style.css';

of course you must create bb_other_style.css.

----

But maybe there's even a simpler way, you should wait for Paul then ;).

Author Prince
Registered
#3 | Posted: 24 Jul 2012 19:51 
tom322
Yes I did it that way and it worked but I thought maybe it needed to do something in setup_options for $skin!

tom322:
But maybe there's even a simpler way, you should wait for Paul then ;).

Yeah.. Of course!

Thanks Tom :)

Author tom322
Registered
#4 | Posted: 24 Jul 2012 21:36 | Edited by: tom322 
I checked the setup file and I think you can put it in the setup file (instead of: $skin='default';):

if(isset($General) and in_array($forum,$General)) $skin='default'; else $skin='other';

And then just make sure bb_other_style.css exists. It should work?

Author Prince
Registered
#5 | Posted: 24 Jul 2012 23:37 
tom322:
And then just make sure bb_other_style.css exists. It should work?

Yeah it works (before I commented //$skin in setup_options and wanted to use it in plugins).

Using it like this now:

if(isset($General) and in_array($forum,$General)) $skin='other'; //else $skin='default';

and in setup_options it's: $skin='default';

It works now!!! :)

Thanks!

Specific miniBB Support Forums / Specific / Multiple Skins Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB