vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Moderators Functions - Moderation Auto-PM v2.0.1 (https://vborg.vbsupport.ru/showthread.php?t=115677)

Boofo 05-17-2006 01:44 PM

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

Alan @ CIT 05-17-2006 01:49 PM

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 :D

Thanks,
Alan.

Boofo 05-17-2006 01:55 PM

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 :D

Thanks,
Alan.

I would appreciate it, sir. ;)

Thank you. ;)

Boofo 05-17-2006 01:56 PM

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?

Boofo 05-17-2006 01:58 PM

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?

Acers 05-17-2006 03:08 PM

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 :)

Boofo 05-17-2006 03:18 PM

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.

Acers 05-17-2006 03:35 PM

forum manager->add moderator->see the screen ;)
Attachment 47681

Gaskell 05-17-2006 03:43 PM

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.

Noonster 05-17-2006 03:46 PM

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

:(


All times are GMT. The time now is 01:10 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01290 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete