Posted by Ben on 27th January 2010

WoW Guild Retrieve

This is the home of the WoW Guild Retrieve plugin for Wordpress. It requires Wordpress v2.8 or later.

You can get it here: http://wordpress.org/extend/plugins/wow-guild-retrieve/

This example is restricted to level 80 only:

WolfPack

127 members

NameRaceClassLevelRank
TehpdogBloodElfPaladin80Rank 7
VardimalUndeadMage80Rank 8
SayomiBloodElfPaladin80Rank 4
TyrmorsTrollShaman80Rank 3
OdilthanOrcWarrior80Rank 8
JoesBloodElfPriest80Rank 8
AmanthraUndeadWarlock80Rank 3
TheirinBloodElfPaladin80Rank 7
DraslavUndeadWarrior80Rank 8
DabodybagjrUndeadPriest80Rank 1
JoesanTrollMage80Rank 8
SlimshaddyUndeadDeathKnight80Rank 3
NukfooBloodElfHunter80Rank 8
LurgeTrollMage80Rank 8
FalotheleadrBloodElfPaladin80Rank 6
AulisUndeadWarrior80Rank 8
MayokoBloodElfMage80Rank 8
SurndrtopainTaurenHunter80Rank 8
CrazyitalianOrcWarrior80Rank 1
BallachOrcRogue80Rank 6
IssisdeathBloodElfWarlock80Rank 6
ShepardbookOrcShaman80Rank 8
TusktuskOrcShaman80Rank 8
DeathfuuryUndeadDeathKnight80Rank 8
NomalyTaurenDruid80Rank 2
DeathgodessBloodElfDeathKnight80Rank 8
AbelnoxTaurenHunter80Guild Leader
ShocktarttsOrcShaman80Rank 2
LuffaBloodElfHunter80Rank 2
AltyrBloodElfDeathKnight80Rank 8
ArtherosBloodElfPaladin80Rank 3
BrujahTaurenDeathKnight80Rank 1
VaraelaBloodElfPaladin80Rank 3
GrundlejuiceTrollDeathKnight80Rank 8
WashbourneTaurenDruid80Rank 8
NoxloxBloodElfWarlock80Rank 1
EuphaliseUndeadWarlock80Rank 8
ProbablecauzTaurenDruid80Rank 6
SumanthraUndeadPriest80Rank 8
TemplârBloodElfPaladin80Rank 1
ClinamUndeadWarlock80Rank 6
LaukOrcDeathKnight80Rank 7
JackspadeUndeadWarrior80Rank 6
CrazymexicanOrcWarrior80Rank 4
CrazychickenTaurenDruid80Rank 8
TipsomallyOrcDeathKnight80Rank 8
TaeleanBloodElfMage80Rank 8
LittletinyBloodElfWarlock80Rank 8
TingOrcShaman80Rank 8
KianeTrollPriest80Rank 4
AbicusBloodElfHunter80Rank 4
TakidaOrcWarlock80Rank 6
RivertamTrollPriest80Rank 8
HughjackmanBloodElfPaladin80Rank 8
AuUndeadPriest80Rank 8
ZapherikBloodElfPaladin80Rank 3
MandingoheTaurenWarrior80Rank 8
BónecrusherOrcWarrior80Rank 8
NycciBloodElfHunter80Rank 8
GarouTaurenDruid80Rank 1
CowtastrophéTaurenDruid80Rank 6
DangertacoTaurenDeathKnight80Rank 8

…and this example is sorting by rank (column 4):

Death from Below

22 members

NameRaceClassLevelRank
UeshibaOrcWarrior45Rank 8
VelithiceBloodElfDeathKnight58Rank 7
VendelUndeadMage70Rank 6
VindsvalTaurenWarrior71Rank 6
DruidprinceTaurenDruid33Rank 8
BrominBloodElfHunter72Rank 6
BlazingrunesOrcDeathKnight71Rank 8
ZamoyraBloodElfDeathKnight56Rank 7
KemosabeTaurenDruid23Rank 8
BrucewillisTrollHunter80Rank 6
DboychknwingTaurenDruid35Rank 7
OradeBloodElfPaladin41Rank 7
HateraidzUndeadWarrior30Rank 7
BarceOrcHunter78Rank 8
RaeannaBloodElfDeathKnight80Rank 6
BecmacdeTaurenDruid51Rank 7
BigpiecekeisBloodElfWarlock80Rank 6
GiruneTaurenDeathKnight60Rank 7
LomminarUndeadDeathKnight67Rank 8
FlamingcosmoBloodElfPaladin21Rank 8
CeandraBloodElfHunter70Rank 6
ZookerTrollShaman70Rank 6

    24 Responses

  1. Great plugin, 1.0 is a beautiful thing.

  2. Joachim says:

    Hi! Relly nice plug-in.
    BUT, is there any way of changing “Rank 0″, “Rank 1″ etc? I would like to put in “Guild Master” “Officer” and so on.
    Everything else is great. =)

  3. @JOAHCHIM: I was just thinking the same thing. If you feel comfortable editing the plugin, there is an “IF” statement about halfway through. Modifying this should allow you to specify if Rank = 1 then Rank = Guild Master etc… I haven’t yet done this, but will be trying later today after work.

  4. @JOAHCHIM: I just edited my own, it wasn’t much work. Find the line that references if ($character[RANKID] or something along those lines. Replace that with something along the lines of:

    $rankid = $character["RANK"];
    if ($rankid == ‘0′) { $rank = “Battle Leader”;
    } elseif ($rankid == ‘1′) { $rank = “Battle Officer”;
    } elseif ($rankid == ‘2′) { $rank = “Battle NCO”;
    } elseif ($rankid == ‘3′) { $rank = “New Comer”;
    } else { $rank = “Rank ” . $character["RANK"]; }

  5. Ben says:

    I’ll see if I can include a way to use custom rank titles in the next release. In the mean time, Tony’s suggestion works well.

  6. Joachim says:

    @ANTHONY: Hi again, thank you for your help, but I didnt get it to work at all (FATAL ERROR). I’m not really in to this with php, and scripting etc, so. Would you mind paste it again + the line above, and the line under, so I can adjust to where it actually should be. Hope you understand my question.

  7. This is what mine looks like:

    $classimg = ‘class-’ . $class . ‘.png’;

    $rankid = $character["RANK"];
    if ($rankid == ‘0′) { $rank = “Battle Leader”;
    } elseif ($rankid == ‘1′) { $rank = “Battle Officer”;
    } elseif ($rankid == ‘2′) { $rank = “Battle NCO”;
    } elseif ($rankid == ‘3′) { $rank = “Alt”;
    } elseif ($rankid == ‘4′) { $rank = “Initiate”;
    } else { $rank = “Rank ” . $character["RANK"]; }

    if (($restrict == ‘true’ AND $character["LEVEL"] == ‘80′) OR ($restrict == ‘false’)){

  8. Joachim says:

    I copied this and pasted exact like yours, but still:
    “Parse error: syntax error, unexpected T_STRING in …wow-guild.php on line 128″

  9. Andreas says:

    HI..thx for that winderful plugin.

    Is there a way to open links for armory in a new window, istead of leaving the page.

    When you click on a member in the roster display..it takes you to armory in the same window therefore leaving the guildwebsite. But I would like to open the armory in a new window, so that people are not leaving the website.

    Thx,

    Andy

  10. Sebastien says:

    Great plugin ! Almost perfect. ;)
    Thanks for sharing this little pearl.

  11. Lucey says:

    I love this plugin first of all, so easy to install and use. However, I did see the gripes some people have with it not showing pictures and not letting you change the rankings and such. The fixes for those:

    Look in the wow-guild-retrieve/wow-guild.php file for /wp-content/plugins/wow-guild-retrieve/images/. Add your website to the beginning of that. It would look roughly like, http://www.mysite.com/wp-content/plugins/wow-guild-retrieve/images/. That should fix that for you.

    Secondly, if you copied and pasted the
    $rankid = $character["RANK"];
    if ($rankid == ‘0′) { $rank = “Battle Leader”;
    } elseif ($rankid == ‘1′) { $rank = “Battle Officer”;
    } elseif ($rankid == ‘2′) { $rank = “Battle NCO”;
    } elseif ($rankid == ‘3′) { $rank = “New Comer”;
    } else { $rank = “Rank ” . $character["RANK"]; }
    and it didn’t work, its because they have the ‘ ‘ and the ” ” messed up now due to the font that this site uses, change those to the standard ones on your php file and it should work now. The unexpected T_STRING error is almost always because it doesn’t have a ; or a ‘ or a “. Check those.

    Thanks again for the awesome plugin.

  12. Hi, I found and like your plugin but do not manage to get the nice odd/even effect on the table lines working. It looks like the default css is loaded but something must do wrong. Feel free to look at http://www.cube-arygos.de/mitgliederinfo/

    Thanks for your help

  13. Ben says:

    Hi Alexander! If you want to add an odd/even effect to your roster table, add lines like this to your own css file: tr.even{background:#555;} tr.odd{background:#333;}

  14. Why isn’t mine column sort type not working?

    [wgr guildname="extreme torment" realmname="chamber of aspects" region="eu" sorttype="4" sortorder="desc" restrict="true"]

    no matter what i change, 0, 1, 2, 3 or 4, asc or desc… it doesn’t do a thing.

    Strange thing is that I’ve tested this out once, and it worked than… so either it’s me cause it’s sunday =) or there is something wrong? Please let me know!

    thanks!

  15. Ben says:

    Paul,

    The dataTable javascript is not running on your website, which is why there is no sorting. It looks like there might be a conflict somewhere with your other javascript.

    Try disabling your other javascript files (superfish, validate, etc.) and see if the sorting works then. If you can find out which javascript is causing a conflict with dataTable, I’ll try and fix it in my plugin.

  16. Thanks Ben,

    Ill try an figure it out, and let you know.

    Thanks!

  17. Hi Ben,

    It’s in jQuery 1.2.6. I use this .js for the slider on the main page. But since I don’t need it on the roster page this will work just as fine as a blueberry muffin!

    I subscribed to your rss, hoping you will be making more cool wp-wow-plugings!

  18. Ben says:

    Good to know, thank you Paul.

    I do have a new plugin in the works, but I’m not going to release any details about it just yet. ;)

  19. Kazia says:

    First off, great plugin.

    I’ve managed to get it to display the custom rank names – however is there a way to keep the sort non-alphabetical? IE. When sorting by rank, keep Guild Leader 0, Officers, 1, and so on so it’s sorted by rank hierarchy not alphabetical?

    Thanks!

  20. Ben says:

    Kazia,

    Unfortunately, the way the plugin sorts the table makes it extraordinarily difficult to sort ranks hierarchically.

    I’ll keep the idea in my notebook, though, and see if I can come up with a way to circumvent the problem.

  21. Kazia says:

    Oh well! Thanks for the quick response! I’ll just go alpha by name for now.

    You said you wanted to know if any other scripts are interrupting the plugin or interrupting others. I have a superfish menu on my theme and the roster works fine – but the menu is disabled on the roster page. Not a big deal, just letting you know.

  22. Pal says:

    For some odd reason its not working anymore for EU realms? I’ve tried several times using various guild/server combinations. When i try US guilds, it still pops up like it should.

  23. Ben says:

    Pal, you’re right. I’ll look into what the problem might be. It might just be a temporary thing, some change that Blizzard made… but I’ll investigate.

  24. Pal says:

    Thanks for the quick response Ben! I just recently found your plugin, and i love it :)

Post your comments