Fork me on GitHub

World of Warcraft Modules  Bottom

Go to page 1 - 2 - 3 [+1]:

  • I am looking for any and all "World of Warcraft" modules...Or "Generic MMORPG" modules that can work with any Online RPG type PostNuke site...Some module types I am looking for in particular are:

    A server Status module - A module to check the status of either one, or ALL the WoW servers.

    A guild Bank Module - A pretty basic module I would imagine..Just used to display how much gold is in the guild fund...Updated through an admin.

    Guild Roster - I have seen a few made FOR EQ, but they can't really be fiddled with to make it work for a WoW guild..because EQ is much more complicated than WoW currently is..and if it COULD be done..It's beyond my level of expertise.

    Anyone know if any of these exists?
  • PNClansite will be able to do the last or there are some other rosters out there you could use.

    for the rest, I have no clue.
  • For the server status, I found a PHP script on one of the wow forums. I just put it into a block, and it parses the server status page from worldofwarcraft.com

    As for the guild roster I can offer 2 options there. I converted an old EQ module over to WoW. I still have the files somewhere, and I can get those to you. The other option is to use the wowprofiler system. http://wowprofiler.sourceforge.net . I use that system now with PostWrap to wrap it into our postnuke site. You can see my example at www.blitzguild.org
  • Quote

    For the server status, I found a PHP script on one of the wow forums. I just put it into a block, and it parses the server status page from worldofwarcraft.com

    As for the guild roster I can offer 2 options there. I converted an old EQ module over to WoW. I still have the files somewhere, and I can get those to you. The other option is to use the wowprofiler system. http://wowprofiler.sourceforge.net . I use that system now with PostWrap to wrap it into our postnuke site. You can see my example at www.blitzguild.org


    Kandiil, Very nice looking site! Actually the way you have your server status is exatly what I want, but for the feathermoon realm...I tried looking around on the official WoW forums, but no luck finding the thread...

    As for the roster, if you still have the files you converted, and if they run on the newer PN, I would greatly appreciate it if you could send those to me. Mainly because I haven't quite figured out those "Wrap" modules..I'm new to PN in general and still just figuring out my way around on the themes..heh..So, as far as modules go..unless it's simple plug-n-play, at this point it tends to confuse me..heh


    Quote

    PNClansite will be able to do the last or there are some other rosters out there you could use.

    for the rest, I have no clue.


    Thanks Silverscout, I may look into that if the other options bottom out on me.
  • Go into administration and create a new PHP block. Then paste in the following code.


    Quote


    // World of Warcraft Server Status
    // Ver 1.4
    // Copyright 2004 Nick Schaffner
    // http://ink.ph/questions3
    // Set the following varibles, make sure to remain
    // within the quotes. You can substitute any varible
    // (except Server Name) with a URL to a picture.

    $server = "Stormrage";
    $up = 'Up';
    $down = 'Down';

    $hig = 'High';
    $med = 'Medium';
    $low = 'Low';

    // PHP Magic Below, Don't Edit

    $HTML = file_get_contents('http://www.worldofwarcraft.com/serverstatus/');
    $server = str_replace("'", "'", $server);
    $length = strlen($server);
    $pos = strpos($HTML, $server);

    $serverstatus = stristr(substr(substr($HTML, -(strlen($HTML) - $pos + 154)), 0 ,4), "up");
    if ($serverstatus == false) {$serverstatus = "down"; $length = $length + 2;}
    $servertype = substr(substr($HTML, -(strlen($HTML) - ($pos + $length + 117))), 0, 3);
    if ($serverstatus == "up") $fontcolor=("FFFF00");
    if ($serverstatus == "down") $fontcolor=("FF0000");

    if ($servertype == "(RP") {$length = $length + 1; $servertype = "Roleplay";}
    else if ($servertype == "Nor") {$length = $length + 3; $servertype = "Normal";}
    else {$length = $length + 2; $servertype= "PVP";}

    $serverpop = strtolower(substr(substr($HTML, -(strlen($HTML) - ($pos + $length + 256))), 0, 3));
    if ($serverpop == "hig") $fontcolr=("FF0000");
    if ($serverpop == "med") $fontcolr=("FFFFFF");
    if ($serverpop == "low") $fontcolr=("FFFF00");

    $serverstatus = $$serverstatus; $serverpop = $$serverpop;


    ////////////////////////////////////////// Output, Edit at your own risk:


    echo<<<end>$server

    Server Status:
    <font color="\"$fontcolor\"">
    $serverstatus

    Server Load:
    <font color="\"$fontcolr\"">
    $serverpop


    END;
    </end>


    Just change the server name to whatever server you are on. YOuc an also change the words like up and down if you wish. Only thing I did to this code was add the coloring to the up and down and server load featuers.

    I have to dig out those files for you on the roster system. I'll try nad find those tonight and get ya a link to download them.
  • Hmmmm...I'm getting the following error when putting this block up..

    Quote

    Parse error: parse error, unexpected T_SL, expecting ',' or ';' in /home/.alcatraz/taftianc/taftian.com/guild/includes/blocks/php.php(55) : eval()'d code on line 45


    Anyone know what's causing this? something I am doing wrong? Something on my Servers end?
  • Not sure on that error. Might double check and make sure that you are adding the block the right way.

    Administration -> Blocks -> New Block

    Give it a title like Server Status in teh Block drop down menu make sure you select Core/PHP Script

    If that's what you have done, then not sure what to tell ya. Sorry.
  • Yea, I did it right...Can't figure it out..Leaves me baffled. Oh well, woulda been nice but not a big deal really..Mainly cosmetic So I can live without it unless someone else knows whats causing the problem and how I can correct it.

    Thanks anyway for trying! :) Greatly appreciated..Hopefully I have better luck with the Roster.. icon_lol
  • The last chunk of code (that begins with echo<<<end and="and" ends="ends" with="with" looks="looks" very="very" the="the" function="function" in="in" lang="en" xml:lang="en" title="PHP: Hypertext Preprocessor">PHP is meant to return a value from an array but as there's no array described after the END appears, something's wrong. Try this instead:

    Code

    $myContent = '<u>'.$server.'</u><br>
    <b>Server Status:
    <font color =\"'
    .$fontcolor.'\">
    '
    .$serverstatus.'</font><br>
    Server Load:
    <font color =\"'
    .$fontcolr.'\">
    '
    .$serverpop.'</font></b>' ;

    $output->Text($myContent) ;


    As I don't have a PHP capable machine with me ATM, I can't test that for you, but if it doesn't work, let me know.</end>
  • Nope, that didn't work either...

    The thing that get's me is it works just FINE Kandiils site, and I assume what he gave me was prolly taken directly from his site...But, for whatever reason when I add it in a PHP core block I get the error I mentioned earlier..

    I did some searching around on the error, and it seems most of the time the error is caused by a space after "echo<<PHP configured or something? Or mebbe it's running on a different version? I'm stumped..Completely and totally.
  • Your right tater. I copied that straight out of my Block. The "echo<<PN .750 gold. I don't know if maybe you are running a different version or something like that. It's got me baffled since it works fine on my site.
  • Done some more research and now I understand what the original script is doing. Try this:

    Code

    echo "<u>$server</u><br>";
    echo "<b>Server Status:";
    echo "<font color =\"$fontcolor\">";
    echo "$serverstatus</font><br>";
    echo "Server Load: ";
    echo "<font color =\"$fontcolr\"> ";
    echo "$serverpop</font></b> ";
  • I'm not sure off hand what version of PN I am using..the newest version, whatever that is..I downloaded it just a few days ago...

    As for the code alteration..I get the same error..Mebbe I'm misunderstanding you, or maybe it just won't work..

    I have the last chunk reading..

    Code

    echo<<<END

    echo "<u>$server</u><br>";
    echo "<b>Server Status:";
    echo "<font color =\"$fontcolor\">";
    echo "$serverstatus</font><br>";
    echo "Server Load: ";
    echo "<font color =\"$fontcolr\"> ";
    echo "$serverpop</font></b> ";

    end;

    Is that what you mean?

    If so, then..Oh well..For whatever reason it just won't run..maybe it's how dreamhost has things configured on their end..It wouldn't be the first time I couldn't get a script to run correctly on there.
  • Nah, kill the first and last line of the code you quoted above. The "Here Document" style of programming is specialized and I suppose there could be issues with a host. The translation I gave you is as basic as PHP gets and if that doesn't work, there's something up that we can't help you with here.
  • BTW, if you just downloaded it a few days ago, you are running PN .750.

Go to page 1 - 2 - 3 [+1]:

  • 0 users

This list is based on users active over the last 60 minutes.