PDA

View Full Version : Username Management Addon - History in Profile


Marco van Herwaarden
11-22-2005, 10:00 PM
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/showthread.php?s=&threadid=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

nexialys
11-23-2005, 03:22 PM
good idea... have to choose who will have access to these stats...!!!
edit: yeah., i was talking to myself... lol

Marco van Herwaarden
11-23-2005, 03:47 PM
good idea...
Then you know where click ;)

akanevsky
11-23-2005, 03:51 PM
Could you mke this a stand-alone please?

Marco van Herwaarden
11-23-2005, 04:03 PM
Why do you wan this to be standalone? I can't think of any reason to do so.

Anyhow it uses the data that is collected on changing usernames in the main hack.

akanevsky
11-23-2005, 04:22 PM
Because it would be nice to have a public history of past usernames in every person's profile.

wacodep
11-23-2005, 06:40 PM
Got everthing else working (Username Management Addon 1.02, as well as the OTHER add-on (Latest Changes on Forum 1.00), but for some reason this one won't budge.

Permissions seem to be set fine (I can mouse-over a name in the postbit and see changed names, get the 'Change Username' and 'Edit Email, Password & Username' option, and I get old->new names in the other add-on).

I imported the product without any errors. It's enabled.

I edited MEMBERINFO correctly ($mh_unm_uph_history) and did so in all styles.

'Can View Username History' is set properly for the user that's trying to SEE the history in someone else's profile.

But the call to that routine does nothing (no info, but no error).

Vizionz
11-23-2005, 06:46 PM
since your doing hacks like this marco posssible to do one that keeps track of profile edits. and shows like latest people to edit there profile info in the user stat section at the bottom of the board. and a link in the profile that shows the last time they edited it

Marco van Herwaarden
11-23-2005, 08:40 PM
Got everthing else working (Username Management Addon 1.02, as well as the OTHER add-on (Latest Changes on Forum 1.00), but for some reason this one won't budge.

Permissions seem to be set fine (I can mouse-over a name in the postbit and see changed names, get the 'Change Username' and 'Edit Email, Password & Username' option, and I get old->new names in the other add-on).

I imported the product without any errors. It's enabled.

I edited MEMBERINFO correctly ($mh_unm_uph_history) and did so in all styles.

'Can View Username History' is set properly for the user that's trying to SEE the history in someone else's profile.

But the call to that routine does nothing (no info, but no error).
If you can't figure it out by tomorrow, PM me a link and an AdminCP account with access to styles and plugins.
since your doing hacks like this marco posssible to do one that keeps track of profile edits. and shows like latest people to edit there profile info in the user stat section at the bottom of the board. and a link in the profile that shows the last time they edited it
If i don't forget i will make one, it is not that hard.

Marco van Herwaarden
11-23-2005, 08:59 PM
Because it would be nice to have a public history of past usernames in every person's profile.
So then use the hacks. You can disable the other features by setting your USergroup permissions. Disable the postbit plugin, and also no hover over history will be shown. That would be exactly what you're asking.

Vizionz
11-23-2005, 09:01 PM
thanks in advance if you remember :P

WNxWakko
11-23-2005, 10:42 PM
Nevermind, I just realized this was an addon to something I didnt have.

WNxWakko
11-23-2005, 11:29 PM
Got everthing else working (Username Management Addon 1.02, as well as the OTHER add-on (Latest Changes on Forum 1.00), but for some reason this one won't budge.

Permissions seem to be set fine (I can mouse-over a name in the postbit and see changed names, get the 'Change Username' and 'Edit Email, Password & Username' option, and I get old->new names in the other add-on).

I imported the product without any errors. It's enabled.

I edited MEMBERINFO correctly ($mh_unm_uph_history) and did so in all styles.

'Can View Username History' is set properly for the user that's trying to SEE the history in someone else's profile.

But the call to that routine does nothing (no info, but no error).

Now that I have the correct extension installed, Ive installed this addon and I get the same problem. No info and no error in viewing a members profile.

COBRAws
11-24-2005, 03:00 AM
ive been doing this by hand and keeping a history in my staff forum lol

all heil marco!

rb290
11-24-2005, 03:05 AM
damn this doesnt work for 3.5.0 ?

Marco van Herwaarden
11-24-2005, 03:45 AM
Now that I have the correct extension installed, Ive installed this addon and I get the same problem. No info and no error in viewing a members profile.
If either of you 2 would want to work this out with me, drop me a pm with IM info.
damn this doesnt work for 3.5.0 ?
I really don't know, you will have to try it.

Marco van Herwaarden
11-24-2005, 06:51 AM
Version 1.01 released:
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

In the v1.00 product file the 2 new templates that are used by this hack where not included by mistake. :( The v1.00 should not be functioning for anyone, so i am a bit surprised that not more people have been complaining.

To upgrade, simply import the v1.01 product file, choosing an overwrite install.

PS I tested it on 3.5.0 and v1.01 works fine.

Boofo
11-24-2005, 06:55 AM
Is this set up to only show to Admins or Staff? And if not, can it be?

WNxWakko
11-24-2005, 06:58 AM
I got it fixed. I had the 1.0 version. Didnt notice you updated on the same day.

Marco van Herwaarden
11-24-2005, 07:21 AM
I got it fixed. I had the 1.0 version. Didnt notice you updated on the same day
Glad to see it is working for you now.

Is this set up to only show to Admins or Staff? And if not, can it be?**Sigh** people should learn to read (or am i so difficult to understand). A bit disappointed in you Beefy. ;) :D :D :D
Read:
Features:
- Permissions to view the history can be set per usergroup (already set by the main hack)

Boofo
11-24-2005, 07:48 AM
**Sigh** people should learn to read (or am i so difficult to understand). A bit disappointed in you Beefy. ;) :D :D :D
Read:

Oh, I saw that. I just hadn't talked to you in a while and thought I would jump in with something. ;)

Marco van Herwaarden
11-24-2005, 08:09 AM
Hehe, well in that case thanks for bumping the thread and nice talking to you again. ;)

Boofo
11-24-2005, 08:26 AM
Hehe, well in that case thanks for bumping the thread and nice talking to you again. ;)

hehe No problem. Glad I could be of service. ;)

Marco van Herwaarden
11-24-2005, 01:25 PM
since your doing hacks like this marco posssible to do one that keeps track of profile edits. and shows like latest people to edit there profile info in the user stat section at the bottom of the board. and a link in the profile that shows the last time they edited it
Just released: Userprofile Changed Date in Member Profile & recent changed on forumhome (https://vborg.vbsupport.ru/showthread.php?t=101462)

Snake
11-24-2005, 06:09 PM
I am having this error. Any idea?

Warning: Unknown(/home/amath/public_html/includes/functions_mh_unm.php): failed to open stream: No such file or directory in /member.php(652) : eval()'d code on line 26

Fatal error: (null)(): Failed opening required '/home/amath/public_html/includes/functions_mh_unm.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/amath/public_html/member.php(652) : eval()'d code on line 26

Marco van Herwaarden
11-24-2005, 08:31 PM
Did you install this hack: https://vborg.vbsupport.ru/showthread.php?s=&threadid=101326

This is an Addon to the above hack.
Addon to: Username Management (MarcoH64) minimum version 1.02 needed (https://vborg.vbsupport.ru/show...threadid=101326)

Snake
11-25-2005, 01:08 PM
Yes I did install that hack. I have re-checked everything including the template edits and I still have no idea why it's not working.

Snake
11-25-2005, 01:18 PM
Nevermind. It's working fine now. Thanks! :)

Marco van Herwaarden
11-25-2005, 01:25 PM
Nevermind. It's working fine now. Thanks!
Could you pelase tell how you fixed it? It might be usefull for others.

Snake
11-25-2005, 01:34 PM
The product was already disabled since yesterday because it kept causing that error so I have disabled it until I find a solution to fix it and here we go.

Marco van Herwaarden
11-25-2005, 01:51 PM
It is disabled, but working fine? I hope you don't mind, but you completly lost me now.

Your original error indicated that you where missing the functions_mh_unm.php in your includes directoy.

Snake
11-25-2005, 02:03 PM
lol No the product was disabled that is why it wasn't working. :D

Marco van Herwaarden
11-25-2005, 02:08 PM
So you enabled it, and it was working?

futureye
12-01-2005, 05:19 PM
Warning: Unknown(/home/00000/public_html/vb/includes/functions_mh_unm.php): failed to open stream: No such file or directory in /member.php(650) : eval()'d code on line 29

an error is comming
not working

Marco van Herwaarden
12-01-2005, 05:22 PM
Did you install the Username Management hack? (https://vborg.vbsupport.ru/showthread.php?s=&threadid=101326)

Snake
12-01-2005, 05:28 PM
So you enabled it, and it was working?

Yes, it was working.

Snake
06-12-2006, 09:25 AM
Macro this hack is great but could you make it to look like on this forum please?

http://forums.adventchildren.net/member.php?u=2109

I like the way how they have done it.

akanevsky
06-14-2006, 01:21 PM
Nooooooooooooo.... I don't like the design they have. IMO this hack is better than that one.

Snake
06-15-2006, 11:37 AM
You don't like that design but I do. :)

akanevsky
06-15-2006, 06:58 PM
It's not as clean as this one. I doubt many will share your liking :)

Snake
11-17-2006, 07:04 PM
Damn this is strange. I used to have this hack on my forums but when I re-installed it on my 3.6 board, it doesn't work anymore. Any idea? Could it be because it will never work on 3.6? It just doesn't show up the user's history in profile page.

Black Widow
02-12-2007, 06:08 PM
thanks.
installed.

PimvanJ
02-19-2007, 05:05 PM
Any ports for 3.6.4 in progress?

Snake
02-19-2007, 07:26 PM
Not really but it should work fine a bit on v3.6.4. Of course, a couple of bugs that you shall see for yourself.

manofphat
09-15-2007, 12:57 AM
Working in 3.6.7 PL1 for me.

Thanks! Installed!

Jubei
10-25-2007, 07:28 PM
How does one edit this so it only displays the Previous Username, and The Date (Just the date, no time).

Thanks!

Marco van Herwaarden
10-26-2007, 08:42 AM
This modification is using the standard 'logdateformat' setting in your vBulletin Options.

Ryloth
10-27-2007, 12:10 PM
so does this work on 3.6.4?

fuldon
01-18-2009, 12:11 PM
Please, upgrade this hack to 3.8.x vB.

bada_bing
08-06-2009, 07:22 PM
can someone update this to work with vb 3.8.3 please

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:

// 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!

bada_bing
08-31-2009, 02:20 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:

// 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....

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
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
That would be TREMENDOUSLY GOOD NEWS! :up: :up:

:up:

kiradotee
08-10-2011, 06:43 AM
Will this work on 3.8.* ?