AlexisMedia
12-25-2010, 01:28 AM
I'm trying to do my first condition and I'm not sure if I got the code correct as it's not working. I'm thinking maybe my forum id is wrong but I don't know... This is for ad placements. The pre-loader is placed in the head (forumdisplay) like this:
<vb:if condition="$forum[forumid] == 26"><!-- AdSpeed.com Serving Code 7.9.4 for 3 zones [Any Dimension] -->
<script type="text/javascript" src="http://g.adspeed.net/ad.php?do=js&zids=26302x9&wd=-1&ht=-1&target=_top"></script>
<!-- AdSpeed.com End --></vb:if>
Then the ad's divs are placed in the proper part of the FORUM DISPLAY template like this:
<vb:if condition="$forum[forumid] == 26">
<div id="banner-column-container">
<div class="banner-ads-long">
<script type="text/javascript">
AdSpeed_display(26302,0); // first ad
</script>
</div><!--banner-ads-long-->
<div class="banner-ads-long">
<script type="text/javascript">
AdSpeed_display(26302,1); // 2nd ad
</script>
</div><!--banner-ads-long-->
ETC...
</div><!--banner-column-container-->
</vb:if>
My url was this ending: forums/forumdisplay.php/26-Pro so I figured either 26 or 26-Pro would be the forum id. Neither seemed to work and show up in the source code though so maybe I'm doing the forum id wrong? You would think if it was completely wrong then the code would be showing up in the source code. I know positively I'm putting them in the right templates as I've tested with bogus words in the header etc and that showed up in the source code.
Thanks!
<vb:if condition="$forum[forumid] == 26"><!-- AdSpeed.com Serving Code 7.9.4 for 3 zones [Any Dimension] -->
<script type="text/javascript" src="http://g.adspeed.net/ad.php?do=js&zids=26302x9&wd=-1&ht=-1&target=_top"></script>
<!-- AdSpeed.com End --></vb:if>
Then the ad's divs are placed in the proper part of the FORUM DISPLAY template like this:
<vb:if condition="$forum[forumid] == 26">
<div id="banner-column-container">
<div class="banner-ads-long">
<script type="text/javascript">
AdSpeed_display(26302,0); // first ad
</script>
</div><!--banner-ads-long-->
<div class="banner-ads-long">
<script type="text/javascript">
AdSpeed_display(26302,1); // 2nd ad
</script>
</div><!--banner-ads-long-->
ETC...
</div><!--banner-column-container-->
</vb:if>
My url was this ending: forums/forumdisplay.php/26-Pro so I figured either 26 or 26-Pro would be the forum id. Neither seemed to work and show up in the source code though so maybe I'm doing the forum id wrong? You would think if it was completely wrong then the code would be showing up in the source code. I know positively I'm putting them in the right templates as I've tested with bogus words in the header etc and that showed up in the source code.
Thanks!