Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Show User History On Infraction Form And Postbits Details »»
Show User History On Infraction Form And Postbits
Version: 2.4, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Moderators Functions - Version: 4.2.x Rating:
Released: 05-10-2015 Last Update: 03-17-2016 Installs: 31
Uses Plugins Auto-Templates
Translations  
No support by the author.

This product will allow those with the ability to issue warnings/infractions to see a user's user notes and infraction history on the infraction form for easy reference. A new data block is displayed below the "User Infraction" block containg the user's relevant history.

On the forum I help administrate, we have devised a system where if a user breaks a forum rule for the first time, we simply send a friendly PM advisory of the rule rather than going to the infraction system. Many users, especially new users, are taken aback to receive a formal warning or infraction for breaking a rule they likely didn't realize is in place. Let's face it, the vast majority of users just don't read the rules.

So, when we see that a user has broken a rule, we need to check to see if a PM advisory has previously been sent, and we record this information in the usernotes. Then if we find that an advisory has been sent, we have to check that user's infraction history to see if they have been formally warned or given an infraction so that we know the most appropriate action to take for this new violation.

With this product, you can simply click the "Add Infraction" button on the postbit, and have all the needed history available on the generated form so that you can decide what action is most appropriate. If you find that no relevant usernote data exists, there is a button below the data block element that will take you to that user's usernote page.

I wish to extend a special thanks to BrettC Frontier for many great suggestions and error reporting that has really helped make this add-on much better.

Update: version 1.1
  • Option to display user history in postbits.
  • Option to set which usergroups will have their history displayed in postbits. Both data include links to the relevant pages.
  • Option to set which usergroups will see the user history in postbits.

Update: version 2.0
  • Shortened product title so it won't be truncated in AdminCP ► Plugins & Products ► Manage Products.
  • Fixed text color on usergroup checkbox elements in product settings to be dark.
  • If usernote title is empty, displays "N/A" within user history block on infraction form.
  • Fixed infraction reason to either use chosen or custom reason, whichever applies.
  • Infractions show date/time of expiry.
  • Infractions show link to post that caused warning/infraction to be issued, using thread title.
  • Infractions are shown in descending order, sorted by time issued.
  • Background color of user history block fixed to white.
  • If no "Administrative Note" is given for an infraction, then "N/A" is displayed.
  • Execution order of postbit plugin increased to help ensure it gets run.
  • Usernames of usernote authors and infraction issuers link to user profiles.

Update: version 2.1
  • Fixed bug regarding infraction not being associated with a post and causing and SQL
    error.
  • Changed usergroup selection from checkboxes to select elements.

Update: version 2.2
  • Added the display of active infraction points on infraction form.
  • Added the ability to customize the color of the active points based on value.

Update: version 2.3
  • Added the display of active infraction points on user postbits, where the number is colored as defined.

Update: version 2.4
  • Corrected typo preventing templates from being cached.


Installation:

Download and extract the attached .zip file.

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"

You MUST set your settings to enable the product.

Support for this product can be found here:

Download Now

File Type: zip MarkFL - Show User History v2.4.zip (6.2 KB, 72 views)

Screenshots

File Type: png userhistoryacp.png (64.0 KB, 0 views)
File Type: png userhistoryform.png (19.1 KB, 0 views)
File Type: png userhistorypostbit.png (4.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
BrettC Frontier, Elixar

Comments
  #52  
Old 08-20-2015, 01:58 AM
killah360z killah360z is offline
 
Join Date: Jul 2013
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fatal error: Call to a member function fetch_array() on a non-object in /usr/www/sghosting/public/forums/includes/class_postbit.php(345) : eval()'d code on line 296
Reply With Quote
  #53  
Old 08-20-2015, 02:07 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 killah360z View Post
Fatal error: Call to a member function fetch_array() on a non-object in /usr/www/sghosting/public/forums/includes/class_postbit.php(345) : eval()'d code on line 296
Strange...I'm not getting that error on either of my dev sites.

Try the following:

1.) Open the plugin titled "Usernote Information In Postbits"

2.) Locate the line:

PHP Code:
    $markfl_infraction_activepoints 0
3.) Directly below it, add:

PHP Code:
    global $db
4.) Let me know if that works.
Reply With Quote
  #54  
Old 08-20-2015, 04:39 AM
BrettC Frontier BrettC Frontier is offline
 
Join Date: Jun 2015
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm a bit confused why it's not showing up on postbits for me (namely postbit_legacy).

I can see it is hooked to postbit_display_complete, and it additionally has a hook set for postbit_userinfo_right_after_posts. However nothing appears to be showing, even after configuration settings were applied and enabled.

The only other plugin running is https://vborg.vbsupport.ru/showthread.php?t=227946 which has the same hook, with an exec order of 5 rather the setting that yours has of 20.
Reply With Quote
  #55  
Old 08-20-2015, 04:57 AM
killah360z killah360z is offline
 
Join Date: Jul 2013
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when giving an infraction

Code:
Database error in vBulletin 4.2.3:

Invalid SQL:

			SELECT thread.*
			FROM thread AS thread
			WHERE threadid =;

MySQL Error   : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3
Error Number  : 1064
Request Date  : Wednesday, August 19th 2015 @ 11:56:36 PM
Error Date    : Wednesday, August 19th 2015 @ 11:56:36 PM
Script        : http://silentgamerz.com/forums/infraction.php?do=report&p=456
Referrer      : http://silentgamerz.com/forums/threads/185-asd-tripped-AE-detector
IP Address    : 124.195.207.82
Username      : KillaHinstinct
Classname     : vB_Database
MySQL Version : 5.6.22
happens on v2.2 & 2.3

--------------------------------------------

nvm looks like it magically got fixed on its own ;d

--------------------------------------------

its back again
Reply With Quote
  #56  
Old 08-20-2015, 05:09 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 BrettC Frontier View Post
I'm a bit confused why it's not showing up on postbits for me (namely postbit_legacy).

I can see it is hooked to postbit_display_complete, and it additionally has a hook set for postbit_userinfo_right_after_posts. However nothing appears to be showing, even after configuration settings were applied and enabled.

The only other plugin running is https://vborg.vbsupport.ru/showthread.php?t=227946 which has the same hook, with an exec order of 5 rather the setting that yours has of 20.
I gave it a higher execution order so it would display the data below other postbit data that might be hooked there. I have a dozen or so add-ons hooked there, and no issues whatsoever on either of my 2 test sites.
Reply With Quote
  #57  
Old 08-20-2015, 05:19 AM
killah360z killah360z is offline
 
Join Date: Jul 2013
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
I gave it a higher execution order so it would display the data below other postbit data that might be hooked there. I have a dozen or so add-ons hooked there, and no issues whatsoever on either of my 2 test sites.
uh wait i was wrong it is back again weird ( happens randomly )
Reply With Quote
  #58  
Old 08-20-2015, 05:33 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 killah360z View Post
uh wait i was wrong it is back again weird ( happens randomly )
I just gave 4 infractions in a row on my dev site...everything works perfectly. 2 were profile infractions and 2 were on posts.

Exactly how are you giving the infractions?
Reply With Quote
  #59  
Old 08-20-2015, 05:50 AM
killah360z killah360z is offline
 
Join Date: Jul 2013
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
I just gave 4 infractions in a row on my dev site...everything works perfectly. 2 were profile infractions and 2 were on posts.

Exactly how are you giving the infractions?
by clicking the icon~

Reply With Quote
  #60  
Old 08-20-2015, 05:54 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And when do you get the error? I get no errors on my end, so I need to have detailed information about what is happening on your end if I am to be able to figure out what changes I have to make to accommodate your site/settings.
Reply With Quote
  #61  
Old 08-20-2015, 06:34 AM
killah360z killah360z is offline
 
Join Date: Jul 2013
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as i said the database error comes when i press the button like i'd be lead to
/infraction.php?do=report&p=456
also it is really weird how i am getting this error from just 1 user ( its my test account ) any posts made by the account gives off the db error every other post is fine o_O
Reply With Quote
Reply


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 12:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04915 seconds
  • Memory Usage 2,356KB
  • Queries Executed 26 (?)
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
  • (1)bbcode_code
  • (2)bbcode_php
  • (5)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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