Page 1 of 1

Link for moderation of new messages is not working

Posted: Tue Apr 21, 2015 9:22 pm
by bobs75
Script URL: http://www.christianityetc.org/guestbook
Version of script: 1.7.2
Hosting company: SiteGround
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below: I've got a message in my email box that a message had been submitted for my guestbook. Two links in the message were cite, one to "approve" the message and the other one to reject it. When I check the link to approve it, the program took me back to the guestbook, but the initial page was displayed with no noticed of the "approved" message. Something must be wrong with the settings for these links. I corrected the permission number for the "settings" file to 666 and the permission setting for the apptmp control is set at 777. I would like to get this problem fixed, because if this control isn't working my guestbook is useless. Please give me some clear instructions for fixing this problem. I appreciate your help.

Re: Link for moderation of new messages is not working

Posted: Wed Apr 22, 2015 9:34 am
by Klemen
I just submitted a test message.

Please post the content of the email you receive (don't click on any links).

Re: Link for moderation of new messages is not working

Posted: Wed Apr 22, 2015 12:20 pm
by bobs75
Here is a copy of the email that I received from you.
Hello!

A new guestbook entry is waiting approval.

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

To APPROVE the entry visit this URL:
http://www.christianityetc.org/guestboo ... prove&do=1

To REJECT the entry visit this URL:
http://www.christianityetc.org/guestboo ... prove&do=0

End of message
I did click the APPROVE link, but it didn't work. The program just displayed the initial page for the script without noting that the test message had been "approved". I'm sorry that I didn't check the forum first. I hope that we can get this problem fixed. Thanks for your response.

Re: Link for moderation of new messages is not working

Posted: Wed Apr 22, 2015 1:02 pm
by bobs75
You might also note that opening the index.php file in the default folder of the script produces a display of my website's home page and not any file of php codes. I think that something is really messed up with the controls for the operation of my guestbook, and I don't know why or how to fix them.

Re: Link for moderation of new messages is not working

Posted: Wed Apr 22, 2015 3:41 pm
by Klemen
This is a simple settings issue.

In the setting.php file the $settings['gbook_url'] variable should be set to the UL of gbook.php file.

Set yours to this and it should work on new entries:

Code: Select all

$settings['gbook_url'] = 'http://www.christianityetc.org/guestbook/gbook.php';

The 2nd issue (index) works fine for me, try clearing your browser cache (or use "Private mode" in your browser to access the index page).

Re: Link for moderation of new messages is not working

Posted: Wed Apr 22, 2015 5:47 pm
by bobs75
I changed the setting for the ['gbook_url'] as you instructed me to do. I made the change in both copies of the script as I'm now working with it. So I have it set as http://www.christianityetc.org/guestbook/gbook.php and http://www.christianityetc.org/gbtest/gbook.php . But neither URL takes me to a working form. The displayed page cites the various options at the top, including one for viewing posts and one to add a post, and it indicates that there is 1 message, which is apparently your earlier test message that still hasn't been "approved". But I can't get the control for its display or approval to work in either copy of the settings for this script. I have installed a fresh version of the script in the "gbtest" directory on the server for my site, but it apparently isn't working even with the last revision in the URL setting. This is very frustrating. Something is still wrong with the configuration of codes for the operation of this script. I appreciate your ongoing efforts to help me to correct this problem, but it seems to be more than "a simple settings issue". Let me know what do to next. Thanks.

Re: Link for moderation of new messages is not working

Posted: Wed Apr 22, 2015 5:55 pm
by Klemen
My test post is already approved and live in your guestbook - I approved it myself when testing after your previous reply, so those links have expired.

Like said, please try posting a NEW test message and see if that works for you.

Re: Link for moderation of new messages is not working

Posted: Wed Apr 22, 2015 6:16 pm
by bobs75
I did submit a new test message from me, and it was approved and displayed. Apparently the script is now working as it should. I think that I will just removed the "gtest" folder from my server to avoid any confusion in the presence of your script on my server. I'm sorry about all of my confusion regarding this matter, and I appreciate your patient help. Thanks a lot. I like your script. Bob

Re: Link for moderation of new messages is not working

Posted: Thu Apr 23, 2015 8:52 pm
by bobs75
This problem was resolved in my guestbook when I corrected the setting for the URL.