Change displayname - نوشته شده در (497 Views)
Starting Member
patrik80
مطلب: 5
5
Hello

I'm not sure this is the right place to post but here goes.
I'm setting up snitz at my work. They already have a website with 1500 users, and they want me to transfer these users to the snitz db and maintain two db's for a testing period. After this period they are going to try to modify snitz to use AD for authentication.
These 1500 users use their e-mail to login to the site, and to get away with having the e-mail show up when they post a message, I wonder if I can instead make it so firstname + lastname or M_USERNAME will be the fields used to show who wrote the message.
This will be a restricted forum without free registration. Should be a fairly simple modification I think, but aren't 100% sure about it. another thing I thought of doing was to change the login to check the e-mail, but not sure I want to do this since I can't use admin as login for admin then. I'd rather put in the e-mail as login name for the other users I think.
I could dig into the code and start to look where to change, but thought maybe someone else had done this before.
Thanks in advance

/Patrik<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
کاربر قفل شده
laser
مطلب: 3859
3859
since I can't use admin as login for admin then.
You could make a special case for admin wink If form.username = "admin" then ...

<
نوشته شده در
Starting Member
patrik80
مطلب: 5
5
You think it would be easiest to modify the login to go on the e-mail then, with a special case for admin, then to change it so M_USERNAME is displayed instead of M_USER? I'm not sure when M_USERNAME is used in the forum, if it's for something special that I shouldn't mess around with.
/Patrik<
نوشته شده در
Starting Member
patrik80
مطلب: 5
5
Me again

Have been thinking some on how to implement this, and was thinking how much snitz would dislike if I added a new loginname field in the DB where I put the login-name to snitz and modified the login and register files to put the login name in that field, and put a non unique name in the M_NAME field (firstname + lastname). I guess there are many places in the code that goes on the M_NAME and not the MEMBER_ID to identify the user. I think this probably won't work, so wanted to post here to see if someone knew before I put too much effort into trying it out and ruining Snitz.
Thanks in advance

/Patrik<
نوشته شده در
Starting Member
patrik80
مطلب: 5
5
It was fairly easy to change what was displayed instead of the M_NAME on the page. Just have to change a few sql quaries to include the name and then display that instead of the M_NAME.
Think it's enough for my companies purposes.
/Patrik<
نوشته شده در
کاربر قفل شده
laser
مطلب: 3859
3859
I guess there are many places in the code that goes on the M_NAME and not the MEMBER_ID to identify the user.
There is a few, but remember you can change the M_NAME but never the MEMBER_ID. Most authentication involves MEMBER_ID but if you have the photo album mod (from memory) it doesn't like changes to M_NAME.
Easiest way to test is take a local copy of all ASP pages, and search using UltraEdit and take a local database copy and do all testing locally before uploading.<
 
شما باید یک متن وارد کنید