Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Unique name as "guest"?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Unique name as "guest"?

 Post Reply Post Reply Page  12>
Author
i2Paq View Drop Down
Groupie
Groupie


Joined: 10 April 2004
Location: Netherlands
Status: Offline
Points: 181
Post Options Post Options   Thanks (0) Thanks(0)   Quote i2Paq Quote  Post ReplyReply Direct Link To This Post 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!!

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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???
Back to Top
i2Paq View Drop Down
Groupie
Groupie


Joined: 10 April 2004
Location: Netherlands
Status: Offline
Points: 181
Post Options Post Options   Thanks (0) Thanks(0)   Quote i2Paq Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2004 at 11:17am

Originally posted by michael 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!


Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
i2Paq View Drop Down
Groupie
Groupie


Joined: 10 April 2004
Location: Netherlands
Status: Offline
Points: 181
Post Options Post Options   Thanks (0) Thanks(0)   Quote i2Paq Quote  Post ReplyReply Direct Link To This Post 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)?
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2004 at 2:10pm

could use the code above that inserts the perfix and have

for example "username_Guest"

S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
i2Paq View Drop Down
Groupie
Groupie


Joined: 10 April 2004
Location: Netherlands
Status: Offline
Points: 181
Post Options Post Options   Thanks (0) Thanks(0)   Quote i2Paq Quote  Post ReplyReply Direct Link To This Post Posted: 12 April 2004 at 11:17am
Originally posted by Scotty_32 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

Back to Top
i2Paq View Drop Down
Groupie
Groupie


Joined: 10 April 2004
Location: Netherlands
Status: Offline
Points: 181
Post Options Post Options   Thanks (0) Thanks(0)   Quote i2Paq Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.