Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 banners at the top of the forum
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

hpo
Starting Member

USA
5 Posts

Posted - 09 October 2003 :  00:39:52  Show Profile  Visit hpo's Homepage
I am trying to setup a rotating banner page via an
<!--#INCLUDE VIRTUAL="/banners/banner.asp" -->.
I added the #include in the inc_header.asp page but I get an error as soon as the page loads.

"Active Server Pages error 'ASP 0140'
Page Command Out Of Order
/banners/banners.asp, line 1
The @ command must be the first command within the Active Server Page."

Where is the best place to do this?
Thank you.

puzo
Junior Member

Israel
417 Posts

Posted - 09 October 2003 :  01:43:30  Show Profile  Visit puzo's Homepage
try replacing:

<!--#INCLUDE VIRTUAL="/banners/banner.asp" -->

with:

<!--#INCLUDE FILE="/banners/banner.asp"-->


Go to Top of Page

hpo
Starting Member

USA
5 Posts

Posted - 09 October 2003 :  11:42:33  Show Profile  Visit hpo's Homepage
Actually the directory "banners" is outside the forum so that is why I used the Virtual path. I don't think that would cause this error.

Thanks
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 09 October 2003 :  13:57:38  Show Profile  Visit Ryan's Homepage
You could just put that single file in the forum directory. It would make it easier. Of course you probably have your reasons.

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

hpo
Starting Member

USA
5 Posts

Posted - 09 October 2003 :  21:57:10  Show Profile  Visit hpo's Homepage
OK, just for kicks I did put it inside the forum directory and even used the FILE instead of VIRTUAL but still the same problem. Does anyone have any suggestions???

Has anybody tried to add banners to the forum successfully??

Thanks for you time.
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 09 October 2003 :  22:11:39  Show Profile  Visit Ryan's Homepage
Yes. See one of my sites.
Please post a txt of the file you have the include file in.

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

hpo
Starting Member

USA
5 Posts

Posted - 13 October 2003 :  15:35:00  Show Profile  Visit hpo's Homepage
OK, I have my own banner rotation script, where can I add this?
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 13 October 2003 :  22:23:47  Show Profile  Visit Ryan's Homepage
Anywhere you like.
If you would like it to appear on all forum pages centered under the logo and login info add this:
Response.Write "<div align=center>"
%>
<!--#INCLUDE FILE="banner.asp" -->
<%
Response.Write "<Center><font face=""" & strDefaultFontFace & """ size=-1>-- <a href=""http://forums.thepoultrylink.com/topic.asp?TOPIC_ID=326""" & dWStatus("Buy ad space here...") & " tabindex=""-1""><acronym title=""Purchase ad space on TPL..."">Advertise Here!</a> --</acronym></Center>"
Response.Write "</div>"
Response.Write "<div align=center>"
Response.Write "</div>"

above this:
%>
(last line of code in inc_header.asp)

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

Zenfor
Junior Member

372 Posts

Posted - 15 October 2003 :  11:04:54  Show Profile
I have it nicely on my site in the header and on each message.
http://www.eastonmass.com

I have the include inserted on inc_header.asp and topic.asp and call a randomized banner script.

If you need more info, send me an email.
Go to Top of Page

Ryan
Average Member

USA
858 Posts

Posted - 15 October 2003 :  11:43:12  Show Profile  Visit Ryan's Homepage
quote:
Originally posted by Ryan

Anywhere you like.
If you would like it to appear on all forum pages centered under the logo and login info add this:
Response.Write "<div align=center>"
%>
<!--#INCLUDE FILE="banner.asp" -->
<%
Response.Write "<Center><font face=""" & strDefaultFontFace & """ size=-1>-- <a href=""http://forums.thepoultrylink.com/topic.asp?TOPIC_ID=326""" & dWStatus("Buy ad space here...") & " tabindex=""-1""><acronym title=""Purchase ad space on TPL..."">Advertise Here!</a> --</acronym></Center>"
Response.Write "</div>"
Response.Write "<div align=center>"
Response.Write "</div>"

above this:
%>
(last line of code in inc_header.asp)
I guess I should have said insert this code into inc_header.asp if you would like it on all forum pages.

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
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.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07