Welcome to Gaia! ::


Streaker

9,550 Points
  • Invisibility 100
  • Bidding War 100
  • Sausage Fest 200
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








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 %>


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.
User Image
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")

?>


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. ^^
User Image
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*

Streaker

9,550 Points
  • Invisibility 100
  • Bidding War 100
  • Sausage Fest 200
Cut And Paste Scripts
Simmilar to BFN, Cut And Paste is another CGI site, but without all the cool features BFN can give you... BUT- it does have a random script, and that's what we're here for...
Of course, the site is free, mainly the same rules go for this site as for BFN.

Tutorial:

  1. Make An Account:
    Signing up is free and easy. Simply click the "Sign Up" link in the TOP RIGHT

    When Signing up, You're prompted to fill out the FORM FOUND HERE.
    Remember that when filling out the space for your personal website URL, DO NOT type www.gaiaonline.com. Even though you're using the script for the site, Gaia isn't your own site and therefore you dont own it. If you dont own a site, dont leave the space blank (this will prevent you from getting an account). Just make up a website using random numbers or your name...

    After you sign up, you dont have to wait on a confirmation E-mail, so just jump right into making your script!
    Just remember that both your name AND password are case sensitive...

  2. Create A Random image Folder:
    Once you sign in (using the link right under the sign UP link) you'll be sent to the members area. On the list to the right, you can find "Random Images" at THE TOP

    Once you click that, you're sent straight to the set up page...
    Here, to set up your script, all you need to do it paste the URL's of the images you're using in th text box...
    Just make sure it's ONE PER LINE.
    Even if the URL stretches to two lines, make sure that each URL starts under the other and not beside it...
    (an easy way to do this it to make sure the "Http" part always starts at the beginning of the line)

    After you've put all of your image links inside (and remember that they should be clean URL's. Not Quotation marks or IMG tags) click the CREATE button.

    Continue on and you'll be sent to the HTML page... This is where you'll find the URL you need to place in your sig...

    The entire code should look like this:

    <!- Random Images Script, by Cut and Paste Scripts. Hosted CGI, with NO adverts and FREE. http://www.cutandpastescripts.com -!><img src="http://www.cutandpastescripts.com/cgi-bin/randomimages/randomimages.pl?username=*****" alt="Random Images"><!- Copyright Cut and Paste Scripts -!>


    but we dont need all of that...

    All you need is the URL inside the quote marks...
    http://www.cutandpastescripts.com/cgi-bin/randomimages/randomimages.pl?username=*****

    Just remember to take the Quotation marks off the URL before you use it...

  3. Planting The Script In Your Sig:
    Taking the URL you just got from the HTML page, go to your profile here on gaia and click EDIT PROFILE.

    Located on that page, close to the bottom, there's a SIGNATURE BOX
    Just paste the URL you got from your script in that box and wrap it with IMG tags...

    The tags look like this:
    [img]malformed url[/img]

    If you'd like for the script to be a link to something, use this code:
    [URL=Thread link here][img]malformed url[/img][/URL]

    And just like that, your sig is set.
    At any time, you can go back to your random script and add more links.
    And if the link you got from your script was too big, you can use a site like www.tinyurl.com to shrink it.


User Image

Thanks to Kenjoki Ikari for finding this...

Jakobo
The SMALLEST Random Image Generator
The 26 Line Randosig

Supported Web Host(s):
Any Web Host that supports PHP 4.3 or better (most do).
If you need a free host, we recommend http://www.hostinganime.com

We've talked about a spell checker for IE, and we've shown you some great tools for FireFox including a right-click bbcode context menu. Probably one of the biggest questions asked in Questions & Feedback is about random sig generators. A different image every time you refresh the page. Undoubtedly, one of the most popular is Rome, but the Toolbox is all about self-empowerment. And so, this time, we are going to show you a 26 line file that will let you host your own random sig generator!

Mandatory Background Information
We're going to be working with PHP, a web based scripting language. If your host supports PHP, they will say so, and they will advertise it. Sites such as geocities and angelfire do not have php based hosting. Freewebs does not have PHP hosting. The only currently known free provider that has php based hosting is hostinganime.com (see link at top). We are not going to make you code anything in this thing either, but we are going to have you make a file and upload it. Here are some very basic rules:
- You need a text editor (Notepad, Textpad, Simpletext, KWrite, etc)
- You need a way to put the file we make on your host (FTP)

If you have both of these things, we are ready to begin. You will also want some images. (gif, jpg. or png)


Step 1: rand.php and uploading
No joke, this will be the hardest step. Open a text editor from the above list, and paste the following code, from <?PHP to the final ?>
<?PHP
//////////////////////////////////////////////////////////////////
// Your Own Personal "RandoSig"
// Done for the Daily Post: Your authoritative QnF paper!
// Code by Jakob (Jakobo). Public Domain.
//////////////////////////////////////////////////////////////////
$files = Array()
if (is_dir("./")) {
if ($dh = opendir("./")) {
while (($file = readdir($dh)) !== false) {
if($file != "." &&
$file != ".." &&
$file != "" &&
$file != "rand.php") { $files[] = $file; }
}
closedir($dh)
}
}
$random_file = (rand()%sizeof($files))
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT")
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT")
header("Cache-Control: no-store, no-cache, must-revalidate")
header("Cache-Control: post-check=0, pre-check=0", false)
header("Pragma: no-cache")
if(substr($files[$random_file], -3) == "jpg") {
header("Content-type: image/jpeg")
} elseif(substr($files[$random_file], -3) == "gif") {
header("Content-type: image/gif")
} elseif(substr($files[$random_file], -3) == "png") {
header("Content-type: image/png")
} else { header("Content-type: text/plain")
echo "Image Error, could not load (".$random_file.")".
$files[$random_file] print_r($files) }
@readfile($files[$random_file])
?>


Before you say it, yes, it is 35 lines, not 26. The longer lines were broken up for readability (and so they would copy correctly). Now that you have this all pasted in, save the file as rand.php somewhere you can find it (I recommend the desktop). Then, upload it into a directory on your web server.

While you are uploading, upload the images you would like to have randomized as well. Here's a picture of my directory:

Your Sig's Directory


EDIT BY KENJOKI
Broken image. sad
EDIT BY KENJOKI

5 image files and the "rand.php" file.
For this to work right, remember not to put anything other than images and rand.php into this directory!


Step 2: Using
See, I told you that would be the hard part. If you uploaded your rand.php and your images, you are done. Yes, done. To call the random sig, simply create an img tag pointing to rand.php. For example:
[img]http://gaia.felocity.org/gavsim/rand.php[/img]


Drop that image tag into your sig, and you're done! And you didn't really have to lift a finger.

You know it was good for you too... discuss it!


And yes! Hostinganime.com STILL has FREE webspace!
Hosting Anime.com
20 MB Disk space
Unlimited Transfer
A http://hostinganime.com/YOURSITE URL
PHP, SSI, HTML Support
Fast Servers
Instant Activation
Support Forums
Form Mail
wwwboard

There's two plans - Banners or Popup/under ad-plans.
That's how this stays free, and I believe that all ads are for anime-related stuff.
User Image
Thanks to Ag2S03 for finding this one...
Ag2S03
I hope people don't think I wrote it o.o; The words were copied and pasted from Borobdin's mouth, and the script came from mostlikelyRay -- I just happened to have it saved. 'Cause Imma packrat.



<?php
$links = array(
"images",
"more images.jpg",
"blahblah.gif",
"myimage.png")

$howMany = count($links) //howmany images to reandomize

srand ((double) microtime() * 948625) //seed the randomizer
$randNumber = rand(1,$howMany) //make the random Number

//select the image
header("Location: ".$links[$randNumber])
?>



open Notepad and copy the URLs of the images into the quotations of the links array. use as many sets of quotations as you have images with a comma in between. Then host the file saved as a .php (not .txt) on a PHP enabled server such as hostinganime.com which he mentioned.

Then use the URL to the php file as the URL for the image.


This one's from Peng. Same steps as the one above, just more simple coding...

<?php

/*
* To add another image to the script, just put a comma at the end of
* the line that the current last image is on and put the URL of the new
* image below it on a new line (above the ")") in quotation marks.
* Obviously, replace the different images already in the script with
* the URLs of the images you want. They're just there as examples.
* - Peng
*/

$images = array(
"image.png",
"otherimage.jpg",
"myimage.gif"
)

header("Location: ".$images[array_rand($images)])

?>

Myspoonistoobig also has a method, but for some reason, if I post it here, the screen stretches to extreme lengths sweatdrop
I can provide a link to her original post though whee
It can be found HERE
User Image

Q&A:

Quote:
-What is a Random Sig?
It's a bit hard to explain...
Let's say that you have 30 images that you want in your sig... Well, you cant possibly have them ALL at the same time, so why not just one at a time?

A random image script runs off of CGI and HTML coding. Basically what it does is everytime your sig is refreshed on a page, the link to your sig is replaced randomly by one of the links you put into it.


Quote:
-How do I find the URL of an image?
To find the URL, you need to have the actual image on your screen. Not just a thumbnail of it.
(unless you want the URL of the thumbnail)
If you use Photobucket or any simmilar type of image host, the URL is usually listed below the image. but if it's an image you would like to use, right click it with your mouse and choose "properties" on the pop up bar.
Information will be listed about the image. (yes this is how you can also find the dimensions of the image) The url is right in the middle.

*Please be kind to all image hosts and DO NOT HOTLINK!


Quote:
-What is Hot Linking?
Hotlinking is baaaaaad eek
If you find an image online and want to use it, it is preferred that you host it on your own image hosting account. If you use the url given from the image without putting the image in your account first, you are Hot Linking.
The URL is linking to the original host and their bandwidth is suffering.

Please be kind and host your own images. And if at all possible, please ask the image creator permission to use it before you take it.


Quote:
-It says my signature is too long! HELP!
First off, remember that was can only fit 250 "characters" in our sigs...
Characters are letters, numbers, and symbols...
The admins made it to where if you put a url from gaia into your sig, it wont count against the limit, but I'm sure a lot of us have sigs full of other things...

With almost every method shown here, when you find the script url, it's surrounded in code... just remember that all you need is the actual URL of your script... not all of the junk around it... the url should start with "HTTP://"


Quote:
-Sig Rules... I dont understand!
Even though it's not in the TOS, it IS in the rules and guidelines found here: http://www.gaiaonline.com/tos.php?info=rules

It states that no sig can exceed 500 pixels in width, 500 pixels in length and cannot exceed 100kb in file size.

So how do you find this info?
Well for starters, you need to know how to use math, and your right-click button on your mouse. xp

First- the demensions. otherwise known as length and width... right click on the image and click "properties" in the drop down toolbar...
it shows the dimensions right under "size" just make sure those numbers are less than 500 X 500...

and for those of you who like to whine about how much space we get.. or "dont get".. look at this...
http://img.photobucket.com/albums/v607/Blackfirehelp/Black%20Fire%20Tutorial/500x500.jpg

If that isnt enough space for your sig, then your sig will be an eye sore...

Remember that if you have more than one image in your sig (side by side or otherwise) then you have to add the demensions of both images.. if it goes over then you need to either resize an image or take it out.

second, the file size.
Now, most image hosts, like photobucket, actually show you the file size of each image you have... check them to make sure they arent over 100kb...

remember that as with pixels, multiple images in your sig have to be added together... you cant have two images both at 100kb.. because then your sig would be at 200kb...

So what do you do if your image host DOESNT show you your file sizes? Or if you're a leech and you hot link from other people? *which is BAAAADD*

well, you use math... sort of...

again, right click the image and check out it's properties...
This time, look at the info ABOVE "dimensions".. it should say "size"

this number is in Bytes.. so if it's over 100, dont worry...
We need Kilobytes (KB)

First, check the number and make sure it doesnt have SIX (6) characters. if there's six, then right there, you can tell it's over.

If there's five numbers, all you do is place a decimal at the end of the number and move it to the right THREE (3) places...

so 12345 Bytes would equal 12.345 KB.. round it off to the nearest tenth and have 12kb

Not that hard... Just remember to check your images before you go and plant them in your sig.. that way, a MOD wont have to disable your sig and make you want to make a thread about it in the Q&F xp


Quote:
-The script URL's won't work for my journal header.
There's actually a way around this, and it's so simple, I was amazed it took me almost 2 hours to figure it out. xd

The HTML coding used with journal headers wont mark-up the code you use because the script URL doesnt have a ".file name" at the end.

The easiest way around this is to run the script through a URL shortener like www.tinyurl.com

<img src="http://tinyurl.com/*****" alt="[:journal-title:]">


Simple as that 3nodding


Quote:
-My Sig wont show when I use BFN or CutAndPaste! crying
This is a problem that gaia has with large URL's or large ammounts of coding.
You may wonder why I hardly ever update the first page of this thread.
It's because theres so much "code" and "quote" coding, that when I edit a page, and submit it, all the coding gets screwed up by either errors on my part, or the not-so-popular "&" error.

If your sig isnt working, always check over the URL first. Look for parts of the URL that dont seem right. Chances are, you might see the little "&" devil.

All you have to do is take out the little amp punk and resubmit 3nodding


User Image

Streaker

9,550 Points
  • Invisibility 100
  • Bidding War 100
  • Sausage Fest 200
-Image Host Tutorial Coming Soon-
ninja



Banners!

If you would like to donate banners, feel free. Simply PM me. whee

User Image*Toast Of Doom
[url=http://www.gaiaonline.com/forum/viewtopic.php?t=4400804][img]http://img.photobucket.com/albums/v607/Blackfirehelp/Black%20Fire%20Tutorial/randomsigbanner20qf.png[/img][/url]


User Image*Toast Of Doom
[url=http://www.gaiaonline.com/forum/viewtopic.php?t=4400804][img]http://img.photobucket.com/albums/v607/Blackfirehelp/Black%20Fire%20Tutorial/randomsigbanner15ls.png[/img][/url]


User Image*Jenannen
[url=http://www.gaiaonline.com/forum/viewtopic.php?t=4400804][img]http://img.photobucket.com/albums/v607/Blackfirehelp/Black%20Fire%20Tutorial/96b15j.png[/img][/url]


DONATORS:
Toast Of Doom
Jenannen
If you use any, please host them yourself whee
For Cut and Paste Scripts! Shoulda added that before... or at least... what I used.

Quote:
First, you get something like an UpLoadIt account, then upload all the pics you wanna display. After they are uploaded, you'll see some URLs of them, then go to Cut and Paste Scripts and make an account there too, both are free so don't worry, after you've made an account on both sites, take the ones from UpLoadit and put them into the "Random Image" area in your Cut and Paste area, it'll show a white box similar to the ones you use to post on Gaia, just put all the links of the pics in there, and hit Create, it'll then give you a URL to use in your Gaia Profile to display them.

Use the User Image - Blocked by "Display Image" Settings. Click to show. tags to make it a piccy. Just be sure to delete the Qoutation marks and some other useless crap they put in the URL.

If you need anymore help, I'm here or you can ask most others with a Random Image sig, most should help.


That's what I told some random person that PMed me 'bout mine, just take out the extra Qoutes when you get the link it gives you. I.E.

Turn : <img src="http://www.cutandpastescripts.com/cgi-bin/randomimages/randomimages.pl?username=YOURUSERNAMEHERE!!">

Into

User Image - Blocked by "Display Image" Settings. Click to show.


And it should show the pics instead of that qoute.. Only without the spaces 'course.

And that should do it for CnP.

Streaker

9,550 Points
  • Invisibility 100
  • Bidding War 100
  • Sausage Fest 200
Thanks AC heart
I'll edit that in as soon as possible
Think you could include the do-it-yourself methods too? There's a thread with PHP and ASP methods. In the long run, hosting it yourself is probably a lot more reliable.

Personally, I can't blame CGIspy...Gaia was probably eating up a shitload of their bandwidth. A randosig can eat gigabytes of bandwidth a month.

Streaker

9,550 Points
  • Invisibility 100
  • Bidding War 100
  • Sausage Fest 200
I'll ad that one in as well whee
heart thanks Ramza... Now i dont hafta run over to the breedables area everytime i wanna try to edit meh random sig... 3nodding

Streaker

9,550 Points
  • Invisibility 100
  • Bidding War 100
  • Sausage Fest 200
*I still need to go through it for Typos*

I just hope people see this... It may help decrease the number of threads asking about this...

Edit:
To outlawstarXGP
Those images are free to take.. just host them yourself, please! domokun

xd
Awesome, thanks Ramza, and like someone said above me,
now I can redirect people to this, and use it for myself. twisted

EDIT: Your MGS image in your profile is hilarious! (the Jesus one)

EDIT EDIT: And the Hammertime...and Office space domokun domokun domokun

Streaker

9,550 Points
  • Invisibility 100
  • Bidding War 100
  • Sausage Fest 200
*second page post*

I wonder exactly how many users were using the CGIspy scripts...

It had to be a large ammount for the admins to notice a dramatic increase as they claimed they did.

Streaker

9,550 Points
  • Invisibility 100
  • Bidding War 100
  • Sausage Fest 200
Thrid page...


Maybe this thread wasnt needed.... gonk

Streaker

9,550 Points
  • Invisibility 100
  • Bidding War 100
  • Sausage Fest 200
I'm not sure what page this is on.. but I can tell you it ain't 1, 2 or 3 xd

Is this thread helping ANYONE?

Quick Reply

Submit
Manage Your Items
Other Stuff
Get GCash
Offers
Get Items
More Items
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games
Mini-Games
Play with GCash
Play with Platinum