Page 1 of 1

I can't sign in my guestbook !

Posted: Sun Sep 17, 2006 12:59 pm
by alhakeem2001
I can't sign in my guestbook, it keeps ask me that I didn't fill in the name field ! while I did that already ! why ?

thanks.

Posted: Sun Sep 17, 2006 1:32 pm
by Henrie
Hello alhakeem2001,

Please post a link to your guestbook.
The information you have given is not enough to help you. Maybe when we can have a look at your guestbook we can help.

Greetings,
Henrie

The link to my Guestbook

Posted: Sun Sep 17, 2006 3:54 pm
by alhakeem2001
Ok, this is the link to my Guestbook, I hope that will help :
note: the guestbook has been translated to Arabic.
http://www.muniralhakeem.com/Guestbook/gbook.php

Posted: Sun Sep 17, 2006 5:40 pm
by Henrie
hi alhakeem2001,

My first guess is that your problem is a result of your translation. I noticed that some of the input fields have new names. name is still called name, but from2 and email2 are not the standard names. And the textarea now has a name textarea while it should be named comments.
Unless you have renamed this everywhere in the script this renaming of the input and textarea names could be the problem.

Could you try with a standard (non transalated) guestbook to see if you get an error with a non edited guestbook?

Greetings,
Henrie

Posted: Sun Sep 17, 2006 8:33 pm
by alhakeem2001
Can you please specify where exactly the error could be ? I mean if you write down the right code and I will compare it with mine !
Thank you very much.

Omar :roll:

Posted: Sun Sep 17, 2006 9:51 pm
by Henrie
Please copy the original untranslated gbook.php file to your server (make a backup copy of the file you are now using or you will lose your translation).

Then test if you can post a message in your guestbook. If this works, then the problem must be in your translation, if not it is something else.

So please test this first.

Greetings,
Henrie

Posted: Mon Sep 18, 2006 2:20 am
by Klemen
Henrie is right, this must be an error you made while translating/customizing your GBook. You even changed field names in the sign form:

"from" > "from2"
"email" > "email2"
"comments" > "textarea" (!!??)

Who knows what other changes are inside your code?

Also you should download the latest version (1.43) from
http://www.phpjunkyard.com/php-guestbook-script.php

If you are not fluent in PHP/HTML you should install the ORIGINAL gbook.php then change a few lines, TEST, change a few more lines, test again, change some more and so on.

Posted: Tue Sep 19, 2006 6:03 am
by alhakeem2001
I think you are right ! I know now where the problem is.

Thanks :wink:

Posted: Wed Sep 20, 2006 11:29 am
by alhakeem2001
How can I set a password for the administrator to be able to delete/ modify entries.

Thanks,

Posted: Wed Sep 20, 2006 4:46 pm
by Henrie
Hello alkaheem2001,

This is done in the settings.php file. Open it with a plain text editor like notepad and look for this

Code: Select all

/* Password for admin area */
$settings['apass']='admin';
Change admin to your desired password.

Greetings,
Henrie