vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   What is the easiest way to have a different style for a different usergroup? (https://vborg.vbsupport.ru/showthread.php?t=43441)

theologyonline 09-11-2002 07:17 PM

What is the easiest way to have a different style for a different usergroup?
 
All I want to do is FORCE certain usergroups to see certain styles and templates and FORCE other usergroups to see other styles and templates.

I checked out this hack....
https://vborg.vbsupport.ru/showthrea...threadid=32857

But I am growing concerned it will not work with 2.2.6

Isn't there an easy way for me to accomplish my goal?

g-force2k2 09-12-2002 12:33 AM

yeah in the forum/global.php you can just rewrite the styleid coding so that it says:

PHP Code:

if($bbuserinfo[usergroupid] == XX) {
  
$styleid X;
} elseif(
$bbuserinfo[usergroupid] == XX) {
  
$styleid X;


and so on... just replace the XX with the usergroupid and the X for the styleid with the styleid that you want the usergroup to see... regards...

g-force2k2

theologyonline 09-12-2002 12:44 AM

OK.... that sounds easy enough.

Now, here is the really dumb question.....

How do I findout the usergroupid and styleid?

g-force2k2 09-12-2002 12:48 AM

you can look through phpmyadmin...

or you can right click the edit style and edit usergroup and copy the link and paste it in the browser to see what id it is... regards...

g-force2k2

theologyonline 09-12-2002 02:13 AM

G-force you are awesome thank you!

I have another question....

Maybe you can point me in the right direction.

OK....

I have my new style and my new template set for my new usergroup that you helped me point to the new style.

Here is my question.....

Some of the changes I make in my new templates take effect and some are as if they are still pointing to the old templates.

Is this a common problem or did I mess something up.

PS. I also run a vPortal.

g-force2k2 09-12-2002 04:14 PM

theologyonline it seems more or less just like a transferring template mix up... but if you downloaded the styles it just backups the modified and custom templates... so when uploading it shoud be fine... oh make sure that you choose a new template set when creating a new style don't use the other styles templates, replacements etc... regards...

g-force2k2


All times are GMT. The time now is 02:26 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.01723 seconds
  • Memory Usage 1,723KB
  • 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)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