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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Probable error with Active Users 4
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 23 May 2002 :  13:49:56  Show Profile  Visit MaD2ko0l's Homepage
Hi all,
i get an error when i login or log out.
Microsoft VBScript runtime error '800a01a8'

Object required: 'my_Conn'

/m2k2/inc_functions.asp, line 1656


i get that error and i tghink it is somethign to do with the Active Users 4


sub deleteInactiveUsers()
strAUTimedOut = DateToStr(DateAdd("n",-strAUTimeout,strForumTimeAdjust))
strSql = "DELETE FROM " & strTablePrefix & "ACTIVE_USERS WHERE AU_LASTACTIVETIME < '" & strAUTimedOut & "'"
my_conn.execute (strSql)
end sub

sub AUHandleLoging()
strSql = "DELETE FROM " & strTablePrefix & "ACTIVE_USERS WHERE AU_IP = '" & Chkstring(request.ServerVariables("REMOTE_ADDR"), "SQLString") & "'"
my_conn.execute (strSql) <------------Line 1656
end sub

function checkSelect(actualValue, thisValue)
if actualValue = thisValue then
checkSelect = " selected"
else
checkSelect = ""
end if
end function

thankx

MaD2ko0l

© 1999-2002 MaD2ko0l
-=[ Life Is So Easy When You Are Evil ]=-

Your title means the world to us. So take better care of it. - Davio

Edited by - Davio on 23 May 2002 22:01:04

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 24 May 2002 :  13:12:21  Show Profile  Visit MaD2ko0l's Homepage
any ideas?????
P.S Davio...where was this topic anyway??i dont remebr posting it

© 1999-2002 MaD2ko0l
-=[ Life Is So Easy When You Are Evil ]=-
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 24 May 2002 :  19:22:26  Show Profile  Visit Nathan's Homepage
Your not the first to have this problem. Though it makes absolutely no since unless you are using some external login system or something.

You can get rid of it by just removing that line.

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 May 2002 :  21:46:02  Show Profile
quote:
P.S Davio...where was this topic anyway??i dont remebr posting it
I didn't move your topic. I changed the title.

«------------------------------------------------------»
Want to know when the next version comes out,
as soon as possible? Join our Mailing Lists !
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 25 May 2002 :  05:57:22  Show Profile  Visit MaD2ko0l's Homepage
oh ok thankx Nathan and Davio

© 1999-2002 MaD2ko0l
-=[ Life Is So Easy When You Are Evil ]=-
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 28 May 2002 :  12:39:20  Show Profile  Visit MaD2ko0l's Homepage
hey uumm ok then i got rid of the string sub AUHandleLoging() and now i get this error


Microsoft VBScript runtime error '800a000d'

Type mismatch: 'AUHandleLoging'

/m2k2/inc_top.asp, line 316


any ideas?????

© 1999-2002 MaD2ko0l
-=[ Life Is So Easy When You Are Evil ]=-

Edited by - MaD2ko0l on 28 May 2002 12:49:29
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 28 May 2002 :  22:12:09  Show Profile  Visit Nathan's Homepage
Go to that line and remove the sub call from there. You were supposed to remove it from inc_top, not inc_functions :p

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 29 May 2002 :  10:46:47  Show Profile  Visit MaD2ko0l's Homepage
oohhhh lol silly me

thankx

MaD2ko0l

© 1999-2002 MaD2ko0l
-=[ Life Is So Easy When You Are Evil ]=-
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 29 May 2002 :  10:58:03  Show Profile  Visit MaD2ko0l's Homepage
uumm hehe...i got another prob.

Microsoft VBScript runtime error '800a01a8'

Object required

/m2k2/inc_footer.asp, line 76

i get that and the inc_footer is repeated twice.

any ideas why??

Thnakx

MaD2ko0l

© 1999-2002 MaD2ko0l
-=[ Life Is So Easy When You Are Evil ]=-
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 29 May 2002 :  18:39:55  Show Profile  Visit Nathan's Homepage
Ok, put the function back into inc_functions. Then start over with a fresh inc_top.asp.

You copied over some code that wasn't supposed to be copied over.

Nathan Bales
Snitz Exchange | Do's and Dont's

Edited by - Nathan on 29 May 2002 18:40:51
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 29 May 2002 :  18:52:41  Show Profile  Visit MaD2ko0l's Homepage
<% else %>
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">You Have Logged On Successfully!</font></p>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Thank You For Your Participation.</font></p>
<% end if %>
<meta http-equiv="Refresh" content="2; URL=<% =Request.ServerVariables("HTTP_REFERER") %>">

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="<% =Request.ServerVariables("HTTP_REFERER") %>">Back To Forum</font></a></p>

<% WriteFooter
%>
</td>
</tr>
</table>
<%
' AUHandleLoging()
WriteFooter
Response.End
case "logout"
%>
<tr><td width="100%">

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">You Have Logged Out Successfully!</font></p>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Thank You For Your Participation.</font></p>

<meta http-equiv="Refresh" content="2; URL=<% =Request.ServerVariables("HTTP_REFERER") %>">

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="<% =Request.ServerVariables("HTTP_REFERER") %>">Back To Forum</font></a></p>

<% WriteFooter
%>
</td>
</tr>
</table>
<%
' AUHandleLoging() 'Ls3k - AU4
WriteFooter
Response.End
end select
%>
</table>
</td></tr id=snclayouttable>
<tr id=snclayouttable><td width=140 valign=top>
<!-- #INCLUDE FILE="menu.asp" -->
</td>
<td valign=top width=810>


is this right in inc_top????

the function is in the inc_functions so this is all the prob now in inc_top.

i think

© 1999-2002 MaD2ko0l
-=[ Life Is So Easy When You Are Evil ]=-
Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 29 May 2002 :  19:01:04  Show Profile  Visit crash's Homepage
quote:

<% else %>
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">You Have Logged On Successfully!</font></p>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Thank You For Your Participation.</font></p>
<% end if %>
<meta http-equiv="Refresh" content="2; URL=<% =Request.ServerVariables("HTTP_REFERER") %>">

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="<% =Request.ServerVariables("HTTP_REFERER") %>">Back To Forum</font></a></p>

<% WriteFooter
%>
</td>
</tr>
</table>
<%
' AUHandleLoging()
WriteFooter
Response.End
case "logout"
%>
<tr><td width="100%">

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">You Have Logged Out Successfully!</font></p>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Thank You For Your Participation.</font></p>

<meta http-equiv="Refresh" content="2; URL=<% =Request.ServerVariables("HTTP_REFERER") %>">

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="<% =Request.ServerVariables("HTTP_REFERER") %>">Back To Forum</font></a></p>

<% WriteFooter
%>
</td>
</tr>
</table>
<%
' AUHandleLoging() 'Ls3k - AU4
WriteFooter
Response.End
end select
%>
</table>
</td></tr id=snclayouttable>
<tr id=snclayouttable><td width=140 valign=top>
<!-- #INCLUDE FILE="menu.asp" -->
</td>
<td valign=top width=810>


is this right in inc_top????

the function is in the inc_functions so this is all the prob now in inc_top.

i think

© 1999-2002 MaD2ko0l
-=[ Life Is So Easy When You Are Evil ]=-


what are the comments doing there?



Crash's Site | Crash is from
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 29 May 2002 :  19:18:08  Show Profile  Visit Nathan's Homepage
Replace that whole select structure with this one.



select case Request.Form("Method_Type")

case "login"
%>
</table>
</td>
</tr>
</table>
<% if strLoginStatus = 0 then %>
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Your username and/or password were incorrect.</font></p>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Please either try again or register for an account.</font></p>
<% else %>
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">You logged on successfully!</font></p>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Thank you for your participation.</font></p>
<% end if %>
<meta http-equiv="Refresh" content="2; URL=<% =Request.ServerVariables("HTTP_REFERER") %>">

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="<% =Request.ServerVariables("HTTP_REFERER") %>">Back To Forum</font></a></p>

<% AUHandleLoging() 'Ls3k - AU4
WriteFooter
Response.End
case "logout"
%>
</table>
</td>
</tr>
</table>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">You logged out successfully!</font></p>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Thank you for your participation.</font></p>

<meta http-equiv="Refresh" content="2; URL=<% =Request.ServerVariables("HTTP_REFERER") %>">

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="<% =Request.ServerVariables("HTTP_REFERER") %>">Back To Forum</font></a></p>

<% AUHandleLoging() 'Ls3k - AU4
WriteFooter
Response.End
end select




quote:

what are the comments doing there?



Its called troubleshooting.

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 29 May 2002 :  19:47:22  Show Profile  Visit MaD2ko0l's Homepage
so wot i do delete them???


if i uncomment them i get the first error that i first posted.
so wot do i do?

Thankx

MaD2ko0l

© 1999-2002 MaD2ko0l
-=[ Life Is So Easy When You Are Evil ]=-
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 29 May 2002 :  20:17:07  Show Profile  Visit Nathan's Homepage
You replace the select structure in your inc_top with that one I just posted.

Nathan Bales
Snitz Exchange | Do's and Dont's
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 30 May 2002 :  05:24:30  Show Profile  Visit MaD2ko0l's Homepage
yes but all that u did was uncomment the AUHandleLoging...but wouldnt that just give me the first error???because i commented them lines out when u said delet them lines.

© 1999-2002 MaD2ko0l
-=[ Life Is So Easy When You Are Evil ]=-
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07