![]() |
Userlog on profile - Display namechanges,bans and email changes
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
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 |
Thank you very much
|
sweet thanks!!
|
Sweet, i was actually looking for a mod like this :)
|
Very Nice!
I made a dutch version, hope you don't mint: |
Thanks, just wondering who will have permission to view the ban logs tho? can you set that for only staff?
|
Just what we need ..
thanks ,, Installed .. |
Quote:
Have been editing the plugin but I don't get it to work properly. |
Quote:
Quote:
Quote:
Currently, you need to edit the templates. You need to edit the memberinfo_block_userlog template. Find this: Code:
<if condition="$block_data[baninfo]!=''"> Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)"><if condition="$block_data[baninfo]!=''"> Be sure to replace the X.Y,Z in Code:
<if condition="is_member_of($bbuserinfo, X, Y, Z)"> |
I Already did that, but I want to totally hide the tab if the usergroup is wrong and not the content of the tab.
|
Quote:
|
That's what Zappsan did.
|
Thanks a lot.
|
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 |
Nice!
|
yeah great update! Thanks alot.
|
Does not seem to be showing on 3.7.0 Gold??
|
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. |
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.
|
well, i installed this but how can i remove or delete the logs from the user's profile page??
|
Very nice , thanks :up:
|
Quote:
It only show's if a username has been altered so will not show on all profiles |
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... |
Quote:
Quote:
Quote:
|
Makes life much easier, thank you very much.
|
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: Code:
if (THIS_SCRIPT == 'member') |
Is this hack even still being supported?
|
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).
|
Just an update on the progress once in a while is all that is needed. ;)
|
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? |
I just uploaded version 1.2 and hope everything is working fine.
[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 Kentaurus, I didn't add all of your suggestions, since some of them seemed to cause problems for me and I didn't have time to troubleshoot them. The templates are now being cached, thanks for the tip! Quote:
|
Does this add the date and time of the email changes also? And can it be set to be viewed by admins only?
|
Quote:
|
OK, thanks. I'll add the code on my end for the time then.
|
Nice Thank You:d
|
Nice mod, thank you, clicked installed. :)
|
Hello!
This Hack is what we need! *thumbup* Hm, is it possible to make the userlog searchable? |
that block didn't show up for me.
|
uninstalled
|
nice feature. thank you
|
All times are GMT. The time now is 11:13 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|