No announcement yet.

if condition forum id's

  • Filter
  • Time
  • Show
Clear All
new posts

  • if condition forum id's

    I use an if condition in the postbit template as below to have a message appear in the postbit of some forums but not others:

    <if condition="!in_array($forum[forumid], array(174,179,185,188,199,206,221))">
    my message

    This excludes the above forums from having "my message" in the postbit. However "my message" also appears in the PM postbit which I do not want.

    How do I also exclude "my message" from the PM postbit?

  • #2
    Try this:
    HTML Code:
    <if condition="!in_array($forum[forumid], array(174,179,185,188,199,206,221)) AND THIS_SCRIPT != 'private'">
    my message

    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
      Thank you, that worked!


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