vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Disable Sidebar for different styles (https://vborg.vbsupport.ru/showthread.php?t=234487)

aspen1018 01-29-2010 05:46 PM

Disable Sidebar for different styles
 
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:

Code:

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 [DATE]1322821065[/DATE] at [TIME]1322821065[/TIME] ---------------

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


All times are GMT. The time now is 04:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00988 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete