 |
Results from the most recent live auction are here.
17 members in the live chat room. Join Chat!
| |
04-30-2006, 06:02 AM
|
· #1 | | Steven Name: Steven Gibbons Location: United Kindom Join Date: Aug 2005
Posts: 1,506
NP$: 40.00 ( Donate)
| Ad Script V2 Hi,
I noticed my script was quite popular so i decided to add a size option to it.
Here is the new one: PHP Code: <?php
srand( microtime() * 1000000);
$advertise = rand(1,3);
//After the rand decided how many youve got and the first and last number e.g got 3, 1,3
switch($advertise)
//you can add more just use the same format
{
case 1 : $banner="site 1 image url"; $url="site one address"; $height="height"; $width="width"; break;
case 2 : $banner="site 2 image url"; $url="site two address"; $height="height"; $width="width"; break;
case 3 : $banner="site 3 image url"; $url="site 3 address"; $height="height"; $width="width"; break;
}
$display = "<a href=\"$url\" target=\"_blank\"> ";
$display.= "<img src=\"$banner\" ";
$display.= "width=\"$width\" height=\"$height\" border=\"0\" >";
$display.="</a>";
echo($display);
?>
If you use it please donate NP$ or Add rep.
Thanks |
| |
05-01-2006, 02:52 PM
|
· #2 | | Account Closed Name: Jay Join Date: Jan 2006
Posts: 460
NP$: 71.00 ( Donate)
| Rep added! Thanks |
| |
05-01-2006, 03:06 PM
|
· #3 | | Steven Name: Steven Gibbons Location: United Kindom Join Date: Aug 2005
Posts: 1,506
NP$: 40.00 ( Donate)
| Glad you like it! |
| |
05-05-2006, 08:29 AM
|
· #4 | | Steven Name: Steven Gibbons Location: United Kindom Join Date: Aug 2005
Posts: 1,506
NP$: 40.00 ( Donate)
| Thanks all, does anyone know anything else they would like me to add? |
| |
05-15-2006, 05:29 AM
|
· #5 | | New Member | this is a nice code indeed!
I got one problem and need guide and help. Instead of inserting ads one by one into each sites, I come across this iPanel application. I look thru iPanel ( http://www.ihostdev.com/ipanel.html) which is able to get ads display on several site at one (the feature - Forced ads into free sites ). My problem is :-
1. How to rotate the ads/banner..etc in these sites? I could get my host to install Mod-Layout (as per the iPanel requirement), but further than that, I'm lost!
2. Or I could just utilize Mod_Layout + PhpAdsNew ? http://phpadsnew.com/two/
Really lost here...  Apology if I didn't give a clear picture of the problem...too lost in my mind in this!
Thz for your kind guide.
James |
| |
05-15-2006, 08:43 AM
|
· #6 | | Steven Name: Steven Gibbons Location: United Kindom Join Date: Aug 2005
Posts: 1,506
NP$: 40.00 ( Donate)
| I dont understand what you mean, if you use my script and are using php pages it will work, if you still need help feel free to pm me, What does everyone think? |
| |
05-28-2006, 01:28 PM
|
· #7 | | BlahBlahBlah... Name: Navjot Singh Location: India Join Date: Oct 2005
Posts: 1,941
NP$: 0.51 ( Donate)
| This script is only for image banners. How can we edit to display javascript ad codes like the ones by google or clicksor. I am not much into PHP so please help me. |
| |
05-28-2006, 01:31 PM
|
· #8 | | Buy my domains. Name: Dan Join Date: Feb 2006
Posts: 2,800
NP$: 54.00 ( Donate)
| If you want random google or clicksor ads use this: (not tested) PHP Code: $ad[0] = 'whole javascript code here';
$ad[1] = 'whole javascript code here';
$ad[2] = 'whole javascript code here';
$ad = $ad[rand(0,count($ad))];
echo $ad;
I think you can figure out how to add or remove ads. 
Last edited by Dan Friedman : 05-28-2006 at 01:35 PM.
|
| |
05-28-2006, 01:32 PM
|
· #9 | | BlahBlahBlah... Name: Navjot Singh Location: India Join Date: Oct 2005
Posts: 1,941
NP$: 0.51 ( Donate)
| Thanks..I will test and tell you. |
| |
05-28-2006, 01:35 PM
|
· #10 | | Buy my domains. Name: Dan Join Date: Feb 2006
Posts: 2,800
NP$: 54.00 ( Donate)
| Blah, you need to look at my edit. :X
Subtract one from all the numbers so that the first one is 0. |
| |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |