Stratics - The Massively Multiplayer Network
Stratics Network Stratics Community Stratics Central  
 
 
[ Submit News | Submit a Poll | Submit a Screenshot ]
Ultima X: Odyssey News Feed

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 X: Odyssey 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 UXO Stratics's RSS-based newsfeed with JavaScript, PHP, Perl or even with Trillian and other systems.

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://uxo.stratics.com/php-bin/rss/jsformat.php"> <noscript><a href="http://uo.stratics.com/">Latest UXO 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://uxo.stratics.com/php-bin/rss/javascript.php"> <noscript><a href="http://uxo.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://uxo.stratics.com/php-bin/rss/format.php"); ?>

into your page (or call http://uxo.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://uxo.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://uxo.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"-->

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://uxo.stratics.com" class="uos_hlink" target="_blank">Ultima X: Odyssey Stratics</a></td></tr>
<tr><td><table class="uos_list">
<tr><td class="uos_item"><a href="http://uxo.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://uxo.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://uxo.stratics.com/#newsitem1045068933,46117," class="uos_ilink" target="_blank">Holobits, Scout's Honor! </a></td></tr>
<tr><td class="uos_item"><a href"http://uxo.stratics.com/#newsitem1045062624,69595," class="uos_ilink" target="_blank">New Scout Diagram</a></td></tr>
<tr><td class="uos_item"><a href="http://uxo.stratics.com/#newsitem1045033751,71251," class="uos_ilink" target="_blank">Random POIs?</a></td></tr>
</table></td></tr></table>

Other Stuff

If you want to access the raw RSS 1.0 data, you can reach it at http://uxo.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://uxo.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.





This site best viewed in Internet Explorer.
 
Site Design & Original Content ©2006, Stratics. All rights reserved.
Maintained by: UXO Stratics Staff
Graphic Design Credits