GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   i need a good banner rotation script (https://gfy.com/showthread.php?t=367281)

MrIzzz 10-05-2004 03:07 PM

i need a good banner rotation script
 
non- j a v a s c r i p t

anyone have any good reccomendations?

marzzo 10-05-2004 03:09 PM

simple one:

PHP Code:

<?
mt_srand((float)microtime()*1000000); 
$f=file("your_gallery_list_here.txt"); 
$u=trim($f[mt_rand(0,sizeof($f)-1)]); 
header("Location: $u"); 
?>

:thumbsup

Mike Panic 10-05-2004 03:11 PM

PHP Code:

<?php

$banners 
= array();
$urls = array();

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// 
// To add or subtract banners you must make a new/delete an entry in this file.  Each record 
// has two parts, the banner and url.  put in the full path to the image in the banner line, 
// and the full url of the link in the url line.  The numbers in the records MUST stary at 0 
// and have to be in order, you cannot skip a number or a "blank" banner will show up.
//
// To show this script on a page include to following code:
// <SCRIPT LANGUAGE="JAVASCRIPT" SRC="http://www.yoursite.com/ads/banner.php?show"></SCRIPT>
//
// but replace the url with the path to where you uploaded the banner.php file, "?show" must
// remain apended to the name for it to load inside your current page.
// 
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


   
$banners[0] = "http://www.gettipsy.com/banner.gif";
   
$urls[0] = "http://www.gettipsy.com";   
      
               
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Do NOT change anything below this line
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

$run getenv(QUERY_STRING);

srand((double)microtime()*1000000);
$randval rand(0,count($banners)-1);

if(
$run hahahaha 'show') { echo "document.write(\"<a href=".$urls[$randval]." target=_new><img src=".$banners[$randval]." border=0></a>\");"; }
else { echo 
"<a href=".$urls[$randval]." target=_new><img src=".$banners[$randval]." border=0></a>"; }

?>

to add more banners, simply copy the first one and replce [0] w/ [1] and so on down the line...

Napolean 10-05-2004 03:11 PM

edited: ill hold off for a bit

lb_vee 10-05-2004 03:13 PM

I dont know if its overkill, but phpAdsNew is pretty kick ass. You can manage banners, campaigns, zones and all. Decent stats too.

Adultnet 10-05-2004 03:13 PM

hit me up on icq i will get you a custom power full script with anything you want.
icq 210-623-566

MrIzzz 10-05-2004 03:42 PM

very cool, thanks everybody. i'm gonna try out that bit of code, and if i need anything further i'll get in touch with some of you:thumbsup

MrIzzz 10-05-2004 03:58 PM

yooooooooooo mike panic, what do the hahahahas stand for? gFY censored them, lol

if($run hahahaha 'show') { echo "document.write(\"<a href=".$urls[$randval]." target=_new><img src=".$banners[$randval]." border=0></a>\");"; }
else { echo "<a href=".$urls[$randval]." target=_new><img src=".$banners[$randval]." border=0></a>"; }

dready 10-05-2004 04:12 PM

phpAdsNew

http://phpadsnew.com/two/

Juicy D. Links 10-05-2004 04:43 PM

Quote:

Originally posted by MrIzzz
yooooooooooo mike panic, what do the hahahahas stand for? gFY censored them, lol

if($run hahahaha 'show') { echo "document.write(\"<a href=".$urls[$randval]." target=_new><img src=".$banners[$randval]." border=0></a>\");"; }
else { echo "<a href=".$urls[$randval]." target=_new><img src=".$banners[$randval]." border=0></a>"; }

ahahhhahhaahahhaahhomoooooooooo

MrIzzz 10-05-2004 04:45 PM

Quote:

Originally posted by juicylinks
ahahhhahhaahahhaahhomoooooooooo
translation = "hi, my name is juicy, and i love the cock"

Mike Panic 10-05-2004 05:13 PM

here:

http://www.mikepanic.com/banner_code.txt

download it and copy/edit it into your fav html browser


All times are GMT -7. The time now is 07:19 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123