vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=318139

Automated Post Reporter
by MarkFL
07 Apr 2015 04:46

4 Attachment(s)
This mod will automatically generate a report thread when a new user posts a reply to a thread that has been inactive for a time (necro-posting) and/or has included certain words in the content of their post (and signature if you want). This includes the case where the new user edits an existing post they have made to add such words.

In the included screenshots, you can see the options provided via the AdminCP to configure the product to suit your needs, the default message shown to new users upon editing a post to add flagged words, an example of a thread as listed in the designated report forum, and the body of the generated report.

I want to give a profound word of thanks to BirdOfPrey5 because it was the study of his XML files and the fact that he allows his code to be reused that allowed me to be able to package my products. :up::cool:

Updated version 1.1:
  • User is allowed to chose excluded usergroup(s) from list of available groups
  • User is allowed to chose destination forum for generated reports from list of available forums
  • User is allowed to opt out of generating reports (moderate posts only)
  • Bug fixed where user editing existing post to include flagged words was shown moderation queue message even when posts were not moderated

Updated version 1.2
  • Excluded usergroup selection is 2 columns to save space
  • Added the option to exclude users by username
  • New users may now be blocked from creating/editing signatures containing flagged words
  • Customize the error message shown to such users
  • Destination forum for generated reports is also a 2 column format
  • if no destination forum is selected when saving the settings the first time, the forum used for user-reported posts is auto-selected
  • Bug fixed with regards to the first post of a thread being put into the moderation queue and user post counts

Updated version 1.2a
  • Resolved conflict with "Automatic Tagger From Message Content and Title"

Updated version 1.2.1
  • Include new user's IP address in report post, with link to resolve IP
  • Report which flagged word(s) were found in post content and/or signature

Updated version 2.0
  • Added the option whether to exclude users by postcount
  • Allow standard wildcards in flagged word definitions
  • Allow product to either act globally or in select forums

Updated version 2.1
  • Added the option whether to include posts/signature in report whether flagged or not.

Updated version 2.2
  • Allowed domains: sites to which links are allowed.
  • Quoted content (as long as it has not been altered) is exempt from being checked for flagged words.
  • When a new user's post goes into moderation, they are shown a static error message, rather than vBulletin's fleeting message new users often fail to be able to read/understand.

Updated version 2.2a
  • Found and fixed a syntactical error preventing selected forums setting from working correctly.

Updated version 2.3
  • Will now auto-add the unresolved report thread prefix when creating the report if "Report Thread Prefix Management" is installed and active.

Updated version 2.3.5
  • Data-type for destination forum fixed to positive integer.

Updated version 2.4
  • Fixed broken link to post when the reported post is the first in a thread.

Updated version 2.5
  • Replaced usergroup and forum selection settings with select elements.
  • Added the option to decide whether to display the product's moderation queue message or to use vBulletin's default message and redirect.
  • If your automated reports go to the same forum as user reported posts, then any subsequent user reports will be appended to the thread generated by this product.

Installation:

Download and extract the attached zip file, then upload the contents of the "upload" folder to your forum's root directory.

In AdminCP go to Plugins & Products -> Manage Products -> Add/Import Product.

Click on "Choose File" and browse to the product xml file that was included in the .zip file.

Click "Import"

You MUST enable the product by going to:

AdminCP -> Options -> MarkFL: Automated Post Reporter v1.1

And clicking "Yes" for "Reporting System Enabled?"

Support for this product can be found here:

MarkFL 07 Apr 2015 05:13

Reserved.

hoangserip 07 Apr 2015 20:35

thanks for the great hack,
I will test now!

v123shine 08 Apr 2015 08:40

Very nice plugin, many thanks dude ;)

Alan_SP 08 Apr 2015 18:54

This looks very useful. :up:

MarkFL 09 Apr 2015 13:07

I've just released a new version, as described above.

To upgrade, download and extract the attached zip file and upload the contents of the "upload" folder to your forum root, as the included php file has been modified.

In AdminCP go to Plugins & Products -> Manage Products -> Add/Import Product.

Click on "Choose File" and browse to the product xml file that was included in the .zip file.

Set "Allow Overwrite" to "Yes."

Click "Import"

You MUST enable the product by going to:

AdminCP -> Options -> MarkFL: Automated Post Reporter v1.1

And clicking "Yes" for "Reporting System Enabled?"

MarkFL 14 Apr 2015 04:53

I've just added some more options and fixed another bug. If installing for the first time, follow the instructions in the product post, or if upgrading follow the instructions in the preceding post for v1.2.

Skyrider 14 Apr 2015 15:53

I received this today:

Quote:

Fatal error: Cannot redeclare contains() in /home/xx/forums.xx.com/includes/functions_autotaggerfromcontentandtitle.php on line 64
When I attempted to make a new thread that got flagged by this system. I get this every time I make a new thread, even when the flagged words are not in them.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Is line 64.

Awesome system though! I do would like to make a suggestion that it shows in the report "which" flagged word triggered the report. Maybe displaying IP as well in the reported posts?

ForceHSS 14 Apr 2015 16:15

Quote:

Originally Posted by Skyrider (Post 2543031)
I received this today:



When I attempted to make a new thread that got flagged by this system. I get this every time I make a new thread, even when the flagged words are not in them.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Is line 64.

Awesome system though! I do would like to make a suggestion that it shows in the report "which" flagged word triggered the report. Maybe displaying IP as well in the reported posts?

functions_autotaggerfromcontentandtitle.php is not a default vb file what custom plugin did you get this from

MarkFL 14 Apr 2015 16:36

Quote:

Originally Posted by Skyrider (Post 2543031)
I received this today:

Quote:

Fatal error: Cannot redeclare contains() in /home/xx/forums.xx.com/includes/functions_autotaggerfromcontentandtitle.php on line 64
When I attempted to make a new thread that got flagged by this system. I get this every time I make a new thread, even when the flagged words are not in them.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Is line 64.

What hack are you running that uses the cited custom PHP file? I will install it on my dev site and see if I can duplicate the issue and resolve it.

Quote:

Originally Posted by Skyrider (Post 2543031)
Awesome system though! I do would like to make a suggestion that it shows in the report "which" flagged word triggered the report. Maybe displaying IP as well in the reported posts?

I will include these in the next update. :D

Skyrider 14 Apr 2015 16:56

Argh, my bad. Was multi-tasking that I didn't even notice that the PHP files were completely different. Line 64 of functions_autotaggerfromcontentandtitle.php is:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

From this plugin:

http://www.vbulletin.org/forum/showthread.php?t=234026

Seems to be conflicting with your system.

MarkFL 14 Apr 2015 17:08

Quote:

Originally Posted by Skyrider (Post 2543035)
Argh, my bad. Was multi-tasking that I didn't even notice that the PHP files were completely different. Line 64 of functions_autotaggerfromcontentandtitle.php is:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

From this plugin:

http://www.vbulletin.org/forum/showthread.php?t=234026

Seems to be conflicting with your system.

Okay, my hack and the one you are using both declare a function of the same name. I have renamed the function in mine and this should resolve the issue.

Please download and install the current version (1.2a) and let me know if this fixes the issue on your end. :D

MarkFL 15 Apr 2015 07:29

Quote:

Originally Posted by Skyrider (Post 2543031)
...I do would like to make a suggestion that it shows in the report "which" flagged word triggered the report. Maybe displaying IP as well in the reported posts?

I have included these changes in the latest version 1.2.1. :cool:

Skyrider 15 Apr 2015 08:02

Awesome, thanks! The system works perfectly now, and I love that the words are included now. I do have a suggestion though if you don't mind. I noticed that the system is using the *.php file in order to make the full report, eg, what text is being used.

Is there a way that a template & Languages & Phrases can be used instead?

So the text itself (the whole report) can be adjusted to fit the forums without changing the php file(s).

And can the Postcount Threshold also be -1? (checking every single member, regardless of the postcount).

Again, thanks for this system. It's very useful.

---

EDIT:

Maybe exclude specific sections/sub-sections would be nice as well ^_^.

MarkFL 15 Apr 2015 08:32

Quote:

Originally Posted by Skyrider (Post 2543080)
Awesome, thanks! The system works perfectly now, and I love that the words are included now. I do have a suggestion though if you don't mind. I noticed that the system is using the *.php file in order to make the full report, eg, what text is being used.

Is there a way that a template & Languages & Phrases can be used instead?

So the text itself (the whole report) can be adjusted to fit the forums without changing the php file(s).

And can the Postcount Threshold also be -1? (checking every single member, regardless of the postcount).

Again, thanks for this system. It's very useful.

---

EDIT:

Maybe exclude specific sections/sub-sections would be nice as well ^_^.

I will look into all of these points very soon. I was actually already thinking of giving the option to choose "Active Forums." :D


All times are GMT. The time now is 01:31.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.