Version: , by Scott MacVicar
Developer Last Online: Mar 2016
Version: 2.2.x
Rating:
Released: 08-05-2001
Last Update: Never
Installs: 99
No support by the author.
This hack has been completely rewritten, i recommend that you simply uninstall this hack and install the new version. If you don't want to do that then this is what has changed.
Table structure of namelogs, drop and readd from install file and all the coding within member.php has changed. There has been NO template changes or changes in the admin panel.
This was written in 2.2.6 and worked fine with no problems.
Scott
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
The first thing you got to do is run these two sql queries which will create variables for use, either via phpMyAdmin
INSERT INTO setting (settingid, settinggroupid, title, varname, value, description, optioncode, displayorder) VALUES ('', '6', 'Posts to change username', 'postuserchange', '50', 'Number of posts required for the user to change their own username within the user control panel. If you wish anyone to be able to change username set to 0.', '', '18')
INSERT INTO setting (settingid, settinggroupid, title, varname, value, description, optioncode, displayorder) VALUES ('', '6', 'Days between user change', 'dayuserchange', '7', 'Number of days between each time a user is allowed to change their nickname. If you wish the user to be able to change username at any time set to 0.', '', '19')
OR
go to http://www.yourdomain.com/forums/adm...php?action=add
Setting Category: User and registration options
Title: Posts to change username
Variable Name: postuserchange
Value: 50
Description: Number of posts required for the user to change their own username within the user control panel. If you wish anyone to be able to change username set to 0.
Code to generate option: LEAVE THIS BLANK
Display Order: 18
Setting Category: User and registration options
Title: Days between user change
Variable Name: dayuserchange
Value: 7
Description: Number of days between each time a user is allowed to change their nickname. If you wish the user to be able to change username at any time set to 0.
Code to generate option: LEAVE THIS BLANK
Display Order: 18
Adding a table to your forums database
I saw that in my phpadmincenter but I had no idea how to change it or what, I didn't see any add or edit button. It's a bunch of stuff I'm not sure to do, that's the only part I'm not sure what to do on. Can someone help me?
If you do, you go to your database by clicking it's name on the left.
You'll see it's tables listed and right under it, there's a textfield named
Run SQL query/queries on database 'database name'
This is the field where you drop the text (querries)
INSERT INTO setting (settingid, settinggroupid, title, varname, value, description, optioncode, displayorder) VALUES ('', '6', 'Posts to change username', 'postuserchange', '50', 'Number of posts required for the user to change their own username within the user control panel. If you wish anyone to be able to change username set to 0.', '', '18')
INSERT INTO setting (settingid, settinggroupid, title, varname, value, description, optioncode, displayorder) VALUES ('', '6', 'Days between user change', 'dayuserchange', '7', 'Number of days between each time a user is allowed to change their nickname. If you wish the user to be able to change username at any time set to 0.', '', '19')
and run them by pressing GO
You can run both INSERT's mentioned at the same time, or one after another.
However, since you are obviously not familiar with phpMyAdmin, make sure you backup your database before messing with it!
The backup is done either via the adminCP of you vBulletin or the phpMyAdmin tool.
Using phpMyAdmin, you need to dump (thats the term for backing up) the database, by selecting Structure and Data and Send.
You may select Add drop tables, too. This tells it, to drop existing tables before restoring your database from the backup. It prevents the Table already exists error.
When you checked all the boxes I suggested, press GO and you should be getting a dialog on where to store the file on your local PC.
Depending on the size of you database, the connection and the speed of Server, the proceedure may take some minutes.
Adding a table to your forums database
---------------------------------------
Now you will need to create this table for logging of the username and last time they updated.
CREATE TABLE namelogs (userid INT (5) not null , usernames LONGTEXT not null , lastchange INT (12) not null )
Adding New Templates
Am I still in the the phpadmincenter for this? If so I see nothing about create new table, I see rename to: and Copy table to:
Now I get an erroer when people try to register and when I tried to access the edit options and change profile and change password all in user control panel. It says
Quote:
Parse error: parse error in /home/ashleigh/public_html/forum/member.php on line 1337