vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   disable theme for guest (https://vborg.vbsupport.ru/showthread.php?t=244817)

LuisManson 06-17-2010 09:30 PM

disable theme for guest
 
is there any option to disable the skin selector for guest??
im not able to find any setting!

Reeve of shinra 06-17-2010 09:33 PM

You can edit the style and wrap an if conditional around it. There's an article on conditionals around here somewhere that you can reference

LuisManson 06-17-2010 09:41 PM

thanks, that the only way i figured out....
im interested on that post i will try to fnd it

Reeve of shinra 06-17-2010 10:01 PM

https://vborg.vbsupport.ru/showthread.php?t=231525

and maybe this could help you

Hide Style in Style Chooser (3.7)

ChopSuey 06-18-2010 09:46 AM

Quote:

Originally Posted by Reeve of shinra (Post 2055197)
and maybe this could help you

Hide Style in Style Chooser (3.7)

This is vB4 General Discussions ;) That mod won't work.

Reeve of shinra 06-18-2010 03:59 PM

Quote:

Originally Posted by ChopSuey (Post 2055346)
This is vB4 General Discussions ;) That mod won't work.

Actually, the mod does work but you have to copy the contents into a new plugin.

Create a new plugin:

Hook Location: Parse Templates

Update x with the style id you want to hide and copy the contents into the box. Hit save and your good to go.

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>'));



LuisManson 06-18-2010 04:07 PM

really great mod, i already fixed this with "if its not guest" -> show themes dropdown in the footer template, i just had to add less than a line of code


All times are GMT. The time now is 01:14 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.01042 seconds
  • Memory Usage 1,726KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (7)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