Announcement

Collapse
No announcement yet.

Unregistereds can not see the bbcodes

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

  • Unregistereds can not see the bbcodes

    hi, I edited bbcode_php like this;

    PHP Code:
    <div style="margin:20px; margin-top:5px">
     <
    div class="smallfont" style="margin-bottom:2px">$vbphrase[php_code]:</div>
     <
    div class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto">
      <
    code style="white-space:nowrap">
      <
    div dir="ltr" style="text-align:left;">
       <!-- 
    php buffer start --><if condition="$show['guest']">
    Only members can see this.
    <else />
    $code
    </if><!-- php buffer end -->
      </
    div>
      </
    code>
     </
    div>
    </
    div
    BUT, THERE IS A MISTAKE!!!

    when you edit the bbcode_php, it works but! if you edit bbcode_html or bbcode_code, nothings change. where is the problem?

    for example, when you delete bbcode_php template, you couldn't see the [php] code, but if you delete bbcode_code or bbcode_html template, nothings change.

  • #2
    Try using this conditional instead:

    <if condition="$bbuserinfo[userid] == 0">
    Only members can see this.
    <else />
    $code
    </if>
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment


    • #3
      it doesn't work. because bbcode_html template doesn't work. you can try, nothing will change. I reported this to bug tracker yesterday..

      Comment

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