The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I need to add a segment of code in my whosonline template that enables the admins(only) to see the userid within a column beside to the username.
Unfortunately, I dont know the syntax for building the if statement. Any help? Code:
<if $usergroup="1" then "$show=$userinfo[userid]"><td class="thead">User ID</td></if> Any help would be appreciated. ****************************************** Ok figured it out for those who look for this in the future. ****************************************** In the whosonlinebit template. I added this snipet of code after the last activity "<td>" (you of course can place it anywhere) Code:
<if condition="$show['ip']"><td class="$ipclass" align="center" valign="middle"><font color="#FF0000">$userinfo[userid]</font></td></if> For the whosonline template, ensure your alignment by "<td>" codes and add this snipet of code: Code:
<if condition="$show['ip']"><td class="thead" nowrap="nowrap">User ID</td></if> ![]() See the visual...for an idea of what the admin sees vs, what an user sees, goto www.vizdepot.com and click on the number at the top for online. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|