Version: 1.00, by Logician
Developer Last Online: Nov 2023
Version: 2.2.x
Rating:
Released: 05-06-2002
Last Update: Never
Installs: 4
No support by the author.
Hiyas,
It's simple a notification hack for pending messages.
That is, if a message in your board is pending for moderation, Admin (or Mod or any users you specified) will be notified via email or private message (or both) about the pending message. This will work for both new threads or new replies.
This is requested, released and tested in this thread in the REQUESTS forum and I publish it as I am asked to do so :glasses:
I doubt you'll need a screenshot but see the message below if you do. Hack is very likely to work with all versions >2.0.3. It's very easy to apply (~2 mins.).
If you install it, please click install, thank you..
Enjoy! \\=^))
Logician
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Sendmail works, and PM notification works. I'm going to remove the hack, then reinstall it and see what happens. I'll post the outcome here. These damned machines can smell fear, and it knows that I don't know what I'm doing when I muck around with the .php files.
i hate to be bumping old hacks like this. i've just applied this, and it works well, (thanks Logician ), but for some reason, i'm getting pm notifications when ever any user posts a poll. any ideas why? is there any fix for this by any chance? Also, when I do recieve the PM, it does not update, and comes up as being read as an old PM, thanks for any support, this has come in very useful.
Today at 12:41 AM MetroSports82 said this in Post #13 i hate to be bumping old hacks like this. i've just applied this, and it works well, (thanks Logician ), but for some reason, i'm getting pm notifications when ever any user posts a poll. any ideas why? is there any fix for this by any chance? Also, when I do recieve the PM, it does not update, and comes up as being read as an old PM, thanks for any support, this has come in very useful.
This is because technically threads with polls are moderated before poll is posted. You can fix it like this:
In the hack code you applied to newthread.php, replace line:
PHP Code:
if ($visible!=1)
AS
PHP Code:
if ($visible!=1 AND $postpoll==0)
This will make sure hack will ignore threads with polls. However remember that if you apply this, you may have posts that stay as moderated but you get no notifications. (If user choose to send a poll, but didn't when poll screen loaded)
as for fixing message read find:
PHP Code:
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,showsignature,iconid,messageread,folderid) VALUES (NULL,$commish_member,$commish_member,$commish_member,'".addslashes(htmlspecialchars($title1))."','".addslashes($message1)."',".time().",'$signature','$iconid',1,0)");
and replace it as:
PHP Code:
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,showsignature,iconid,messageread,folderid) VALUES (NULL,$commish_member,$commish_member,$commish_member,'".addslashes(htmlspecialchars($title1))."','".addslashes($message1)."',".time().",'$signature','$iconid',0,0)");