miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Specific miniBB Support Forums / Specific /  
 

Multiple Skins

 
Author Prince
Partaker
#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
Active Member
#2 | Posted: 24 Jul 2012 18:22 
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
Partaker
#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
Active Member
#4 | Posted: 24 Jul 2012 21:36 
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
Partaker
#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
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑