SWTOR Server Status

SWTOR Server Status


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!


Latest version: Download SWTOR Server Status v0.3.1 [zip]
All versions: 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">
$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...



  • Fixed a small, but important typo, plugin was showing wrong data



  • small typo in code and css fixed


  • First public release
Keine Lust einen Kommentar zu schreiben? Dann klick doch einfach hier!
  • Interessant (0)
  • Hilfreich (0)
  • Lustig (0)
  • Nutzlos (0)
  • Falsch (0)

39 Kommentare

  1. Hi Baraan
    I’m tying to use your SWTOR server status widget for my guild website but I can’t seem to get it to work.
    I’m using WordPress 3.3 and Graphene theme but I don’t seem to be able to get it to pick up the server status.
    I think it may be the server name I’m using (Frostclaw on the Europe list).
    Can you advise on what format I need to use?

    1. Baraan

      The name has nothing to do with it, I just tried it and it works well… So you included the widget, put the server, region and cache time into the dialog and then? What exactly happens, what exactly is not working in this case?

    2. Baraan

      Does it work for you now? If it is still not working I’m interested in finding a solution.

  2. Maughann

    Hi Baraan
    I’ve tried the widget again. It seems to be working perfectly now.
    Thanks for your help and have a great Christmas

    1. Baraan

      Happy to hear it! Merry Christmas to you as well!

  3. Sammy

    Im toying around with a site on my PC.. And im sure this is path related or something..

    but It erroring on line 52 and 57

    Warning: filemtime() [function.filemtime]: stat failed for \htdocs\wp/wp-content/plugins/swtor-server-status/cache/server-status.html in \htdocs\wp\wp-content\plugins\swtor-server-status\swtor-server-status.php on line 52

    and Fatal error: Call to undefined function curl_init() for line 57

    its probably because im using a XAMPP Portable server for development and goofing off.

    1. Baraan

      Problem is your php is missing curl support. Its fairly common, so I forgot to mention it in the installation. Try to find XAMPP packages with curl suport compiled in and you should be fine.

  4. Shiftey

    Add this to your CSS to give it a nice SWTOR feel. Thanks for the plugin!

    .swtorss_content { padding:5px 8px;background:#222;z-index:3;font-size:14px; color:#efbc55; background-color: #070F12;
    border: 1px solid #3F7086;
    border-radius: 6px 6px 6px 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8), 0 0 4px #1F555A inset, 0 0 2px #1F555A inset; }

    1. Baraan

      Very nice, do you mind if I modify it a bit and use it for myswelf? I would also like to include it as an example in the plugin.

  5. Shiftey

    Yes, you can use it, that is why I posted it :)

    Also I sent you an email, if you get a chance and are able to respond. Thanks!

    1. Baraan

      Sure, just please credit my work. The scripts license is GPL, so feel free to take whatever you need as long as you leave IT GPL.

  6. Mike

    Any chance you can provide the separated PHP code for us? I wouldn’t know which parts to take out of which files to make a standalone php script for this.

    1. Baraan

      I’m sorry but I cannot maintain both. It should be just the main function that is needed with the server information that is saved in the instance variable put in manually. Everybody who knows a little bit of PHP should be able to get that out on his own. But I don’t have the time to support those who don’t know at least that much PHP. Just take a look at the code, it’s not complicated, the important function is right on top.


  7. Hi Baraan,
    I want to use your plugin for my guild website.
    But I have a problem … :(

    Critical Error :

    “ Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /homez.506/anonymouz/www/wp-content/plugins/swtor-server-status/swtor-server-status.php on line 103 “

    Have you any idea?

    Thank you in advance,


    1. Baraan

      This error usually comes up if you forget a semicolon or a dollar sign. But in the version you downloaded this seems quite improbable. Did you changed anything? Please try to redownload. If it doesn’t work, please give me a few more informations, like wordpress and PHP version and so on.


  8. Thank you for the quick response!

    My version of WordPress is 3.1.4
    The version of PHP is 4.4.9
    I have not changed the code :(

    (sorry my english is so bad…)


    1. Baraan

      There we go, the parser I use requires php5. Doesn’t your hoster support php5? I mean it is out for nearly 8 years…


  9. I cant get this widget to function at all… Any help would be most appriciated.

    1. Baraan

      Please include more information, what have you tried to do, whats you wordpress and php version, what doesn’t work?

  10. zyz

    hello, thanks for this nice parse.
    We have a bug since this morning, bioware added asian server on his page;

    here is the error: Fatal error: Call to a member function find() on a non-object in …

    $status = $server_data->find("div[data-name=$server]", 0);

    thanks for help, regards.


  11. Your plugin stopped working about a week ago. Getting the following error:

    Fatal error: Call to a member function find() on a non-object in /home/badr/firstborn.us/wp-content/plugins/swtor-server-status/swtor-server-status.php on line 97

    Thought you should know.


  12. Hello, sorry to disturb, but with the new 1.1.5 the addon is bugging ! Could you fix it ?
    Thanks for your work, it’s cool.

  13. Baraan

    They changed the html page I parse to get the data. Too bad that they don’t provide some kind of XML… :(

    But I fixed it, I’m just polishing the release and it will be out soon. Thanks for bringing this to my attention, zys, Badr and Gull!


  14. BoZ

    Thx for the great plugin, i still have issues with the new version, the server name appear correctly, but the type & language isn’t right, for my example Mantle of the Force on EU realms should be French & PVE type, it appears as PvP and English in the widget.

    TIA, Keep up the good work 😉

    1. Baraan

      Oh, I see it here as well. Sadly I won’t have time to check this out before Friday, please be patient guys.

      1. BoZ

        Oh, I see it here as well. Sadly I won’t have time to check this out before Friday, please be patient guys.

        Don’t worry, take your time 😉 just helping with the debugging !


  15. Baraan, Bro. No rush… I am glad you will work on it and that you are aware of the issue. Thanks for having our backs. If its not too much to ask will you update this comment area when you put up the update?

    Thanks again!


  16. Baraan

    There we go, it was quite simple, a new version should be in the wordpress repository any minute now. Thanks for your patience! :)

      1. Baraan

        I cannot find my addon on your site. What exactly isn’t working? During the current maintenance the plugin might not be able to reach the status page, but generally it seems to work for everyone.


  17. hello *excuse my bad english*
    the addon delivers only a black bar. Please check my nascent site.

    1. Baraan

      I checked your site but cannot find it at all. Did you make sure the cache directory is writable?

        1. Baraan

          Maybe missing curl support in PHP? You would need to check the error log of your webserver to know for sure whats wrong.


Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>