Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Moderation Auto-PM v2.0.1 Details »»
Moderation Auto-PM v2.0.1
Version: 2.0.1, by Alan @ CIT Alan @ CIT is offline
Developer Last Online: Apr 2012 Show Printable Version Email this Page

Category: Moderators Functions - Version: 3.6.0 Beta 2 Rating:
Released: 05-14-2006 Last Update: 06-21-2006 Installs: 376
Uses Plugins
Additional Files  
No support by the author.

Moderation Auto-PM
Version 2.0.1

What is it?
Moderation Auto-PM will automaticly send a Private Message to the user whenever their thread, post or attachment is moderated using the Thread Tools or Inline Moderation Tools.

It has support for the following types of moderation:
  • Thread: Move
  • Thread: Delete
  • Thread: Undelete
  • Thread: Stick
  • Thread: Unstick
  • Thread: Open
  • Thread: Close
  • Thread: Approve
  • Thread: Unapprove
  • Thread: Title Edit
  • Post: Edit
  • Post: Move
  • Post: Delete
  • Post: Undelete
  • Post: Approve
  • Post: Unapprove
  • Attachment: Approve
  • Attachment: Unapprove
All options can be turned on/off in the AdminCP. Moderation Auto-PM will not show the user where their thread is being moved to/from if they do not have permission to view the forum. You can also set a "master" exclude list of forum IDs that will never be touched by Moderation Auto-PM.

What's new in Version 2.0.1?
  • Added support for opening and closing threads by double-clicking on the thread icon
  • Fixed a bug caused by a missing phrase
Credit for this release goes to ConqSoft, as he notice the missing phrase bug, and suggested the new Ajax open/close feature

What's new in Version 2.0?
  • Fully compatible with both vB 3.5.4 and vBulletin 3.6 Beta 2 or above! :banana:
  • Support for editing posts / titles using the ajax quick edit bits
  • Support for deleting posts via quick edit
  • Don't send a PM if you are moderating your own thread
  • Send a Delete PM instead of a Move PM if moved to a particular forum (ie, a recycle bin type forum)
  • Age Cutoff Point - if the item is over a certain age, a PM won't be sent
  • A couple of tiny bugfixes that no-one noticed
How do I install / configure it?
Please see the install.txt file contained within the zip.


How do I upgrade?
If you are upgrading from a previous version of this mod (any version), just upload the 3 PHP files, making sure to overwrite the old ones and re-import the Product XML, making sure you set "Allow Overwrite" to Yes.

If you are upgrading from PM on Thread Move, please uninstall that hack first, then install this one following the instructions in install.txt


Thanks go to redlabour for kindly providing a German translation for the phrases and to everyone who nominated this mod or voted for this mod in HotM June

Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though See you all in early September!

Note The screenshots below are only an example of the messages. The message text is fully editable

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #62  
Old 05-17-2006, 01:44 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alan @ CIT
Do you have a link to that hack?

Thanks,
Alan.
Here you go, sir.

https://vborg.vbsupport.ru/showthread.php?t=93934
Reply With Quote
  #63  
Old 05-17-2006, 01:49 PM
Alan @ CIT Alan @ CIT is offline
 
Join Date: Nov 2004
Location: South UK
Posts: 625
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Moderation Auto-PM won't send PMs for changes made by Kirby's hack, but I'll see what I can do to add support for it in a future version - no promises though

Thanks,
Alan.
Reply With Quote
  #64  
Old 05-17-2006, 01:55 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alan @ CIT
Moderation Auto-PM won't send PMs for changes made by Kirby's hack, but I'll see what I can do to add support for it in a future version - no promises though

Thanks,
Alan.
I would appreciate it, sir.

Thank you.
Reply With Quote
  #65  
Old 05-17-2006, 01:56 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alan @ CIT
Ahh, I see. It currently only has support for the Thread Tools menu, and the Inline Moderation dropdown. I'll see about adding support for other options in a future version.

Glad to see you've got it working though

Thanks,
Alan.
Is it ok to add that code then?
Reply With Quote
  #66  
Old 05-17-2006, 01:58 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Acers
thats it.. no i am using the edit post method. the post i wanna delete.. click edit(opens the quick reply ajax based editor) then click delete)(soft delete) and it fails this way.

Attachment 47668


anyway the fix is to add this plugin also
(tested and working)

in hook location: editpost_delete_complete
add
PHP Code:
if ($_POST['do'] == 'deletepost')
{
$vbulletin->input->clean_array_gpc('p', array(
'reason' => TYPE_STR
));
 
// Fetch posts
$post $db->query_first("
SELECT post.postid, post.threadid, post.parentid, post.visible, post.title,
thread.forumid, thread.title AS thread_title, thread.postuserid, thread.firstpostid, thread.visible AS thread_visible
FROM " 
TABLE_PREFIX "post AS post
LEFT JOIN " 
TABLE_PREFIX "thread AS thread USING (threadid)
WHERE postid = 
$postid
"
);
 
 
include_once(
DIR '/includes/class_autopm_checker.php');
include_once(
DIR '/includes/class_autopm_parser.php');
include_once(
DIR '/includes/functions_autopm.php');
 
mod_autopm($postid'delete''post'$post['threadid'], 0$vbulletin->GPC['reason']);
 

Does this cover both hard-delete and soft-delete?
Reply With Quote
  #67  
Old 05-17-2006, 03:08 PM
Acers's Avatar
Acers Acers is offline
 
Join Date: Feb 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its covering only soft delete as of now.. thats cos i added it to delete_complete hook

you can add to editpost_delete_start
to cover for hard deletes also but then add the can_moderate checks also as it might..(i use the word might) happen that the pm might be sent when the actual deletion errors out due to say a permission prob.. highly unlikely but well on my board i give only soft delete permissions so i didn't take the chance.

but yeah inserting above code to editpost_delete_start should cover for both the soft and hard deletes
Reply With Quote
  #68  
Old 05-17-2006, 03:18 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Acers
its covering only soft delete as of now.. thats cos i added it to delete_complete hook

you can add to editpost_delete_start
to cover for hard deletes also but then add the can_moderate checks also as it might..(i use the word might) happen that the pm might be sent when the actual deletion errors out due to say a permission prob.. highly unlikely but well on my board i give only soft delete permissions so i didn't take the chance.

but yeah inserting above code to editpost_delete_start should cover for both the soft and hard deletes
I'll stick with the way you are doing it then. I only want Admins to be able to hard delete on my site anyway, so we should be all set with your code. And thank you for posting it, sir.

Not to sound ignorant here, but how do I set it so only Admins can hard-delete posts and threads? I don't think I've ever bothered with that before, to tell you the truth, or I don't remember dealing with it, anyway.
Reply With Quote
  #69  
Old 05-17-2006, 03:35 PM
Acers's Avatar
Acers Acers is offline
 
Join Date: Feb 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

forum manager->add moderator->see the screen
Attachment 47681
Reply With Quote
  #70  
Old 05-17-2006, 03:43 PM
Gaskell's Avatar
Gaskell Gaskell is offline
 
Join Date: Sep 2004
Location: Land of the Prince Bishop
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I like the look of this mod and will have a play around with it

Use it alongside vBPunch for quick warnings on things that dont need an edit (or whatever) and it will make moderating canny easy

Cheers.
Reply With Quote
  #71  
Old 05-17-2006, 03:46 PM
Noonster Noonster is offline
 
Join Date: Jun 2005
Location: East Yorkshire, UK
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This doesnt work with the following hack
- "Adv. Editing Options for Mods and Admins"

Reply With Quote
Reply

Thread Tools

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 01:17 AM.


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.05512 seconds
  • Memory Usage 2,321KB
  • 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
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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