The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Dynamic vBgarage images..
I'm helping a friend who has VBUlletin 3.0 installed and I'm trying to pull a random image from the database.
The way I set it up was by adding a snippet of code to one of the garage templates and inserting a random number for the image ID. Well this works when the number coincides with an actual image ID, but when it doesn't, I get the dreaded "Red X". So what I decided to do now was query the db, create an array out of the entire vbgarageid field, then use my random number as an index for the array. Needless to say, I tried this and could not get it to work correctly. I think mainly because I'm trying to create an array out of the entire field, as opposed to a single row. Here's the link: http://www.lincolnvscadillac.com/vbgarage.php Any help on how to solve this problem is appreciated. Kale |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|