No announcement yet.

Do conditionals work in phrases?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Do conditionals work in phrases?

    I am running VB 3.8 and was wondering, can I use a conditional in a phrase?

    I am speaking particularly of the notify phrase. I would like to make it so it works like this...

    <if condition="is_member_of($bbuserinfo, X, Y, Z)">
    Here is the message that has just been posted:
    So that only members of the user groups I specify get that portion of the e-mail when it is send, and everyone else, that message is not sent.

    Does it work that way?

  • #2
    You cannot put conditions in a phrase.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help


    • #3
      This would have been extremely useful.
      My law forum, lawyers and legal help site


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