Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when searching for a solution:
Write your message below:
1)Why do I get this text?
http://www.moshiachforkids.com/gbook/gbook.php?a=sign
and then there is an error cannot sign up at this moment
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
3)how can i add space between each posting.
They seem to run one into the other without any spacing
error
Hello Mirnot,
First of I want to say that you should start by using GBook version 1.43 instead of Gbook version 1.41 that you are now trying to set up.
1.
The Warning: Cannot modify header information - headers already sent by is normally get when people put their own header in the header.txt file. But your header.txt file is empty. Maybe you have edited the gbook.php file and added a <head>...</head> section? You should not edit your own head section but rather modify the one that is already present in the gbook.php file.
The other error:
Seems like you are having problems with sessions, please upload this file to your server (the php files inside the zip files) and post a link to them here, might give some clues: http://www.phpjunkyard.com/extras/phpinfo.zip
And also this one: http://www.phpjunkyard.com/extras/session_test.zip
2.
Yes you can. I can see you have already tried but did not succeed (yet).
You can also add a class style to the <td> that holds the name e-mail etc. and than in style.css enter a right padding for that class.
3.
By ending the table of the entry and start a new one for the next entry.
Now there are only new table rows started but not new tables. This would require editing the gbook.php file. I don't have time right now to get into more details as to where exactly you should edit the code, but maybe later today.
Greetings,
Henrie
First of I want to say that you should start by using GBook version 1.43 instead of Gbook version 1.41 that you are now trying to set up.
1.
The Warning: Cannot modify header information - headers already sent by is normally get when people put their own header in the header.txt file. But your header.txt file is empty. Maybe you have edited the gbook.php file and added a <head>...</head> section? You should not edit your own head section but rather modify the one that is already present in the gbook.php file.
The other error:
Seems like you are having problems with sessions, please upload this file to your server (the php files inside the zip files) and post a link to them here, might give some clues: http://www.phpjunkyard.com/extras/phpinfo.zip
And also this one: http://www.phpjunkyard.com/extras/session_test.zip
2.
Yes you can. I can see you have already tried but did not succeed (yet).
You can also add a class style to the <td> that holds the name e-mail etc. and than in style.css enter a right padding for that class.
3.
By ending the table of the entry and start a new one for the next entry.
Now there are only new table rows started but not new tables. This would require editing the gbook.php file. I don't have time right now to get into more details as to where exactly you should edit the code, but maybe later today.
Greetings,
Henrie
The whole thing went wrong after i added a column!!!
I did try to change the text Comments on the view page to another word could that be the problem
here are the links
http://www.moshiachforkids.com/gbook/session_test.php
http://www.moshiachforkids.com/gbook/session_test2.php
http://www.moshiachforkids.com/gbook/phpinfo.php
I did try to change the text Comments on the view page to another word could that be the problem
here are the links
http://www.moshiachforkids.com/gbook/session_test.php
http://www.moshiachforkids.com/gbook/session_test2.php
http://www.moshiachforkids.com/gbook/phpinfo.php
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)and change it toThis is for the blue header line.
Then the same for the part where the entry is (lines 802 and 803)and change it to 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 783to for example
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-215and change it to
Then find line 781 (for reference the text: function printEntries($lines,$start,$end) { can be found at line 771)and change it to
Then find line 830 and change it to
To get a space between the tables of the entries you can change line 830 toor you can change the style.css file and add margin-bottom: 10px; to the table.entries {...} section. It would look something like
I hope this helps you and I wish you success with editing your gbook.
Greetings,
Henrie
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>
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>
Then the same for the part where the entry is (lines 802 and 803)
Code: Select all
</td>
<td valign="top" width="65%">
Code: Select all
</td>
<td valign="top" width="15%"> </td>
<td valign="top" width="50%">
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>
Code: Select all
<td class="upper" width="65%"><b>Message:</b></td>
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>';
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);}
Code: Select all
<tr>
Code: Select all
<table border="0" cellspacing="0" cellpadding="2" width="95%" class="entries"><tr>
Code: Select all
</tr>
Code: Select all
</tr></table>
Code: Select all
</tr></table><br>
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;
}
Greetings,
Henrie
When you use the standard (unmodified) version of GBook you should not get any error messages no matter what version you use.
These errors in most occasions only occur when someone edits the gbook.php file wrong. Or puts a <head>..</head> section in the header.txt file. Or when the server does not support certain php functions properly.
But you have already edited your gbook.php file so I can not know what errors you get with a standard GBook.
If you get errors with an unedited gbook than please put an unedited gbook on your server and let us see what errors you get. Then we can try to resolve these first before you start editing any files (except ofcourse the settings.php file which you should correctly set up).
Greetings,
Henrie
These errors in most occasions only occur when someone edits the gbook.php file wrong. Or puts a <head>..</head> section in the header.txt file. Or when the server does not support certain php functions properly.
But you have already edited your gbook.php file so I can not know what errors you get with a standard GBook.
If you get errors with an unedited gbook than please put an unedited gbook on your server and let us see what errors you get. Then we can try to resolve these first before you start editing any files (except ofcourse the settings.php file which you should correctly set up).
Greetings,
Henrie