vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Display Different skins to different usergroups (https://vborg.vbsupport.ru/showthread.php?t=254411)

Junction 11-29-2010 02:45 PM

Display Different skins to different usergroups
 
I am looking for a mod to display 1 skin to unregistered / guests, and a different skin to registered users.

I am also going to post this is the paid request forum as I am willing to pay for this mod.

Lynne 11-29-2010 04:12 PM

Can't you just set the default style for registered users and then make a plugin using the style_fetch location for unregistered users?
PHP Code:

if (is_member_of($vbulletin->userinfo1)) $styleid x


Junction 11-30-2010 11:43 AM

Quote:

Originally Posted by Lynne (Post 2127212)
Can't you just set the default style for registered users and then make a plugin using the style_fetch location for unregistered users?
PHP Code:

if (is_member_of($vbulletin->userinfo1)) $styleid x


Thank you for replying to my thread.

Since you know way more than me when it comes to vBulletin, I assume that would work. My next question would be, where do I put that code? Headerinclude?

Lynne 11-30-2010 02:17 PM

I don't know if it would work since I don't use it. As I said in the post, put it in a plugin and try using the style_fetch hook location. As always, test things on your test site first.


All times are GMT. The time now is 11:09 AM.

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.02337 seconds
  • Memory Usage 1,718KB
  • 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
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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