PHP in Sigs

FuLouZero-

Member
Joined
Jun 30, 2004
Messages
12
Reaction score
0
Website
Visit site
-Edit 2-
All I need now is a site that will host ftp for free any one got one?
or is willing to let me host them on there site ;)














How would I get it to have a random sig every New view?
I've seen it done before here, I just dont know the code of how to do it or how to do it :)
So Question is how do you give php code to images and what code would I use for to pick a Image randomly out of a directory?
Edit: Found Script
PHP:
<?php/* * Name your images 1.jpg, 2.jpg etc. * * Add this line to your page where you want the images to  * appear: <?php include "randomimage.php"; ?> */ // Change this to the total number of images in the folder$total = "11";// Change to the type of files to use eg. .jpg or .gif$file_type = ".jpg";// Change to the location of the folder containing the images$image_folder = "images/random";// You do not need to edit below this line$start = "1";$random = mt_rand($start, $total);$image_name = $random . $file_type;echo "<img src=\"$image_folder/$image_name\" alt=\"$image_name\" />";?>
now Do I put it on a website make a php file with only the script and Image tag the php link?
 

Crookedfoot

Premium Member
Joined
Aug 6, 2002
Messages
1,077
Reaction score
0
Location
Middle of Nowhere
Website
www.battleforums.com
While we don't have a definate rule against using a php to place random pictures into your signature, keep in mind the each and every picture used is subject to the signature rules.
 

Beer $lut

BattleForums Senior Member
Joined
Oct 21, 2003
Messages
2,878
Reaction score
0
Location
teds pants
Does Battleforums allow dynamic images? I have the random.php script if you want it.
 

Crookedfoot

Premium Member
Joined
Aug 6, 2002
Messages
1,077
Reaction score
0
Location
Middle of Nowhere
Website
www.battleforums.com
We've yet to disallow it, so far we only had one member use it.

The issue would be that a member would have to use it in compliance with forum rules.
That would mean that all pics used would have to be the correct pixel size and file size and the proper content.
By content I mean that if you have 200 random pics, and one is porn, that member gets banned and the forums settings may get changed as well, ruining it for many.
 
Top