Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Username Management Addon - History in Profile Details »»
Username Management Addon - History in Profile
Version: 1.01, by Marco van Herwaarden Marco van Herwaarden is offline
Developer Last Online: Dec 2010 Show Printable Version Email this Page

Version: 3.5.1 Rating:
Released: 11-22-2005 Last Update: 11-23-2005 Installs: 73
Uses Plugins Template Edits
 
No support by the author.

Username Management Addon - History in Profile - Version 1.01

Hack: Username Management Addon - History in Profile
Version: v1.01
Author: MarcoH64

Addon to: Username Management (MarcoH64) minimum version 1.02 needed (https://vborg.vbsupport.ru/showthrea...hreadid=101326)

Description
If a member has changed his Username, the history of Usernames is shown in their Public Profile.

Features:
- List of previous Usernames in Public Profile
- Maximum number of previous names shown can be set with usergroup permissions (already set by the main hack)
- Permissions to view the history can be set per usergroup (already set by the main hack)

Upgrades
1.00->1.01 Import the new product file and choose to allow overwrite

Changelog
24-11-2005 v1.01 Mandatory update!!
- New templates where not included in the v1.00 product file, making the hack not to function. Fixed
23-11-2005 v1.00
- Initial release

Notes
Copyright ?2005 MarcoH64
This Modification may not be redistributed in whole or significant part or changed without prior agreement of author.
Please don't forget to click Install.
If you like this work and would like to support the author, donations are always welcome at Paypal: Marcoh64 AT gmail.com

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Guthatron

Comments
  #52  
Old 08-27-2009, 05:53 PM
biome.pat biome.pat is offline
 
Join Date: Aug 2008
Location: Toronto, ON, Canada
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got this working in 3.8.3:

After installing, create a new plugin:

Product: Username Management Addon - History in Profile
Hook location: member_profileblock_fetch_unwrapped
Title: Put username history in stats tabs
Plugin PHP:
PHP Code:
// Include the function library
require_once(DIR '/includes/functions_mh_unm.php');

// Retrieve the history, please note that if called multiple times, also info of other users might be returned
// New user request is added tointernal cache, and full cache is returned
$mh_unm_uph_hist mh_unm_fetch_username_history($userinfo['userid'], truetruetrue);

// Retrieve info about current member from the returned array
$user_hist $mh_unm_uph_hist[$userinfo['userid']];

// If we have found any history, process
if ($user_hist)
{
    
// Process each history row for this user
    
foreach ($user_hist AS $key=>$user_history)
    {
        eval(
'$mh_unm_uph_historybits .= "' fetch_template('mh_unm_uph_historybit') . '";');
    }
    
// Spit out the results
    
eval('$template_hook[profile_stats_pregeneral] .= "' fetch_template('mh_unm_uph_history') . '";');

Enable this and disable the plugin "Add Username History to Public Profile", since this replaces it. Username history will show up in the stats tab, and will still respect the "Can View Username Histroy" permission.

As far as I know, there's quite a bit of slowdown from the queries that make username history show up mouseover in a thread. If you want to just have it show up in the profile, just disable the plugin "Add Username history to postbit(legacy)" from the Username Management product.

Cheers!
Reply With Quote
  #53  
Old 08-31-2009, 02:20 PM
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
Location: Michigan
Posts: 1,698
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by biome.pat View Post
Got this working in 3.8.3:

After installing, create a new plugin:

Product: Username Management Addon - History in Profile
Hook location: member_profileblock_fetch_unwrapped
Title: Put username history in stats tabs
Plugin PHP:
PHP Code:
// Include the function library
require_once(DIR '/includes/functions_mh_unm.php');

// Retrieve the history, please note that if called multiple times, also info of other users might be returned
// New user request is added tointernal cache, and full cache is returned
$mh_unm_uph_hist mh_unm_fetch_username_history($userinfo['userid'], truetruetrue);

// Retrieve info about current member from the returned array
$user_hist $mh_unm_uph_hist[$userinfo['userid']];

// If we have found any history, process
if ($user_hist)
{
    
// Process each history row for this user
    
foreach ($user_hist AS $key=>$user_history)
    {
        eval(
'$mh_unm_uph_historybits .= "' fetch_template('mh_unm_uph_historybit') . '";');
    }
    
// Spit out the results
    
eval('$template_hook[profile_stats_pregeneral] .= "' fetch_template('mh_unm_uph_history') . '";');

Enable this and disable the plugin "Add Username History to Public Profile", since this replaces it. Username history will show up in the stats tab, and will still respect the "Can View Username Histroy" permission.

As far as I know, there's quite a bit of slowdown from the queries that make username history show up mouseover in a thread. If you want to just have it show up in the profile, just disable the plugin "Add Username history to postbit(legacy)" from the Username Management product.

Cheers!


I have just tried this and nothing shows up in the stats tab....
Reply With Quote
  #54  
Old 12-28-2009, 09:40 PM
MonkYZ MonkYZ is offline
 
Join Date: Jul 2008
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any chance for this addon to be updated for 3.8.x ?
Reply With Quote
  #55  
Old 09-27-2010, 02:08 PM
vithorius's Avatar
vithorius vithorius is offline
 
Join Date: Feb 2008
Location: Portugal
Posts: 347
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MonkYZ View Post
Is there any chance for this addon to be updated for 3.8.x ?
That would be TREMENDOUSLY GOOD NEWS! :up: :up:
Reply With Quote
  #56  
Old 10-01-2010, 04:54 PM
KrisP KrisP is offline
 
Join Date: Jun 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vithorius View Post
That would be TREMENDOUSLY GOOD NEWS! :up: :up:
:up:
Reply With Quote
  #57  
Old 08-10-2011, 06:43 AM
kiradotee's Avatar
kiradotee kiradotee is offline
 
Join Date: Jul 2011
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work on 3.8.* ?
Reply With Quote
Reply

Thread Tools

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 08:01 PM.


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.04696 seconds
  • Memory Usage 2,277KB
  • Queries Executed 21 (?)
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_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
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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