Sig code? - PlanetSide Universe
PSU Social Facebook Twitter Twitter YouTube Steam TwitchTV
PlanetSide Universe
PSU: lions, tigers, and barneys?!
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-12-30, 03:19 AM   [Ignore Me] #1
BUGGER
Major General
 
BUGGER's Avatar
 
Misc Info
Sig code?


What is it(the one that switches your sig every load)? I cant search it or find it anywhere else.


Thx in advance.
__________________
PS Storys:
The Eraser
The New World (5Chap.)

http://mrchevys3.blogspot.com/

Living is easy with eyes closed.
BUGGER is offline  
Reply With Quote
Old 2003-12-30, 03:23 AM   [Ignore Me] #2
Hamma
PSU Admin
 
Hamma's Avatar
 


PHP sig.
__________________

PlanetSide Universe - Administrator / Site Owner - Contact @ PSU
Hamma Time - Evil Ranting Admin - DragonWolves - Commanding Officer
Hamma is offline  
Reply With Quote
Old 2003-12-30, 04:34 AM   [Ignore Me] #3
BUGGER
Major General
 
BUGGER's Avatar
 
Misc Info


Ya....but it wont let me search anything thats 3 letters or smaller.


/edit i mean the code, not name
__________________
PS Storys:
The Eraser
The New World (5Chap.)

http://mrchevys3.blogspot.com/

Living is easy with eyes closed.
BUGGER is offline  
Reply With Quote
Old 2003-12-30, 04:35 AM   [Ignore Me] #4
Squeeky
Contributor
Teh Masturbator
 
Squeeky's Avatar
 


PHP Code:
<?php 
//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:  http://staff.planetside-universe.com/squeeky/Sigs/$slika)
?>
That is the script, if your a PHP noobie copy paste all that code into Notepad, change the http://staff.planetside-universe.com/squeeky/Sigs/$slika to the appropriate directory and on the "Save As" drop down box select "All Files" and save as sigs.php

Upload to the directory defined in the .php script (the part you edited) and then upload all images you want to that directory (script supports .jpg, .gif, .png, .bmp). Then take the URL (in my case http://staff.planetside-universe.com...gs/squeeky.php) and paste it with [img] tags in your sig. Viola!


Goodluck.
Squeeky is offline  
Reply With Quote
Old 2003-12-30, 04:41 AM   [Ignore Me] #5
BUGGER
Major General
 
BUGGER's Avatar
 
Misc Info


Fun fun, thx.
__________________
PS Storys:
The Eraser
The New World (5Chap.)

http://mrchevys3.blogspot.com/

Living is easy with eyes closed.
BUGGER is offline  
Reply With Quote
Old 2003-12-30, 11:39 AM   [Ignore Me] #6
FlakMan
Colonel
 
FlakMan's Avatar
 


My sig got pwnt for using a script that does the same thing, and I know someone *cough*corrosion*cough* does the same thing with even larger sigs and gets away with it
__________________

[-collection-] [-wishlist-] [-muse-] [-mars volta-] [-devart-] [-ljournal-]
FlakMan is offline  
Reply With Quote
Old 2003-12-30, 02:41 PM   [Ignore Me] #7
Corrosion
Registered User
 
Corrosion's Avatar
 
Misc Info


ph34r me 1337 skillzes.

thx to Squeeky for code, I wouldn't have my sig without him.
Corrosion 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 06:47 PM.

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.