Version: , by ULTIMATESSJ
Developer Last Online: Jul 2006
Version: Unknown
Rating:
Released: 07-22-2002
Last Update: Never
Installs: 0
No support by the author.
Most of my members moan about not being able to use flash in their sigs so they can display more than 2 in their sig, so i thought of making a hack to help them display a random picture in their signiture, i looked into this and seen this code
PHP Code:
$images = array(1 => "image1.gif", 2 => "image2.gif"); // and so on....
$ni = rand(1, 10); // $ni = next image;)
header("Location: $images[$ni]");
how would i be able to integrate this with vBulletin and give the users the ability to do this?
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Hmm, this would be a difficult hack to make, unless you enable HTML in your signatures I suppose.
Here is my suggestion:
Create X amount of new fields (lets say 4) in the usercp profile page under the signature field. Then allow the user to enter up to 4 different URL's of signatures. Then you could probably work your way somehow with one of those banner rotation scripts and integrate it with vBulletin to allow a member to rotate their 4 banners. You could have more than 4 ofcourse, or you could even allow the user to specify how many he wants, ofcourse this adds more coding on your part.
Attached is the simplest banner-rotation script I know of.
Originally posted by Velocd Hmm, this would be a difficult hack to make, unless you enable HTML in your signatures I suppose.
Here is my suggestion:
Create X amount of new fields (lets say 4) in the usercp profile page under the signature field. Then allow the user to enter up to 4 different URL's of signatures. Then you could probably work your way somehow with one of those banner rotation scripts and integrate it with vBulletin to allow a member to rotate their 4 banners. You could have more than 4 ofcourse, or you could even allow the user to specify how many he wants, ofcourse this adds more coding on your part.
Attached is the simplest banner-rotation script I know of.
i had attempted it using that method, by adding a new part to the usercp telling them where to put it, it sorta worked, but i am still looking into how i could make them specify how many they want, and looking for another way other than profile fields
I am guessing they won't, I am thinking of a way to do this...why don't you just allow flash? with the [swf] replacement...I think I saw some addon about flash somewhere.
I can't see how this would work without having some type of profile field...the user has to somehow enter the URL's of the images that need to be rotated, the method you had thought of and that I suggested is the only way I could see it being done. That way the info can be stored in the database via a query.
As for the quantity of signatures, to get this you just have a field that allows the user to type in a number, and upon hitting the "go" button, it generates X amount of new siggie fields.
There is one way easier for users, the only other way I could see it being done. Have the user make a animated gif with all the signatures inside, set at slow frame speed
...now that I think of it though, there might be another way, but a probably very hard to code way--and this is probably the way that would best suit you and your members.
Somehow create a new tag, that possibly looks like:
This code could be placed in the signature field, and would output, after integration somehow in the randombanner script, as one signature that changes upon refresh.
Originally posted by Velocd
...now that I think of it though, there might be another way, but a probably very hard to code way--and this is probably the way that would best suit you and your members.
Somehow create a new tag, that possibly looks like:
This code could be placed in the signature field, and would output, after integration somehow in the randombanner script, as one signature that changes upon refresh.
Now how all this is done, I have no clue
hmmm, not a bad idea, only problem is with having limited lines in your signiture, if you want to have around 10 sigs rotating randomly it's gonna take up around 12 lines, which with most forums, you won't be allowed to do so