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.
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'], true, true, true);
// 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.
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'], true, true, true);
// 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....