Version: 1.2, by zappsan
Developer Last Online: Jul 2016
Category: Profile Enhancements -
Version: 3.7.0
Rating:
Released: 04-18-2008
Last Update: 06-20-2008
Installs: 131
Uses Plugins
No support by the author.
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
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
From what I know, using vB's functions should help.
Look for this:
PHP Code:
while ($userlogs=mysql_fetch_array($userlogentries))
and replace it with
PHP Code:
while ($userlogs=$this->registry->db->fetch_array($userlogentries))
Unfortuneately I couldn't test it.
Sorry for the lack of updates, I actually started working on a newer version a long time ago but ran into a problem which I couldn't solve. I'm gonna ask for help on this so there will hopefully be an update soon.
From what I know, using vB's functions should help.
Look for this:
PHP Code:
while ($userlogs=mysql_fetch_array($userlogentries))
and replace it with
PHP Code:
while ($userlogs=$this->registry->db->fetch_array($userlogentries))
Unfortuneately I couldn't test it.
Sorry for the lack of updates, I actually started working on a newer version a long time ago but ran into a problem which I couldn't solve. I'm gonna ask for help on this so there will hopefully be an update soon.
From what I know, using vB's functions should help.
Look for this:
PHP Code:
while ($userlogs=mysql_fetch_array($userlogentries))
and replace it with
PHP Code:
while ($userlogs=$this->registry->db->fetch_array($userlogentries))
Unfortuneately I couldn't test it.
Sorry for the lack of updates, I actually started working on a newer version a long time ago but ran into a problem which I couldn't solve. I'm gonna ask for help on this so there will hopefully be an update soon.
I did make one quick change. On our site, banning is kind of an honor... unless it's permanent. As such, the pages get BIG, but all people want to know is how many times somebody has been banned.
It's 3.5 but I *think* I was running it on 3.6. There's an addon that displays results on the profile.
In a corollary to that...does anyone know of a way to show the previous usernames in a tooltip on the postbit (when you hovered on the username) like the above linked hack did?
By the way, is there a chance for the old username to be showed in user postbit ? Or somewhere more visible than User Public Profile - User Log ? It would be great if that would be possible.