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>
Then in the whosonlinebit, I will need to add the $userinfo[userid].
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>
This kinda cheats by using the same class and condition available to the admin rights to see ip addresses in the whos online via vbamin.
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>
Again, this minor code change isnt really proper admin conditioned via an if statement, but it does the work down and dirty. I needed this to determined the people who try to overload and upload images which are unacceptable because of the size limitations. I get notification of the db error via admin email and I know the user id as it displays in the email, but finding the culprit quickly to see if I can assist them wasnt easy. Now, happy to say, it is
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.