PDA

View Full Version : Profile Enhancements - Hide Expired and Reversed Infractions from the Infracted User


sockwater
08-05-2008, 10:00 PM
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. There are no settings or options. 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 (http://www.vbulletin.com/forum/showthread.php?t=280981).

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:

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
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
Installed.

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

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
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
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
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?