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)

mfyvie 05-23-2007 07:51 PM

Ok, I figured it out. I discovered that there was actually no plugin to handle the case where someone edits a thread thread via the Edit Thread option on the Thread Tools menu. Since I frequently change thread titles via this method (rather than from the forum view via AJAX) I was really missing these functions.

Therefore, effectively the following functionality was missing when using the edit thread option:

Title edit notification
Stick/Unstick notification
Open/Close notification

The attached plugin fixes these issues. It's tested on my setup only which is VB 3.6.7 PL1, using Auto-PM v2.0.1.

I'm sorry - I don't know very much about writing plugins, so I can't actually support this add-in. Hopefully it will be picked up by the author and included into the standard build. I'll send him an email to let him know.

Next I'm going to try and work on an integration between Auto-PM and the vbRecycle mod.

mfyvie 05-24-2007 04:55 PM

For those people running vBRecycle I've just released a bridge mod between vBRecycle and Moderation Auto-PM. It extends the functionality of Moderation Auto-PM to also generate PMs to users when the recycle function is used.

You can find this mod here.

Please note, this has nothing to do with the XML file attached to my previous post - the previous post concerns providing some functionality that was missing from the original file.

It would be good if the functionality in both of these modifications were rolled into an updated version of Moderation Auto-PM so that support for vBRecycle could be provided automatically.

Alan @ CIT 05-24-2007 07:25 PM

Hi Mfyvie,

Thanks for the additions / updates to this mod, I'm sure they'll come in very useful to others here :)

Unfortunately, I'm afraid that I cannot add them to the original mod. Along with not owning a vBulletin licence, I lost most of the code to my mods a while ago after a PC replacement. Also, I'm afraid that I cannot edit this mod post either (due to the lack of licence) so I cannot add your mods to the description either :(

However, as mentioned in this post, the offer still stands for someone to take over this mod :)

Thanks,
Alan.

mfyvie 05-24-2007 08:43 PM

Hi Alan,

Thanks stopping by! I must say this sounds like a great shame. I think you did a fantastic job with this mod, and it has made life on my board SO much better!

I guess there is some good news and some bad news. The good news is that since I already have the current version, it would be relatively easy for me to roll all my changes into it (including support for vBRecycle (if installed)) and to export it again as a new version. There is just a very small bug - but if you could give me some advice on it I'm sure it won't be a big issue.

As much as I'd love to take over your mod for you, I'm afraid I just don't have the technical skills (with VB and PHP in any case) to answer any requests for feature enhancements or support it properly. I just wouldn't be able to do it justice.

If we can figure out some other way to get the files updated (I PM'd one of the admins to ask for help), I'd be more than happy to repackage a new version though.

Regards,
Mark

Paul M 05-25-2007 11:15 AM

Quote:

Originally Posted by Alan @ CIT (Post 1253999)
I'm afraid that I cannot edit this mod post either (due to the lack of licence) so I cannot add your mods to the description either :(

Hmm, that's an oversight in the permissions. When we gave members of the coders group permission to reply in their own modifications (to continue supporting them) it should have included the ability to edit their replies as well, but it seems that got missed. Try now.

Gwendolin 05-27-2007 09:40 PM

I have a problem with exclude forums.

I changed in class_autopm_checker.php

var $exclude = false;
to
var $exclude = true;

Now in the excluded forums will don't send a pm if a thread is deleted, but if posts will deleted it sends a pm, it works just with threads.

Did I need to change more things?

zooro 05-28-2007 08:13 AM

Is it work with 3.6.7 ?

Niels84 05-31-2007 08:10 AM

Quote:

Originally Posted by zooro (Post 1256044)
Is it work with 3.6.7 ?

It seems to be working on 3.6.7 on my board. Nevertheless, for some mysterious reason, PMs are sent, but the pmtotal and pmunread counters aren't updated... Anyone knows how to solve this?

Makc666 05-31-2007 01:54 PM

Quote:

Originally Posted by Niels84 (Post 1258214)
It seems to be working on 3.6.7 on my board. Nevertheless, for some mysterious reason, PMs are sent, but the pmtotal and pmunread counters aren't updated... Anyone knows how to solve this?

[S]Those PMs are sent as a system one. In other words they have system flag. That is why they didn't not count.[/S]

Niels84 05-31-2007 02:04 PM

Quote:

Originally Posted by Makc666 (Post 1258360)
Those PMs are sent as a system one. In other words they have system flag. That is why they didn't not count.

Hi Maxim,

is there any way (in code) to alter the flag?

bc3tech 05-31-2007 02:53 PM

would like to see this implemented in a future release as well :)

Niels84 05-31-2007 03:53 PM

Quote:

Originally Posted by Makc666 (Post 1258360)
Those PMs are sent as a system one. In other words they have system flag. That is why they didn't not count.

Actually, after diving in to the code again, I'm unsure about the flag-thing. Code (in class_dm_pm.php gets executed until the counters need to be updated [which is the latest command when saving a PM]). The query is correct (I've been scanning all SQL queries), the code runs through that query, but the user record is not updated...
And that's really weird...

Makc666 05-31-2007 04:00 PM

Quote:

Originally Posted by Niels84 (Post 1258365)
Hi Maxim,

is there any way (in code) to alter the flag?

I will answer you tomorrow.
I made some test today, but I need more time and want home now :D

Makc666 06-01-2007 12:58 PM

Quote:

Originally Posted by Niels84 (Post 1258431)
Actually, after diving in to the code again, I'm unsure about the flag-thing. Code (in class_dm_pm.php gets executed until the counters need to be updated [which is the latest command when saving a PM]). The query is correct (I've been scanning all SQL queries), the code runs through that query, but the user record is not updated...
And that's really weird...

Yes. What I wrote is nonsense :(
There is no any flag.
I fully agree with you words.

There real thing is here:

When some one uses 'Advance Edit' to change my post a get a PM about that and "Private Messages: Unread 1, Total 1." are updated.

When some one uses 'Quick Edit' to change my post a get a PM about that but "Private Messages: Unread 0, Total 0." are not updated! :(
But! When I check ANY PM in my Inbox folder and for example use 'Mark as read', then "Private Messages: Unread 0, Total 1." get updated.

I am trying to look throw it.

Makc666 06-04-2007 06:47 AM

I get a good answer from vBulletin's support team.
Here it is:

When you make a "Quick Edit" only the changes of the post are updated at the server. Nothing changes with the user session because the page is not reloaded in the browser.

With the "Advanced Edit" there are several page loads. Each page load will update the user's session record.


That it.

Niels84 06-04-2007 10:04 AM

Hi Maxim,
thanks for looking into it. So I guess there's no way to update the counters when a moderator edits a post via the quick edit?

stinger2 07-13-2007 08:46 AM

can future versions have an option to exclude certain members from it...like exclude admin based on members ID?


All times are GMT. The time now is 12:53 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.01751 seconds
  • Memory Usage 1,765KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)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