vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Invisible Style, But Still Active (https://vborg.vbsupport.ru/showthread.php?t=127727)

L9IAnime 09-27-2006 07:50 PM

Invisible Style, But Still Active
 
Damn, this looks so much like my previous thread its scary....

Basically when the style changer is listing the styles available, i want it to skip a certain style, but i still want the style to be able to be used by everyone... any ideas how this can be done??

L9IAnime 09-29-2006 12:25 PM

any ideas, any ideas at all???

SCRIPT3R 09-29-2006 02:51 PM

why would you want it invisible then?

Paul M 09-29-2006 03:32 PM

How would they choose it ?

L9IAnime 09-29-2006 03:41 PM

it is forcibly placed on the user in certain forums/cmps pages, i just dont want them to be able to select it elsewhere...

SCRIPT3R 09-29-2006 04:07 PM

just set the forum styles accordingly and then disable the option which lets users choose their own style.

L9IAnime 09-29-2006 05:41 PM

but i want them to be able to choose from the other styles outside of the area i want it to be locked in :S

Paul M 09-29-2006 06:18 PM

You can already force a style to be used in a forum, it's part of the forum settings, and that style does not need to be visible.

josiespencer 10-04-2006 04:55 PM

I sorta understand this need - I have a group of people attached to one usergroup. I would like that group of people to always be forced to use a certain style. And I don't want any of my other users to be able to pick this style.

It all has to do with creating a forum for a group of employees with different logos, etc. that only pertains to their usergroup. I want everyone else to not even know that this special group exists.

I've had a lot of suggestions, like modify the templates of all my styles which I do not want to do. My mind has been bouncing around all kinds of ideas but I just want a solution with minimal code impact.

Paul M 10-04-2006 09:56 PM

You can force a style on a particular usergroup (or groups) like this ;

Create a plugin and link it to the style_fetch hook.

Put this as the contents ;

PHP Code:

if (is_member_of($vbulletin->userinfo,5,6,7)) // Usergroups //
{
    
$userselect 0;
    
$styleid 11// Style id //
    
$vbulletin->userinfo['styleid'] = $styleid;
    
$vbulletin->options['styleid'] = $styleid;


Edit the usergroups and styleid to suit.


All times are GMT. The time now is 10:27 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.01599 seconds
  • Memory Usage 1,724KB
  • 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
  • (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