Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
CJ Webmaster Forums Forum Index -> PHP Scripts » CJ Ad Rotator

   
Rotating scripts -tip for that here
View previous topic :: View next topic  
Author Message
adguy



Joined: 27 Sep 2005
Posts: 1

Posted: Tue Sep 27, 2005 1:24 am    Post subject: Rotating scripts -tip for that here

Here are a couple of reasons to rotate adsense type ads. What if you wanted to swap ads bewtween multiple authors on one page? Or what if you wanted to swap Adsense with PublisherNet ads?

Example swap this:

<script type="text/javascript"><!--
google_ad_client = "pub-123456789";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

With this:

<script type="text/javascript"><!--
google_ad_client = "pub-987654321";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Or with this:

<script type="text/javascript"><!--
yahoo_ad_client = "pub-711711711";
//--></script>
<script type="text/javascript"
src="http://pagead2.yahoosyndication.com/pagead/show_ads.js">
</script>

That's the question. How to do that?
Back to top
darkcarnival
CJ-Design.com Moderator



Joined: 10 Jul 2003
Posts: 1098
Location: Michigan

Posted: Tue Sep 27, 2005 6:04 pm    Post subject:

i think i told someone this on another topic

you cant add that kind of banner on this script!

first off they already reatoate automatically

second, this script looks for physical banners, meaing links to a banner, not some .js file.

now if you want to spend time editing the script to make it do what you want, go right ahead, james wont mind but how it is currently its not possible.

and im not saying its dumb to have this work, but its just not possible since google and others like this created a js file for you.

if you wanted to swap ads like how you want, just give the person your swapping your js code
_________________
List of Mods to James Scripts!
http://www.cj-design.com/forum/viewtopic.php?t=1798

give me some input on my current project
http://metalstation1.com/ebb.php

Elite Bulletin Board, comming soon!
Back to top
darkcarnival
CJ-Design.com Moderator



Joined: 10 Jul 2003
Posts: 1098
Location: Michigan

Posted: Tue Sep 27, 2005 6:27 pm    Post subject:

hmm ok looking in the demo, i did see a google ad

must of had my ad blocker on when some other user told me that, my bad.

ok well since it seems like its possible, it should be done but i couldnt honestly tell you how sadly, as in the readme james tells you that it has to be a certain format, which is why i have been telling others it cant be done.

i have james email ill contact him and ask him about it.
_________________
List of Mods to James Scripts!
http://www.cj-design.com/forum/viewtopic.php?t=1798

give me some input on my current project
http://metalstation1.com/ebb.php

Elite Bulletin Board, comming soon!
Back to top
GodfatherUK
CJ-Design.com Moderator



Joined: 17 Sep 2004
Posts: 190
Location: UK

Posted: Tue Sep 27, 2005 11:08 pm    Post subject:

create file google.php

insert into the file

Code:
<script type="text/javascript">google_ad_client = "pub-0615342460399031";google_ad_width = 468;google_ad_height = 60;google_ad_format = "468x60_as";google_ad_channel ="";google_color_border = "CCCCCC";google_color_bg = "FFFFFF";google_color_link = "000066";google_color_url = "0033CC";google_color_text = "333333";</script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>


(ive used Jame's Google Ads)

Right, now open your linkcode.inc

insert into it

Code:
<?php include "http://www.domain.com/adrotate/google.php"; ?>


Obviosuly link it to your google.php file.

Upload all the files to the correct folders etc and remember to give the linkcode.inc permissions of 777.

And away you go
_________________
GodfatherUK
CJ Designs Forum Moderator

"I dont think i am good at coding.. But i KNOW im good at helping"
Back to top
darkcarnival
CJ-Design.com Moderator



Joined: 10 Jul 2003
Posts: 1098
Location: Michigan

Posted: Wed Sep 28, 2005 1:41 am    Post subject:

well done godfather

thanks for sharing that. ill sticky this topic for quick reference
_________________
List of Mods to James Scripts!
http://www.cj-design.com/forum/viewtopic.php?t=1798

give me some input on my current project
http://metalstation1.com/ebb.php

Elite Bulletin Board, comming soon!
Back to top
Display posts from previous:   
       CJ Webmaster Forums Forum Index -> PHP Scripts » CJ Ad Rotator All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional, Mods by CJ Website Design