Cannot get manual approval of new posts to work

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
k0065126
Posts: 5
Joined: Tue Dec 11, 2007 7:37 pm

Cannot get manual approval of new posts to work

Post by k0065126 »

Script URL: http://pyner.org.uk/GuestBook/gbook.php
Version of script: 1.7
Hosting company: Supanames (http://www.supanames.co.uk/)
URL of phpinfo.php: http://pyner.org.uk/GuestBook/phpinfo/phpinfo.php
URL of session_test.php: http://pyner.org.uk/GuestBook/session_t ... n_test.php
What terms did you try when SEARCHING for a solution: approval link

Write your message below:

The guest book works correctly if I do not set $settings['notify'] to 1 to allow me to vet each posting. If I set this variable to 1 I get an e-mail with two links and whichever one I click on I am sent to an error page from my ISP, not the one I uploaded to my web site.

This is one link which means nothing to me :-
http://results.ispconnect.co.uk/main?Ad ... archQuery=

I have no idea where the problem might be and hope that someone can help me solve it. I did run phpinfo and this suggests that I am using version 5.2.10 of php, and the session_test script suggests that there is no problem there, (I get the result $_SESSION['test'] is set to: TRUE).

Viv

PS. This new version of the script looks very good.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Viv,

The mail you get should contain links like this
Hello!

A new guestbook entry is waiting approval.

Name: henrie
From:
E-mail:
Website:
Message (without smileys):
test approval

To APPROVE the entry visit this URL:
http://www.mydomain.com/gbook17/gbook.p ... prove&do=1

To REJECT the entry visit this URL:
http://www.mydomain.com/gbook17/gbook.p ... prove&do=0

End of message
I don't know any reason why you should have a link like that
This is one link which means nothing to me :-
http://results.ispconnect.co.uk/main?Ad ... archQuery=
Or is this the resulting link when you have clicked one of the links in the mail?

The only problem i can think of is that the folder apptmp inside your Guestbook folder is not writable (chmod 777) and therefor the message to approve can not be found.

Greetings,
henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You have the wrong URL for $settings['gbook_url'] set in your settings.php file. You probably have:

http://www.pyner.org/GuestBook/gbook.php

but it should be:

http://www.pyner.org.uk/GuestBook/gbook.php

(note that you have ".uk" missing in the domain name)
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
k0065126
Posts: 5
Joined: Tue Dec 11, 2007 7:37 pm

Post by k0065126 »

Thanks to Henrie & Klemen for the quick response.

I knew it was probably me doing something silly, and I was right. Amending the $settings['gbook_url'] has solved the problem.

Henrie, the link I posted was what came in the browser when I clicked on the link in the e-mail. My apologies for not making that clear in my post.

I am now very happy.

Viv
ulysse75010
Posts: 4
Joined: Thu Nov 12, 2009 4:26 pm

gbook notification

Post by ulysse75010 »

I've got no notification that a new message has been posted though I filled correctly the file "settings.php"
Jean-Claude ARON
ulysse75010
Posts: 4
Joined: Thu Nov 12, 2009 4:26 pm

Mboard

Post by ulysse75010 »

After trying Gbook I tried Mboard, with which I get a message, when I click on the link, the message 1.html is blank
Jean-Claude ARON
lotuscott
Posts: 4
Joined: Wed Feb 17, 2010 8:06 pm

New problem-admin approval of new post

Post by lotuscott »

Now that I've got my email notification problem worked out, I have a new one. When, as temp administrator, I went to approve a new post, this is the message I received:
Can't open entries file for reading! CHMOD this file to 666 (rw-rw-rw) and make sure your host allows PHP scripts to read from local files!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Can you try if you can post a message without manual approval?
And can you post a link to phpinfo.php file?
Read about chmod in http://www.phpjunkyard.com/ftp-chmod-tutorial.php
If you are on a windows server you can not use chmod but must use the windows management software to assign write permissions.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Like Henrie said make sure the entries.txt file is writable by the script (for CHMOD check the tutorial). Check with your host if unsure.
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
Post Reply