vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Userlog on profile - Display namechanges,bans and email changes (https://vborg.vbsupport.ru/showthread.php?t=176655)

zappsan 04-18-2008 10:00 PM

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
  • 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 04-20-2008 03:28 AM

Thank you very much

bxbigt 04-20-2008 03:49 AM

sweet thanks!!

Magnumutz 04-20-2008 06:36 AM

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

M-Tuning 04-20-2008 07:49 AM

Very Nice!

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

Hornstar 04-20-2008 08:25 AM

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

DubaiHost 04-20-2008 09:11 AM

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

M-Tuning 04-20-2008 09:54 AM

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 04-20-2008 10:52 PM

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:


Code:

<if condition="$block_data[baninfo]!=''">
<fieldset class="statistics_group">

<legend>Bans</legend>

<ul class="list_no_decoration">
$block_data[baninfo]
</ul>
</fieldset>
</if>

and change it to

Code:

<if condition="is_member_of($bbuserinfo, X, Y, Z)"><if condition="$block_data[baninfo]!=''">
<fieldset class="statistics_group">

<legend>Bans</legend>

<ul class="list_no_decoration">
$block_data[baninfo]
</ul>
</fieldset>
</if>
<else />
Ban Logs are only visible for staff members.
</if>

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
Code:

<if condition="is_member_of($bbuserinfo, X, Y, Z)">
with the usergroup numbers which are allowed to see the logs.

M-Tuning 04-21-2008 06:07 AM

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


All times are GMT. The time now is 06:14 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
  • Page Generation 0.01336 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete