Got a little techonology problem that you need fixed pronto? Post it here and we'll see what we can do.
Topic locked

Signature coding question

Sat Dec 23, 2006 1:31 am

Is there any way to make my signature randomly display one of 2 images? "Unfortunately", I got my Secret Santa set and a set from Bangel back to back, and I like 'em both... so is it possible? 0:)

Re: Signature coding question

Sat Dec 23, 2006 2:02 am

Tested wrote:Is there any way to make my signature randomly display one of 2 images? "Unfortunately", I got my Secret Santa set and a set from Bangel back to back, and I like 'em both... so is it possible? 0:)


You could always make it an animation that cycles between the two every 10 seconds or so.

Sat Dec 23, 2006 2:25 am

I know there's a way to get an image to change on every refresh. I don't, however, know how to do it.
(I had wondered how werepup got to have a different sig with all her posts, and then I happened to refresh a page with one of her posts on it, and voila! The sig changed)

Re: Signature coding question

Sat Dec 23, 2006 2:32 am

theonlysaneone wrote:
Tested wrote:Is there any way to make my signature randomly display one of 2 images? "Unfortunately", I got my Secret Santa set and a set from Bangel back to back, and I like 'em both... so is it possible? 0:)


You could always make it an animation that cycles between the two every 10 seconds or so.

The only trouble with that is the danger of going over the size limit, and if you don't, the image quality likely won't be all that great.

The only option I know of would involve javascript, and I'm pretty sure that's a no-no in signatures here.

Sat Dec 23, 2006 2:51 am

I'm pretty sure that uploading two images to the same server, but then not specifying the image, makes them change upon refresh.

Say your image was saved at...
images.tested.com/sets/ppt/

And your sets were...
images.tested.com/sets/ppt/dawn.gif
images.tested.com/sets/ppt/ss.gif

Just using images.tested.com/sets/ppt/ would make either be your signature. I think that's right, but I'm not sure if it works with photobucket. It can only be worth a go I suppose.

Hmm, I'm slightly bothered now. I know someone on a different forum does it with their avatar... *ponders more*

Sat Dec 23, 2006 5:29 am

ooh! something i know the answer to.

You can definately do it for your sig, i'm not sure about your av, it might be possible but i dont think you can link them...

Anyway, this is a pm yoshi sent me which explains it (edited slightly) you can change the number of images you rotate through too, just by adding more instances and changing the number 2 to how many images you have.

Yoshi wrote:Sure. :) It's actually an *.asp file, which is predictably hosted on 1asphost.com. So register there, and create a new file and name it with an ASP extension. Paste this code and alter accordingly...

Code:
<meta>
<%
Dim intNumber, intHow_many, intRandom

intHow_many = 2 ' Number of images to randomize

Randomize
intRandom = Rnd()
intNumber = Int(intHow_many*intRandom + 1)

Select Case intNumber

Case 1
Response.Redirect("***Image URL1***")

Case 2
Response.Redirect("***Image URL21***")

End Select %>



Hope that helps!
~Yoshi


then once you've done that you just use your .asp file in place of the image file.

Sat Dec 23, 2006 8:35 am

Yeah, I did mine through php I've managed to do it without even having to hardcode in the images... as long as it's within a specific folder and ends in jpg, then it can be used... if you email me (mailto:gingergnome@hotmail.com) with PPT somewhere in the table (so it doesn't get trashed) or send me a couple pics, I can set one up on my server in the next few days. :)

Sun Dec 24, 2006 7:50 pm

TekTek.org has a random signature tool that you can use.

http://www.tektek.org/account/signup.vex

I studied how my friend Andi did it. Gaia's got a different way of coding as opposed to PPT.
It might give you instructions how.

Your av wouldn't be possible.

Mon Dec 25, 2006 8:09 pm

...The website said it might take up to 30 minutes. I'll wait...

Tue Dec 26, 2006 7:35 am

Does TekTek works like werepup's one? Means like when you refresh, you see a different image?
Well if that's the case then it's great since mine is working! :D

Tested: Can you see yours? I can't. I think you'll have to try the img src way.

Tue Dec 26, 2006 10:15 am

It's called a dynamic image, my friend knows how to code more complicated stuff like displaying the time and stuff onto his sig.

Tue Dec 26, 2006 11:12 am

sily_sicily wrote:Does TekTek works like werepup's one? Means like when you refresh, you see a different image?
Well if that's the case then it's great since mine is working! :D

Tested: Can you see yours? I can't. I think you'll have to try the img src way.


I can't see your sig change..

Tue Dec 26, 2006 11:19 am

Anoohilator wrote:
sily_sicily wrote:Does TekTek works like werepup's one? Means like when you refresh, you see a different image?
Well if that's the case then it's great since mine is working! :D
Tested: Can you see yours? I can't. I think you'll have to try the img src way.

I can't see your sig change..


It does. Refresh a few more times. It's not like 121212121212. It's abit random, like 12121121221112 or something like that. So you'll have to refresh a few times for it to change...:\
I'm just wondering...do anyone else see my sig as an image, but with a little red x on the top left hand corner? I sometimes does. o.0

Tue Dec 26, 2006 2:35 pm

...Can other people see my sig? I just see the code. I don't care what I see, though...

Tue Dec 26, 2006 2:48 pm

Just code for me too
Topic locked