Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Internationalization (v4)
 Required fields in registration scheme
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

SagaService
Junior Member

108 Posts

Posted - 24 October 2002 :  16:59:45  Show Profile
Hi.

We are testdriving version 4.beta 3 (localized to norwegian, look up www.vti-fotball.no/forum/forum.asp). How can we force new users to add their real firstname and surname during registration process?

Is there any code we can alter?

Per Lund - still working thursday night... <

dayve
Forum Moderator

USA
5820 Posts

Posted - 25 October 2002 :  00:49:51  Show Profile  Visit dayve's Homepage
in register.asp find this line:


strEncodedPassword = sha256("" & trim(Request.Form("Password")))

Err_Msg = ""


and right after that add this:


if trim(Request.Form("FirstName")) = "" then
	Err_Msg = Err_Msg & "<li>You must enter your First Name</li>"
end if

if trim(Request.Form("LastName")) = "" then
	Err_Msg = Err_Msg & "<li>You must enter your Last Name (Surname)</li>"
end if


that should take care of it... <

Go to Top of Page

Rasco
Advanced Member

Germany
3192 Posts

Posted - 25 October 2002 :  01:36:21  Show Profile  Send Rasco an ICQ Message
Sorry dayve, he won`t find this line in register.asp from V4Beta.
That line is of V3.4
But the above code can placed before this lines in register.asp

if strAutoLogon <> 1 then
if trim(Request.Form("Name")) = "" then
Err_Msg = Err_Msg & "<li>" & fLang(strLangRegister00060) & "</li>"<

German Snitz Forum
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 25 October 2002 :  03:53:44  Show Profile  Visit dayve's Homepage
oh damage , I didn't realize what section I was in, sorry about that...<


Edited by - dayve on 25 October 2002 03:54:20
Go to Top of Page

SagaService
Junior Member

108 Posts

Posted - 25 October 2002 :  06:15:02  Show Profile
Thanx again.

This works...Yehaa..! One final question (did I say final..?): how do I add a red star in front of the required fields (like in front of username and email)?

Per Lund<
Go to Top of Page

Rasco
Advanced Member

Germany
3192 Posts

Posted - 27 October 2002 :  17:31:19  Show Profile  Send Rasco an ICQ Message
In inc_profile.asp, enter this code in the line you want to use it with:

<FONT color=#ff0000>*</FONT>

For example, that`s the line for the username:

<td bgColor=<% =strPopUpTableColor %> align=right width="10%"" nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><FONT color=#ff0000>*</FONT><% =fLang(strLangInc_Profile00030) %> </font></b></td><

German Snitz Forum

Edited by - Rasco on 27 October 2002 17:36:26
Go to Top of Page

David K
Junior Member

494 Posts

Posted - 03 November 2002 :  15:29:46  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
He said star, not astrix

If you have a star image you cann add it in the same location of the code
Just add this:

<img src="YOUR_IMG_FILENAME_HERE"/>

Of curse you have to replace YOUR_IMG_FILENAME_HERE with your filename (leave the quatation marks)
It should come out like this:

<td bgColor=<% =strPopUpTableColor %> align=right width="10%"" nowrap><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><img src="YOUR_IMG_FILENAME_HERE"/><% =fLang(strLangInc_Profile00030) %> </font></b></td><
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 03 November 2002 :  15:50:25  Show Profile
quote:
Originally posted by David K

He said star, not astrix



Actually (s)he is talking about the asterix which indicates that the field is required...
<

Stop the WAR!
Go to Top of Page

David K
Junior Member

494 Posts

Posted - 03 November 2002 :  16:03:25  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
I gave him information how to add a star, is there something wrong with trying to help my fello forum members?<
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 03 November 2002 :  16:12:03  Show Profile
quote:
Originally posted by David K

I gave him information how to add a star, is there something wrong with trying to help my fello forum members?


Absolutely not, but I wanted to prevent any misunderstanding. I'm absolutely sure that he meant *.

On the other hand, I also appreciate you giving another possibility, using a star instead of asterix...

The thing is, all of these are NOT related to internationalization / v4...
<

Stop the WAR!
Go to Top of Page

David K
Junior Member

494 Posts

Posted - 03 November 2002 :  16:27:32  Show Profile  Send David K an AOL message  Send David K an ICQ Message  Send David K a Yahoo! Message
this post should be moved to "Previous Versions"
It has nothing to do with v4, it's relating to a part which should be totaly compatible with 3.3
(i have no idea how 3.3 source looks like)<
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07