Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Discourage Report Abuse Details »»
Discourage Report Abuse
Version: 2.1, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 05-29-2015 Last Update: 04-28-2016 Installs: 15
DB Changes Uses Plugins Template Edits Auto-Templates
Additional Files Translations  
No support by the author.

Overview:

This product is designed to discourage abuse of the post/PM reporting system by alerting users (via the "Report Post" icon's tooltip) if they have already reported a post/PM and why they reported it. Each report reason is displayed on a separate line within the tooltip.

You may choose to allow users to report posts/PMs multiple times, or you can restrict multiple reporting to moderators and administrators only. Users who can only report the posts/PMs of others one time will find that the link to the report form for a post is void once they have reported that post. All users (unless restricted by userid as described below) will be able to report their own posts multiple times.

You may restrict certain "problem users" from reporting posts that have already been reported by them or anyone else or from reporting altogether. You may also choose to disable post reporting in selected forums, and to choose whether moderators/administrators are exempt from this restriction.

Updates:

Version 1.1:
  • Product can no longer be circumvented by manually calling the report script.
  • If the report thread has been given the [SOLVED] prefix (standard prefixid), then users who have reported the post are advised of this.

Version 1.2:
  • "Report Post" icon is red for posts the user has already reported.
  • Those who are not allowed to report the post again will see an alert if they click the icon, and those who are allowed are also alerted, but can proceed by clicking the "Ok" button, or return to the thread by clicking the "Cancel" button. Both alerts display the information shown in the "Report Post" icon's tooltip.

Version 1.3:
  • Bug fix: previously all users who posted in the report thread were told they had reported the post. Now only those who actually reported the post are told they have reported it.

Version 1.4:
  • Allows prefixid(s) used to mark report threads as resolved to be defined in the product settings.

Version 1.5:
  • Will now automatically check for the prefixid defined by my newly released "Report Thread Prefix Management" product if that is installed and active.

Version 1.6:
  • All moderators will see a "report thread" icon which serves as a link to the report thread. The status of the report thread is shown in the icon's tooltip.

Version 1.7:
  • You may now restrict users by usergroup to a certain number of reports per day. Upon installing or upgrading to this version, a new table is created in your database that serves as a log for reports made by users in the restricted group(s). This table is pruned daily to remove rows that are more than 24 hours old.

Version 1.7.1:
  • Check for user reporting eligibility done at thread level rather than post level for efficiency.

Version 1.8:
  • You may now choose to turn off post reporting altogether for selected forums.
  • You have the option whether to exempt moderators/administrators from this restriction.
  • Removed the need to make a manual template edit to your postbit template(s).

Version 2.0:
  • Several bug fixes.

Version 2.1:
  • Added support for the reporting of PMs.
  • Individual user restrictions are done by username rather than userid.
  • All messages to user now fully phrased.

Backup/Warning:

This product alters your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:

Download and extract the attached .zip file.

Upload the contents of the "upload" folder to your forum's root directory. If you store your button icons in a different location than "images/buttons", then upload the two image files to that folder instead.

Then follow:

AdminCP ► Plugins & Products ► Manage Products ► Add/Import Product

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

Click "Import"

If you have installed versions prior to v1.8 and have edited your postbit (either "postbit" or "postbit_legacy" depending on which you use) then please undo that edit by finding the code:

HTML Code:
					<vb:if condition="$show['reportlink']">
						&nbsp;
						<vb:if condition="$reported">
							<a class="reported" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:raw title}" onclick="<vb:if condition="!$report_again">alert(this.title); return false<vb:else />if (!confirm(this.title)){return false;}</vb:if>">
								&nbsp;
							</a>
						<vb:else />
							<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}">
								<!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> -->
								&nbsp;
							</a>
						</vb:if>
						&nbsp;
					</vb:if>
And restoring it to the original code:

HTML Code:
					<vb:if condition="$show['reportlink']">
						&nbsp;<a class="report" href="{vb:raw post.reportlink}" rel="nofollow" title="{vb:rawphrase report_bad_post}"><!-- <img src="{vb:stylevar imgdir_button}/report-40b.png" alt="{vb:rawphrase report_bad_post}" /> -->&nbsp;</a> &nbsp;
					</vb:if>
with:

You MUST set your settings to enable the mod. Each setting has an explanation of its use.



Support for this product can be found here:

Download Now

File Type: zip MarkFL - Discourage Report Abuse v2.1.zip (9.3 KB, 28 views)

Screenshots

File Type: png dra01.png (18.7 KB, 0 views)
File Type: png dra02.png (175.8 KB, 0 views)
File Type: png dra03.png (126.2 KB, 0 views)
File Type: jpg dra04.jpg (29.4 KB, 0 views)
File Type: jpg markfl_pdpr_acp.jpg (77.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
mansonklan

Comments
  #22  
Old 09-13-2015, 04:26 AM
RSprinkel RSprinkel is offline
 
Join Date: Mar 2014
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good Morning,

Just installed this mod as it looks like a great feature as well as your other mods I have installed. However when I do a test report of a post, and go back to it to check to see if the red Icon is showing and place mouse cursor over it to see if the message pops up, first off I don't see the red icon as it still appears to be black and no pop up box displays that it has already been reported. Also I noticed on that thread only at the top of the page I am getting this error message - Warning: mysql_num_rows() expects parameter 1 to be resource, object given in ..../includes/class_postbit.php(345) : eval()'d code on line 87

If I disable the mod and hit refresh on same thread that error message goes away.

Thanks for your help on resolving this issue in advance.
Reply With Quote
  #23  
Old 09-13-2015, 04:56 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RSprinkel View Post
Good Morning,

Just installed this mod as it looks like a great feature as well as your other mods I have installed. However when I do a test report of a post, and go back to it to check to see if the red Icon is showing and place mouse cursor over it to see if the message pops up, first off I don't see the red icon as it still appears to be black and no pop up box displays that it has already been reported. Also I noticed on that thread only at the top of the page I am getting this error message - Warning: mysql_num_rows() expects parameter 1 to be resource, object given in ..../includes/class_postbit.php(345) : eval()'d code on line 87

If I disable the mod and hit refresh on same thread that error message goes away.

Thanks for your help on resolving this issue in advance.
Hello,

For some reason it appears the db query has failed. What versions of PHP and MySQL are you using?
Reply With Quote
  #24  
Old 09-13-2015, 05:08 AM
RSprinkel RSprinkel is offline
 
Join Date: Mar 2014
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm well PHP is 5.3.3, not sure about mySQL version. As my site is being hosted on a friends server I went into phpmyadmin and clicked on Documentation and it took me to the MySQL 5.5 Reference Manual, so I am guessing it is 5.5
Reply With Quote
  #25  
Old 09-13-2015, 05:40 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm...it all sounds reasonably up to date. i have no idea why that method is not working for you. I have personally installed this on 4 different sites, and none had this problem.

If you want to PM admin login credentials to me, I would be glad to see if I can fix it.
Reply With Quote
  #26  
Old 09-13-2015, 10:23 AM
RSprinkel RSprinkel is offline
 
Join Date: Mar 2014
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks MarkFL. PM sent.

Actually my mySQL is 5.1.73 not 5.5. Sorry
Reply With Quote
  #27  
Old 12-26-2015, 08:27 PM
akz645 akz645 is offline
 
Join Date: Jul 2015
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Suggestions for this Mod:
- Exclude Usergroups From Reporting Posts Already Reported.
- Exclude Usergroups From Reporting At All.
- Users are Immune from having their posts be reported.
- Usergroups are Immune from having their posts be reported.
------------------------------------------------------------------------------------------------------------------------------------------------------

Suggestions for this Mod/another Mod:

Currently this is the default for 'User Infractions & Post Reporting Options' in vBulletin
If somebody reports a post, a thread is (automatically) created in X forum (multiple not allowed).
If somebody else reports the same post afterwards, then they will (automatically) create a post in the same thread the first reporter created.
The user who reported/or the userID selected from the settings will be shown as creating the thread/post.


Change these three settings:
- Change: 'User Infraction Discussion Forum' TO: Allow multiple forums to be selected.
- Change: 'Post Reporting Discussion Forum' TO: Allow multiple forums to be selected.
- - Change: 'Post Reporting User' TO: Allow the admin to select different userID per ForumID.
Example: [ForumIDs|UserID; ForumIDs|UserID ..etc ] [3,6,7|1; 4,8,12|2;]
Note: You don't have to edit these locations, if you just re-create these settings into the AdminCP for a Mod which overwrites vBulletin default settings.

Additional settings:
- Report Forum(s): Multiple ForumID selector
- - If users report in the forum ID you select in this setting, in the Report Forum(s) which you selected above, it (reports) will display this UserID instead.
Example: [ForumIDs|UserID; ForumIDs|UserID ..etc ] [3,6,7|1; 4,8,12|2;]
Note: This should overwrite the 'Post Reporting Discussion Forum' if the selected forum(s) overlap.
Note 2: This is different to this. Yes both of them create report forum destinations, but how/which userID are displayed is different.


- Allow the admin to select certain usergroups/users, those usergroups/users will have their post reports all go into X thread ID.
Example: [ThreadID|UsergroupIDs; ThreadID|UsergroupIDs etc...] [4|2; 8|6,4,3;]
AND [ThreadID|UserIDs; ThreadID|UserIDs etc...] [12|56; 13|62,14,23;]
Note: If a report is going into X threadID then it should should show the original userID creating the post (report).

- - Should a report be created in other places too? [Yes or No]
Note: If No selected, other report thread/posts will not be created in other destination forums (ignores settings above). Hence the reports from those usergroups/users will only be created inside the thread ID the admin chose above.
Reply With Quote
  #28  
Old 04-29-2016, 04:25 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update - Version 2.1:
  • Added support for the reporting of PMs.
  • Individual user restrictions are done by username rather than userid.
  • All messages to user now fully phrased.
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 07:56 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.04453 seconds
  • Memory Usage 2,328KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_html
  • (1)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
  • (2)pagenav_pagelink
  • (8)post_thanks_box
  • (1)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (6)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete