[advanced search]
Results from the most recent live auction are here.
19 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming > CODE
User Name
Password

Old 04-30-2006, 06:02 AM   · #1
Xyzer
Steven
 
Xyzer's Avatar
 
Name: Steven Gibbons
Location: United Kindom
Trader Rating: (45)
Join Date: Aug 2005
Posts: 1,506
NP$: 40.00 (Donate)
Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all
Tsunami Relief AIDS/HIV
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


Please register or log-in into NamePros to hide ads
Xyzer is offline   Reply With Quote
Old 05-01-2006, 02:52 PM   · #2
wvccboy
Account Closed
 
Name: Jay
Trader Rating: (16)
Join Date: Jan 2006
Posts: 460
NP$: 71.00 (Donate)
wvccboy is a jewel in the roughwvccboy is a jewel in the roughwvccboy is a jewel in the rough
Rep added! Thanks
wvccboy is offline   Reply With Quote
Old 05-01-2006, 03:06 PM   · #3
Xyzer
Steven
 
Xyzer's Avatar
 
Name: Steven Gibbons
Location: United Kindom
Trader Rating: (45)
Join Date: Aug 2005
Posts: 1,506
NP$: 40.00 (Donate)
Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all
Tsunami Relief AIDS/HIV
Glad you like it!
Xyzer is offline   Reply With Quote
Old 05-05-2006, 08:29 AM   · #4
Xyzer
Steven
 
Xyzer's Avatar
 
Name: Steven Gibbons
Location: United Kindom
Trader Rating: (45)
Join Date: Aug 2005
Posts: 1,506
NP$: 40.00 (Donate)
Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all
Tsunami Relief AIDS/HIV
Thanks all, does anyone know anything else they would like me to add?
Xyzer is offline   Reply With Quote
Old 05-15-2006, 05:29 AM   · #5
jamesl
New Member
 
Trader Rating: (0)
Join Date: Nov 2005
Posts: 21
NP$: 25.00 (Donate)
jamesl is an unknown quantity at this point
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
jamesl is offline   Reply With Quote
Old 05-15-2006, 08:43 AM   · #6
Xyzer
Steven
 
Xyzer's Avatar
 
Name: Steven Gibbons
Location: United Kindom
Trader Rating: (45)
Join Date: Aug 2005
Posts: 1,506
NP$: 40.00 (Donate)
Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all
Tsunami Relief AIDS/HIV
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?
Xyzer is offline   Reply With Quote
Old 05-28-2006, 01:28 PM   · #7
navjotjsingh
BlahBlahBlah...
 
navjotjsingh's Avatar
 
Name: Navjot Singh
Location: India
Trader Rating: (37)
Join Date: Oct 2005
Posts: 1,941
NP$: 0.51 (Donate)
navjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to behold
Marrow Donor Program
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.
navjotjsingh is offline   Reply With Quote
Old 05-28-2006, 01:31 PM   · #8
Dan
Buy my domains.
 
Dan's Avatar
 
Name: Dan
Trader Rating: (63)
Join Date: Feb 2006
Posts: 2,800
NP$: 54.00 (Donate)
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
Autism Autism Autism Autism Autism Autism Autism
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.
Dan is offline   Reply With Quote
Old 05-28-2006, 01:32 PM   · #9
navjotjsingh
BlahBlahBlah...
 
navjotjsingh's Avatar
 
Name: Navjot Singh
Location: India
Trader Rating: (37)
Join Date: Oct 2005
Posts: 1,941
NP$: 0.51 (Donate)
navjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to beholdnavjotjsingh is a splendid one to behold
Marrow Donor Program
Thanks..I will test and tell you.
navjotjsingh is offline   Reply With Quote
Old 05-28-2006, 01:35 PM   · #10
Dan
Buy my domains.
 
Dan's Avatar
 
Name: Dan
Trader Rating: (63)
Join Date: Feb 2006
Posts: 2,800
NP$: 54.00 (Donate)
Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future
Autism Autism Autism Autism Autism Autism Autism
Blah, you need to look at my edit. :X

Subtract one from all the numbers so that the first one is 0.
Dan is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


Site Sponsors
http://www.dnfinder.com http://www.mobisitetrader.com/ Buy Flash Arcade Game Script
Advertise your business at NamePros
All times are GMT -7. The time now is 04:50 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0