![]() |
Username Management - Control who can change Usernames plus history
<font size="4">Username Management - Version 1.04</font>
Hack: Username Management Version: v1.04 Author: MarcoH64 Description With this modification installed you can let your members change their own username, or let Staff members change the usernames of other members. Also a history of previously used names for a member is kept. Features - Users can change their own username controlled by Usergroup Permissions. If needed a time limit between changes can be set. - Staff can change the Username of other members. This is again controlled by Usergroup Permissions. - Previously used Usernames of a member can be viewed in posts, by hoovering over their Username. This is also controlled by Usergroup settings - Full searchable history of Username changes in AdminCP - Fully Phrased - Optimized for server performance - Documented API for addon developers Changelog 23-12-2005 v1.04 - Changed master="true" to false in cpnav file. - Fixed bug where history was generated when running Update User Names from Update Counters v1.03 - Changed the size of the 'mh_unm_changelimit' & 'mh_unm_changelimit' columns in the usergroup table from TINYINT to SMALLINT to support values > 255 23-11-2005 v1.02 (maintenance release) - Improved internal caching routines - Added internal routine for retrieving the latest changed usernames - Coders: Parameter value change for parameter '$overridelimit' in 'mh_unm_fetch_username_history' This release is needed if you want to use some fo the new Addon's!! Known issues: Coder documentation not complete, no examples are given, although the 2 released addon's can be used as examples. 22-11-2005 v1.01 - Fixed bug messing up Private Messages (thanks mini2) - Fixed bug in install routine that would create a wrong tablename if using table prefixes - Changed the internal caching routines - Added more parameters to mh_unm_fetch_username_history for more flexibility for Addon coders - Added extended information mode - Created first version of the Coders documentation Known issues: No example code for an Addon Plugin yet. 22-11-2005 v1.00 Initial release Upgrades Upload all files from 'upload' folder. Install the new product file, choosing an overwrite install. 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 |
If you are running version 1.00 and have problems viewing your Private Message, please apply the following fix (thanks to mini2 for pointing it out and providing the fix):
Goto AdminCP->Plugin System->Plugin Manager. Click on Edit behind plugin 'Add Username history to postbit(legacy)' In the Hook Location dropdown, change 'postbit_display_complete' to 'postbit_factory' (2 lines higher) and Save. All should be fixed now. Better is to upgrade to 1.01, all known problems have been fixed. |
Awesome.. This will certainly be useful for my future plans (premium users). :D
|
this hack rawks. And I got the second post. Yay!
Edit. Dangit I was too slow! :nervous: |
Quote:
|
Awesome. I am definitely going to install this hack for all my premium users too! :) Thanks.
One thing, do you think you can make a mini addon for Previous usernames too? That would be useful so users may notice the user's previous names anytime, just like this forum. http://forums.adventchildren.net/member.php?u=1 |
Help...My postbit_legacy
This seems to work even if you don't edit the postbit legacy. But... And I get this error also... PHP Code:
|
Quote:
PS That would basically just require you to create a new plugin with (almost) the same code as the Postbit plugin, and the same edits to the template. |
Quote:
Quote:
|
Quote:
It created the history table without the table prefix as well...thought you'd care to know.... But I installed it anyway and it seems to work fine now :) Thanks |
Quote:
Quote:
Quote:
|
Quote:
all your db variables that you need to write changes to the database were missing their "$" in front of it ie I changed: Code:
$vbulletin->db->query_write Code:
$vbulletin->$db->query_write |
Thank you sir.
|
Quote:
|
Quote:
|
Fix for the Private Message problem posted in Post #2. Thansk to mini2 for finding the problem and also providing a quick fix.
|
Quote:
Found something else... Fatal error: Call to a member function on a non-object in /public_html/forum/includes/class_dm_user.php(1719) : eval()'d code on line 5 when I tried editing via the profile link (changes it...no record to the database though) & when I made an edit to change it back from the AdminCP...same error a) the .com part isn't included...i'm no expert...so exuse my ignorance when I say "why?" :p b) class_dm_user.php wasn't in my install package |
Quote:
Are you using table prefix? |
New version 1.01 released:
22-11-2005 v1.01 - Fixed bug messing up Private Messages (thanks mini2) - Fixed bug in install routine that would create a wrong tablename if using table prefixes - Changed the internal caching routines - Added more parameters to mh_unm_fetch_username_history for more flexibility for Addon coders - Added extended information mode - Created first version of the Coders documentation Known issues: No example code for an Addon Plugin yet. |
Quote:
Doug |
thank you sir.
|
Quote:
Quote:
This hack can now easily be used in other places by Addon developers, just a few lines of coding in a plugin needed. |
So Is Everything Fixed in this hack now? Really want to install it.
|
Quote:
Thank you MarcoH64 Doug |
Quote:
|
I have an issue. After I installed this:
Whenever i try and add a new group or edit an existing group's properties it runs Rebuild Bitfields in a loop. Tell me that it has nothing to do with this hack so I can move on and explore other causes. |
What version of vB?
Sounds like the same as what Andreas hack was suffering from first. Do you have Signature Limits installed? Will do some testing. |
Just tested adding a new usergroup to my testboard, and i have no problems running a clean vB3.5.1 with version 1.01 of this hack.
PS Can you change the usergroups, if you disable the Product and temporary remove the ./includes/xml/bitfield_mh_unm.xml |
i love it ;] *installs*
|
Thanks, is there an option to display a page of who changed their names?
|
Hmm a recent changes list, sounds like a good idea. Expect an update tomorrow to make that possible. Where would you like to see that?
You can now only search in the AdminCP for names and see the list of changes. |
Quote:
|
Without th edited postbit all will still work, you just don't see history in postbit.
PS Try with a fresh style, or revert your postbit (will remove all modifications) so you can start fresh. |
Thanks Marco...
|
Wow Marco just what I've been looking for. Thank you a ton.
|
Quote:
If possible, i'd like this to be a seperate page. And is it also possible to allow certain people to change only one member (of their choice)'s username? |
Marco...
It was the signature limits thingy...lol. Funny thing is that it never reared it's head until i installed this..so i disabled it for now (The sig limits) until I can get it sorted. Thanks. |
I think Andreas already posted a fix in his hack thread.
|
Version 1.02 released:
23-11-2005 v1.02 (maintenance release) - Improved internal caching routines - Added internal routine for retrieving the latest changed usernames - Coders: Parameter value change for parameter '$overridelimit' in 'mh_unm_fetch_username_history' 2 new Addon's are released: Username Management Addon - History in Profile Username Management Addon - Latest Username Changes on Forum |
Clicks install.
|
All times are GMT. The time now is 06:32 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|