PDA

View Full Version : Disable Sidebar for different styles


aspen1018
01-29-2010, 05:46 PM
For example I have a mobile style for my forum. Can I disable the sidebar for that particular style?

Thank you

Lynne
01-29-2010, 06:50 PM
You can write a plugin to disable the sidebar only in that style. I think there is a mod that has the plugin already written, you just need to know the variable to set to false to turn off the sidebar (find the name in the vboptions page where you turn it on/off).

dannycutts
10-07-2011, 03:16 PM
Did you fix this as it would be very handy.....

Cheers

Danny

Sworm
12-01-2011, 11:01 PM
Some coder has write the plugin like lynne suggest? I have need to disable the sidebar just for a fixed style..... :)

kh99
12-01-2011, 11:15 PM
You can create a plugin using hook forumhome_start and code like this:


if (in_array(STYLEID, array(1, 2, 3)))
$vbulletin->options['enablesidebar'] = 0;



and of course change 1, 2, 3 to whatever list of styles you want to have the sidebar disabled.

Sworm
12-02-2011, 09:14 AM
@kh99 i'm triyn now :D thanks

--------------- Added 1322821065 at 1322821065 ---------------

It works like a charm is all that i have searched :) thanks again