This addon shows the status of a server of the MMORPG SWTOR (Star Wars – The Old Republic). It shows if the server is online, population, server type, language and so on.
I’m currently unsure how to “stlye” the information, for now most text is encapsulated with “spans” to make it possible to change the attributes via css. An example is included and can be deactivated in the settings. You can then copy the css into your own stylesheet and adapt it without the fear that they get overwritten the next update. If you create something cool, I would like to include it into this plugin, if it is not too site specific. Just contact me on the wordpress page.
The SWTOR homepage has no official feed for the data, therefore I have to parse the status page. I’m not sure if they will block us, but I would reccomend high cache times to stay friendly!
If you like this plugin, please vote for it on the WordPress.org plugin page!
Q. Can I use this addon without the widget?
A. Well, you can add something like the following in your themes code:
<div class="swtorss"> <?php $instance = array(); $instance['shard'] = "yourServerName"; $instance['region'] = "eu"; // or "us" or "ap" (for Asia Pacific) $instance['cache_time'] = 300; // in seconds $instance['show_last_update'] = true; // or false... echo(swtor_server_status_html($instance)); ?> </div>
- Fixed a small, but important typo, plugin was showing wrong data
- Added support for Asia Pacific region
- fixed parser for the changes in the status page that went live with patch 1.1.5
- removed language for region us since it isn’t provided
- added a css “theme”, can be activated in the options, thanks to shiftey (http://www.baraans-corner.de/wordpress-plugins/swtor-server-status/#comment-2773)
- small typo in code and css fixed
- First public release