Quote:
Originally Posted by EmpireZ
Just add a array for the usergroup to show in the usc_side template.
<if condition="(in_array($vbulletin->userinfo['usergroupid'], array(6)))">
|
Man I have been searching for days for this bit of code to find what usergroup someone is a member of.
Thank you very much!
The whole reason I needed this is because there is not a mod for vB, that I can find, where you can have a side column with links to important parts of the site and other things (like latest X posts etc) and also have advertisements. But the part where the advertisements can be turned off for a certain usergroup (in my forum it's usergroup 9 for Sponsors).
As it is I have to use the vBAdManagement mod to show the links and adverts. And then use this to just show the links and other things without the adverts.
It would be really nice to see a mod where we can have a side column where only the adverts can be turned off leaving other things intact.
But this is working with the code EmpireZ gave me. I just changed the 6 to a 9 in the array and added the code to the top of the usc_sidecolumn_right template of the mod (and the </if> statement at the end).