webducknj
02-08-2014, 06:58 AM
Hi everyone,
My developer retired and I've been doing site upkeep myself. After adding subforums to a forum area though, the original conditionals are not displaying one particular ad spot correctly. Any help straightening this out would be appreciated.
this is what is currently in the template for the ad display;
<vb:if condition="$vbulletin->GPC['forumid'] == 48"><vb:if condition="in_array($vbulletin->GPC['forumid'], array(48,66,67,-1))"><table width="100%" style="background-color:#ffffff;">
I tried (unsuccessfully) to add three other forum ID's to the "==48" but that didn't work and in the process I think maybe the software tried to accommodate my error by adding the next vb:if condition with the array reference (is that even possible for it to generate code in trying to repair a coding error?)
So what use to be a conditional testing to see if the forum being displayed was 48 in order to place the correct ad, it now needs to test for four different forum ID #'s.
Can someone please explain the correct way to make it test for four different ID's before choosing which ad to run?
Thanks very much.
Bart
My developer retired and I've been doing site upkeep myself. After adding subforums to a forum area though, the original conditionals are not displaying one particular ad spot correctly. Any help straightening this out would be appreciated.
this is what is currently in the template for the ad display;
<vb:if condition="$vbulletin->GPC['forumid'] == 48"><vb:if condition="in_array($vbulletin->GPC['forumid'], array(48,66,67,-1))"><table width="100%" style="background-color:#ffffff;">
I tried (unsuccessfully) to add three other forum ID's to the "==48" but that didn't work and in the process I think maybe the software tried to accommodate my error by adding the next vb:if condition with the array reference (is that even possible for it to generate code in trying to repair a coding error?)
So what use to be a conditional testing to see if the forum being displayed was 48 in order to place the correct ad, it now needs to test for four different forum ID #'s.
Can someone please explain the correct way to make it test for four different ID's before choosing which ad to run?
Thanks very much.
Bart