Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Userlog on profile - Display namechanges,bans and email changes Details »»
Userlog on profile - Display namechanges,bans and email changes
Version: 1.2, by zappsan zappsan is offline
Developer Last Online: Jul 2016 Show Printable Version Email this Page

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.

Comments
  #52  
Old 01-12-2009, 01:44 PM
zappsan's Avatar
zappsan zappsan is offline
 
Join Date: Sep 2004
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #53  
Old 01-12-2009, 07:32 PM
Megatr0n Megatr0n is offline
 
Join Date: Jul 2007
Posts: 455
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zappsan View Post
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.
Will the original version work with 3.8?
Reply With Quote
  #54  
Old 01-12-2009, 07:45 PM
Hannan Hannan is offline
 
Join Date: Jan 2008
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zappsan View Post
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.
Thanks, I've waiting for the new version!
Reply With Quote
  #55  
Old 01-12-2009, 09:29 PM
HaS?R HaS?R is offline
 
Join Date: Nov 2008
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks.
Reply With Quote
  #56  
Old 02-04-2009, 04:27 PM
gtcompscientist gtcompscientist is offline
 
Join Date: Mar 2008
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That last bit fixed it for me!

INSTALLED!
Reply With Quote
  #57  
Old 02-04-2009, 04:43 PM
gtcompscientist gtcompscientist is offline
 
Join Date: Mar 2008
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

This code does that.

Find:
PHP Code:
$match=count(array_intersect($membergroup$banlogpermissions)); 
Add below:
PHP Code:
$banCount=0
Find:
PHP Code:
$banlog.='<li><span class="shade">'.$changetime.':</span> Banned</li>'
Add below:
PHP Code:
$banCount=$banCount+1
Find:
PHP Code:
$this->block_data['baninfo'] ="$banlog"
Replace with:
PHP Code:
$this->block_data['baninfo']="Banned a total of: $banCount Times<br/><br/>$banlog"
Works great on mine... first user I tested had been banned 41 times! :up::up:
Reply With Quote
  #58  
Old 02-16-2009, 10:55 PM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WishLine View Post
You don't know whether there is a product that does something similar for 3.6, is there?
Hi This hack might work for you https://vborg.vbsupport.ru/showthrea...sername+change

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?

Thanks!
Reply With Quote
  #59  
Old 12-28-2009, 09:56 PM
MonkYZ MonkYZ is offline
 
Join Date: Jul 2008
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excelent mod ! 10 out of 10 !

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.

Thank you in advance and keep up the good work !
Reply With Quote
  #60  
Old 06-15-2011, 02:58 PM
MonkYZ MonkYZ is offline
 
Join Date: Jul 2008
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this be updated for vB 4.x?
Reply With Quote
  #61  
Old 07-26-2011, 12:43 PM
TAIFUN_T's Avatar
TAIFUN_T TAIFUN_T is offline
 
Join Date: Apr 2009
Location: Ukraine
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why two identical phrases?

Code:
<phrase name="setting_ulog_namechanelogpermissions_title" date="1208816052" username="Virtual Headache" version="1.1"><![CDATA[Namechangelog Usergroup Permissions]]></phrase>
Code:
phrase name="setting_ulog_namechangelogpermissions_title" date="1208871522" username="Virtual Headache" version="1.1"><![CDATA[Namechangelog Usergroup Permissions]]></phrase>
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 09:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05408 seconds
  • Memory Usage 2,333KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (12)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete