Quote:
Originally posted by Sadie Frost
Would there be a way to use this to make a forum appear in a different style for different users?
|
Although the answer is yes, it would be easier to handle this with an other small hack so I'll give you this solution instead of this hack's solution:
Edit global.php, find:
PHP Code:
$getforum=verifyid('forum',$forumid,0,1);
if ($getforum['styleoverride']==1 or $bbuserinfo['styleid']<2) {
$codestyleid=$getforum['styleid'];
}
After that add:
(If you want to apply different style set for specific user)
PHP Code:
if ($bbuserinfo['userid']==X AND $forumid==Z) {$codestyleid=Y;}
(If you want to apply different style set for specific usergroup)
PHP Code:
if ($bbuserinfo['usergroupid']==X AND $forumid==Z) {$codestyleid=Y;}
Replace X with userid (first code), usergroupid(secondcode) while you replace Y with your style id and Z with the forumid.
It works like this: If user is X and he visited forum Z, his style will change to Y