Stratics - The Massively Multiplayer Network
Stratics Network Stratics Community Stratics Central  
Sitename Stratics Front Page
[ CHECK OUT THE FORUMS | Submit News | Submit a Poll | Submit a Screenshot ]
News Feed
Would you like to display Horizons Stratics news on your website? Well this is the place to learn how to set up the Horizons Stratics news feed. We offer the following variety of ways to work with the news feed in either a pre-formatted or un-formatted version:
Pre-formatted Example
 

JavaScript
The pre-formatted feed can be added to your site by including the following HTML code where you'd like the feed data to appear:
<script language="JavaScript" src="http://hz.stratics.com/php-bin/rss/jsformat.php">
 <noscript>
  <a href="http://hz.stratics.com/">Latest Horizons News</a>
 </noscript>
</script>
To include the un-formatted feed in your page you can include the following HTML code on your website where you'd like the feed data to appear:
<script language="JavaScript" src="http://hz.stratics.com/php-bin/rss/javascript.php">
 <noscript>
  <a href="http://hz.stratics.com/">Latest Horizons News</a>
 </noscript>
</script>
To visually enhance the un-formatted feed you can use Cascading Style Sheets (CSS)

[ Back to Top ]

PHP
In order to include the feed using PHP in your website you can use the include function if your PHP version supports the function.

The pre-formatted feed can be added to your site by including the following PHP code where you'd like the feed data to appear:

<?php include("http://hz.stratics.com/php-bin/rss/format.php"); ?>
    
To include the un-formatted feed in your page you can include the following PHP code on your website where you'd like the feed data to appear:
<?php include("http://hz.stratics.com/php-bin/rss/read.php"); ?>
    
To visually enhance the un-formatted feed you can use Cascading Style Sheets (CSS)

[ Back to Top ]

Perl/SSI
To use Perl you must have the LWP module. Add the following script to your /cgi-bin/ as, for example, simpleread.pl:
Please note that you may need to change the first line to point to your instance of Perl
#!/usr/bin/perl

use LWP::Simple;
print "Content-type: text/html\n\n";
    
The pre-formatted feed can be added to your site by adding the following Perl code to the above script:
print get('http://hz.stratics.com/php-bin/rss/format.php');
    
The pre-formatted feed can be added to your site by adding the following Perl code to the above script:
print get('http://hz.stratics.com/php-bin/rss/read.php');
    
Once the script is created, simply add the following line to your website to display the feed:
<!--#include virtual="/cgi-bin/simpleread.pl"-->
    
To visually enhance the un-formatted feed you can use Cascading Style Sheets (CSS)

[ Back to Top ]

CSS
If you're using the un-formatted feed you can visually enhance the feed by creating the following CSS classes:
  • hzs_main
  • hzs_head
  • hzs_hlink
  • hzs_list
  • hzs_item
  • hzs_ilink
To best illustrate where the CSS classes are called, the HTML source code for the feed is provided below:
<table class="hzs_main">
<tr><td class="hzs_head"><a href="http://hz.stratics.com" class="hzs_hlink" target="_blank">Horizons Stratics</a></td></tr>
<tr><td><table class="hzs_list"><tr><td class="hzs_item"><a href="http://hz.stratics.com/#newsitem1179414020,17827," class="hzs_ilink" target="_blank">Account Bannings - Game Exploitation</a></td></tr>
<tr><td class="hzs_item"><a href="http://hz.stratics.com/#newsitem1165534897,59286," class="hzs_ilink" target="_blank">Horizons Subscriber Account Validation Required.</a></td></tr>
<tr><td class="hzs_item"><a href="http://hz.stratics.com/#newsitem1165168646,28427," class="hzs_ilink" target="_blank">Pixel Magic Entertainment Acquires E I Interactive</a></td></tr>
<tr><td class="hzs_item"><a href="http://hz.stratics.com/#newsitem1165168465,16704," class="hzs_ilink" target="_blank">Tabula Rasa Beta Olympics - Public Voting</a></td></tr>
<tr><td class="hzs_item"><a href="http://hz.stratics.com/#newsitem1163217517,1240," class="hzs_ilink" target="_blank">FINAL FANTASY&reg; XI Vana'diel&reg; Collection 2007 Contest</a></td></tr>
</table></td></tr></table>
[ Back to Top ]

Pure RSS & Other
The pure RSS data is available in two formats: You can manually parse the data or can use such applications as WatzNew to parse the data. We suggest using RSS 1.0. However, there is some software, such as the RSSNews plugin for Trillian Pro requires the RSS 0.91 format.

[ Back to Top ]


Last updated: February 01, 2004



This site best viewed in Internet Explorer.
 
©2004, Stratics. All rights reserved.
Maintained by: Horizons Stratics Staff
Graphic Design Credits