Announcement

Collapse
No announcement yet.

conditional does not run

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

  • conditional does not run

    the users which userid is not 1 do not see profile field so i used following conditional for memberinfo_block

    Code:
    [B][COLOR="Blue"]<if condition="in_array($bbuserinfo['userid'], array(1))">[/COLOR][/B]
    <!-- $id -->
    <div id="$id" class="tborder content_block">
    	<h4 class="thead block_title">
    		<a href="#top" class="collapse_gadget" onclick="return toggle_collapse('$id')"><img id="collapseimg_$id" src="$stylevar[imgdir_button]/collapse_generic{$vbcollapse['collapseimg_'.$id]}.gif" alt="" border="0" /></a>
    		<a name="$id"></a>
    		<span class="block_name">$title</span>
    	</h4>
    
    	<div class="block_content" id="collapseobj_$id" style="{$vbcollapse['collapseobj_'.$id]}">$html</div>
    </div>
    <!-- / $id -->
    [B][COLOR="Blue"]    <else/>[/COLOR][/B]
    
    [COLOR="Red"][B]zodehala[/B][/COLOR]
    
    [B][COLOR="Blue"]</if>[/COLOR][/B]
    but others do not see zodehala text

  • #2
    if condition="$bbuserinfo[userid] != 1"

    Comment


    • #3
      Originally posted by Dilly View Post
      if condition="$bbuserinfo[userid] != 1"
      after <else/> it does not run ( it does not print text i want)

      Comment


      • #4
        <if condition="$bbuserinfo[userid] != 1">

        <else />

        </if>

        Comment


        • #5
          Originally posted by Dilly View Post
          <if condition="$bbuserinfo[userid] != 1">

          <else />

          </if>
          i did it like you said but no any warning (i want) (i wanna see root profile info az registered user )

          Comment


          • #6
            Paste your template here again.

            Comment


            • #7
              Code:
              <!-- $id -->
              <div id="$id" class="tborder content_block">
              	<h4 class="thead block_title">
              		<a href="#top" class="collapse_gadget" onclick="return toggle_collapse('$id')"><img id="collapseimg_$id" src="$stylevar[imgdir_button]/collapse_generic{$vbcollapse['collapseimg_'.$id]}.gif" alt="" border="0" /></a>
              		<a name="$id"></a>
              		<span class="block_name">$title</span>
              	</h4>
              	<div class="block_content" id="collapseobj_$id" style="{$vbcollapse['collapseobj_'.$id]}">$html</div>
              </div>
              <!-- / $id -->

              Comment


              • #8
                That doesn't have the conditional statement in it. I need to see the full template.

                Comment

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