Author |
Topic |
|
Ra1ney
Junior Member
United Kingdom
113 Posts |
Posted - 20 September 2003 : 09:32:46
|
Hello there
I'm using the Poll, Newsletter and Events Calendar mods on my forum but would like to move each of them to their separate pages. I know I can move the <!-- #INCLUDE file="xxxx" --> around, but if I put it on a separate page, do I need to include any other code or includes?
Can anyone help?
Many thanks in advance |
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 20 September 2003 : 09:59:47
|
If you put it on a page of its own you'll need at least inc_header.asp and inc_footer.asp and config.asp, most likely inc_func_common.asp will be required too. |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
Ra1ney
Junior Member
United Kingdom
113 Posts |
Posted - 20 September 2003 : 10:52:14
|
quote: Originally posted by Gremlin
If you put it on a page of its own you'll need at least inc_header.asp and inc_footer.asp and config.asp, most likely inc_func_common.asp will be required too.
Excellent! Thanks for the starting point, I'll give it a try and hope it works out |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 20 September 2003 : 11:07:24
|
Post back if you run into troubles. |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
Ra1ney
Junior Member
United Kingdom
113 Posts |
Posted - 20 September 2003 : 17:21:16
|
quote: Originally posted by Gremlin
Post back if you run into troubles.
...eek, you had to say it!!! I was doing fine until just now I re-read the readme files and considered your advice. I made a 'subscribe to newsletter' page with just the following code on it:
<!--#INCLUDE file="config.asp"--> <!--#INCLUDE file="inc_func_secure.asp" --> <!--#INCLUDE file="inc_sha256.asp"--> <!--#INCLUDE file="inc_header.asp" --> <!-- #INCLUDE file="nlform.asp" -->
And for the Polls page, I used this code:
<!--#INCLUDE file="config.asp"--> <!--#INCLUDE file="inc_func_secure.asp" --> <!--#INCLUDE file="inc_sha256.asp"--> <!--#INCLUDE file="inc_header.asp" --> <!--#INCLUDE file="inc_func_member.asp" --> <!--#INCLUDE file="inc_moderation.asp" --> <!--#INCLUDE file="inc_subscription.asp" --> <!--#INCLUDE file="inc_poll.asp" -->
They both seem to work, but can you have a quick look and let me know if you think they're okay (I took inspiration from default.asp)?
There is actually an include for the 'events' page, which I put on a page of it's own. It was working fine earlier today, but for some isn't working now. The readme says to use <!--#INCLUDE FILE="cal_include.asp"-->, but I've also tried using <!--#include file="cal_default.asp" -->, which is the include for default.asp. They were both working, but now throw up the following error:
Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: 'DateValue' /petsinthecity/forum/cal_default.asp, line 5
Line 5 of cal_default.asp is: dateHolder = dateValue(strForumTimeAdjust)
The events calendar works fine on default.asp, but no longer works on it's own page...any ideas??? I don't think I've done anything that should have effected it...definitely haven't touched cal_default.asp. Haven't a clue what's happened here...outta my league me thinks
Thanks in advance
Ra1ney |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 20 September 2003 : 22:03:15
|
Are the new files you've created inside your forum folder ? are other forum pages still working ok ? |
Kiwihosting.Net - The Forum Hosting Specialists
|
|
|
Ra1ney
Junior Member
United Kingdom
113 Posts |
Posted - 21 September 2003 : 15:27:38
|
quote: Originally posted by Gremlin
Are the new files you've created inside your forum folder ? are other forum pages still working ok ?
Yep, the new files are located within the forum directory. Everything else there seems to be working, even the events calendar include (cal_default.asp) on the forum default.asp is working fine...but it no longer wants to work on its own . No idea what's up??? |
|
|
gelliott
Junior Member
USA
268 Posts |
Posted - 22 September 2003 : 12:19:16
|
You're not showing that you're including inc_footer.asp - it probably won't solve your problem, but it will at least make sure your connections, recordsets, & variables are being properly closed out. |
* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized. |
|
|
Ra1ney
Junior Member
United Kingdom
113 Posts |
Posted - 22 September 2003 : 13:29:11
|
quote: Originally posted by gelliott
You're not showing that you're including inc_footer.asp - it probably won't solve your problem, but it will at least make sure your connections, recordsets, & variables are being properly closed out.
Thanks for the tip, I'll do that But you're right, it didn't make any difference to the problem
Thanks anyway though, much appreciated! Do I take it that I should include inc_footer on any extra forum pages I make??
Ra1ney |
|
|
Ra1ney
Junior Member
United Kingdom
113 Posts |
Posted - 22 September 2003 : 13:43:43
|
Hi Gelliott,
I know you said that I was missing inc_footer, but are all the other files I've included necessary or should I remove some of them? I'm using the same includes for the Events page as the Polls page. D'you think it's okay?
Thanks Ra1ney |
|
|
|
Topic |
|