In order to use NewsPro properly, you have to include a file
it generates, called news.txt, into the HTML page where you want
your news. The easiest and most widespread method of doing this is
via SSIs, or Server Side Includes. Here is a quote from readme.txt
that briefly explains SSIs:
To include your news in your page, insert the following code into your page where you want the news to be: <!--#include virtual="news.txt" --> This assumes that news.txt is in the same directory as your page. If news.txt is, for instance, located at http://www.mysite.com/mypage/cgi-bin/newspro/news.txt, and the file you're including it in is in any other directory on your site, use: <!--#include virtual="/mypage/cgi-bin/newspro/news.txt" --> NOTE: When using server-side includes and "#include virtual", do not use absolute paths. Simply use the URL of the page, minus http://www.mysite.com, as in the example above. If you do need to use absolute paths, use "#include file" instead. | These
instructions will work for the majority of servers, but
unfortunately they won't work for some. Here are some suggested
actions to take if you have problems:
IF THERE IS NOTHING
WHERE THE NEWS SHOULD BE:
- Look at news.txt and make sure that it does indeed contain some news items. If you haven't submitted any items yet, there won't be anything on your page... - Look at the source of your HTML page by clicking choosing "View Source" in your browser (usually under the View menu; called Source in IE, Page Source in Netscape). Do you see the SSI code you used there? If not, edit the page again and put the code back it, as it has been erased somehow. - If your news page doesn't have a .shtml extension (e.g. index.shtml or news.shtml), give it one. - Look at your web host's support pages or contact their support department to determine if SSI is permitted and, if so, how it can be enabled. | IF
YOU SEE [an error occurred while processing this directive]:
- Try the following SSI tags. In these examples, news.shtml is located at http://www.example.com/news.shtml and news.txt is located at the URL http://www.example.com/cgi-bin/newspro/news.txt and the absolute path /usr/home/example/public_html/cgi-bin/newspro/news.txt <!--#include virtual="/cgi-bin/newspro/news.txt" --> <!--#include virtual="cgi-bin/newspro/news.txt" --> <!--#include file="cgi-bin/newspro/news.txt" --> <!--#include file="/usr/home/example/public_html/cgi-bin/newspro/news.txt" --> | If
the suggestions above fail, see your web host's support pages or
contact their support department. The way SSIs work is often
server-specific, and it is unlikely that NewsPro support will be
able to help.
|