Announcement

Collapse
No announcement yet.

Template conditionals

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

  • Template conditionals

    I have a hack installed (Quickquote) which is called in the postbit template simply with
    $quickquote

    This hack does not actually work for users with the WYSIWYG interface installed.

    I'm not very good at this, how would I write a conditional that would show $quickquote for all registered users EXCEPT those with the WYSIWYG interface selected in their profiles?
    MARK.B | vBULLETIN SUPPORT

    TalkNewsUK - My vBulletin 5.6.4 Demo
    AdminAmmo - My Cloud Demo

  • #2
    Use this code in the template:

    Code:
    <if condition="$bbuserinfo['showvbcode'] != 2">
    	$quickquote
    </if>
    That should work.

    Comment


    • #3
      Originally posted by Jake Bunce
      Use this code in the template:

      Code:
      <if condition="$bbuserinfo['showvbcode'] != 2">
      	$quickquote
      </if>
      That should work.
      Brilliant, thanks, I will try that.
      MARK.B | vBULLETIN SUPPORT

      TalkNewsUK - My vBulletin 5.6.4 Demo
      AdminAmmo - My Cloud Demo

      Comment


      • #4
        Works like a charm Jake, many thanks!
        MARK.B | vBULLETIN SUPPORT

        TalkNewsUK - My vBulletin 5.6.4 Demo
        AdminAmmo - My Cloud Demo

        Comment

        Loading...
        Working...
        X