Announcement

Collapse
No announcement yet.

make if statement for link!

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

  • make if statement for link!

    I am trying to get a certain usergroup to see a link and if they are not apart of that link, all others see a another link!

    Code:
    <if condition="$bbuserinfo['usergroupid'] == 15">
    <br />
    <strong><a href="vboptions[homeurl]/forums/vbpool.php">Make Picks</a></strong>
    <else />
    <strong><a href="vboptions[homeurl]/forums/profile.php?do=joingroup&usergroupid=15">Join Picks Contest</a></strong>
    </ if>
    I am getting this error:

    The following error occurred when attempting to evaluate this template:

    Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/rantman/public_html/forums/includes/adminfunctions_template.php(3096) : eval()'d code on line 192

    This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
    can someone please tell me what i am doing wrong, i would really appreciate it


    TIA

    Mike
    Founder

    http://www.sportsrant.com

  • #2
    Change this:

    PHP Code:
    <if condition="$bbuserinfo['usergroupid'] == 15"
    to this:
    PHP Code:
    <if condition="$bbuserinfo[usergroupid] == 15"

    Comment


    • #3
      is there a way to do this if the member is in a secondary usergroup or this is a secondary usergroup
      Founder

      http://www.sportsrant.com

      Comment

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