Author |
Topic  |
|
SagaService
Junior Member
 
108 Posts |
Posted - 24 October 2002 : 16:59:45
|
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
|
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... < |
|
 |
|
Rasco
Advanced Member
    
Germany
3192 Posts |
Posted - 25 October 2002 : 01:36:21
|
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
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 25 October 2002 : 03:53:44
|
oh damage , I didn't realize what section I was in, sorry about that...< |
|
Edited by - dayve on 25 October 2002 03:54:20 |
 |
|
SagaService
Junior Member
 
108 Posts |
Posted - 25 October 2002 : 06:15:02
|
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< |
 |
|
Rasco
Advanced Member
    
Germany
3192 Posts |
Posted - 27 October 2002 : 17:31:19
|
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 |
 |
|
David K
Junior Member
 
494 Posts |
Posted - 03 November 2002 : 15:29:46
|
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>< |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 03 November 2002 : 15:50:25
|
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! |
 |
|
David K
Junior Member
 
494 Posts |
Posted - 03 November 2002 : 16:03:25
|
I gave him information how to add a star, is there something wrong with trying to help my fello forum members?< |
 |
|
Deleted
deleted
    
4116 Posts |
Posted - 03 November 2002 : 16:12:03
|
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! |
 |
|
David K
Junior Member
 
494 Posts |
Posted - 03 November 2002 : 16:27:32
|
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)< |
 |
|
|
Topic  |
|