Author |
Topic  |
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 02 June 2008 : 15:34:06
|
ok here..try this, replace the function with the 1 below
< |
© 1999-2010 MaD2ko0l |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 02 June 2008 : 16:54:38
|
|
© 1999-2010 MaD2ko0l |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
leatherlips
Senior Member
   
USA
1838 Posts |
Posted - 02 June 2008 : 19:32:09
|
I just found a problem. 
I also have the private messages mod installed.
One of my users tried to pm me with a quote and got the following error:
Microsoft VBScript runtime error '800a000d' Type mismatch: 'chkForumAccessNew' /forum/inc_func_common.asp, line 165
Line 165 is below in red. I've included some of the surrounding code:
if mLev = 4 then ModerateAllowed = "Y" elseif mLev = 3 and ModOfForums <> "" then if (strAuthType = "nt") then if (chkForumModerator(Forum_ID, Session(strCookieURL & "username")) = "1") then ModerateAllowed = "Y" else ModerateAllowed = "N" else if (instr("," & ModOfForums & "," ,"," & Forum_ID & ",") > 0) then ModerateAllowed = "Y" else ModerateAllowed = "N" end if else ModerateAllowed = "N" end if if chkForumAccessNew(Forum_PrivateForums,Forum_FPasswordNew,Forum_Subject,Forum_ID,MemberID) = true then if allAllowedForums = "" then allAllowedForums = Forum_ID else allAllowedForums = allAllowedForums & "," & Forum_ID end if end if next end if if allAllowedForums = "" then allAllowedForums = 0 end if
Any ideas what is going on?< |
Mangione Magic Forum - The Music of Chuck Mangione
My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 02 June 2008 : 19:39:14
|
Following on from leatherlips latest error message, I also tried to send a New PM to him and as soon as I clicked on the PM New button/link I received the same error message: Microsoft VBScript runtime error '800a000d' Type mismatch: 'chkForumAccessNew' /forum/inc_func_common.asp, line 165 It appears the 'chkForumAccessNew' needs addressing! < |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
Posted - 02 June 2008 : 19:57:34
|
I've tried changing line 165 from this:
if chkForumAccessNew(Forum_PrivateForums,Forum_FPasswordNew,Forum_Subject,Forum_ID,MemberID) = true then
To this:
chkForumAccessNew(fPrivateForums,fFPasswordNew,fForum_Subject,fForum_ID,UserNum) = true then
But it didn't fix it. I changed it to that because that is how it looks now in inc_func_secure.asp. I'm thinking there are other parts of the code that just need to be updated to the current forum code. The topics count code is for an older version of Snitz. Can anyone let me know what other things in the code need to be revised to reflect the newer Snitz code?< |
Mangione Magic Forum - The Music of Chuck Mangione
My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD |
 |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 02 June 2008 : 21:57:31
|
god dam it..why can i never re create these errors tht you guys get?
i will have another look tomorrow. and see what/if i can get the error< |
© 1999-2010 MaD2ko0l |
 |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 02 June 2008 : 22:22:58
|
doh, you even said the answer yourself ;-)
inc_func_secure.asp
the reason its messing up on that function is because the page you are trying to view doesnt have inc_func_secure.asp included.
try this
add the folloeing to the very 1st line as in before the <% and then try it.
<!--#INCLUDE FILE="inc_func_secure.asp" -->
the reason i wasnt seeing these errors is i was logged in as the admin :-(< |
© 1999-2010 MaD2ko0l |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 03 June 2008 : 10:58:41
|
quote: Originally posted by leatherlips
That did it! I added it to inc_func_common.asp. That won't cause a problem with the site will it? Or would it be better to add it to the private messages pages?
I didn't see the problem either while logged in as the admin. It seemed to only effect normal users.
eermm you could add it to the pm pages, but you would need to add it to all pages that didnt have it included.
so you could go through all the pages and add the include to the pages that dont have it,
or
you coudl go through all the asp pages and delete the include and just use it in inc_func_common as inc_func_common is included in everypage the forum uses.
as for the other problem, what do you mean by all the links took him to the same topic?
can you recreate this problem youself?< |
© 1999-2010 MaD2ko0l |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
MaD2ko0l
Senior Member
   
United Kingdom
1053 Posts |
Posted - 03 June 2008 : 18:07:01
|
intreasting...my copy dont do that, howevere after a bit of messing about, as a normal memebr i woudl alwasy get a "you dont have acces to this forum" error and while looking around the code its somthign to do with private forums.
but also what i noticed, it seems as the stats page on default.asp doesnt filter out private forums as well.
i am either missing somthing or this is beyong my knowledge.
will have another look and see what i can come up with
P.S make sure you havent messed up of the code placements as somthign isnt quite right there, its liek it looking at a fixed value when goign to the forum.asp page.
if you remove the active topic cout does the forums work as normal?< |
© 1999-2010 MaD2ko0l |
Edited by - MaD2ko0l on 03 June 2008 18:08:03 |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
Topic  |
|