The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
another sig php question from sabe
this script is meant to give me a random image script usable on forums such as this
PHP Code:
Quote:
|
#2
|
||||
|
||||
*bump*
|
#3
|
||||
|
||||
You could always just name them image1.png, image2.png etc, then just randomize a number and attach it to "image" then echo that back out, not nearly as cool, but it works.
Other than that, I noticed that if you have the substring of -4 to check for file extensions then you'll never get a .jpeg, since it's 5 chars long. |
#4
|
||||
|
||||
i got the second bit, but the second bit went right over my head, could you say that in lamen turms please
|
#5
|
||||
|
||||
Quote:
Im useless at php but from what i can guess/gather he means this bit of code $ext=strtolower(substr($names[$i],-4)); Which im guessing because you have -4 at the end wont let it show .jpeg files because .jpeg= 5 letters long not 4 or less. Sorry if im wrong and messed everything up here |
#6
|
||||
|
||||
heh, that's the only bit i got, thanks for trying to help tho'
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|