Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #31  
Old 22 Jun 2007, 07:00
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
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.
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #32  
Old 22 Jun 2007, 12:10
ski diva ski diva is offline
 
Join Date: Jul 2006
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?

Last edited by ski diva; 22 Jun 2007 at 12:13.
Reply With Quote
  #33  
Old 18 Sep 2007, 23:25
shunx91 shunx91 is offline
 
Join Date: Dec 2005
Originally Posted by Dismounted View Post
Replace the two instances of "zone:3" with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

To do this with multiple forums:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Hi Dismounted;

I tried what you posted but it doesn't work.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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?
Reply With Quote
  #34  
Old 19 Sep 2007, 06:10
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
You'll have to tell me the forum IDs...
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #35  
Old 19 Sep 2007, 07:27
shunx91 shunx91 is offline
 
Join Date: Dec 2005
for exmaple if the forum ids are 12 and 22, what would the code look like? Thanks ahead for your help btw.
Reply With Quote
  #36  
Old 19 Sep 2007, 09:06
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace With:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #37  
Old 17 Oct 2007, 18:40
doug97gxe doug97gxe is offline
 
Join Date: Jun 2005
code turned out a little different for me.. but Dismounted gave the general road map


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclude stats from specific subforums on specific forums (e.g. index) Adult SEO vBulletin 3.6 Add-ons 7 18 Dec 2006 03:02



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 02:14.

Layout Options | Width: Wide Color: