Announcement

Collapse
No announcement yet.

If condition in ad_global_header1?

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

  • moleculo
    replied
    That was it. Thanks for the quick response.

    Now, do you want to redo all the other VB3 hacks for me so I can finally get this thing to production? J/K

    Leave a comment:


  • Zachery
    replied
    Try $GLOBALS[forumid] instead of your current varible.

    Leave a comment:


  • moleculo
    started a topic [Forum] If condition in ad_global_header1?

    If condition in ad_global_header1?

    I'm trying to use the following if conditional in my VB4 header to control which ad displays in each forum:

    <vb:if condition="$forum[forumid] == 134">this is a header ad</vb:if>

    The old syntax worked fine in VB 3.8.x but I'm not having any luck getting this to work in the VB 4 ad location template. The ad displays fine if I remove the conditional, but then I can't control which ad I want in each forum. What's the trick to make this work?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X