Author |
Topic  |
Nikkol
Forum Moderator
    
USA
6907 Posts |
Posted - 20 July 2002 : 20:31:51
|
rriehl, honey, you need to add a <% at the beginning of line 579. Here's a hint, when you get an error like that, look at the line in Notepad (if you hit Ctrl-G and type the line number, it will take you right to the line). Then, if you see vbscript starting after html code, that where you need a <%.
Nikkol |
 |
|
rriehl
Starting Member
31 Posts |
Posted - 20 July 2002 : 20:50:25
|
Nikkol, I did that and I get the same error. I have updated the inc_register.txt here:
http://mobclan.robertriehl.com/inc_profile.txt
quote:
rriehl, honey, you need to add a <% at the beginning of line 579. Here's a hint, when you get an error like that, look at the line in Notepad (if you hit Ctrl-G and type the line number, it will take you right to the line). Then, if you see vbscript starting after html code, that where you need a <%.
Nikkol
|
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
Posted - 20 July 2002 : 21:00:56
|
Sorry, I must have had any old copy of your file. This is what to do: 1. Undo what you did (line 579 take of the <% at the beginning) 2. Put a <% on line 578 at the beginning and a %> at the end.
So your code looks like this on lines 578 and 579:
<% if strEmailVal = "0" or Request.QueryString("mode") <> "Register" then %><INPUT type="hidden" name="Email2" value="<% =RS("M_EMAIL") %>"><% end if %>
<% </tr>
Nikkol |
 |
|
Hamlin
Advanced Member
    
United Kingdom
2386 Posts |
Posted - 20 July 2002 : 21:01:13
|
From the look of that file the <% needs to be on the start of line 578 and a %> on the start of line 579...
No matter how fast light travels it finds the darkness has always got there first, and is waiting for it. http://www.ian-hamlin.co.uk |
 |
|
rriehl
Starting Member
31 Posts |
Posted - 20 July 2002 : 21:30:30
|
Ok, We're getting there... I did the changes Nikkol told me to, and now I get this error: Microsoft VBScript compilation error '800a03f4'
Expected 'If'
/cgi-bin/register.asp, line 607
end sub ----^ Here's a link to my register.asp http://mobclan.robertriehl.com/register.txt
Thanks
quote:
From the look of that file the <% needs to be on the start of line 578 and a %> on the start of line 579...
No matter how fast light travels it finds the darkness has always got there first, and is waiting for it. http://www.ian-hamlin.co.uk
|
 |
|
Hamlin
Advanced Member
    
United Kingdom
2386 Posts |
Posted - 20 July 2002 : 21:44:43
|
In the inc_profile.asp file assuming you made the last changes by Nikkol also put a <% on the front of line 580
<% if (strEmailVal = "1" and lcase(strEmail) = "1") and Request.QueryString("mode") = "Register" then %>
No matter how fast light travels it finds the darkness has always got there first, and is waiting for it. http://www.ian-hamlin.co.uk |
 |
|
rriehl
Starting Member
31 Posts |
Posted - 20 July 2002 : 21:58:33
|
I already had that there. This is the current error: Microsoft VBScript compilation error '800a03f4'
Expected 'If'
/cgi-bin/register.asp, line 607
end sub ----^ Here's a link to my register.asp http://mobclan.robertriehl.com/register.txt
Thanks
quote:
In the inc_profile.asp file assuming you made the last changes by Nikkol also put a <% on the front of line 580
<% if (strEmailVal = "1" and lcase(strEmail) = "1") and Request.QueryString("mode") = "Register" then %>
No matter how fast light travels it finds the darkness has always got there first, and is waiting for it. http://www.ian-hamlin.co.uk
|
 |
|
rriehl
Starting Member
31 Posts |
Posted - 20 July 2002 : 21:59:38
|
quote:
I already had that there. This is the current error: Microsoft VBScript compilation error '800a03f4'
Expected 'If'
/cgi-bin/register.asp, line 607
end sub ----^ Here's a link to my register.asp http://mobclan.robertriehl.com/register.txt
Line 607 is the last line of the file.
quote:
In the inc_profile.asp file assuming you made the last changes by Nikkol also put a <% on the front of line 580
<% if (strEmailVal = "1" and lcase(strEmail) = "1") and Request.QueryString("mode") = "Register" then %>
No matter how fast light travels it finds the darkness has always got there first, and is waiting for it. http://www.ian-hamlin.co.uk
|
 |
|
rriehl
Starting Member
31 Posts |
Posted - 20 July 2002 : 23:02:21
|
Ok, this is the current error I am reeiving:
Microsoft VBScript compilation error '800a03f4'
Expected 'If'
/cgi-bin/register.asp, line 607
end sub ----^ Here is the link to my register file: http://mobclan.robertriehl.com/register.txt
Thanks
quote:
I already had that there. This is the current error: Microsoft VBScript compilation error '800a03f4'
Expected 'If'
/cgi-bin/register.asp, line 607
end sub ----^ Here's a link to my register.asp http://mobclan.robertriehl.com/register.txt
Line 607 is the last line of the file.
quote:
In the inc_profile.asp file assuming you made the last changes by Nikkol also put a <% on the front of line 580
<% if (strEmailVal = "1" and lcase(strEmail) = "1") and Request.QueryString("mode") = "Register" then %>
No matter how fast light travels it finds the darkness has always got there first, and is waiting for it. http://www.ian-hamlin.co.uk
[/quote]
|
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
Posted - 20 July 2002 : 23:15:09
|
What is you current inc_profile? Can you provide an updated link?
Nikkol |
 |
|
rriehl
Starting Member
31 Posts |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
Posted - 20 July 2002 : 23:42:53
|
Try this. Find line 579 in inc_profile (the one with just </tr> on it). You'll be inserting a line so that line 579-581 will look like this:
</tr> <% end if if (strEmailVal = "1" and lcase(strEmail) = "1") and Request.QueryString("mode") = "Register" then %>
You've added the red "end if" making sure to keep the green <% on that line. Then you moved the "if" statement to the next line.
Nikkol |
 |
|
rriehl
Starting Member
31 Posts |
Posted - 20 July 2002 : 23:54:38
|
Ok, I got to the page after accepting the privacy statement. After I enter the user info and hit submit, I get the following error:
Microsoft OLE DB Provider for ODBC Drivers error '80040e37'
[Microsoft][ODBC Microsoft Access Driver] The Microsoft Jet database engine cannot find the input table or query 'FORUM_MEMBERS_PENDING'. Make sure it exists and that its name is spelled correctly.
/cgi-bin/register.asp, line 237
Again, the link to my forum is: http://mobclan.robertriehl.com/cgi-bin/default.asp
The link to my register file is: http://mobclan.robertriehl.com/register.txt
I think we're almost there, thank you so much for your patience with me.
quote:
Try this. Find line 579 in inc_profile (the one with just </tr> on it). You'll be inserting a line so that line 579-581 will look like this:
</tr> <% end if if (strEmailVal = "1" and lcase(strEmail) = "1") and Request.QueryString("mode") = "Register" then %>
You've added the red "end if" making sure to keep the green <% on that line. Then you moved the "if" statement to the next line.
Nikkol
Edited by - rriehl on 20 July 2002 23:55:24 |
 |
|
Nikkol
Forum Moderator
    
USA
6907 Posts |
Posted - 21 July 2002 : 00:07:07
|
did you make sure to follow all of the instructions for the email val mod, including running any kind of db or setup file? Those files create the necessary tables in your database.
Nikkol |
 |
|
rriehl
Starting Member
31 Posts |
Posted - 21 July 2002 : 00:46:17
|
Ok.. almost there. reading some other discussions, I reinstalled the mod with access 2000 instead of 97. everything works except that when I click on the email link I am sent to confirm my email address I get the error that the validation key is incorrect?
Any ideas?
quote:
did you make sure to follow all of the instructions for the email val mod, including running any kind of db or setup file? Those files create the necessary tables in your database.
Nikkol
|
 |
|
Topic  |
|