Announcement

Collapse
No announcement yet.

Style Replacement Variables and Conditionals

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

  • Style Replacement Variables and Conditionals

    Can we use conditionals within replacement variables?

    I've tried setting up a test one of

    Code:
    Search for text: :justatestofstuff:
    Replace with text:
     
    <if condition="is_member_of($bbuserinfo,299)">
    <img src="http://www.mmogcommunities.com/forums/images/smilies/thud.gif">
    <else />
    NOT FOR YOUR EYES
    </if>
    And it shows

    NOT FOR YOUR EYES

  • #2
    No. Conditionals only work in templates.

    You will need custom code (plugin or file hack) to do what you want. I recommend you post on www.vbulletin.org about this.

    Comment

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