Author |
Topic |
|
digitaldi
Starting Member
7 Posts |
Posted - 03 February 2004 : 18:26:32
|
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
|
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 |
|
|
masterao
Senior Member
Sweden
1678 Posts |
Posted - 03 February 2004 : 20:02:02
|
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 |
|
|
zeth
Junior Member
United Kingdom
117 Posts |
|
masterao
Senior Member
Sweden
1678 Posts |
|
digitaldi
Starting Member
7 Posts |
Posted - 04 February 2004 : 14:30:30
|
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 |
|
|
masterao
Senior Member
Sweden
1678 Posts |
Posted - 04 February 2004 : 14:52:20
|
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 |
|
|
digitaldi
Starting Member
7 Posts |
Posted - 04 February 2004 : 16:30:55
|
Well, dah .... Thanks for showing me the obvious! |
Diane Page Forward Design www.pageforwarddesign.com |
|
|
masterao
Senior Member
Sweden
1678 Posts |
|
|
Topic |
|
|
|