vBulletin Mods

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

Userlog on profile - Display namechanges,bans and email changes
by zappsan
19 Apr 2008 23:43

3 Attachment(s)
What does this do?

This hack will display changes which have been made to the user's account (currently bans, username changes and email changes) in an additional tab in the user profile. It should make it easier for users to keep track of changes applied to someone's account (especially name changes).

Instructions

Simply import the userlogs_on_profile product and you should be done.

Notes
  • The hack will add one new template (memberinfo_block_userlog)
  • For displaying the bans of someone, the hack will assume the usergroup for banned members is usergroup number 8 (default banned group on a fresh vB installation). If your banned group has a different ID, you can change it in the adminCP (Userlog on Profile Settings).
  • All changes made using vB 3.6 or any lower version won't be displayed, since the userlog feature was first introduced in 3.7
  • If there are no entries for someone, the tab won't be displayed on their profile.

Updates

[21/6/2008] Version 1.2:
-The hack now also displays email changes (can be turned off)
-The hack now uses only one query instead of 3
-Applied some of the suggestions from Kentauros in this post

[22/4/2008] Version 1.1:
Added AdminCP settings:
-Option to turn the namechangelog or banlog on/off
-Option to only allow certain usergroup to see the banlogs/namechangelogs
-Option to set the ID of the banned group

[20/4/2008] Version 1.0:
First release

Jasem 20 Apr 2008 05:28

Thank you very much

bxbigt 20 Apr 2008 05:49

sweet thanks!!

Magnumutz 20 Apr 2008 08:36

Sweet, i was actually looking for a mod like this :)

M-Tuning 20 Apr 2008 09:49

1 Attachment(s)
Very Nice!

I made a dutch version, hope you don't mint:

Hornstar 20 Apr 2008 10:25

Thanks, just wondering who will have permission to view the ban logs tho? can you set that for only staff?

DubaiHost 20 Apr 2008 11:11

Just what we need ..
thanks ,, Installed ..

M-Tuning 20 Apr 2008 11:54

Quote:

Originally Posted by hornstar1337 (Post 1495000)
Thanks, just wondering who will have permission to view the ban logs tho? can you set that for only staff?

Yes, i need that too.

Have been editing the plugin but I don't get it to work properly.

zappsan 21 Apr 2008 00:52

Quote:

Originally Posted by m-tuning (Post 1494983)
Very Nice!

I made a dutch version, hope you don't mint:

It's ok, I'm planning to phrase this hack and I'll make use of your Dutch version then :)
Quote:

Originally Posted by hornstar1337 (Post 1495000)
Thanks, just wondering who will have permission to view the ban logs tho? can you set that for only staff?

Quote:

Originally Posted by m-tuning (Post 1495048)
Yes, i need that too.

Have been editing the plugin but I don't get it to work properly.

There is no control to do this, but I'm probably going to add one.
Currently, you need to edit the templates.

You need to edit the memberinfo_block_userlog template.

Find this:



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

and change it to


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

This will display the message "Ban Logs are only visible for staff members." to all usergroups which can't see the logs, you can change it to whatever you want.
Be sure to replace the X.Y,Z in
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with the usergroup numbers which are allowed to see the logs.

M-Tuning 21 Apr 2008 08:07

I Already did that, but I want to totally hide the tab if the usergroup is wrong and not the content of the tab.

Hornstar 21 Apr 2008 08:32

Quote:

Originally Posted by m-tuning (Post 1495594)
I Already did that, but I want to totally hide the tab if the usergroup is wrong and not the content of the tab.

I'd prefer it to just show the username changes and not the ban log if the user is not a staff member.

M-Tuning 21 Apr 2008 10:54

That's what Zappsan did.

bilgicc 22 Apr 2008 06:06

Thanks a lot.

zappsan 22 Apr 2008 15:20

I just updated the hack to version 1.1
The template edits I posted before aren't necessary anymore.
You can now change the settings in the adminCP (see screenshot).

Version 1.1:
Added AdminCP settings:
-Option to turn the namechange log or banlog on/off
-Option to only allow certain usergroups to see the banlogs/namechange logs
-Option to set the ID of the banned group

M-Tuning 22 Apr 2008 16:00

Nice!


All times are GMT. The time now is 15:41.

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.