Print Page | Close Window

Validation on Name field?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=1381
Printed Date: 30 March 2026 at 1:11pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Validation on Name field?
Posted By: klr3
Subject: Validation on Name field?
Date 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!




Replies:
Posted By: klr3
Date Posted: 03 April 2003 at 7:32am

No answers???

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



Posted By: WebWiz-Bruce
Date 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.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: klr3
Date 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!

 



Posted By: WebWiz-Bruce
Date 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

%>



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: klr3
Date Posted: 05 April 2003 at 8:46am

Thanks very very very much!!!

It works perfect!!!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net