vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Hide Expired and Reversed Infractions from the Infracted User (https://vborg.vbsupport.ru/showthread.php?t=187397)

sockwater 08-05-2008 10:00 PM

Hide Expired and Reversed Infractions from the Infracted User
 
This modification does just what it says. After an infraction has expired or has been reversed, it will no longer be shown to the user in their profile. It will still be shown if a moderator or administrator views the list. This helps users not feel like they have a permanent rap sheet hanging over their heads.

Installation: Import the XML file. [s]There are no settings or options[/s]. To disable the modification, disable or uninstall the product. Expired and reversed infractions are not deleted, they are only hidden from the end user.

Update: Version 1.2 addresses two problems. In addition to the profile, it now hides infractions in the User CP, and you can choose to hide only reversed infractions, only expired infractions, or both. There is now an option in the User Infraction Options group for this.

Enjoy!

Suggested here.

Changes
v1.1 - Fixed database error when a user has no infractions and there are other products adding tabs to the user profile. (Thanks hornstar1337)
v1.2 - Now works in the User CP and lets you choose which infractions to hide (expired, reversed, or both)

Forum Lover 08-06-2008 09:00 PM

Nice idea. Installed.

habbishfmforum 08-06-2008 09:58 PM

nice and lovely idea , installed!

Fusion 08-07-2008 06:16 AM

Great idea.sockwater!

Hornstar 08-07-2008 07:20 AM

perfect. very nice work!

Hornstar 08-07-2008 07:29 AM

Thought it was working well til I went to my profile:

Code:

Database error in vBulletin 3.7.2:

Invalid SQL:

                SELECT blogid, attach
                FROM vb3_blog AS blog
                WHERE blog.state IN('visible')
    AND blog.dateline <= 1218097598
    AND blog.pending = 0
    AND blog.userid = 1 AND infraction.action = 0
                ORDER BY blog.dateline DESC
                LIMIT 5;

MySQL Error  : Unknown column 'infraction.action' in 'where clause'
Error Number  : 1054
Request Date  : Thursday, August 7th 2008 @ 04:26:38 AM
Error Date    : Thursday, August 7th 2008 @ 04:26:38 AM
Script        : http://www.gamerzneeds.net/forums/member.php?action=getinfo&u=1
Referrer      : http://www.gamerzneeds.net/forums/index.php

Classname    : vB_Database
MySQL Version : 5.0.45-community

Disabled until it works.

sockwater 08-07-2008 01:03 PM

For the moment I'm tempted to say this mod simply isn't compatible with the Blogs addon. But there might be a way to work around this. Could you check and see if the Blog product uses any hooks that start with member_infraction* You can check by looking at the list of plugins.

htscpl 08-07-2008 01:13 PM

Nice idea, but I am going to hold off until you track down the Blog incapatiblity... still good work! :D

sockwater 08-07-2008 01:24 PM

I think I've isolated the problem and fixed it in v1.1. The conditions that caused the database error are if the user has no infractions and there is another product adding a tab to the profile page.

Now I just need someone who has the Blog installed to test and make sure it's working correctly. :)

Thanks hornstar1337 for finding & reporting this bug!

Julie 08-09-2008 12:03 PM

Installed, and working like a charm! Thanks! :)

Artes_Marciales 08-09-2008 12:28 PM

Great idea!!
**installed**

BoundNow 08-21-2008 06:13 AM

This does not seem to be working? I am using vb 3.7.2 pl2, From looking at the xml, could this be because i have vbseo rewriting the member page urls?

sockwater 08-21-2008 05:23 PM

Quote:

Originally Posted by BoundNow (Post 1603574)
This does not seem to be working? I am using vb 3.7.2 pl2, From looking at the xml, could this be because i have vbseo rewriting the member page urls?

What exactly is not working? Nothing shows up? Going to a second page of infractions? etc?

Lea Verou 09-09-2008 01:08 AM

Installed.

Bug: it doesn't hide reversed/expired infractions in the USERCP.
Suggestion: Option to control whether to hide expired, reversed or both.

Hornstar 11-07-2008 10:48 PM

Finally upgraded and enabled it again, looks to be working fine now.

BigSoccer Tech. 03-26-2009 03:13 PM

seems to still work on 38

BlueNinjaGo 03-26-2009 05:45 PM

Installed, and seems to work 100%

thanks

BigSoccer Tech. 03-27-2009 08:22 PM

Follow up question - what about doing the same thing on the USERCP?

sockwater 05-25-2009 03:46 PM

Quote:

Originally Posted by Michelle (Post 1617839)
Installed.

Bug: it doesn't hide reversed/expired infractions in the USERCP.
Suggestion: Option to control whether to hide expired, reversed or both.

Quote:

Originally Posted by BigSoccer Tech. (Post 1778534)
Follow up question - what about doing the same thing on the USERCP?

Both these issues are now addressed.

Hornstar 06-06-2009 11:27 PM

Thanks! Finally had a chance to update. This should be default IMO Thanks again.

sockwater 06-09-2009 03:38 AM

Quote:

Originally Posted by hornstar1337 (Post 1824835)
Thanks! Finally had a chance to update. This should be default IMO Thanks again.

Great! Glad it's working well for you.

Desesperao 09-30-2009 08:12 PM

Hi sockwater,

Thank you very much for this useful hack.

I have a problem and I wonder if you could help me. My users get angry every time they receive an infraction but for me it's a great tool because I can count the infractions and take measures if it's necessary.

Could be possible NOT to show any infraction to the users? (expired, not expired and reversed)

Thank's in advance.

BlessedFWI 10-15-2009 11:22 AM

Quote:

Originally Posted by Desesperao (Post 1893007)
Hi sockwater,

Thank you very much for this useful hack.

I have a problem and I wonder if you could help me. My users get angry every time they receive an infraction but for me it's a great tool because I can count the infractions and take measures if it's necessary.

Could be possible NOT to show any infraction to the users? (expired, not expired and reversed)

Thank's in advance.

I would very much like this myself. This is a very useful hack. I hope we can get it where it won't show any infraction to the users.

Thank you!

dangerine 11-28-2009 06:43 PM

Ditto. I'd like an option (or a hack to this hack) to not show ANY infractions to users, only to mods and admins.

Acido 05-19-2010 08:33 PM

any chance to port it to vb 4?

MoMan 05-21-2010 03:39 PM

Great mod. Installed!

Talaturen 12-02-2010 06:33 PM

Quote:

Originally Posted by Acido (Post 2040122)
any chance to port it to vb 4?

I have ported it to vBulletin 4, see:
https://vborg.vbsupport.ru/showthread.php?t=254572

chefy 03-30-2014 01:17 PM

How to make this mod to hide expired and reversed infractions not only to the infracted user but to all moderators seeing the infraction history of members?


All times are GMT. The time now is 06:05 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.02591 seconds
  • Memory Usage 1,769KB
  • 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (28)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete