Signature coding question

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

Moderator: Moderators

Message
Author
Uncle Xyzzy
Beyond Godly
Beyond Godly
Posts: 2679
Joined: Wed Jun 02, 2004 1:03 am
Location: Uh... Nowhere Set: Blue

Signature coding question

#1 Post by Uncle Xyzzy »

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:)
Image
theonlysaneone
Moderator
Moderator
Posts: 2898
Joined: Tue Dec 27, 2005 7:21 am
Location: Hakazura Temple

Re: Signature coding question

#2 Post by theonlysaneone »

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.
Image

IDB Rater, Pink Inker
pipsqueeek
PPT God
PPT God
Posts: 1842
Joined: Mon Oct 03, 2005 4:46 pm
Location: sleep deprivation

#3 Post by pipsqueeek »

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)
Image
<3 Laq
User avatar
Ski
PPT God
PPT God
Posts: 1501
Joined: Sat Mar 26, 2005 5:36 pm

Re: Signature coding question

#4 Post by Ski »

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.
"A lot of people run a race to see who is fastest. I run to see who has the most guts." - Steve Prefontaine
Pixa
Beyond Godly
Beyond Godly
Posts: 2514
Joined: Sun Mar 06, 2005 10:35 am
Location: England

#5 Post by Pixa »

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*
Image
Click the wonderful signature. You know you want to.
Rachel
Honorary Member
Honorary Member
Posts: 4363
Joined: Tue Jul 13, 2004 2:40 am
Location: Down Under

#6 Post by Rachel »

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: Select all

<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.
werepup
Honorary Member
Honorary Member
Posts: 1160
Joined: Sat Jun 26, 2004 12:18 am
Location: Wishing I was somewhere else
Contact:

#7 Post by werepup »

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. :)
Image
DM was on fire!
Way Beyond Godly
Way Beyond Godly
Posts: 8715
Joined: Sat Jun 05, 2004 9:10 pm
Location: Cleveland, Georgia
Contact:

#8 Post by DM was on fire! »

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.
Image
Uncle Xyzzy
Beyond Godly
Beyond Godly
Posts: 2679
Joined: Wed Jun 02, 2004 1:03 am
Location: Uh... Nowhere Set: Blue

#9 Post by Uncle Xyzzy »

...The website said it might take up to 30 minutes. I'll wait...
Image
sily_sicily
PPT Warrior
PPT Warrior
Posts: 992
Joined: Tue Aug 01, 2006 11:02 pm
Location: Somewhere over the rainbow way up high, there's a land that I heard of once in a lullaby.

#10 Post by sily_sicily »

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.
<img src="http://i31.photobucket.com/albums/c379/miss_cobralover/PPT/siggie_secretsanta2006.jpg">
<3 <3 superb set by wisecret santa <3 <3
jcsw
PPT Toddler
PPT Toddler
Posts: 226
Joined: Sat Nov 05, 2005 10:23 pm

#11 Post by jcsw »

It's called a dynamic image, my friend knows how to code more complicated stuff like displaying the time and stuff onto his sig.
AGREE!!!
Anoohilator
Beyond Godly
Beyond Godly
Posts: 4460
Joined: Fri Jan 21, 2005 1:23 pm
Location: Essex, UK "'"Set by WIS"'"

#12 Post by Anoohilator »

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..
ImageImage

Boom-shaka-laka! Rawr come and join us in the Randomness
Sig Halloween'd by Tom!
sily_sicily
PPT Warrior
PPT Warrior
Posts: 992
Joined: Tue Aug 01, 2006 11:02 pm
Location: Somewhere over the rainbow way up high, there's a land that I heard of once in a lullaby.

#13 Post by sily_sicily »

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
<img src="http://i31.photobucket.com/albums/c379/miss_cobralover/PPT/siggie_secretsanta2006.jpg">
<3 <3 superb set by wisecret santa <3 <3
Uncle Xyzzy
Beyond Godly
Beyond Godly
Posts: 2679
Joined: Wed Jun 02, 2004 1:03 am
Location: Uh... Nowhere Set: Blue

#14 Post by Uncle Xyzzy »

...Can other people see my sig? I just see the code. I don't care what I see, though...
Image
Anoohilator
Beyond Godly
Beyond Godly
Posts: 4460
Joined: Fri Jan 21, 2005 1:23 pm
Location: Essex, UK "'"Set by WIS"'"

#15 Post by Anoohilator »

Just code for me too
ImageImage

Boom-shaka-laka! Rawr come and join us in the Randomness
Sig Halloween'd by Tom!
Locked