Page 1 of 1

Cannot get manual approval of new posts to work

Posted: Mon Nov 09, 2009 5:17 pm
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.

Posted: Mon Nov 09, 2009 5:52 pm
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

Posted: Mon Nov 09, 2009 5:56 pm
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)

Posted: Mon Nov 09, 2009 7:16 pm
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

gbook notification

Posted: Thu Nov 12, 2009 5:24 pm
by ulysse75010
I've got no notification that a new message has been posted though I filled correctly the file "settings.php"

Mboard

Posted: Thu Nov 12, 2009 5:28 pm
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

New problem-admin approval of new post

Posted: Fri Mar 05, 2010 2:42 pm
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!

Posted: Fri Mar 05, 2010 3:24 pm
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

Posted: Fri Mar 05, 2010 6:33 pm
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.