Announcement

Collapse
No announcement yet.

conditionals

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

  • conditionals

    Can someone help me please. I have this line of code:<br>
    Code:
    $vbphrase[ucs_points] in the bank: <strong>$userinfo[bankamount_display]</strong><br />
    <br>
    And I would like to have a conditional that only allows an Admin see this displayed. I'm a novice when it comes to coding so any help would be great.

  • #2
    Well after playing around for a few other I figured it out on my own. Heres the code I used and it seems to have worked.

    Code:
    <if condition="$bbuserinfo[usergroupid] == 6">
    						$vbphrase[ucs_points] in the bank: <strong>$userinfo[bankamount_display]</strong><br />
    						</if>

    Comment


    • #3
      You can also use is_member_of($bbuserinfo, 6) instead of the $bbuserinfo[usergroupid] == 6 - A bit neater and my preference .

      Comment

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