Phixda Fernback
(?)Community Member
Offline
- Posted: Mon, 08 Nov 2004 03:30:36 +0000
Quote:
IF you're looking for something in particular, use your key word search by pressing "CTRL+f"
TEXT IN RED are links to screencaps to better help you follow the walkthrough. click them! Use them! domokun
Quote:
READ
Recently, BFN has decided to cut all ties with Gaia, just as CGIspy did in the past...
As of now, all other methods are open, but BFN is off limits and wont work for you.
If you have any questions, you can reach them at their site.
If you want to read up on it, heres two links...
http://www.bfndevelopment.com/gaia.html
http://www.gaiaonline.com/forum/viewtopic.php?t=11713690
Recently, BFN has decided to cut all ties with Gaia, just as CGIspy did in the past...
As of now, all other methods are open, but BFN is off limits and wont work for you.
If you have any questions, you can reach them at their site.
If you want to read up on it, heres two links...
http://www.bfndevelopment.com/gaia.html
http://www.gaiaonline.com/forum/viewtopic.php?t=11713690
ASP Coding:
First, to use this script, you will need an host that support the execution of .asp scripts, like www.1asphost.com . Keep in mind that they tend to block direct-links during the weekend, so your randomizer might stop working then.
First of all, copy this code into Notepad, or another text editor :
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<%
Dim intNumber, intHow_many, intRandom
intHow_many = 4 ' Number of images to randomize
Randomize
intRandom = Rnd()
intNumber = Int(intHow_many*intRandom + 1)
Select Case intNumber
Case 1
Response.Redirect("http://sampleurl.com")
Case 2
Response.Redirect("http://sampleurl.com")
Case 3
Response.Redirect("http://sampleurl.com")
Case 4
Response.Redirect("http://sampleurl.com")
End Select %>
<%
Dim intNumber, intHow_many, intRandom
intHow_many = 4 ' Number of images to randomize
Randomize
intRandom = Rnd()
intNumber = Int(intHow_many*intRandom + 1)
Select Case intNumber
Case 1
Response.Redirect("http://sampleurl.com")
Case 2
Response.Redirect("http://sampleurl.com")
Case 3
Response.Redirect("http://sampleurl.com")
Case 4
Response.Redirect("http://sampleurl.com")
End Select %>
Now, to edit it... you need to edit the number next to intHow_many = to match the number of images you want to randomize, then add the number of cases with their respective url. Say you need to put in 5 images, then edit intHow_many = to 5, then copy/paste the code for case 4, change the case number to 5 and put in the url for the 5th image. This is very important, since the script will NOT work if there are two cases with the same number, or if the number next to intHow_many = doesn't match with the number of cases. After you make sure everything is okay, save as and save it as something like random.asp.
Then, if you don't have one allready, register an account on www.1asphost.com . This should be pretty self-explainatory. Then upload the file, and direct link it in your signature like if you where simpely adding an image, like...
[img]http://aa.1asphost.com/maverickzero/random.asp[/img]
And everything should be fine. If you get a red x, then make sure the numbers match in the code, then make sure each case has their own numbers.

PHP Code:
This is personally one of the coolest scripts, since you don't need to always go back and edit it, all you have to do is dump the images you want in a folder, and the script will pick it up. The two downside is to find a good host that runs php and allows you to direct-link, and the fact that you cannot put direct-links into the randomizer. All the images that show up HAVE to be in the specified folder, so its completely useless to monitor hatchings/growings, and you will need to save the new image each time for it to update. It also will only pick up the jpg, png, and gif file types. Trough why would anyone want to use a bmp in a randomizer is beyond me. o_O
First, copy this into Notepad, or another text-editing program :
<?php
/*
Based on code by Perpetual Dreamer and Alland.
Instructions:
Place all the files that you want into the directory of your choice,
which will be specified in the $path variable.
Then, just link to the script as a php file. Can be used in a site, such as <img src="filename.php">,
or a forum, using [img]http://yoursite.com/filename.php[/img]
Enjoy.
Rob
*/
//directory here (relative to script)
$path = 'random';
$i = 0;
$imgDir = opendir ($path)
while ( $file = readdir( $imgDir ) )
{
//checks that file is an image
$file_type = strrchr( $file, "." )
$is_image = eregi( "jpg|gif|png",$file_type )
if ( $file != '.' && $file != '..' && $is_image )
{ $images[$i++] = $file; }
}
closedir ($imgDir)
srand( (double) microtime()*1000000 )
$image_name = $path . '/' . $images[rand( 0,sizeof( $images ) -1 )]
$imgSize = GetImageSize( $image_name )
//ends script if no images found
if ( $i == 0 )
die()
//Display the image
readfile("$image_name")
?>
/*
Based on code by Perpetual Dreamer and Alland.
Instructions:
Place all the files that you want into the directory of your choice,
which will be specified in the $path variable.
Then, just link to the script as a php file. Can be used in a site, such as <img src="filename.php">,
or a forum, using [img]http://yoursite.com/filename.php[/img]
Enjoy.
Rob
*/
//directory here (relative to script)
$path = 'random';
$i = 0;
$imgDir = opendir ($path)
while ( $file = readdir( $imgDir ) )
{
//checks that file is an image
$file_type = strrchr( $file, "." )
$is_image = eregi( "jpg|gif|png",$file_type )
if ( $file != '.' && $file != '..' && $is_image )
{ $images[$i++] = $file; }
}
closedir ($imgDir)
srand( (double) microtime()*1000000 )
$image_name = $path . '/' . $images[rand( 0,sizeof( $images ) -1 )]
$imgSize = GetImageSize( $image_name )
//ends script if no images found
if ( $i == 0 )
die()
//Display the image
readfile("$image_name")
?>
All you have to edit is the $path = 'random'; part. Random here is the name of the folder that will have the files. Just use whatever folder name you want, as long as that specific folder has the images you want to show up in the randomizer. I don't know if you can link to a folder on another host, since I've never tried it, so I don't recommand it. Save is as something like random.php
Once you found an host, create the directory you specified in the script, then upload the images you want randomized in it. Then upload the script and link it in you sig like you would for an image, exemple :
[img]http://zero.mizukori.com/r.php[/img]
And everything should so smoothly. ^^

Remember!: Signature rules consist of 500 by 500 pixels in width and length, and 100kb or less in file size. This also rules for sigs with more than one image side be side or on top of each other. Their combined specifications should still equal to under or at the sig rules.
And for the love of Gaia, make sure all of the images you use are NOT Bitmaps (Bmps) They slow down loading times for even broadband connections.
*ASP/PHP coding info taken from THIS Thread*
*To keep the front page tidy, the rest of the methods are located below, in the second post*
*Toast Of Doom
*Toast Of Doom
*Jenannen
tags to make it a piccy. Just be sure to delete the Qoutation marks and some other useless crap they put in the URL.