Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Validation on Name field?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Validation on Name field?

 Post Reply Post Reply
Author
klr3 View Drop Down
Groupie
Groupie
Avatar

Joined: 20 February 2003
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote klr3 Quote  Post ReplyReply Direct Link To This Post Topic: Validation on Name field?
    Posted: 26 March 2003 at 3:44pm

Does any one know how to make validation on the name field in new reply and new topic, when admin has allowed no-registed users to write in the forum?

The field allows to leave it blank!! :O(

If some one knows what to modify, then please let me know!!!

Thanks!

Back to Top
klr3 View Drop Down
Groupie
Groupie
Avatar

Joined: 20 February 2003
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote klr3 Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2003 at 7:32am

No answers???

Please help - my forum is overfilled with "guests" replies!!!!!

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 04 April 2003 at 1:49am
This will be a feature in the next version, but as I haven't had time to look into it yet I can't tell you what parts to change at the present time.
Back to Top
klr3 View Drop Down
Groupie
Groupie
Avatar

Joined: 20 February 2003
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote klr3 Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2003 at 1:34am

Sure!

Itīs in all forms, where admin has allowed the non-reg. users to write new topics, relplies, polls and Quotes in the forum

In the beta 4 version, there is a new form field called "Gname" - that is the field, that so fare can be left blank - and thatīs not good.

It would be better, if Guest users HAD to write their names by default!

I think itīs only that I have to ad some more to the Javascript, that checks the fileds, but I donīt know where...

If you could help me at this time, I would be very happy!

 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2003 at 4:40am

To have name validation do the following:-

add the following line to language_file_inc.asp:-

Const strTxtNoNameError = "Name \t\t- Enter your name"

Add the following line at line 420 of forum_posts.asp and line 245 of post_message_form.asp:-

<%
'If this is a guest posting check that they have entered their name
If blnPost And lngLoggedInUserID = 2 Then
%> 
 //Check for a name
 if (document.frmAddMessage.Gname.value==""){
  errorMsg += "\n\t<% = strTxtNoNameError %>";
 }
<%
End If

%>

Back to Top
klr3 View Drop Down
Groupie
Groupie
Avatar

Joined: 20 February 2003
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote klr3 Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2003 at 8:46am

Thanks very very very much!!!

It works perfect!!!

Back to Top
 Post Reply Post Reply

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.