Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Userlog on profile - Display namechanges,bans and email changes Details »
Userlog on profile - Display namechanges,bans and email changes
Mod Version: 1.2, by zappsan (Member) zappsan is offline
Developer Last Online: Jul 2016 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.0 Rating: (4 votes - 4.50 average) Installs: 129
Released: 19 Apr 2008 Last Update: 21 Jun 2008 Downloads: 595
Not Supported Uses Plugins  

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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	userlog.png
Views:	735
Size:	7.6 KB
ID:	82730   Click image for larger version

Name:	userlog_on_profile_acp.png
Views:	243
Size:	35.2 KB
ID:	82731  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #16  
Old 23 Apr 2008, 09:41
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
yeah great update! Thanks alot.
Reply With Quote
  #17  
Old 29 Apr 2008, 20:57
Noonster's Avatar
Noonster Noonster is offline
 
Join Date: Jun 2005
Does not seem to be showing on 3.7.0 Gold??
Reply With Quote
  #18  
Old 29 Apr 2008, 21:47
zappsan's Avatar
zappsan zappsan is offline
 
Join Date: Sep 2004
Really? I didn't try it out on gold yet. I'm gonna do tomorrow.
Be aware that the tab won't be displayed, if the user hasn't been banned or didn't have any name changes before. Also make sure you allowed the right usergroups to view it.
__________________
-zappsan/Virtual Headache

PIForums
Reply With Quote
  #19  
Old 29 Apr 2008, 22:31
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Can the email change with date and time be added to this? Currently I use the Save User's Email Address hack that I made, but it would be great to incorporate that into this.
Reply With Quote
  #20  
Old 30 Apr 2008, 00:16
ecihanuysal's Avatar
ecihanuysal ecihanuysal is offline
 
Join Date: Apr 2008
well, i installed this but how can i remove or delete the logs from the user's profile page??
Reply With Quote
  #21  
Old 30 Apr 2008, 00:54
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Real name: J
Very nice , thanks
__________________
Thanks for your help

J
Reply With Quote
  #22  
Old 30 Apr 2008, 00:55
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Real name: J
Originally Posted by Noonster View Post
Does not seem to be showing on 3.7.0 Gold??
I found it at the end of someone's profile you will see >> and a drop down appears on mine with the info in there

It only show's if a username has been altered so will not show on all profiles
Attached Images
File Type: jpg screenie.jpg (29.4 KB, 39 views)
__________________
Thanks for your help

J

Last edited by Bounce; 30 Apr 2008 at 01:08. Reason: added a screenshot
Reply With Quote
  #23  
Old 30 Apr 2008, 02:11
nexialys
Guest
 
good idea for a block ... i was to write my own this week-end, so you make me a gift here.. lol

though, i will suggest that instead of multiple queries you simply use one that read the whole table for that user, and cache the results sorted by fieldname AND dateline, so you just have to use the fieldname you want...

you could even add the same elements listed when you read the editlog in the admincp... i'm going to do that myself, because most of my staff prefer to read these infos in the profile because they can't read the editlog...
Reply With Quote
  #24  
Old 19 May 2008, 00:11
zappsan's Avatar
zappsan zappsan is offline
 
Join Date: Sep 2004
Originally Posted by Boofo View Post
Can the email change with date and time be added to this? Currently I use the Save User's Email Address hack that I made, but it would be great to incorporate that into this.
Email changes get lgged too? I'll take a look at it.
Originally Posted by ecihanuysal View Post
well, i installed this but how can i remove or delete the logs from the user's profile page??
Well, it's same info which is displayed in the adminCP, I didn't see an option to delete logs there though.
Originally Posted by nexialys View Post
good idea for a block ... i was to write my own this week-end, so you make me a gift here.. lol

though, i will suggest that instead of multiple queries you simply use one that read the whole table for that user, and cache the results sorted by fieldname AND dateline, so you just have to use the fieldname you want...

you could even add the same elements listed when you read the editlog in the admincp... i'm going to do that myself, because most of my staff prefer to read these infos in the profile because they can't read the editlog...
I'll try to work out the query thing, I still need to gain more experience at this kind of stuff
__________________
-zappsan/Virtual Headache

PIForums
Reply With Quote
  #25  
Old 21 May 2008, 11:04
Majest Majest is offline
 
Join Date: Apr 2006
Makes life much easier, thank you very much.
Reply With Quote
  #26  
Old 01 Jun 2008, 03:17
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Thanks. Nice hack.

Some comments:

Instead of
$userid=intval($_GET[u]);
You should use:
$userid = $this->profile->userinfo['userid'];

========

Instead of
mysql_fetch_array(
you should use
$db->fetch_array(


========


Instead of
$vbulletin->db->
you should use
$this->registry->db->

anything $vbulletin-> could be accomplished with $this->registry
and you eliminate the use of a global variable and instead use the encapsulated class reference

========

The template is not cached. That is an additional query in all profiles. Add a pluging for 'cache_templates' with this code:


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

__________________
Try MySmilies Mod - User-based, custom smilies for each user

CemZoo.com - Anime Community
CemZoo Forums - Anime Forums

Last edited by Kentaurus; 01 Jun 2008 at 03:34.
Reply With Quote
  #27  
Old 01 Jun 2008, 04:21
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Is this hack even still being supported?
Reply With Quote
  #28  
Old 02 Jun 2008, 10:01
zappsan's Avatar
zappsan zappsan is offline
 
Join Date: Sep 2004
I'm sorry I've currently got too many problems so I can't work on this for a while. I'll try to add Kentauros suggestions as soon as possible (thanks for the tips).
__________________
-zappsan/Virtual Headache

PIForums
Reply With Quote
  #29  
Old 02 Jun 2008, 10:19
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Just an update on the progress once in a while is all that is needed.
Reply With Quote
  #30  
Old 02 Jun 2008, 13:01
J105C J105C is offline
 
Join Date: Mar 2008
This does not work or appear just recently. It wont' show up on my froums anymore.

I am running vb 3.7.1 here and added all my usergroups to view namechanges/bans :O

edit: Nevermind it is working now. It just didn't show all the previous information from my db before I imported it.

Is there any way to restore the ban/name change info from a pervious db of vB w/ the same users?

Last edited by J105C; 02 Jun 2008 at 13:16.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 04:14.

Layout Options | Width: Wide Color: