View Full Version : PM/Email Notification for Pending (Moderated) Messages
Logician
05-06-2002, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=38083) 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
Sounds like a good hack, if it wasn't for the fact that I don't moderate posts on my forum, I would install :D
Logician
05-07-2002, 02:02 PM
Here is a screenshot:
(This is the PM you get if you set the hack to send you PM!)
I don't moderat posts but I alwayes found some posts waiting for moderation :mad: I don't know whay :ermm:
I think this hack will be very useful for me.
Thanks :smoke:
inetd
05-07-2002, 08:30 PM
Good hack!
Logician, good work! :tup:
Originally posted by Remi
I don't moderat posts but I alwayes found some posts waiting for moderation :mad: I don't know whay :ermm: That usually means somebody selected post a poll and then didn't do the poll.
Cool hack. I have some semi-trolls under moderation. Now I get an email when they post. Thanks. :)
steveprice
05-08-2002, 11:29 AM
Hi Logician,
I installed the hack, and it worked perfectly for a couple of days. Then I no longer got e-mails (the option I selected) when new messages entered the moderator queue.
I looked at newreply.php and newthread.php, and the hacked code looks OK in both. I also sent myself e-mail through the software listing of my profile, and that worked (so the problem isn't that the e-mail utility is generally nonfunctional).
Any suggestions?
Regards,
Steve Price
Originally posted by FWC
That usually means somebody selected post a poll and then didn't do the poll.
Thanks, I didn't know that :beard:
Logician
05-08-2002, 12:53 PM
Originally posted by steveprice
I installed the hack, and it worked perfectly for a couple of days. Then I no longer got e-mails (the option I selected) when new messages entered the moderator queue.
Yep, odd.. Let's try to understand what's happening, so can you plz set the hack to send BOTH pm and email (or ONLY pm) to see if it's working or not?
I guess the problem you mentioned is not hack related, but let's try to trace it anyway..Btw have you checked if your server can send (not receive) email via sendmail or not? For example do you get email notifications for thread subscribtions?
Regards,
steveprice
05-08-2002, 01:38 PM
Hi Again,
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.
Regards,
Steve Price
steveprice
05-08-2002, 02:05 PM
Hi Logician,
I deleted the hack, then reinstalled it. Now it works perfectly again.
Do I understand any of this? Do I really care, as long as it works?
Many, many thanks for being so generous with your time.
Steve Price
MetroSports82
05-15-2003, 08:41 PM
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. ;)
Logician
05-16-2003, 05:20 AM
Today at 12:41 AM MetroSports82 said this in Post #13 (https://vborg.vbsupport.ru/showthread.php?postid=395575#post395575)
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:
if ($visible!=1)
AS
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:
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignature,iconid,messageread ,folderid) VALUES (NULL,$commish_member,$commish_member,$commish_mem ber,'".addslashes(htmlspecialchars($title1))."','".addslashes($message1)."',".time().",'$signature','$iconid',1,0)");
and replace it as:
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title ,message,dateline,showsignature,iconid,messageread ,folderid) VALUES (NULL,$commish_member,$commish_member,$commish_mem ber,'".addslashes(htmlspecialchars($title1))."','".addslashes($message1)."',".time().",'$signature','$iconid',0,0)");
MetroSports82
05-16-2003, 05:56 PM
that worked great, thanks for the fix Logician! ;)
Splitfyre
06-24-2003, 09:03 PM
Can I get this to work for just one particular forum?
Logician
06-24-2003, 09:14 PM
yep in hack code find:
if ($visible!=1)
and replace it as:
if ($visible!=1 AND $forumid==X)
Replace X with your forumid
Splitfyre
06-24-2003, 09:26 PM
Sweet
Splitfyre
06-24-2003, 09:29 PM
Can I forgo the replies as I just need moderation in one forum with any new posts that are created?
Splitfyre
06-24-2003, 09:37 PM
Where do you specify who can moderate?
Logician
06-25-2003, 06:58 AM
who can moderate is not related to this hack it is related to your default vb permissions. That is, when you assign a mod for a forum, you can set whether she can moderate new posts or not.
This is exactly what I need to make the promotion work better. I'm having problems opening the attachment though. I download it and it shows as a IE Attachment.html which opens to a dead end... Am I missing something?
Or is there a better hack out for 3.5 now?
djilou
08-12-2007, 11:39 PM
and for 3.6.8?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.