View Single Post
Old February 27th, 2006, 10:13 PM   #5 (permalink)
Tourmeister
Member
Verified Customer
 
Join Date: Dec 2005
Location: Texas
Posts: 30
Hi Chuck,

I added these two lines to the phpinlcude_start template:

Quote:
$frontid = ppmysql_query("SELECT id FROM {$Globals['pp_db_prefix']}photos WHERE bigimage='frontpage$randomindex2.JPG');

$frontidlink = "http://www.twtex.com/photopost/showphoto.php?photo=$frontid&cat=512";
Then in my Portal template:

Quote:
<tr>
<td class="$bgclass" align="center">Click image to see comments<br><a href="$frontidlink" target="blank"><img src="$frontpageimage" /></a><br>
</td>
</tr>
The idea is that if they click the image, they are taken to the gallery where the full sized image is shown with the comments.

What I get now is no image showing, just a blue outline around a small empy box indicating a link, the mouseover indicating the link to be "http://www.twtex.com/?" Not sure why it is dropping the rest of the link or failing to display the image when I put the link to the gallery in place? If I remove the link to the gallery, the image displays fine.

I noticed that there is a single double quote in front of the SELECT in the line I copied from your post. I added one at the end of the line after the single quite and before the ) and that caused the entire forum to crash hehe. I removed it and the forum is fine.

If you try to visit the site, I have changed it back the way I had it before adding the info above (where it links to the album instead of the individual image).

Last edited by Tourmeister; February 27th, 2006 at 10:24 PM.
Tourmeister is offline   Reply With Quote