Previous Thread
Next Thread
Print Thread
Rate Thread
#224150 09/06/2002 3:45 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Change Username for 6.1

Description: This hack lets you rename a user to another username, or merge two usernames. It works for version 6.0
Now you can
a) change a username to something new
b) if the new username already exists, the script will merge the usernames. All the settings from the old username will be kept - except for the total posts number, which will reflect the correct totals. The title doesn't get reset though, so you may need to modify it manually. PMs sent and received, address book entries, moderators, subscriptions, read receipts etc etc are all handled and reflect the new username.

Working under: UBB.threads 6.1

Any pre-requisites: none

Author(s): Max

Credits: built on Dave's great work. Tweaked for 6.1 by JoshPet

Files Altered: /admin/menu.php

New Files: /admin/sk_changename.php and /admin/sk_dochangename.php

Database Altered: Yes

Notes: I didn't write this... I think Max did. I've been using it forever, and it needed a couple of tweaks for version 6.1 to allow for the custom table prefix and the new U_LoginName field.

This hack lets you rename a user to another username, or merge two usernames. It works for version 6.1

Use at your own risk, always backup your database prior to
installing/using hacks.
Attachments
55980-changeusernameFor6.1.zip (0 Bytes, 32 downloads)

Sponsored Links
Joined: Aug 2002
Posts: 2
Lurker
Lurker
Offline
Joined: Aug 2002
Posts: 2
It's probably just me, but after I fill hit 'change' and it loads sk_dochangename it just goes to a blank white screen. I followed the instructions and uploaded sk_dochangename and sk_changename to my admin directory. Any thoughts on what I might be doing wrong here?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hmmmm....

Not sure. Those are the same files I'm using.

Are they readable? Might try chmod 777 for the sk_dochangename file.

Joined: Aug 2002
Posts: 2
Lurker
Lurker
Offline
Joined: Aug 2002
Posts: 2
Changed permissions to 777 for both files and still no luck.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Was this based on Change Username 2.0.2, or an earlier version?

Since the version history isn't present, I'm guessing it was based on the earlier version. It might be better to add the changes to 2.0.2, and then call the new version 2.0.3 (or 2.1.0, to match UBB.threads 6.1).

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I wish I knew.... I had downloaded it way back when.... and it was just a text file and didn't have any version numbers in it. <SHRUG>

I'm not even 100% sure who wrote it because there were a couple of different hacks to do this.

All I know is that under 6... I've used it a bunch...and haven't had any trouble. <knock on wood> lol I added the table prefixes and new fields...and this seemed to work find in 6.1. Time will tell. <fingers crossed>

But I don't really know where it came from.

Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
Joined: Jun 2002
Posts: 375
I need to install this on 6.1 as I just went live with it tonight. I think I'll wait to install this hack until I really need it. Maybe by then it'll be tested some more as I know this hack has had a colorful past. It bit me one time! I'm pretty much sick of hacks and updating them from the last 3 days of upgrading a fresh install of 6.1 hehe

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I have used it twice so far under 6.1 b1. Knock on wood.

Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
I still think it's confusing that you created a second version branch of this hack.

The hack should be obsolete in 6.2 anyway, since then it will only be necessary to change a single column in one table. (Although merging will still take some more effort.)

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
It might be the same one... I can't tell there are so many version posted. I just knew it was the one that was working for me.... tried and tested...a couple of times a month. Merges and changes.

I just added the table prefix variable and the new database field.

You're right though... 6.2 usernumber's will be easier.

Sponsored Links
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
I think there is a problem with it, when trying to change a username from upper to lowercase or vice versa.

As far as i can remember, that was fixed in another version of this hack.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Oh you are right.....
I had trained myself to change them to something different first..... then back to the name with the proper case.

Joined: Jun 2002
Posts: 47
User
User
Offline
Joined: Jun 2002
Posts: 47
I just installed this Hack on my 6.1.1 version and I get this error, I am logged in as admin and I can use all the other admin options but this one:....
-----------------------------------------------------------

SQL ERROR: Database error only visible to forum administrators

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource

----------------------------------------------

Any help would be apprecaited.

Thanks

Joined: Nov 2002
Posts: 11
Newbie
Newbie
Offline
Joined: Nov 2002
Posts: 11
I had the same problem and here is what I did to fix it.

1) Open up the file sk_dochangename.php
2) Look for the line up at the top that reads :
require ("../languages/$w3t_language/ubbthreads.php");
3) Change it to :
require ("../languages/${$config['cookieprefix']."w3t_language"}/ubbthreads.php");
4) Save and you should be good to go.

BTW, my chmod is 644 so you shouldn't need to do 777.


Thanks
Hackman
Daine #224164 02/06/2003 11:12 AM
Joined: Jan 2003
Posts: 338
Enthusiast
Enthusiast
Offline
Joined: Jan 2003
Posts: 338
It's error/ bug in this hack in file sk_dochchangename.php
Procdeure delete both nicknames. New and old.
When we delete from the file sections about "delete target user" all is ok and work correctly.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)