http posting problem & table spacing question

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
donturo
Posts: 3
Joined: Tue May 23, 2006 2:59 pm

http posting problem & table spacing question

Post by donturo »

Script URL: http://www.freddekei.com/guestbook/gbook.php
Version of script: latest
Version of PHP: ?
Hosting company: http://www.dreamhost.com
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try: searched the scripts till dusk

Write your message below:

Hi,

I've installed the guestbook, must say it's one of the best and most simpelest guestbooks I ever found. I have customized it a little bit and think it looks ok, because I know almost nothing about php. But there are still three things I can't get fixed:

1
Is posting http:// urls in the message not allowed? When submitting I got to a page saying:

Error
You cannot signup this guestbook at the moment!

If I try to add another new message from the guestbook main page I get the same error message and I am not able to post anymore messages. Only closing and re-opening the browser allows me to post again.
I can however post www.blabla, only the http:// initializes the error. How can I overcome this? is there a way to remove this? I suppose it is some sort of spam security but if anyone posts unwanted messages I'll delete them manually anyway.

--------

2
The width of the space the "Comments" should appear in -> I'd like to add some spacing/padding or whatever, as long as I can create some spacing between the written message and the border on the right. Putting it in a table of 95% width will solve the problem, but I don't know where I can find what I should put in that table (comments) Any other solution ? How can I do this?

----

3
How can I remove or edit the copyright notice? I can't find it anywhere and I've searched in all scripts. Where can I find it? I will pay for the script to remove the notice but I'll first have to find it??

Thanks a lot in advance, hope to get it sorted :)
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

1. Yes, this is part of the anti-SPAM check. You can enable posting URLs in a separate field by setting $settings['use_url'] to 1, but to enable posting URLs in the message field you would need to disable the JunkMark filter by setting the $settings['junkmark_use'] to 0. I don't recommend that though as you might get a lot of SPAM eventually to your guestbook and it will be hard to keep up deleting all the messages.

In my opinion URLs just don't belong to a guestbook, because guestbook is a place where people share their thoughts about YOUR website and not the place to post links to THEIR website.

2. All the HTML code is inside the gbook.php file, look in the "printEntries" function and code above the // >>> START FUNCTIONS <<< // comment.

3. You can purchase a license here
http://www.phpjunkyard.com/copyright-form.php
and you will be sent a license file which will remove the Powered by link.

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
donturo
Posts: 3
Joined: Tue May 23, 2006 2:59 pm

Post by donturo »

Ok man I looked again and I understand the spam, guess I'll leave it as it is, but my coding problems aren't fixed. I am not experienced with php at all, so I'm having a lot of trouble here. Seems like almost everything I try to change corrupts the script resulting in errors and more errors.
The comment:
I like add a cell behind the comment cell of 5% width, in line with the horizontal line. So all I need to do is adding <td width="5%"></td> somewhere after the 65% comments cell. Well I tried every possible positioning, even tried some scripting, I just didn't got it working.
Please help. This is the comment cell in the script.

Code: Select all

echo '
</td>
<td valign="top" width="65%">
';

	if (empty($isprivate) || empty($settings['use_private'])) {echo $comment;}
    else {
    	echo '<p>&nbsp;</p>
    	<p><i><a href="gbook.php?a=viewprivate&num='.$i.'">Private post. Click to view.</a></i></p>';
    }

    if (!empty($reply)) {
	echo '<p><i><b>Admin reply:</b> '.$reply.'</i>';
    }

echo '
As for the license. I have absolutely no idea how to modify it. Where it loads it from? I don't know. I opened gbook.php and searched for PHP junkyard. Got nothing. PHP guestbook 1.4, got nothing. etc, I really couldn't find it. Guess removing it will be the easiest thing to do. I think I am not even going to bother.
I have bought the license, am I now aloud to remove it?

Thanks for the great help.

Regards,

Arthur Jacobsen
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

How about putting the comments in a table the same width as you line?

Code: Select all

{echo '<table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor"#000000">
<tr>
<td width="95%">'.$comment.'</td>
</tr>
</table>';}
instead of just

Code: Select all

{echo $comment;} 
... or something similar.

As for the license, you were sent a license file when purchasing a license, it has a LICENSE_README.htm file inside with instructions. From version 1.4 on all you need to do is upload the license file to your gbook folder to remove the Powered by link.

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
donturo
Posts: 3
Joined: Tue May 23, 2006 2:59 pm

Post by donturo »

Thanks a lot! That was exactly the code I needed. You tought me something about php now :) Thanks again:)


Arthur Jacobsen
Post Reply