Warning: include(/usr/home/stratics/public_html/subdomains/uoss/shared/template_begin.php): failed to open stream: No such file or directory in /home2/stratics/public_html/subdomains/uoss/content/news/feed.php on line 2

Warning: include(): Failed opening '/usr/home/stratics/public_html/subdomains/uoss/shared/template_begin.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/stratics/public_html/subdomains/uoss/content/news/feed.php on line 2

The code found on this page may auto-wrap, causing the code to flow to the next line. Please keep this in mind when copy/pasting code from this page.

Fancy having the fastest Ultima Online news around on your own website? Or even your desktop? Then you've come to the right place :) Here you'll find a selection of links and tips on using UO Stratics's RSS-based newsfeed with JavaScript, PHP, Perl, Nuke or even with Trillian and other systems. You can choose to have all news in one feed, or perhaps you would rather have a separate feed for each news category.

JavaScript

The simplest and easiest way to put the newsfeed is to use JavaScript. You have two options: a pre-formatted feed (as seen above) and an unformatted feed that will allow you to format to match your sites design (you'll need to use CSS - see the CSS section below for details).

To use the pre-formatted feed, simply include the following HTML snippet on your page where you want the feed to appear:

<script language="JavaScript" src="http://uo.stratics.com/php-bin/rss/jsformat.php"> <noscript><a href="http://uo.stratics.com/">Latest UO News</a></noscript> </script>

And to use the un-formatted feed, include the following HTML snippet on your page where you want the feed to appear, then set up the CSS on your page to make it look nice:

<script language="JavaScript" src="http://uo.stratics.com/php-bin/rss/javascript.php"> <noscript><a href="http://uo.stratics.com/">Latest UO News</a></noscript> </script>

PHP

If you don't want to use JavaScript, you can also grab the newsfeed using PHP (or Perl/SSI). The PHP include command can, if your install of PHP allows it, be used to read the feed. Simply add the line:

<?php include("http://uo.stratics.com/php-bin/rss/format.php"); ?>

into your page (or call http://uo.stratics.com/php-bin/rss/read.php if you want the un-formatted feed).

Perl

If you want to use Perl instead, you can get the same effect using a small script and the LWP module (which is usually installed on most systems these days). Add this script to your /cgi-bin/ as, for example, simpleread.pl:

#!/usr/bin/perl

use LWP::Simple;
print "Content-type: text/html\n\n";
print get('http://uo.stratics.com/php-bin/rss/format.php');

You may need to change the first line to point to your copy of Perl and, again, you can use http://uo.stratics.com/php-bin/rss/read.php to get the unformatted version. With that in place, add the following SSI command to your page to read the feed:

<!--#include virtual="/cgi-bin/simpleread.pl"-->

Nuke

If you are using a Nuke system, such as PostNuke or PHP-Nuke, you are best off including the raw RSS 1.0 feed found at http://uo.stratics.com/php-bin/rss/raw.php

CSS

The feed supplied has a number of CSS classes set up. You can set these in your own page to control the look of the feed if you want. The classes are as follows:

  • uos_main
  • uos_head
  • uos_hlink
  • uos_list
  • uos_item
  • uos_ilink
And you can see what they affect in this example:

<table class="uos_main">
<tr><td class="uos_head><a href="http://uo.stratics.com" class="uos_hlink" target="_blank">Star Wars Galaxies Stratics</a></td></tr>
<tr><td><table class="uos_list">
<tr><td class="uos_item"><a href="http://uo.stratics.com/#newsitem1045096564,4624," class="uos_ilink" target="_blank">PA Links of the Week!</a></td></tr>
<tr><td class="uos_item"><a href="http://uo.stratics.com/#newsitem1045095093,90601," class="uos_ilink" target="_blank">The End? I Think Not!</a></td></tr>
<tr><td class="uos_item"><a href="http://uo.stratics.com/#newsitem1045068933,46117," class="uos_ilink" target="_blank">Holobits, Scout's Honor! </a></td></tr>
<tr><td class="uos_item"><a href"http://uo.stratics.com/#newsitem1045062624,69595," class="uos_ilink" target="_blank">New Scout Diagram</a></td></tr>
<tr><td class="uos_item"><a href="http://uo.stratics.com/#newsitem1045033751,71251," class="uos_ilink" target="_blank">Random POIs?</a></td></tr>
</table></td></tr></table>

News Categories

Using any of the scripts mentioned on this page will give you a news feed that contains news items from all news categories on UO Stratics. If you want to receive news of one single category, then you can accomplish that by adding a category parameter to the URL you are using.

Example: If you would want to see only the Atlantic shard news items in raw format then you would use the following URL: http://uo.stratics.com/php-bin/rss/raw.php?category=Atlantic

These are the different categories you can use: GeneralNews, CommunityNews, DeveloperFeedback, QuestandEventNews, CandidCoverage, Atlantic, Baja, Catskills, Chesapeake, Drachenfels, Europa, GreatLakes, LakeAustin, LakeSuperior, LegendsAOL, NapaValley, Oceania, Origin, Pacific, SiegePerilous and Sonoma.

Other Stuff

If you want to access the raw RSS 1.0 data, you can reach it at http://uo.stratics.com/php-bin/rss/raw.php. Several programs can be set up to read and parse this, including WatzNew for which we have already created a channel you can install. Some older systems, like the RSSNews plugin for Trillian Pro will need the earlier RSS 0.9 format, which can be reached at http://uo.stratics.com/php-bin/rss/091.php.

For an extensive list of RSS News Readers visit Google's Web Directory.

Comments, bugs and suggestions can be directed to Xena Dragon.



Warning: include(/usr/home/stratics/public_html/subdomains/uoss/shared/template_end.php): failed to open stream: No such file or directory in /home2/stratics/public_html/subdomains/uoss/content/news/feed.php on line 120

Warning: include(): Failed opening '/usr/home/stratics/public_html/subdomains/uoss/shared/template_end.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/stratics/public_html/subdomains/uoss/content/news/feed.php on line 120