Author |
Topic |
|
cityfocus
Starting Member
4 Posts |
Posted - 03 June 2001 : 18:02:12
|
Ok - before you say: "Why would you do that?!"... I am importing an existing list of 1000 users on an e-mail list. I would ike to import them with usernames & passwords I have preset randomly in the database - since they don't have them yet. The users will then be permitted to go to the site during a 2 week period and change their username to whatever they desire. After that, I will be restoring the files to disallow the changes.
SO, now that I have justified my actions...
I have already modified the inc_profile.asp file to allow the input text field for the username. BUT, this did not do the trick. Despite inserting a new username, the database does not change.
I am not great with going through SQL and ASP code yet, so I NEED HELP :) I have determined that there are 2 update modes: go edit (pop_profile.asp approx. line 765) AND modify it (pop_profile.asp approx. line 938). Go edit (users method) does not seem to update the username, even with the text field in the inc_profile.asp form.
I would also like to add the behavior to check the username for duplicates, as in the Modify It form mode used by admins. (Located at approx line 750 of pop-profile.asp)
Can anyone help me with this idea???
Version is 3.1sr4 with quite a few MODS, but none should affect this request... THANKS TO EVERYONE! |
|
cityfocus
Starting Member
4 Posts |
Posted - 04 June 2001 : 15:05:23
|
Anyone... Anyone... Bueller??
If anyone know how to do this, please post their idea |
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 04 June 2001 : 17:07:52
|
You could use table editor or some other direct db editor that will let you change the names in the database. You'll probably need to create a custom asp page if you want to let users change the username themselves.
====== Doug G ====== |
|
|
cityfocus
Starting Member
4 Posts |
Posted - 04 June 2001 : 21:49:39
|
Was hoping I could work it right in, since Admins can change Usernames. Admins are directed to the proper MODE on the pop_profile.asp page.
The custom ASP page idea did cross my mind - and I may go with it. I just thought I could take advantage of the existing code by modifying a couple lines (just don't know which ones!), which checks for duplicate username and other form errors. Kills me that the code is right there, but I can't use it for users.... I know it can be done, but I'm not yet proficient with the multiple page ASP layouts within one page
Thanks Doug.
|
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 05 June 2001 : 01:00:18
|
There may be an easy mod, I don't spend enough time in the code to know where it may be tho, sorry.
====== Doug G ====== |
|
|
|
Topic |
|