Announcement

Collapse
No announcement yet.

Admin code syntax

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Admin code syntax

    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 clarifing the correct syntax would be appreciated.

    Sincerely,
    Steven D. Papke
    Visit the www.vizdepot.com
    A completely custom vB site
    Sincerely,

    Steven D. Papke, AIA
    President and Owner, Vizdepot.com
    Visualization Community Resource
    http://www.vbulletin.com/forum/images/misc/progress.gif

  • #2
    Try this...
    Code:
    <if condition="$bbuserinfo[usergroupid]=1"><td class="thead">$userinfo[userid]</td></if>
    Lats...

    Comment


    • #3
      Thanks Lats, that did the trick. Appreciate the help dude.
      Sincerely,

      Steven D. Papke, AIA
      President and Owner, Vizdepot.com
      Visualization Community Resource
      http://www.vbulletin.com/forum/images/misc/progress.gif

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X