New Sig! - PlanetSide Universe
PSU Social Facebook Twitter Twitter YouTube Steam TwitchTV
PlanetSide Universe
PSU: WOW! that looked painfull...
Home Forum Chat Wiki Social AGN PS2 Stats
Notices
Go Back   PlanetSide Universe > General Forums > The Lounge

Reply
 
Thread Tools Search this Thread Display Modes
Old 2003-05-03, 10:59 AM   [Ignore Me] #1
Squeeky
Contributor
Teh Masturbator
 
Squeeky's Avatar
 
New Sig!


I got a new sig, It randomly changes the image in my sig. I love it! 2 more sigs from Airlift soon to come. I like to keep my sig fresh, what do you guys think? For those who want the code, here it is

PHP Code:
//read folder
$folder=opendir("." ); 

$names = Array();

while (
$file readdir($folder)) 
    
$names***91;count($names)***93; = $file

closedir($folder);

//sort file names in array
sort($names);

//remove any non-images from array
$tempvar 0;
foreach (
$names as $name)
{
    
$ext strtolower(substr($name,-4));
    if (
$ext==".jpg"||$ext==".gif"||$ext=="jpeg"||$ext==".png" )
        
$names1***91;***93; = $name;
}
//random
srand ((double) microtime() * 10000000);
$rand_keys array_rand ($names12);
//random image from array
$slika $names1***91;$rand_keys***91;0***93;***93;; 
//image dimensions
$dimensions GetImageSize($slika); 
header ("Location:  ***91;url***93;http://staff.planetside-universe.com/squeeky/Sigs/***91;/url***93;$slika
Squeeky is offline  
Reply With Quote
Old 2003-05-03, 12:02 PM   [Ignore Me] #2
�io
Lieutenant General
 
io's Avatar
 


Ummm... yeah that's good and all but we aren't all staff man, no HTML for us. Stupid Hamma not making me staff, it's all his fault!
__________________
io is offline  
Reply With Quote
Old 2003-05-03, 12:16 PM   [Ignore Me] #3
powdahound
Contributor
PSU Staff
Code Hound
 


1st: It's PHP not HTML.

2nd: You put that script on some host somewhere, change the URLs to the images, and then in your sig you put: [IMG] http://www.whatever.com/randomsig.php [/IMG]
__________________
powdahound.com
powdahound is offline  
Reply With Quote
Old 2003-05-03, 12:27 PM   [Ignore Me] #4
Squeeky
Contributor
Teh Masturbator
 
Squeeky's Avatar
 


Originally posted by powdahound
1st: It's PHP not HTML.

2nd: You put that script on some host somewhere, change the URLs to the images, and then in your sig you put: [IMG] http://www.whatever.com/randomsig.php [/IMG]

Indeed!
Squeeky is offline  
Reply With Quote
Old 2003-05-03, 12:59 PM   [Ignore Me] #5
�io
Lieutenant General
 
io's Avatar
 


You can [img] a link?

....weird

Nevertheless i'll use this baby once i can get some sigs made.
__________________
io is offline  
Reply With Quote
Old 2003-05-03, 01:23 PM   [Ignore Me] #6
Squeeky
Contributor
Teh Masturbator
 
Squeeky's Avatar
 


Technically yes, If the .php file contains raw image data you can
Squeeky is offline  
Reply With Quote
Reply
  PlanetSide Universe > General Forums > The Lounge

Bookmarks

Discord


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:07 AM.

Content © 2002-2013, PlanetSide-Universe.com, All rights reserved.
PlanetSide and the SOE logo are registered trademarks of Sony Online Entertainment Inc. © 2004 Sony Online Entertainment Inc. All rights reserved.
All other trademarks or tradenames are properties of their respective owners.
Powered by vBulletin
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.