Post Approval

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Bobn
Posts: 7
Joined: Thu Dec 06, 2012 2:28 am

Post Approval

Post by Bobn »

Script URL:
Version of script: 1.7 (Paid for version)
Hosting company: Self
URL of phpinfo.php: 5
URL of session_test.php: 5
What terms did you try when SEARCHING for a solution: Post Approval

Write your message below:

Hello,

I am trying to set up my book for post approval but not having any luck. I submitted a test however I did not receive an approval message. Also, when I try to send another test it says "Error
You already have a message waiting approval!" I cannot find this message or a way to disapprove it. Also, we have quite a few people with the same IP and I need to remove that block as well.

Many Thanks!
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Re: Post Approval

Post by Klemen »

If you are not receiving notification emails then PHP mail() function is not sending out emails or they are being blocked by SPAM filters.


To delete existing post requests you will need to remove text files from the "apptmp" folder. Or you can generate approval/deletion links like this:

To approve a pending post:

Code: Select all

http://yourdomain.com/gbook/gbook.php?id=ID_HERE&a=approve&do=1
To delete a pending post:

Code: Select all

http://yourdomain.com/gbook/gbook.php?id=ID_HERE&a=approve&do=0
Replace ID_HERE with the temporary file name (without .txt). For example if you have a file called "20f05862a2fa4a40f27fb4479b975887.txt" inside the "apptmp" folder you would approve that post by opening this URL in your browser:

Code: Select all

http://yourdomain.com/gbook/gbook.php?id=20f05862a2fa4a40f27fb4479b975887&a=approve&do=1

If you wish to allow multiple pending posts per IP, try changing this code inside gbook.php:

Code: Select all

$tmp = md5($_SERVER['REMOTE_ADDR'].$settings['filter_sum']);
To something like this:

Code: Select all

$tmp = md5($_SERVER['REMOTE_ADDR'].mt_rand(0,999999).$settings['filter_sum']);
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
Bobn
Posts: 7
Joined: Thu Dec 06, 2012 2:28 am

Re: Post Approval

Post by Bobn »

Thank you worked perfectly,, have another issue but its related to email so I will search and start another post
Post Reply