Hello and welcome to the Webmasters Forums!. This is the best place to get webmasters resources for free. Get $2 for free today, read more - Make your payment today. Download premium and professional templates for free. Get free web hosting without ads, read more. You can get lot more by simply join with this forum. To gain full access to the forums you must sign up for a free account.


Post Reply  Post Thread 

Banner Rotator Based on IP-address

Post Bank
Posting Manager
******

Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
Make money from now. You can make money just for posting on this forum. Every discussions on this community gives you more money. $2 minimum payout. So get your payment today, SignIn with this forum.

Signin to Remove this Post

voidname
Newbie


Posts: 11
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 1
Points: 54 (Donate)
Post: #1

Banner Rotator Based on IP-address


Banner Rotator Based on IP-address
Ok, I coded this thing in about 1 minute for my hacking-team site, and it's a banner rotator, which is based on a IP-address, you can simply edit it yourself, here's the code:

PHP Code:

Quote:
<?
$ip = $_SERVER['REMOTE_ADDR'];

switch ($ip)
{
case "MYIP":
echo "<a href='http://YOURSITE'><img src='http://BANNER1'></a>";
break;
case "YOURIP":
echo "<a href='http://YOURSITE'><img src='http://BANNER2'></a>";
break;
default:
echo "Welcome to IP!";
}
?>

Just change MYIP and YOURIP to whatever IP it is, and the <img src='http://banner1' part to the image for that IP address.

Have Fun with it!

08-09-2007 07:27 PM
Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #2

RE: Banner Rotator Based on IP-address


That is a good idea actually...

Never thought of that..

But it is worthless when using with a public site.

Still it is very useful one.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
08-09-2007 10:16 PM
Find all posts by this user Quote this message in a reply
khena25
Advanced Member
***


Posts: 169
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0
Points: 368 (Donate)
Post: #3

RE: Banner Rotator Based on IP-address


Yes, it actually is a very nice and intelligent script. I would use it if I had a site of which I knew my members IP.lol.


This space is for rent. PM me if you are interested. $5/month or 1000WM$ per month.
29-10-2007 04:21 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump:

Sign In to Remove Ads

Download 1000's of web templates. Unlimited access!
World's Best Web Hosting
Website of the Month

Create-a-Page for Free
SOTM June 2008


Accepting Submissions
for July 2008
Resources

Recommended Sites:



Visit our Sponsors!

Current time: 13-10-2008, 09:43 PM


Copyright © 2002-2008 MyBB Group
Powered By MyBB