Need help with Signature Rotator

well heres the i have almost no knolege about php i no a tiney but not much

and im tring to make a signature rotator for me and my friends to use on a gaming website

i also want it to have matching avatar rotation so whenever you refresh the page the signature matches the avatar in the rotation

could anyone help me with this

Try this

[php]/*

  • Name your images 1.jpg, 2.jpg etc.

  • Add this line to your page where you want the images to

  • appear: <?php include "../../includes/randomimage.php"; ?>

*/

// Change this to the total number of images in the folder

$total = “10”;

// 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=“Beautiful Hair” />";
[/php]

could you pm me like your aim or gtalk help me set it up

I dont do either one, however if you create a folder called ‘random’ inside your images folder, put your images in that folder, insert the code and it should work. The only part that is not covered is the matching of the signature to the image. An easy non-code fix would be to incorporate the sig + image into one image.

Try that and post your results.

Gary

idk how to do any of that lol

I’m not sure how I can help if you don’t know how to create a folder then cut and paste code.

Gary

dose this code matching the avatar with the signature?

As written, no. But there is more than one way (one mentioned already) would solve that.

This subject has been covered in several different ways here. This is a link to one version. It may not be exactly what you wish, but, it does show how to use PHP’s graphic’s functions to combine an image and text into one graphic and then display it.

It should give you some idea how how to get started. Come back when you have some code for us to look at.
Good luck!

http://www.phphelp.com/forum/index.php?action=profile;area=showposts;u=45418

Sponsor our Newsletter | Privacy Policy | Terms of Service