vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Username Management Addon - History in Profile (https://vborg.vbsupport.ru/showthread.php?t=101411)

biome.pat 08-27-2009 05:53 PM

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!

bada_bing 08-31-2009 02:20 PM

Quote:

Originally Posted by biome.pat (Post 1875409)
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....

MonkYZ 12-28-2009 09:40 PM

Is there any chance for this addon to be updated for 3.8.x ?

vithorius 09-27-2010 02:08 PM

Quote:

Originally Posted by MonkYZ (Post 1940912)
Is there any chance for this addon to be updated for 3.8.x ?

That would be TREMENDOUSLY GOOD NEWS! :up: :up:

KrisP 10-01-2010 04:54 PM

Quote:

Originally Posted by vithorius (Post 2103705)
That would be TREMENDOUSLY GOOD NEWS! :up: :up:

:up:

kiradotee 08-10-2011 06:43 AM

Will this work on 3.8.* ?


All times are GMT. The time now is 03:32 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.01847 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_php_printable
  • (3)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
  • (6)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