SWTOR Server Status

SWTOR Server Status

Description

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!

Download

Latest version: Download SWTOR Server Status v0.3.1 [zip]
All versions: WordPress.org plugin page

FAQ

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>

Changelog

0.3.1

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

0.3

0.2

  • small typo in code and css fixed

0.1

  • First public release

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?
    Thanks

    Antworten
    • 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?

      Antworten
    • Baraan

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

      Antworten
  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

    Antworten
    • Baraan

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

      Antworten
  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.

    Antworten
    • 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.

      Antworten
  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; }

    Antworten
    • 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.

      Antworten
  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!

    Antworten
    • 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.

      Antworten
  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.

    Antworten
    • 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.

      Antworten

  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,

    EvilGear

    Antworten
    • 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.

      Antworten

  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…)

    EvilGear

    Antworten
    • 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…

      Antworten

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

    Antworten
    • Baraan

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

      Antworten
  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.

    Antworten

  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.

    Antworten

  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.

    Antworten
  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!

    Antworten

  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 ;)

    Antworten
    • Baraan

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

      Antworten
      • BoZ

        Baraan:
        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 !

        Antworten

  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!

    Badr

    Antworten
  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! :)

    Antworten
      • 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.

        Antworten

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

    Antworten
    • Baraan

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

      Antworten

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=""> <strike> <strong>