Version: 1.0.9, by King Kovifor
Developer Last Online: Aug 2015
Category: Administrative and Maintenance Tools -
Version: 3.6.8
Rating:
Released: 06-09-2007
Last Update: 04-25-2008
Installs: 411
DB Changes Uses Plugins Auto-Templates
Additional Files Translations
No support by the author.
Introduction
I was looking through the Modification Requests forum here and found a pretty good idea. The basic idea was to add a list of users who would like a name change for the administrators. I added the basics and released it. In consecutive versions I have added the abilities and features you have requested and this is the product. It is morphing into a more powerful, more useful system each and every version.
The Tools
User Tools
Inside the User Control Panel, there is an area that is added where a user is given the ability to submit a username that they would like their name changed to. They receive PM updates depending upon the "status" of their request, whether it is Accepted or Rejected.
Administrative Tools
As soon as a request is added to the database, the specified administrator is sent an e-mail saying that a user would like a username request. Inside the Administrators Control Panel, a new section is added under the "Users" navigation tab, that lists all the "Pending" requests with the ability to "Reject" or "Approve" the request. A user will be notified via PM when an action is taken. When a username is approved, the system will automatically change the username.
Username History
This tool will list all username changes that a user has requested. It will also display the status of the request, meaning that if you reject it, this will be displayed. This tool will be built upon in a later version.
Username History Changes:
In the next version, the status of a username change request has been revamped and no longer includes hard-coded "Accepted", "Rejected", and "Requested" status values. More information will be given at the release of v1.1.0!
Requirements
This hack has several requirements. They include:
vBulletin v3.6.6 or higher (This is the minimum version required for the next requirement)
The usercp_nav_bottom template hook.
To get around the second requirement, you can copy the cell manually or add $template_hook[usercp_navbar_bottom] at the end of the User Control Panel navigation.
Installation
Installing the product is easy. Just follow these steps:
Upload Files into your Administrators Control Panel directory.
Import the product through the Product Manager.
Click Install Here
Known Bugs:
No e-mail is sent out to users upon username change. Fix: The next version will include a fix that will respect all the users settings on receiving e-mail from administrators.
The setting for PM sender was ignored within the code and uses the userid of the administrator who changed the username through the administration back-end. Fix: In the next version, revamped settings and improved back-end will now properly use a setting similar to this.
Big Thanks!
I would like to give a big thanks to Paul M for helping me with my stupid mistakes in v1.0.4 - v1.0.6! Now all of my mistakes should be taken care of (unless I made a mistake in the disallowed if statement). Thanks Paul!
I would also like to say thanks to Marco for pointing out a possible SQL Injection that was in v1.0.4 - v1.0.6 (It was inside the ACP, and used a wrong variable name / clean type).
And to Dannyloski for fixing my modification on his forum and providing the fix here. Much faster than I did it.
Final Remarks
I hope that you will enjoy this product as much as I enjoyed making it.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I send a pm. Email nitifications are automatically sent.
Quote:
Administrator Notification
Please place the id of the user who you would like to receive notifications. PM Sender
What is the id of the user who you would like to "send the message".
Neither of these seem to work. I get no notification and the user who submitted gets a PM from me as opposed to the general account ... I am using 3.7.2 if that is any help
What error message do you receive? And I see no reason why the modification would not allow you to request a username if it isn't there. Has there been a name that was originally that?
When a User Asks for a New Username1 and I Approve it, and then Asks for a New Change to Username2, the Username1 isn't Available Any More even if it's Free. All the Times I Get the Error Message from the Mod "Rule Violation: The username that you have submitted violates one of the Username Rules that the administrator has specified.", I've just tried it one more time with an Old Appreoved and Changed Username with this Mod on my Forums and that's the Error Message the Mod Displays, so the Usernames Once Used the Mod Never Allows them to be Used Again; there should be something on the Code; you should be Checking for All Usernames in the History of the Usernames Requests, and what you Should be Really Looking for are the Current and Not Yet Approved/Rejected Usernames.
When a User Asks for a New Username1 and I Approve it, and then Asks for a New Change to Username2, the Username1 isn't Available Any More even if it's Free. All the Times I Get the Error Message from the Mod "Rule Violation: The username that you have submitted violates one of the Username Rules that the administrator has specified.", I've just tried it one more time with an Old Appreoved and Changed Username with this Mod on my Forums and that's the Error Message the Mod Displays, so the Usernames Once Used the Mod Never Allows them to be Used Again; there should be something on the Code; you should be Checking for All Usernames in the History of the Usernames Requests, and what you Should be Really Looking for are the Current and Not Yet Approved/Rejected Usernames.
My Best Regards.
For the first problem (username being once used and changed) your problem is not 'with this mod' but with your vBulletin settings actually. Located in the vBOptions under User Registrations Options you have a setting called Username Reuse Delay that is set to 365 by default meaning no previously used username can be used within a year after the last day the last one was used. Setting this to 0 should solve your problem.
The code uses default vBulletin functions to check usernames. The code does not bias based on if someone has requested it already, and this task will get even more complex in the next version.
For the first problem (username being once used and changed) your problem is not 'with this mod' but with your vBulletin settings actually. Located in the vBOptions under User Registrations Options you have a setting called Username Reuse Delay that is set to 365 by default meaning no previously used username can be used within a year after the last day the last one was used. Setting this to 0 should solve your problem.
The code uses default vBulletin functions to check usernames. The code does not bias based on if someone has requested it already, and this task will get even more complex in the next version.
You're Right King Kovifor, the Option is there, that was the Problem; I appreciate your Guide, I didn't knew that Option on vB373, it don't Exist on vB368.
The other Problem when an User Registers with an Username Requested by other Existing User, and when Approving receiving an Error Message and the Existing User didn't Receiving the Reject Notice of the Requested Username, is still there, I hope you can Enhance it on your next Update.