PDA

View Full Version : User's tracked by name and not user id number?


10-02-2005, 08:32 AM
Ok, call me slow, because I just noticed this while playing around in my database.
The user's seem to be tracked by username, which is connected to everything they
post or do. So does that basicly mean a user's name can never be changed because
all of their items/page/gallery/blog entries will belong to the old name?

Most of the scripts I deal with use a user id number to keep track of users with a
name connected to it, I've never seen it this way. Just wondering since I was going
to change a user's name and now not sure I can.

Just wanted to know.

DeviouS
10-02-2005, 12:39 PM
Yup, thats right everything is tracked by the username. I was also looking into myself, cause i wanted to be able to have the option for user to change there usernames.
Ive made a little mod that will do that. Its gotta do alot cause it has to rename it on every table.
Feel free to test it out and get back to me. Im still testing it out myself.

First create a php file and name it "username.php".
Place that file in "/member/setting/html/"
Place this code in that php file:

Content visible to registered users only.


Then open up "/member/setting/index.php"
Look for this:
Content visible to registered users only.

and add this right under it:
Content visible to registered users only.


So, now you should be ready to test it out.
Simply go to http://www.yoursite.com/member/setting/?edit=username
If its stable and you want to add the html link to that page, simply open up "/member/setting/html/index.php"
and you will find the html in there to add the link in.

Get back to me if you were able to test it out. thanks :D

g354u2nv
11-26-2005, 05:31 AM
I have the newest version, however I didnt see an option in the account settings to edit your username. However I searched the files, have the code, and tried the link and voila it works. But now my question is, is this supposed to be already in there or has that option not been put in the profile yet?

natio :: phpFox
11-26-2005, 05:36 AM
Nope that option still hasent been added in the new version just yet. :)
Still in a beta mode so we are all testing it out, feel free to test it and if possible post your feedback on how its working for you.