When I first installed my guestbook (using auto-install from my hosting service), everything worked perfectly. Then I started tinkering with the HTML to reformat the guestbook so it looked better with my site.
Somewhere along the way, I did something and now the images don't display. I see a broken image graphic where the thumbnail should be, and when I click on it, I get this message:
Forbidden
You don't have permission to access /~pirate/guestbook/public/img-1072380733.jpg on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I've triple-checked the permissions of all the folders and .php files, and they're set correctly. I've been trying to backtrack and find the command that makes the image display in the message, but I'm not sure what I'm looking for and nothing looks right intuitively.
Here's my revised code for entry.php:
<tr bgcolor="$bgcolor">
<td width="250" valign="top">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="font2" valign="top" width="8%"></td>
<td width="92%">
$URL
$ICQ
$AIM
</td>
</tr>
<tr>
<td colspan="2" class="guestinfo"><FONT SIZE=-2>$id.</FONT> <SPAN style="font-size: 110%"><b>$row[name] — </b></SPAN><b>$row[email]</b></td>
</tr>
<tr>
<td colspan="4" class="guestinfo">$LANG[FormLoc]:<B> $row[location]</B></td>
</tr>
</table>
</td>
<td width="350" valign="top" class="message">
<div align="left" class="font3"><img src="img/post.gif" width="9" height="9">
$DATE $HOST
<a href="comment.php?gb_id=$row[id]"><img src="img/edit.gif" width="18" height="13" border="0" alt="$LANG[AltCom]"></a>
$EMAIL
</div>
<hr size="1"><div align="left">
<SPAN class=message>
$MESSAGE</span>
</div>
$COMMENT
<P><BR>
<CENTER><img src="img/pawding.jpg"></CENTER><BR><P>
</td>
</tr>
The guestbook itself can be found here:
http://matrix.fast-servers.net/~pirate/guestbook/index.php
Thanks for any light you can shed!