Then a guess you made an error when you added the column.
The test pages are all good, I don't see any problems there. Also posting works, so you don't have problems with sessions after all.
Did you get errors with the original guestbook? I guess not. I think you have changed something incorrectly and this as you mentioned caused the errors.
The only advice I can give you (and I don't think you are going to like it) is starting again with the original gbook.php file (preferably version 1.43 because it has a better spam filter and better navigation).
Than before modifying safe the working Gbook, modify one thing, see if it
works, if it doesn't work revert to the previous last safed that worked. And so on (that's how i modify my Gbooks).
Than your requested modifications
I post line numbers for gbook.php file version 1.43 as I think you should be using this version (version 1.41 is basically the same with other line numbers). When you start changing beware that if you add lines, line numbers change. The line numbers I mention are from the unchanged gbook.php file.
2) can i add a column in the "view post" table so that it does not look too crowded between the submitted by column and the comments column.
Adding a column (i will not give the css solution as it is a little more work because new classes have to be made to reference to from the stylesheet).
Find the following lines (782 and 783)
Code: Select all
<td class="upper" width="35%"><b>Submitted by</b></td>
<td class="upper" width="65%"><b>Comments:</b></td>
and change it to
Code: Select all
<td class="upper" width="35%"><b>Submitted by</b></td>
<td class="upper" width="15%"> </td>
<td class="upper" width="50%"><b>Comments:</b></td>
This is for the blue header line.
Then the same for the part where the entry is (lines 802 and 803)
Code: Select all
</td>
<td valign="top" width="65%">
and change it to
Code: Select all
</td>
<td valign="top" width="15%"> </td>
<td valign="top" width="50%">
Now you have added a column to the "view post" table.
To change the text
Comments:, which you say started the problems, you only change the text in line 783
Code: Select all
<td class="upper" width="65%"><b>Comments:</b></td>
to for example
Code: Select all
<td class="upper" width="65%"><b>Message:</b></td>
3)how can i add space between each posting.
They seem to run one into the other without any spacing
Adding the space by introducing multiple tables:
Find lines 203-215
Code: Select all
echo '</p>
<table border="0" cellspacing="0" cellpadding="2" width="95%" class="entries">';
if ($total == 0) {
echo '
<tr>
<td>No entries yet!</td>
</tr>
';
}
else {printEntries($lines,$start,$end);}
echo '</table>';
and change it to
Code: Select all
echo '</p>
';
if ($total == 0) {
echo '
<table border="0" cellspacing="0" cellpadding="2" width="95%" class="entries">
<tr>
<td>No entries yet!</td>
</tr>
</table>
';
}
else {printEntries($lines,$start,$end);}
Then find line 781 (for reference the text:
function printEntries($lines,$start,$end) { can be found at line 771)
and change it to
Code: Select all
<table border="0" cellspacing="0" cellpadding="2" width="95%" class="entries"><tr>
Then find line 830
and change it to
To get a space between the tables of the entries you can change line 830 to
or you can change the style.css file and add
margin-bottom: 10px; to the
table.entries {...} section. It would look something like
Code: Select all
table.entries {
color : black;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
BORDER-RIGHT: #23559C 1px solid;
BORDER-LEFT: #23559C 1px solid;
BORDER-TOP: #23559C 1px solid;
BORDER-BOTTOM: #23559C 1px solid;
margin-bottom: 10px;
}
I hope this helps you and I wish you success with editing your gbook.
Greetings,
Henrie