vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - Hide a style from style chooser (https://vborg.vbsupport.ru/showthread.php?t=183185)

BeerLuver 06-24-2008 06:25 PM

Thanks for the update dartho :)

mesdar 07-15-2008 03:06 PM

thanx

sung 12-04-2008 11:31 PM

Is there anyway so that the style is also hidden from the Forum Skin drop down list in the User CP and not just the Quick Style Chooser?

sung 12-12-2008 07:45 PM

Quote:

Originally Posted by sung (Post 1678738)
Is there anyway so that the style is also hidden from the Forum Skin drop down list in the User CP and not just the Quick Style Chooser?

Made a plugin that does just this. It uses the same variable ($mo37_hidden_styleid) to hide the style, and is inactive by default.

So assuming you're already using dartho's plugin and it is working just upload this one and set it active and the same style will be hidden in the User CP as well.

fta2k 12-31-2008 04:06 AM

I've installed this and put in ID in the edit but it still shows in the dropdown.

https://vborg.vbsupport.ru/external/2008/12/5.jpg

Any ideas?


EDIT:

Ok, I'm an idiot.

I was using skin display number and not skin id. It's all fixed now.

https://vborg.vbsupport.ru/external/2008/12/6.jpg

Merriweather 03-07-2009 05:14 AM

Is there a way to hide more than one skin with this mod?

dartho 03-09-2009 05:00 AM

This is probably not very efficient, but you could edit the plugin and duplicate the code for each styleid...

PHP Code:

mo37_hidden_styleid x;
$mo37start strpos($quickchooserbits'<option value="'.$mo37_hidden_styleid.'"'); 
if (
$mo37start !== FALSE) {
  
$quickchooserbits substr($quickchooserbits 0$mo37start).substr($quickchooserbits strpos($quickchooserbits'</option>'$mo37start) + strlen('</option>'));
}
mo37_hidden_styleid y;
$mo37start strpos($quickchooserbits'<option value="'.$mo37_hidden_styleid.'"'); 
if (
$mo37start !== FALSE) {
  
$quickchooserbits substr($quickchooserbits 0$mo37start).substr($quickchooserbits strpos($quickchooserbits'</option>'$mo37start) + strlen('</option>'));


replace 'x' with one styleid, and 'y' with the next ...

burntire 06-24-2009 07:13 PM

I just went to -vb options-Style & Language Settings- and unchecked the ability to change styles. In the 2 styles I use I allow user selection. This removes the ability to change styles from the footer and usercp, but it also forces the mobile style with the mobile detection mod.

accludetuner 07-05-2009 07:44 PM

works great on 3.8.3 :)

choccyclaire 12-10-2009 02:50 AM

Quote:

Originally Posted by sung (Post 1684074)
Made a plugin that does just this. It uses the same variable ($mo37_hidden_styleid) to hide the style, and is inactive by default.

So assuming you're already using dartho's plugin and it is working just upload this one and set it active and the same style will be hidden in the User CP as well.

What about if you used darthos example a few posts above in order to hide more than one?

When I used this plugin it just eliminated the last style.


All times are GMT. The time now is 04:20 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.01292 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete