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
 Killed Active Users mod whilst installing PM mod
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

gstoker1
Starting Member

9 Posts

Posted - 13 May 2007 :  03:30:01  Show Profile  Visit gstoker1's Homepage
Hi, I wonder if anyone can help me. I've just installed Private Messages 3.5 mod (onto Snitz 3.4.06). It is working absolutely perfectly, however in the process, I have managed to kill the previously successfully working Active Users 4.0.18 mod. Here's some of the detials:


It all seems to stem around the following line in default. asp

<!--#include file="inc_activeusers.asp"-->

With that line in, the site partially crashes (a black bar on the default page including this message):

Microsoft VBScript runtime error '800a000d'
Type mismatch: 'chkAUPermissions'

/inc_activeusers.asp, line 39


The point at which this line appears is next to the other edit I had to make to the default default.asp to get the active users mod to work. Here's the section:

end if

if strPMStatus = "1" then
%>
<!--#INCLUDE FILE="privatemess.asp"-->
<%
end if


if strShowStatistics = "1" then
WriteStatistics
end if


In the original file before I added any mods, it went from the endif at the top to the if strShowStatistics line. So with the active users mod in, it was just like this:

end if
%>
<!--#INCLUDE FILE="inc_activeusers.asp"-->
<%
if strShowStatistics = "1" then
WriteStatistics
end if


So i've tried the additional include in a variety of places - seems to work fine, however whatever else i may have done means that now no matter where i put the original include, i get the error.

The error, by the way, refers to a file that i have not changed at all in adding the new functionality. The offending section referred to in the error message is:

bolOverride = chkAUPermissions(strAUAnonOverride)
bolPanel = chkAUPermissions(strAUPAllow)
bolAUPage = chkAUPermissions(strAUAllow)


Only other thing i can mention is that i can no longer access the admin page for the original active users mod, i get:

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'checkRadio'

/admin_config_activeusers.asp, line 71


This refers to another file i've not changed during this mod install, the detailed line is:

response.write " <form action=""admin_config_activeusers.asp"" method=""post"" id=""Form1"" name=""Form1"">" & VBNewLine & _
" <input type=""hidden"" name=""Method_Type"" value=""Write_Configuration"">" & VBNewLine & _
" <table border=""0"" cellspacing=""0"" cellpadding=""0"" align=center>" & VBNewLine & _
" <tr>" & VBNewLine & _
" <td bgcolor=""" & strPopUpBorderColor & """>" & VBNewLine & _
" <table border=""0"" cellspacing=""1"" cellpadding=""4"">" & VBNewLine & _
" <tr valign=""top"">" & VBNewLine & _
" <td bgcolor=""" & strHeadCellColor & """ colspan=""2""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor &


Help!!!!!!!! I'm not at all experienced with ASP (or programming at all) and have simply been trying to carefully follow the instructions in modifying the code etc.
Thanks in advance for anyone's suggestions.

Graeme.

Hermes
Junior Member

Croatia
113 Posts

Posted - 13 May 2007 :  04:54:36  Show Profile

qstoker,
I am not asp programmer but have both mod implemented successfully

part with include file goes like this:

next '## Next Forum
end if
next '## Next Category
end if
if strPMStatus = "1" then
%>
<!--#INCLUDE FILE="privatemess.asp"-->
<% end if
%>
<!--#include file="inc_activeusers.asp"-->
<%
if strShowStatistics = "1" then
WriteStatistics
end if

Response.Write " </table>" & vbNewline & _
" </td>" & vbNewline & _
" </tr>" & vbNewline & _
" <tr>" & vbNewline & _

The other part, I think that you maybe mess something in admin_home.asp

If this upper those not help, post .txt files of default.asp and admin_home.asp

btw. which database do you using?


ASP Snitz Forum Upute za instalaciju
http://www.kairos.com.hr http://www.hermetizam.com Forum

not so newbie any more :)
Go to Top of Page

gstoker1
Starting Member

9 Posts

Posted - 13 May 2007 :  05:18:20  Show Profile  Visit gstoker1's Homepage
Hi, thanks for the help. Tried amending the script to what you have, but I get the same error. So maybe the problem's elsewhere?

Files as requested are here:

www.radiodxer.co.uk/txt/default.asp.txt
www.radiodxer.co.uk/txt/admin_home.asp.txt

Thanks
Go to Top of Page

Hermes
Junior Member

Croatia
113 Posts

Posted - 13 May 2007 :  05:23:39  Show Profile

I will look at it now.
Do not post .txt files like that, in future erase .asp extension so taht only be default.txt

Did you implemented lang files?


ASP Snitz Forum Upute za instalaciju
http://www.kairos.com.hr http://www.hermetizam.com Forum

not so newbie any more :)
Go to Top of Page

gstoker1
Starting Member

9 Posts

Posted - 13 May 2007 :  05:27:28  Show Profile  Visit gstoker1's Homepage
OK thanks for the tip - will do that in future (sorry i'm new to this). Language - just the standard English only, thx.
Go to Top of Page

Hermes
Junior Member

Croatia
113 Posts

Posted - 13 May 2007 :  05:51:28  Show Profile

In default.txt that you put, you didn’t include code in my above post.
I hope that you check it in your default.asp

Well I check the code in both this files and it seems ok.
Logic tells that you mess something with private message mod, since active users worked before.

Best wait for senior members. They will locate problem more accurately than me.


ASP Snitz Forum Upute za instalaciju
http://www.kairos.com.hr http://www.hermetizam.com Forum

not so newbie any more :)
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 May 2007 :  06:01:33  Show Profile  Send ruirib a Yahoo! Message
Make sure you haven't messed up anything in inc_func_common.asp. Many times type mismatch errors result from the function being called not being defined in any file. In this case chkAUPermissions and checkRadio should be defined in inc_func_common.asp.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

gstoker1
Starting Member

9 Posts

Posted - 13 May 2007 :  06:16:16  Show Profile  Visit gstoker1's Homepage
quote:
Originally posted by ruirib

Make sure you haven't messed up anything in inc_func_common.asp. Many times type mismatch errors result from the function being called not being defined in any file. In this case chkAUPermissions and checkRadio should be defined in inc_func_common.asp.



Thanks for this, they seem to be there but then I dont really know what i'm looking for - file attached below.

Hermes - yes sorry the file i attached is the presently working one (ie PM working fine and not calling the activeusers inc, so no errors. See default2.txt below, this generates the errors i said in my original post.

www.radiodxer.co.uk/txt/default2.txt
www.radiodxer.co.uk/txt/inc_func_common.txt


thanks
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 May 2007 :  06:38:47  Show Profile  Send ruirib a Yahoo! Message
Hard to find out what's going on. Better post the code for inc_activeusers.asp and admin_config_activeusers.asp and inc_header.asp.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Hermes
Junior Member

Croatia
113 Posts

Posted - 13 May 2007 :  09:28:25  Show Profile

I checked now inc_func_common.asp, it is exactly like mine. So it is not that.

Please give us txt files which Ruirib suggested, and config.asp too (please delete name of your database and connection strings before posting that txt file).

I will compare everything with mine files.


ASP Snitz Forum Upute za instalaciju
http://www.kairos.com.hr http://www.hermetizam.com Forum

not so newbie any more :)
Go to Top of Page

gstoker1
Starting Member

9 Posts

Posted - 13 May 2007 :  10:25:22  Show Profile  Visit gstoker1's Homepage
Thanks for this, i'll post these files when I get home tonight, thanks again for everyone's help, it's really apprecaited.
Go to Top of Page

gstoker1
Starting Member

9 Posts

Posted - 13 May 2007 :  16:30:11  Show Profile  Visit gstoker1's Homepage
OK, forgot to say before, database is Access. Files now uploaded as requested:
www.radiodxer.co.uk/txt/inc_header.txt
www.radiodxer.co.uk/txt/inc_activeusers.txt
www.radiodxer.co.uk/txt/admin_config_activeusers.txt
www.radiodxer.co.uk/txt/config.txt

Thanks
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 May 2007 :  16:43:48  Show Profile  Send ruirib a Yahoo! Message
Your inc_header.asp is missing some code, AFAIK:

'*************** AU Mod **************
select case Request.Form("Method_Type")
  case "login"
	if strLoginStatus = 1 then
	  AUHandleLoging() 
	end if
  case "logout"
    AUHandleLoging() 
end select
ActiveUserTracker()
'*************** End AU **************

This shouldn't cause the errors you're experiencing, but you definitely need this.

I see no other problems...add this and let us know if it helps in any way.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

gstoker1
Starting Member

9 Posts

Posted - 13 May 2007 :  17:12:21  Show Profile  Visit gstoker1's Homepage
BINGO!!!

That looks like being it! I have absolutely no idea where that little bit of code went, clearly finger trouble on my part though. I'm just gonna test it now, but all being well that's sorted it.

I am so grateful to you both, Hermes and Ruirib, for your time, patience and expertise.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 13 May 2007 :  17:15:37  Show Profile  Send ruirib a Yahoo! Message
Glad it's finally working .


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Hermes
Junior Member

Croatia
113 Posts

Posted - 13 May 2007 :  18:36:38  Show Profile






ASP Snitz Forum Upute za instalaciju
http://www.kairos.com.hr http://www.hermetizam.com Forum

not so newbie any more :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.45 seconds. Powered By: Snitz Forums 2000 Version 3.4.07