PDA

View Full Version : What is the easiest way to have a different style for a different usergroup?


theologyonline
09-11-2002, 08:17 PM
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/showthread.php?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, 01:33 AM
yeah in the forum/global.php you can just rewrite the styleid coding so that it says:

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, 01: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, 01: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, 03: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, 05: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