rotating sig/php help

The Duke of Juke
Retired Forum Staff
✔️ HL Verified
💻 Oldtimer
Joined
Dec 24, 2002
Messages
2,852
Best answers
0
So basically, I want a rotating sig. I have hosting and what not, and while the php apparently works, it won't work as a sig here. typically
Code:
[img]http://criticalstrikepress.com/deman/random_image.php[/img]
should work, but it doesn't.

click here to see it works properly in a browser but...
http://criticalstrikepress.com/deman/random_image.php

if I put it into my sig field, I get this:


there should be an image there, but it's not working.

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 = "2";

// Change to the type of files to use eg. .jpg or .gif
$file_type = ".png";

// Change to the location of the folder containing the images
$image_folder = "http://www.criticalstrikepress.com/deman/sigs";

// 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\" />";



?>
Thats whats in the php file.

My only guess is that maybe the hosting won't allow off-site access to php maybe? I'm a total newbie to this stuff.
 
The Duke of Juke
Retired Forum Staff
✔️ HL Verified
💻 Oldtimer
Joined
Dec 24, 2002
Messages
2,852
Best answers
0
Bump maybe?
 
Active Member
★ Black Lounger ★
✔️ HL Verified
💻 Oldtimer
Joined
Jul 14, 2002
Messages
8,229
Best answers
0
Location
December
Back when the Diablo III trailer came out I used a rotating sig. Unfortunately, I forgot what I did to make it work, so you'd have to ask Kain or Ready. It was a really simple process from what I remember, though.
 
Last edited:
The Duke of Juke
Retired Forum Staff
✔️ HL Verified
💻 Oldtimer
Joined
Dec 24, 2002
Messages
2,852
Best answers
0
I think my main problem was that my old host probably didn't let me use PHP.
 
Active Member
★ Black Lounger ★
✔️ HL Verified
💻 Oldtimer
Joined
Jul 14, 2002
Messages
8,229
Best answers
0
Location
December
Eh, I failed to read your post.

I actually used the code you pasted back when I was using a rotating sig, but it wouldn't work for some reason. I had to ask either Kain or Ready for help and they helped me fix it, so I suggest going to one of them for help.

Edit: that may be the issue.. want me to host the files for you on my FTP?
 
New Member
✔️ HL Verified
Joined
Jun 13, 2009
Messages
174
Best answers
0
Location
Lithuania
Eh, I failed to read your post.

I actually used the code you pasted back when I was using a rotating sig, but it wouldn't work for some reason. I had to ask either Kain or Ready for help and they helped me fix it, so I suggest going to one of them for help.

Edit: that may be the issue.. want me to host the files for you on my FTP?
Sorry for off-topic, but do you used to play Diablo II? Diablo II for me is next to ESF ;)
 

Users who are viewing this thread

Top Bottom