The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
Replace the two instances of "zone:3" with:
Code:
zone:<if condition="$foruminfo['forumid'] == FORUMID">ZONENUMBER<else />3</if> Code:
zone:<if condition="$foruminfo['forumid'] == FORUMID">ZONENUMBER<else /><if condition="$foruminfo['forumid'] == FORUMID2">ZONENUMBER2<else />3</if></if> |
#12
|
|||
|
|||
![]()
Thanks, Dismounted, but this doesn't seem to work; all it seems to do is remove the ad from all the forums instead of allowing me to deliver a specific ad to a specific forum.
I must be doing something wrong, but I don't know what it is. And tobybird: I'm not trying to do contextual advertising. It's more straightforward than that; what I want to do is have the ads vary by forum. For example, if there's a "gardening" forum, I want to have a specific gardening ad there. If there's a "cooking" forum, the ad would be different. Or maybe have I'd have all the forums with the same ad, except for one. HELP!!!!! |
#13
|
||||
|
||||
![]()
You need to create multiple zones and replace the capitalised words in the code I gave you.
|
#14
|
|||
|
|||
![]()
Let me try to restate my problem, so that I can take advantage of the help you're trying to give me!
All of my forums draw from the same template. There are a dozen different forums, to each of which I would like to deliver a specific banner. The Cooking forum gets a Cooking ad. The Ratkilling forum gets a Ratkilling ad. And so on. Right now, I can only deliver the same ad (or range of ads) to all forums. Which is fine if I have an advertiser who sells both Cooking and Ratkilling equipment. How can I specify which goes where? |
#15
|
||||
|
||||
![]()
You need to setup multiple zones to match the forums and use the code I gave you to assign a different zone to each forum.
|
#16
|
|||
|
|||
![]()
Sorry to be so dense about this (you're being so helpful), but I must be doing something wrong. I established another zone and put the invocation code for it in the forumdisplay template, below the code for the first zone. Then I changed the invocation code in the first zone, as you suggested, and all that happens is I get the same ad going to all forums (the one I wanted to target to a specific forums). Maybe you could take a look and let me know what I'm doing wrong? I'd appreciate the help:
Quote:
Edited a little bit later: I changed the code to the following: zone:<if condition="$foruminfo['forumid'] == 11">7<else />3</if> and now I'm getting both ads (side by side) in all forums. I only want the ad that's linked to zone 7 in one of the forums (in this case, id:11). The rest of the forums get the ad that's linked to zone 3 Any ideas? |
#17
|
||||
|
||||
![]() Code:
<script language='JavaScript' type='text/javascript' src='http://www.XXXXXXX.com/openads/adx.js'></script> <script language='JavaScript' type='text/javascript'> <!-- if (!document.phpAds_used) document.phpAds_used = ','; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language='JavaScript' type='text/javascript' src='"); document.write ("http://www.XXXXXXX.com/openads/adjs.php?n=" + phpAds_random); document.write ("&what=zone:<if condition="$foruminfo['forumid'] == 11">7<else />3</if>"); document.write ("&exclude=" + document.phpAds_used); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); document.write ("'><" + "/script>"); //--> </script><noscript><a href='http://www.XXXXXXX.com/openads/adclick.php?n=a6409d73' target='_blank'><img src='http://www.XXXXXXX.com/openads/adview.php?what=zone:<if condition="$foruminfo['forumid'] == 11">7<else />3</if>&n=a6409d73' border='0' alt=''></a></noscript> <script language='JavaScript' type='text/javascript' src='http://www.theskidiva.com/openads/adx.js'></script> <script language='JavaScript' type='text/javascript'> <!-- if (!document.phpAds_used) document.phpAds_used = ','; phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11); document.write ("<" + "script language='JavaScript' type='text/javascript' src='"); document.write ("http://www.XXXXXXX.com/openads/adjs.php?n=" + phpAds_random); document.write ("&what=zone:<if condition="$foruminfo['forumid'] == 11">7<else />3</if>"); document.write ("&exclude=" + document.phpAds_used); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); document.write ("'><" + "/script>"); //--> </script><noscript><a href='http://www.XXXXXXX.com/openads/adclick.php?n=a9afbf66' target='_blank'><img src='http://www.XXXXXXX.com/openads/adview.php?what=zone:7&n=a9afbf66' border='0' alt=''></a></noscript> |
#18
|
|||
|
|||
![]()
Sorry to say this didn't work, either.
Any other ideas? I really need some help! |
#19
|
||||
|
||||
![]()
What happens?
|
#20
|
|||
|
|||
![]()
I get both ads side by side in all the forums, rather than one ad in all forums exccept one where it'd be replaced by the other ad.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|