To outline my problem, I'm using a php file for my user group colors forum-wide. With multiple styles, I need multiple usergroup colors for each style. This is all in a php file, which looks like this:
switch($vbulletin->userinfo[styleid]) { case 27: ?> .ugc_blah{ color:#F57676; } <? break; case 28: ?> .ugc_blah{ color: #EE3B3B; } <? break; case 16: default: //Default Theme ?> .ugc_blah{ color:#c91c1c; } <?
break; } ?>
My problem here seems to be switch($vbulletin->userinfo[styleid]). It works fine when viewing the forum index, but my forum has certain sections that override the user-selected theme. Since I'm using userinfo[styleid], it's grabbing the styleid of the style the user picked, and not the one that the forum is overriding their selection with. This causes the wrong colors to be used on a theme when viewing threads. I'm looking for a way I can grab the styleid of the style the user is currently on, regardless of whether it's an override or not. foruminfo[styleid] was the most clever thing I could think of, and did not work.