|
Home
Feed Categories
What is RSS?
Why use RSS?
Get PHP Code
Installing Free Code
|
|
Installing your script
Once you have obtained your code via email, follow these instructions to get your RSS stream up and going on your webpage. I recommend you use the PHP installation instructions to receive the full benefit of having these news streams on your site.
Search engines will then consider the streaming text as part of your site and believe that your page is continually being updated. If you use the HTML installation, the search engine will not see the text of the RSS stream. (You may be able to circumvent this problem by Teaching your sever to parse HTML pages as PHP Click here for details). To see the results of the stream on your page, open your site in the web browser then hit 'view' then 'source' to see what the search engines sees.
PHP
Even if you are only familiar with HTML, you should be able to follow these simple instructions to get the code on your page.
The basic HTML webpage has the following basic tags:
<HTML>
<HEAD>
<TITLE>(INSERT TITLE HERE)</TITLE>
</HEAD>
<BODY>
(WEB PAGE STUFF GOES IN HERE)
(Locate a suitable place on your page and paste your PHP script there)
</BODY>
</HTML>
The script you received will look like this: </SCRIPT LANGUAGE="PHP"> include "http://www.originotions.com/parser.php?rssstream=...</SCRIPT>
The script you received starts with </SCRIPT LANGUAGE="PHP">
which notifies the server (where your website is hosted) that what follows the script tag is going to be something that needs to be interpreted on the server before the page is displayed to the visitor on your site. The rest of the code after the script tag executes a program on our server that extracts out the article from the RSS feed and displays it on your page.
Once you have inserted the code where you would like it to display on your page, save the file with the .php extension. For example, if your page was named index.html you'll need to save it as index.php. Now upload it to your server the same way you would upload your .html file. Next, go to your website and type in http://wwww.yourwebsite.com/index.php (make sure you change the .html to .php) and see if your news RSS feed is displaying the way you'd like it.
You can look in the script you were sent and change many of the variables that affect the colors, font, and width of the output. You can also go back to the 'Generate Code' page and make your changes and have a new code sent to you.
HTML Installation Instructions
The RSS feed content will show up in your html page but not your source code so the search engine will not see it using the HTML method.
The basic HTML webpage has the following basic tags:
<HTML>
<HEAD>
<TITLE>(INSERT TITLE HERE)</TITLE>
</HEAD>
<BODY>
(WEB PAGE STUFF GOES IN HERE)
(Locate a suitable place on your page and paste your Iframe script there)
</BODY>
</HTML>
|
|
The script you received will look like this:
The Iframe (stands for internal frame) is an HTML command that creates a space on your site to display the RSS feed. Unfortunately, the contents of the feed are invisible to search engines. If you look at your page's source code it just shows the Iframe link and not the contents of the feed. That is why the PHP method is recommended.
Once you have inserted the code where you would like it to display on your page, save the file with a name like index.html and upload it to your server. Next, go to your website and type in http://wwww.yourwebsite.com/index.html and see if your news RSS feed is displaying the way you'd like it.
You can look in the script you were sent and change many of the variables that affect the colors, font, and width of the output. You can also go back to the 'Generate Code' page and make your changes and have a new code sent to you.
Editing Code Variables
If you look within the code that is sent to you, there are many variable that you can edit yourself to enhance or modify the look of your output to your page.
rssstream= http://rss.cnn.com/rss/cnn_health.rss: is the url of the RSS feed source.
formmaxitems= 2: this is number of article from the feed you would like to display. You can change this number to raise or lower the number of articles displayed. Some feeds have only a few articles while others have dozens.
formwidth=200: This is the number of pixels of width of the output from the RSS feed. Your screen is generally 800 or 1024 pixels wide. This number should be the same as your width variable later in the code in the HTML script. If your formwidth variable is higher than your width variable, the text will be chopped off when it is displayed. If your width variable is greater than your formwidth variable, all the text will be bunched up on the left side of your display.
formheadercolor=dododo: This is the color background color of the title bar that displays the name of the RSS source. You can replace it with normal color names like red or darkgreen or hexidecimal color codes for HTML.
formbordercolor=3: This dictates the width of the border surrounding the entire display box in pixels.
formbordercolor=white: This is the color of the border. Set it to the same color as your background to show no border.
formpadding=5: This is the amount of spacing from other items on your page next to the display box in pixels.
formbgcolor=white: Determines the color of the background of the display box.
formdate=black: Determines the color of the date text.
formarticle=black: Determines the color of the text of the article snippet displayed.
formlinkcolor=black: Determines the color of the text of the link to the article displayed.
formsourcecolor=navy: Determines the color of the text of the RSS Feed source in the top bar displayed.
formfont=times: Determines the font of the text displayed.
scrollbar=no: Determines if a scroll bar is displayed to move up and down inside the display box. If you have a small space but want a lot of articles you can change this to 'On'.
width="200": Closely tied to formwidth. This determines the width of the display box in pixels. See formwidth.
height=600; This is the height of the box displayed in pixels. If you have a bunch of extra white space below the feeds displayed, lower this number. If your articles are getting chopped off at the bottom, you can raise this number.
|
|
|