If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: Ignatius
Forum Index » Profile for Ignatius » Messages posted by Ignatius
Author Message
*bump*


Anybody know?
What's the easiest way to get Advanced Guestbook working on a new server when you move the domain? (I have cPanel on both servers.)

I'm illiterate with MySQL, so please be very clear in your step-by-step instructions.

Thanks very much!


Ignatius
lang/english.php, line 18 or so.

Rule of thumb: If what you want to change is displayed in English, look for it in the english.php file.

HTH
OK, but... We shouldn't have to CHMOD each individual image file after it's uploaded by guests, right?

What do I have to do to make sure the image files are created with the right permissions?


Thanks for your reply, Auron.
DOH!

Nevermind. I found it two minutes after posting this (I looked for half an hour before resorting to the post!). Must not have had enough coffee yet.

For anyone else who wants to make this mod, here's the code you look for:


In com.php:

<table width="90%" border="0" cellspacing="0" align="center">
<tr>
<td>
<hr size="1"><DIV class=comment>$com[name]:<br>
$com[comments]</div>
</td>
</tr>
</table>


Change it to:

<table width="90%" border="0" cellspacing="0" align="center">
<tr>
<td>
<hr size="1"><DIV class=comment>$com[name] says:<br>
$com[comments]</div>
</td>
</tr>
</table>


I made this mod because it clarifies that it's a response from [name] rather than a comment addressed to [name].

Hope somebody finds this useful!
This should be an easy one, but I don't know enough about PHP to find the string I need to tweak.

When someone makes a comment to a message, I want it to read:


JoeBlow says:


instead of

JoeBlow:


Seems to me I should be able to just find the colon in the script and add " says" right before it. Yes?

Can anyone point me to the right file to edit?

Thanks kindly and happy holiday.
That's exactly what happened to me. Did you ever find a way to fix it?
OK, an update...

When I change the permissions on individual image files, I can see them fine. But shouldn't those files be viewable if the whole folder is set for 777?

Kinda weird. I've got a ticket in with my hosting service on this one.
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&nbsp;$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!
I want to get rid of some of the little icons scattered about... How do I eliminate the browser icon over the poster's name?
 
Forum Index » Profile for Ignatius » Messages posted by Ignatius
Go to:   
Based on the open source JForum