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
 Content Display vbscript error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

digitaldi
Starting Member

7 Posts

Posted - 03 February 2004 :  18:26:32  Show Profile  Visit digitaldi's Homepage
I am getting the following error after completing the implementation steps for the Content Display 3.4.08. I have spent a lot of time in this forum trying to find a solution but have come up short.

Here is the error:
Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'DisplayContent'
/Jerkamer/testContent.asp, line 13

My forum is in a sub-folder off the root of my website and is named 'snitz'. Here is the code in my .asp file:


<!-- INCLUDE file="snitz/config.asp"-->
<!-- INCLUDE file="snitz/inc_func_secure.asp"-->
<!-- INCLUDE file="snitz/inc_sha256.asp"-->
<!-- INCLUDE file="snitz/inc_header.asp"-->
<!-- INCLUDE file="snitz/content.asp"-->
<!-- INCLUDE file="snitz/inc_content_display.asp"-->
<html>
<head>
<title></title>
</head>
<body>
<% DisplayContent 0,0,2,2,0,50,25,15,0,0,3,0,"Recent Posts","500",""%>
<!-- INCLUDE file="snitz/inc_footer.asp"-->
</body>
</html>


Any ideas?

Diane
Page Forward Design
www.pageforwarddesign.com

zeth
Junior Member

United Kingdom
117 Posts

Posted - 03 February 2004 :  19:51:29  Show Profile  Visit zeth's Homepage
Have you tried testing the file within the forum folder first?

Sounds silly but with the Content Display Mod you have to be very careful how you implement it if you have it outside the forum folder.

Also when I use it (see for example the index page or news page at the theology link below), I put the whole page in asp. But that might just be me, since I haven't tried it your way. So for example:

<!--#INCLUDE VIRTUAL="snitz/config.asp"-->
<!--#INCLUDE VIRTUAL="snitz/inc_func_secure.asp"-->
<!--#INCLUDE VIRTUAL="snitz/inc_sha256.asp"-->
<!--#INCLUDE VIRTUAL="snitz/inc_header.asp"-->
<!--#INCLUDE VIRTUAL="snitz/content.asp"-->
<!--#INCLUDE VIRTUAL="snitz/inc_content_display.asp"-->


<%
response.write( "<h3>Hello world!</h3>")
%>


<% DisplayContent 0,0,2,2,0,50,25,15,0,0,3,0,"Recent Posts","500",""%>


<%
response.write( "Wasn't that fun")
%>

<!--#INCLUDE VIRTUAL="snitz/inc_footer.asp"-->

THEOLOGY.ME.UK CROSSRING.COM

Edited by - zeth on 03 February 2004 20:06:51
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 03 February 2004 :  20:02:02  Show Profile  Visit masterao's Homepage
Are you aware of that none of those include file-calls works, as you are missing the # in them?
They should look like this: <!--#INCLUDE FILE="snitz/config.asp"-->

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

zeth
Junior Member

United Kingdom
117 Posts

Posted - 03 February 2004 :  20:07:58  Show Profile  Visit zeth's Homepage
That would probably be it - Nordic air allows clear thought!

THEOLOGY.ME.UK CROSSRING.COM
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 04 February 2004 :  07:42:57  Show Profile  Visit masterao's Homepage

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

digitaldi
Starting Member

7 Posts

Posted - 04 February 2004 :  14:30:30  Show Profile  Visit digitaldi's Homepage
Thanks guys. I put the page in my forum directory and I found I had to change the name of my forum folder to 'forum' from 'snitz' to get the icons to display. Now I have my recent posts displaying, but the link to the topic is missing the 'topic.asp'. The link is like this:

http://www.jerkamer.com/forum/?TOPIC_ID=313

instead of:

http://www.jerkamer.com/forum/topic.asp?TOPIC_ID=313

In content.asp it looks like the variable, strLink, is used as part of the topic link string. I tried setting strLink ="topic.asp" at the top of content.asp; but it must be reassigned to "" somewhere down the line. Any clues on how to get the topic link corrected?

Diane
Page Forward Design
www.pageforwarddesign.com
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 04 February 2004 :  14:52:20  Show Profile  Visit masterao's Homepage
That sounds like you haven't defined strLink in the sub-call.

The sub-call looks like this, and strLink is the redmarked part:

<% DisplayContent 0, 3, 2, 12, 0, 5, 200, 0, 5, 1, 1, 0, "Top News Stories", 300, "news.asp" %>

Change it to topic.asp, and it should work.


Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

digitaldi
Starting Member

7 Posts

Posted - 04 February 2004 :  16:30:55  Show Profile  Visit digitaldi's Homepage
Well, dah .... Thanks for showing me the obvious!

Diane
Page Forward Design
www.pageforwarddesign.com
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 04 February 2004 :  16:33:54  Show Profile  Visit masterao's Homepage
No problems

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07