The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
random Image in first & Second Alternating color
Hi,
I want to have images of my members cars, and have them displayed as a fixed watermark on the first and second alternating color. I already have an image their now, but would like to have random Images...... can someone tell me how to do this? Thanks Derek |
#2
|
||||
|
||||
the poor man's way to do this is to write an uploader that will generate the filenames like: userid_photonumber.jpg (10034_3.jpg), where "photonumber" autoincrements with every upload by that user.
create some heavy queries that determines the largest photonumber for that user. generate a random number with "photonumber" as the high end. rand(1,$photonumber); then, in your templates, use an img tag with a URL like this: /path/to/photos/$post[userid]_$randomnumber.jpg |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|