View Single Post
Old March 29th, 2009, 12:59 PM   #3 (permalink)
MarlinNut
Junior Member
Verified Customer
 
Join Date: Dec 2007
Posts: 7
First Try

Replaced the code as requested, but got the following when I tried to view anything using showphoto.php:

Parse error: syntax error, unexpected '}' in /home/content/m/a/r/marlinnut/html/pictures/showphoto.php on line 1684

Line 1684 corresponds to the closing bracket in the first nested "if" statement, so I added opening brackets in the 4th line (for the first "$showthumb" statement) and its corresponding statement in the second nested "if".

The good news is that got me past the parse error, but not to a functional solution. Using this code, the BBCode for a linked video thumb references a "mm-video.gif", which isn't among the items in the images folder, so it gives a broken image.

Making things even stranger, after the code change, the BBCode for a standard image no longer includes the thumbnail image in the statement - just a pair of opening and closing IMG tags - if you use the BBCode in a forum post, for example, they appear as text, linked back to the gallery image.

At this point, I can't tell if the issue is the code, the location of my added brackets, or some combination of the two.

I think we need a redo ...
MarlinNut is offline   Reply With Quote