Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-10-2004, 03:17 AM   #1
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Easy Rotating SIG script. ( cut & paste )

Just cut and paste code into a text document, save it as sig.php , place in folder like www.yoursite.com/sig/sig.php then add all your images to the folder , then make your sig image point to the sig.php file and it will randomly display the images.

edit. your going to have to replace "haha123;" with the } ( the opposite of this one i.e. going the other way - like the bracket to the right of the "P" key , ) bracket because for some reason gfy has parsed it out of the code.

If you want to have the images in a different folder just edit the $folder from "." to "/folder/extension/"
PHP Code:
<?php

    $folder 
'.';
                
$extList = array();
    
$extList['gif'] = 'image/gif';
    
$extList['jpg'] = 'image/jpeg';
    
$extList['jpeg'] = 'image/jpeg';
    
$extList['png'] = 'image/png';
    
$img null;

if (
substr($folder,-1) != '/') {
    
$folder $folder.'/';
}

if (isset(
$_GET['img'])) {
    
$imageInfo pathinfo($_GET['img']);
    if (
        isset( 
$extListstrtolower$imageInfo['extension'] ) ] ) &&
        
file_exists$folder.$imageInfo['basename'] )
    ) {
        
$img $folder.$imageInfo['basename'];
    }
} else {
    
$fileList = array();
    
$handle opendir($folder);
    while ( 
false !hahahaha $file readdir($handle) ) ) {
        
$file_info pathinfo($file);
        if (
            isset( 
$extListstrtolower$file_info['extension'] ) ] )
        ) {
            
$fileList[] = $file;
        }
    }
    
closedir($handle);

    if (
count($fileList) > 0) {
        
$imageNumber time() % count($fileList);
        
$img $folder.$fileList[$imageNumber];
    }
}

if (
$img!=null) {
    
$imageInfo pathinfo($img);
    
$contentType 'Content-type: '.$extList$imageInfo['extension'] ];
    
header ($contentType);
    
readfile($img);
} else {
    if ( 
function_exists('imagecreate') ) {
        
header ("Content-type: image/png");
        
$im = @imagecreate (100100)
            or die (
"Cannot initialize new GD image stream");
        
$background_color imagecolorallocate ($im255255255);
        
$text_color imagecolorallocate ($im0,0,0);
        
imagestring ($im255,  "IMAGE ERROR"$text_color);
        
imagepng ($im);
        
imagedestroy($im);
    }
}

?>
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 03:18 AM   #2
Jace
FBOP Class Of 2013
 
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
damn dude, nice

your just mr helpful tonight...thanks
Jace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 03:42 AM   #3
ClamSmacker
Confirmed User
 
Join Date: May 2004
Location: Oztralia
Posts: 677
You really are a brain-iack and a good source of info
ClamSmacker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 03:48 AM   #4
Veterans Day
Confirmed User
 
Join Date: Jul 2003
Location: The Windy City
Posts: 8,403
smokey how can you be reached?
Veterans Day is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 03:55 AM   #5
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally posted by Veterans Day
smokey how can you be reached?
start a fire

smokey_the_bearz AT lycos.com
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 03:56 AM   #6
Veterans Day
Confirmed User
 
Join Date: Jul 2003
Location: The Windy City
Posts: 8,403
Quote:
Originally posted by SmokeyTheBear
start a fire

smokey_the_bearz AT lycos.com
Veterans Day is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 04:04 AM   #7
AGF
Confirmed User
 
Join Date: Jul 2004
Posts: 971
looks really good
__________________
SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.
AGF is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 04:09 AM   #8
McKracken
Confirmed User
 
Join Date: Jan 2004
Location: Drunkville
Posts: 703
I expect a lot more "free stuff" from the guy who got html banned around here...
__________________

MAKE BIG $$$ - NEW MANINSTREAM SITE BETA LAUNCHES SEPTEMBER!
* e-mail for more info [email protected] *
McKracken is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 04:13 AM   #9
kaktusan
Confirmed User
 
kaktusan's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Pornblogspace.com
Posts: 334
damn good idea Smokey
Nice work
kaktusan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 04:14 AM   #10
pure energy
Confirmed User
 
Join Date: Apr 2004
Posts: 4,274
I hope loading that on my server doesn't make me become an unwitting tool yet for another SECURITY LESSON at GFY
__________________
Click Here to get $42 a sale AND Get FREE MGP Coaching from WebmasterLabor.Com

Sign up above then EMAIL info (( at )) webmasterlabor DOT com for your free 1 to 1 MGP coaching

pure energy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 04:20 AM   #11
hova
Traffillionaire
 
Industry Role:
Join Date: Jan 2002
Location: ICQ:209371571
Posts: 22,430
Quote:
Originally posted by McKracken
I expect a lot more "free stuff" from the guy who got html banned around here...
__________________
http://traffillions.com/

Sign up and get lifetime revshare on your traffic
hova is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 04:25 AM   #12
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally posted by McKracken
I expect a lot more "free stuff" from the guy who got html banned around here...
You could look at it like that or you could look at me as " the guy who saved your ass and everyone on gfy's ass from being owned by some fooligan at some point and using you and abusing you like a rag doll from corrupt html code "

Lensman could have hired someone to fix the html up nice and clean , it would have taken an hour.
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 04:37 AM   #13
arachnO
Confirmed User
 
arachnO's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Cyprus
Posts: 1,327
nice idea!
arachnO is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 04:45 AM   #14
Ar3s
So Fucking Banned
 
Join Date: Feb 2004
Location: ICQ : 207880728
Posts: 4,307
Nice bro!winkwink:
Ar3s is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 05:21 PM   #15
Clovis
Confirmed User
 
Join Date: Jan 2001
Location: Turtle Island
Posts: 412
very nice work

thanks
__________________
Thank God for little rebills
www.jadecandle.com

just fucking submit
Clovis is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 05:26 PM   #16
fr8
Confirmed User
 
Industry Role:
Join Date: Mar 2003
Posts: 5,074
Thats a really good script. Wonder how it will effect the sig whores.
__________________
joesmut (a) gmail Dot com
Full Stack Developer
fr8 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 05:30 PM   #17
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
Quote:
Originally posted by fr8
Thats a really good script. Wonder how it will effect the sig whores.
I posted a PHP script that will rotate your sig banners/buttons and still let them have links, but it didn't affect any sigwhores then, so it will not now.
Repetitive Monkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 05:33 PM   #18
Repetitive Monkey
Confirmed User
 
Join Date: Feb 2004
Posts: 3,505
By the way, Smokey, why did you make it GD dependent when you can just stream the image right through?
Repetitive Monkey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-10-2004, 05:36 PM   #19
SilverTab
Confirmed User
 
Join Date: Nov 2001
Location: MTL
Posts: 5,060
Quote:
Originally posted by Repetitive Monkey
By the way, Smokey, why did you make it GD dependent when you can just stream the image right through?
yeah why not use fpassthru();
__________________
mmm my sig was too big... no more cool animation
but hey still! need php? ICQ: 94586959
SilverTab is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.