Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PM/Email Notification for Pending (Moderated) Messages Details »»
PM/Email Notification for Pending (Moderated) Messages
Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

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.

Comments
  #12  
Old 05-08-2002, 01:38 PM
steveprice steveprice is offline
 
Join Date: Dec 2001
Location: Virginia
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #13  
Old 05-08-2002, 02:05 PM
steveprice steveprice is offline
 
Join Date: Dec 2001
Location: Virginia
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 05-15-2003, 08:41 PM
MetroSports82's Avatar
MetroSports82 MetroSports82 is offline
 
Join Date: Nov 2002
Location: NJ
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 05-16-2003, 05:20 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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!=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)"); 
Reply With Quote
  #16  
Old 05-16-2003, 05:56 PM
MetroSports82's Avatar
MetroSports82 MetroSports82 is offline
 
Join Date: Nov 2002
Location: NJ
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that worked great, thanks for the fix Logician!
Reply With Quote
  #17  
Old 06-24-2003, 09:03 PM
Splitfyre Splitfyre is offline
 
Join Date: Dec 2001
Location: Vancouver, BC Canada
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I get this to work for just one particular forum?
Reply With Quote
  #18  
Old 06-24-2003, 09:14 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep in hack code find:

PHP Code:
if ($visible!=1
and replace it as:
PHP Code:
if ($visible!=AND $forumid==X
Replace X with your forumid
Reply With Quote
  #19  
Old 06-24-2003, 09:26 PM
Splitfyre Splitfyre is offline
 
Join Date: Dec 2001
Location: Vancouver, BC Canada
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet
Reply With Quote
  #20  
Old 06-24-2003, 09:29 PM
Splitfyre Splitfyre is offline
 
Join Date: Dec 2001
Location: Vancouver, BC Canada
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I forgo the replies as I just need moderation in one forum with any new posts that are created?
Reply With Quote
  #21  
Old 06-24-2003, 09:37 PM
Splitfyre Splitfyre is offline
 
Join Date: Dec 2001
Location: Vancouver, BC Canada
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where do you specify who can moderate?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06668 seconds
  • Memory Usage 2,315KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete