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)

Alan @ CIT 05-16-2006 07:42 PM

It will still send them a PM telling them the thread was moved, but does not tell them where it was moved to.

The same applies if they cannot see the forum the thread was in (ie, you moved it to an admin area, and are moving it back to public), it will tell them the destination forum, but not the forum it was in (the admin one).

Thanks,
Alan.

Sidewindr 05-16-2006 11:15 PM

Thanks for the update, I have uploaded it and will test later today :D

Acers 05-17-2006 12:59 AM

Quote:

Originally Posted by Alan @ CIT
Yep, seems to work ok here.

Are you certain the forum you are deleting the thread in, isn't in the Exclude Forums list?

Also, does it do anything if you hard-delete the thread?

Thanks,
Alan.

hi..
well thread soft delete works fine

in the posts both the soft and physically remove are not working, all are set to yes in admincp options.
i have no forums in excluded forums list

thanks for support m8 btw.. good job
(using 1.01 version although vb is 3.5.2 so maybe that can be the issue if yours working)

Alan @ CIT 05-17-2006 06:46 AM

Hi Acers,

Hmm.. I'm at a bit of a loss I'm afraid. All seems to be working ok here.

How are you deleting the posts? Are you selecting them with the tickbox then using the inline moderation menu to delete them? Or some other way?

Also, if you get a chance, could you check your AdminCP -> Plugins for me please, and check that you have one called:

Mod Auto-PM :: Inline :: Post :: Delete

This should be using the hook inlinemod_start. Are there any other plugins listed that use that hook?

Thanks,
Alan.

Boofo 05-17-2006 08:13 AM

Alan, is there a way to includes all the setting under one main setting group. It would be easier than going to 4 different settings group to set this up. Maybe like a main setting group and 4 setting groups under that. ;)

And excellent job, by the way. ;)

Alan @ CIT 05-17-2006 08:15 AM

That's how it was originally, but as I added more and more settings, it became unmanagable :)

All settings are by default set to yes, and in theory you should only have to visit each setting once, and that's only if you want to set it to No, so it shouldn't be too bad :D

Boofo 05-17-2006 08:24 AM

Maybe having them set to No as default would be better in case someone installed this and didn't do the settings right off the bat. I know when I installed it I had like a zillion IM windows open (I use Trillian) and was working on adding forums and threads on the site all at the same time. ;)

Also, I use Andreas' auto-moderation hack for posts. Will this send notices for any posts that hack sends to moderation? I would like to have the option for that, if at all possible, unless it already does it. Then that would make this request kind a moot. ;)

Alan @ CIT 05-17-2006 09:59 AM

Quote:

Originally Posted by Boofo
Also, I use Andreas' auto-moderation hack for posts. Will this send notices for any posts that hack sends to moderation? I would like to have the option for that, if at all possible, unless it already does it. Then that would make this request kind a moot. ;)

Do you have a link to that hack?

Thanks,
Alan.

Acers 05-17-2006 01:04 PM

Quote:

How are you deleting the posts? Are you selecting them with the tickbox then using the inline moderation menu to delete them? Or some other way?
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']);



;)

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

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.


All times are GMT. The time now is 01:18 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.01203 seconds
  • Memory Usage 1,752KB
  • 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
  • (3)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