Random Sig Generator
#6
TECH Senior Member
iTrader: (10)
Join Date: Mar 2003
Location: North Texas
Posts: 8,009
Likes: 0
Received 0 Likes
on
0 Posts
Just a heads up - our message board does not accept HTML code in the signature field. You have to use vBulletin code.
In any event, you're already at the limit for signature images, any additional images would exceed the guidelines unless you shrank your current image.
In any event, you're already at the limit for signature images, any additional images would exceed the guidelines unless you shrank your current image.
#7
TECH Senior Member
Thread Starter
iTrader: (42)
Join Date: Dec 2004
Location: Tomball/Nacogdoches TX
Posts: 5,064
Likes: 0
Received 0 Likes
on
0 Posts
Originally Posted by cyphur
Just a heads up - our message board does not accept HTML code in the signature field. You have to use vBulletin code.
In any event, you're already at the limit for signature images, any additional images would exceed the guidelines unless you shrank your current image.
In any event, you're already at the limit for signature images, any additional images would exceed the guidelines unless you shrank your current image.
I'm not trying to add another image. Just have it there until I get it figured out. I just have too many signatures and don't ever know which one I want to use. So now I'm trying to create a random sig generator
Trending Topics
#9
TECH Senior Member
Join Date: Apr 2004
Location: Texas
Posts: 6,157
Likes: 0
Received 0 Likes
on
0 Posts
You would have to do that on the server side. The vbulletin markup is not powerful enough. Try looking into cgi-bin (perl) for something like that.
EDIT: PHP would work also as long as the last server side parm ended in .jpg
EDIT: PHP would work also as long as the last server side parm ended in .jpg
Last edited by 2MuchRiceMakesMeSick; 08-27-2007 at 10:13 PM.
#10
TECH Senior Member
Thread Starter
iTrader: (42)
Join Date: Dec 2004
Location: Tomball/Nacogdoches TX
Posts: 5,064
Likes: 0
Received 0 Likes
on
0 Posts
Originally Posted by 2MuchRiceMakesMeSick
You would have to do that on the server side. The vbulletin markup is not powerful enough. Try looking into cgi-bin (perl) for something like that.
EDIT: PHP would work also as long as the last server side parm ended in .jpg
EDIT: PHP would work also as long as the last server side parm ended in .jpg
That's what I tried:
Code:
<?php $base="www.ledvault.com/Brian/Sigs"; #construct the sig. pages Array $pages=array("sig1.html","sig2.html","sig3.html","sig4.html"); $n=count($pages); $num=rand(0, ($n-1)); $page=$pages[$num]; $url=$base.$page; print "<embed src='$url'>"; ?>
#12
TECH Senior Member
Thread Starter
iTrader: (42)
Join Date: Dec 2004
Location: Tomball/Nacogdoches TX
Posts: 5,064
Likes: 0
Received 0 Likes
on
0 Posts
Originally Posted by y2k_ta
A random sig generator might throw up a red flag since that's a borderline animated sig (which isn't allowed on this site). I'd hate for you to do all that work, and then have all your sigs removed.
I don't understand why because it only changes everytime the page is refreshed. Doesn't take a page any longer to load than it did before.
Oh well, I gave up
#13
TECH Senior Member
Join Date: Apr 2004
Location: Texas
Posts: 6,157
Likes: 0
Received 0 Likes
on
0 Posts
Originally Posted by Brian2006
That's what I tried:
Oh well
Code:
<?php $base="www.ledvault.com/Brian/Sigs"; #construct the sig. pages Array $pages=array("sig1.html","sig2.html","sig3.html","sig4.html"); $n=count($pages); $num=rand(0, ($n-1)); $page=$pages[$num]; $url=$base.$page; print "<embed src='$url'>"; ?>
No it has to be done on the server side... as in the server that is hosting the image
#15
TECH Senior Member
iTrader: (10)
Join Date: Mar 2003
Location: North Texas
Posts: 8,009
Likes: 0
Received 0 Likes
on
0 Posts
A random signature generator would be fine, I think. Since it's only going to rotate what image it serves out each time the "signature" image is requested(which is only once per page load, hence no animation).
Why not change your output to something vBulletin can handle? Right now your output is html, you need to output something in img tags that vBulletin can parse.
Why not change your output to something vBulletin can handle? Right now your output is html, you need to output something in img tags that vBulletin can parse.