The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Array Problem
I am trying to get the latest 5 images from my PhotoPost vBGallery plugin and found some some code that someone had posted and modified it. No one seems to have looked at the thread @ PP in awhile so I thought I would try here since it is a generic PHP problem. I have it pretty much where I want it except for the thumbnails, the userid is repeated in the url part of the thumbnail:
(ignore the html tags, I am just messing around to test) Code:
<div><a href="http://highsierraspotters.com/forum/gallery/showimage.php?i=4"><img src="http://highsierraspotters.com/forum/gallery/files/3/412_thumb.jpg" alt="N412ua" ></a></div><div><a href="http://highsierraspotters.com/forum/gallery/showimage.php?i=5"><img src="http://highsierraspotters.com/forum/gallery/files/3/3/412ua_thumb.jpg" alt="N412ua" ></a></div><div><a href="http://highsierraspotters.com/forum/gallery/showimage.php?i=3"><img src="http://highsierraspotters.com/forum/gallery/files/3/3/3/300_thumb.jpg" alt="N300sw" ></a></div><div><a href="http://highsierraspotters.com/forum/gallery/showimage.php?i=2"><img src="http://highsierraspotters.com/forum/gallery/files/3/3/3/3/300sw_thumb.jpg" alt="N300sw" ></a></div><div><a href="http://highsierraspotters.com/forum/gallery/showimage.php?i=1"><img src="http://highsierraspotters.com/forum/gallery/files/3/3/3/3/1/n921wn-rno-16r-aug22008_thumb.jpg" alt="N921wn-rno-16r-aug22008" ></a></div> PHP Code:
--------------- Added [DATE]1219097473[/DATE] at [TIME]1219097473[/TIME] --------------- Ok I was able to get it to work by deleting this part of the code: PHP Code:
|
#2
|
|||
|
|||
And the error is?
|
#3
|
|||
|
|||
PHP Code:
PHP Code:
|
#4
|
|||
|
|||
The loop was adding another uid with each consecutive picture eg:
Code:
http://highsierraspotters.com/forum/gallery/files/3/412_thumb.jpg http://highsierraspotters.com/forum/gallery/files/3/3/412_thumb.jpg Quote:
That worked thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|