![]() |
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.
|
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? :confused: |
Quote:
I tried what you posted but it doesn't work. Code:
<!--/* Openads Javascript Tag v2.3.39-beta */--> 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? |
You'll have to tell me the forum IDs...
|
for exmaple if the forum ids are 12 and 22, what would the code look like? Thanks ahead for your help btw.
|
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>"); |
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>"); |
All times are GMT. The time now is 04:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|