The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#31
|
||||
|
||||
![]()
You do know the use of iFrames are highly not recommended, it's bad coding style. Also, he's not trying to rotate ads, he's trying to get DIFFERENT ads in different forums.
|
#32
|
|||
|
|||
![]()
Dismounted, you got that exactly right! Rotating ads IS NOT the problem.
There HAS to be a way to solve this, though, wouldn't you think? ![]() |
#33
|
|||
|
|||
![]() Quote:
I tried what you posted but it doesn't work. Code:
<!--/* Openads Javascript Tag v2.3.39-beta */--> <!--/* * The backup image section of this tag has been generated for use on a * non-SSL page. If this tag is to be placed on an SSL page, change the * 'http://www.clubwrx.net/openads/www/delivery/...' * to * 'https://www.clubwrx.net/openads/www/delivery/...' * * This noscript section of this tag only shows image banners. There * is no width or height in these banners, so if you want these tags to * allocate space for the ad before it shows, you will need to add this * information to the <img> tag. * * If you do not want to deal with the intricities of the noscript * section, delete the tag (from <noscript>... to </noscript>). On * average, the noscript tag is called from less than 1% of internet * users. */--> <script type='text/javascript'><!--//<![CDATA[ var m3_u = (location.protocol=='https:'?'https://www.xxxxx.net/openads/www/delivery/ajs.php':'http://www.clubwrx.net/openads/www/delivery/ajs.php'); var m3_r = Math.floor(Math.random()*99999999999); if (!document.MAX_used) document.MAX_used = ','; document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u); document.write ("?zoneid=4"); document.write ('&cb=' + m3_r); if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used); document.write ("&loc=" + escape(window.location)); if (document.referrer) document.write ("&referer=" + escape(document.referrer)); if (document.context) document.write ("&context=" + escape(document.context)); if (document.mmm_fo) document.write ("&mmm_fo=1"); document.write ("'><\/scr"+"ipt>"); //]]>--></script><noscript><a href='http://www.clubwrx.net/openads/www/delivery/ck.php?n=a4f64f41&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://www.clubwrx.net/openads/www/delivery/avw.php?zoneid=4&cb=INSERT_RANDOM_NUMBER_HERE&n=a4f64f41' border='0' alt='' /></a></noscript> It seems like the key variable lies in the phrase document.write ("?zoneid=4"); Is there any way to use if and else statements before and after this entire line? Here's the pseudo code: If (forumid == x) document.write ("?zoneid=4"); else if (forumid == y) document.write ("?zoneid=5"); else document.write("?zoneid=6"); Can you tell me how to write the if and else statement in the java script provided by openads? |
#34
|
||||
|
||||
![]()
You'll have to tell me the forum IDs...
|
#35
|
|||
|
|||
![]()
for exmaple if the forum ids are 12 and 22, what would the code look like? Thanks ahead for your help btw.
|
#36
|
||||
|
||||
![]()
Find:
Code:
document.write ("?zoneid=4"); Code:
document.write ("?zoneid=<if condition="$foruminfo['forumid'] == 12">4<else /><if condition="$foruminfo['forumid'] == 22">5<else />6</if></if>"); |
#37
|
|||
|
|||
![]()
code turned out a little different for me.. but Dismounted gave the general road map
Code:
document.write ("&<if condition="$foruminfo['forumid'] == 45">what=zone:1</if>"); |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|