| Author |
Topic Search Topic Options
|
i2Paq
Groupie
Joined: 10 April 2004
Location: Netherlands
Status: Offline
Points: 181
|
Post Options
Thanks(0)
Quote Reply
Topic: Unique name as "guest"? Posted: 10 April 2004 at 10:20am |
Did a large search but no answer to be found on this 1 question...
"When people register they have to choose a unique name otherwise they cannot register. But when a Guest wants to make a post he can choose a name that is already registered.. very confusing!"
What can I do to prefend this?
Thanks.
Ps. Great job on reopening this supportforum!! 
|
 |
michael
Senior Member
Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 April 2004 at 10:26am |
|
You could manually set a prefix to Guest names like ...= "anon:" & strGuesName or something like that. It is indeed a problem but there is not too much you can do if you allow guest posting. Maybe it has been changed somehow in a newer release???
|
|
|
 |
i2Paq
Groupie
Joined: 10 April 2004
Location: Netherlands
Status: Offline
Points: 181
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 April 2004 at 11:17am |
michael wrote:
You could manually set a prefix to Guest names like ...= "anon:" & strGuesName or something like that. It is indeed a problem but there is not too much you can do if you allow guest posting. Maybe it has been changed somehow in a newer release??? |
Hello Michael,
Thanks for the reply. I asked TheKiwi on his site the same question and he came up with this;
"OK Doesnt look too hard to implement.
- You need to edit post_message.asp
- At about line 306 there is the text
Code:
'If the user is in a guest then clean up their username to remove malicious code If lngLoggedInUserID = 2 Then strGuestName = formatSQLInput(strGuestName) strGuestName = formatInput(strGuestName) End If
| | |
- Basically in this block you need to call a function which does a check for a used username
- If you find a name exists, then do something like strReturnCode="UNameE"
- THen in the file not_posted.asp, at approx Line 100, you need to add in
Code:
ElseIf strErrorCode = "UNameE" Then Response.Write("That Username already exists in the database")
| | | "
You should know that I'm no way an ASP writer nor programmer. I can edit it a little. These kind of things someone has to build for me 
The forum I'm moderating is an 18+ forum and we do allow anonymous posting in one section of this forum. The problem is that you can choose a name which is already registered by someone else and that's sometimes confusing....
So, Help! 
|
 |
michael
Senior Member
Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 April 2004 at 12:22pm |
I realize the problem you run into with that but if you have a large forum, common usernames may be gone already and how often do you want to prompt a user that the name is gone when just doing a post?
I would consider a different solution where it is easily identifiable that it is a guest post even if the name is one of a registered user.
|
|
|
 |
i2Paq
Groupie
Joined: 10 April 2004
Location: Netherlands
Status: Offline
Points: 181
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 April 2004 at 12:44pm |
The forum is not that large (yet  ) but the problem is that you can post as a guest and the name can be of a registered user. You can tell by the forum statistics that the last post is by "Guests" but when you go to the topic where he/she posted the name can say "Admin", underneeth you can see that it's a guest, also when the avatar is missing, but still. Can I open a topic somewhere else on this forum to ask this question en see if someone already came up with a solution (and where can I open this topic)?
|
 |
Scotty32
Moderator Group
Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 April 2004 at 2:10pm |
could use the code above that inserts the perfix and have
for example "username_Guest"
|
|
|
 |
i2Paq
Groupie
Joined: 10 April 2004
Location: Netherlands
Status: Offline
Points: 181
|
Post Options
Thanks(0)
Quote Reply
Posted: 12 April 2004 at 11:17am |
Scotty_32 wrote:
could use the code above that inserts the perfix and have
for example "username_Guest"
|
I do need some help with this because I'm no programmer or ASP writer. If someone could come up with a working code it would be very appriciated 
|
 |
i2Paq
Groupie
Joined: 10 April 2004
Location: Netherlands
Status: Offline
Points: 181
|
Post Options
Thanks(0)
Quote Reply
Posted: 21 April 2004 at 6:38am |
Is there realy nobody who is able to help me on this?
The problem is that there's no other place or forum to put this question and I think the solution could help many now and in the future.
|
 |