Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Blogs » Fiesty and Short

Once upon a time, a casual tank formed a raid coalition for BC. Stuff happened.
Rate this Entry

Revised stasiscl Raid Listing

Posted 07/08/08 at 11:43 AM by Abbi
Updated 07/09/08 at 10:54 AM by Abbi
OK, let's do this for real.

What you're getting: PHP files that duplicate the functionality of the built-in history option of stasiscl. I did this for two reasons. First, I wanted my history pages to match my report pages in look and feel. Second, it saves a little time because you don't have to regenerate the history pages every time you add a raid.

Your server needs to run PHP for this to work.

There is a zip archive attached (sorry, UNIX people, the server doesn't allow .gz uploads). Unpack it into your top level raid directory -- i.e., you want to unpack this right next to all the sws-blahblah directories.

You'll get three PHP files: index.php, players.php, and playerrpt.php. You should also find tablesorter.css, two jquery.blah.js files, and three .gifs in your extras directory.

Point your browser at the index.php file, and voila, a pretty raid listing.

This was coded in a couple of days by a fairly sloppy coder (i.e., me), so if you find any bugs please feel free to report them here.
Attached Files
File Type: zip listings.zip (25.7 KB, 2113 views)
Posted in Code
Comments 13 Email Blog Entry
Total Comments 13

Comments

Old
nachrichter's Avatar
The Start Time column sorts alphabetically rather than chronologically, which probably isn't ideal, but I have no idea how much effort would be involved in fixing that. Thanks for the time and effort so far, definitely a fan of other people doing free nice things that benefit me. :-)

E: Also noticed that the decurse column of the player history doesn't show anything, though I assume that has more to do with how stasiscl provides that information.
Posted 07/08/08 at 12:12 PM by nachrichter nachrichter is offline
Old
Apate's Avatar
I'm pretty lost with all this, but "so far so good" with my local copy of stasiscl.

Can you offer any suggestions for using this locally on a windows machine? I've yet to mess with PHP (and my experience with perl includes only stasiscl).
Posted 07/08/08 at 12:17 PM by Apate Apate is offline
Old
Abbi's Avatar
Yeah, stasiscl doesn't currently record the decurse info -- I filed a bug, I imagine it'll get fixed fairly quickly. If Gian isn't tired of me filing bugs yet.

There may or may not be anything I can do about the start time sorting. I will investigate. I have one idea.

Edit: yeah, it's possible. I need to learn some Javascript to do it.
Posted 07/08/08 at 12:19 PM by Abbi Abbi is offline
Old
Abbi's Avatar
I got nothing for Windows. I'm not a Windows guy.
Posted 07/08/08 at 12:20 PM by Abbi Abbi is offline
Old
@Apate

It's meant to be run on a server with PHP and Apache (or some other webserver) installed. You can install a local copy of Apache and PHP on your windows box, but that's a lot of overhead to get some pretty listings.
Posted 07/08/08 at 2:10 PM by daemok daemok is offline
Old
Abbi's Avatar
Update: fixed the Start Time column sort. Enjoy!
Posted 07/09/08 at 10:50 AM by Abbi Abbi is offline
Old
rawrz's Avatar
Thanks again!
(demo here for those interested: http://1tb.lightbringer-pve.com/stats/index.php)
Posted 07/10/08 at 8:30 PM by rawrz rawrz is offline
Old
sorting was done alphabetically for DPS on players.php. I added the following which fixed it.

$(document).ready(function()
{
$("#players").tablesorter({
headers: {
3: {
sorter: 'dpssort'
}
}
});
}
);

$.tablesorter.addParser({
id: 'dpssort',
is: function(s) {
return false;
},
format: function(s) {
return s;
},
type: 'numeric'
});
Posted 07/24/08 at 4:02 PM by kansin kansin is offline
Old
Abbi's Avatar
Nice catch! Thanks for the fix.
Posted 07/24/08 at 11:18 PM by Abbi Abbi is offline
Old
If you add the line

"dk" => "DeathKnight",

to the class array in players.php, it will properly color-code deathknights for the Player History page.

(This took me far longer than it should have to figure out...)
Posted 01/01/09 at 7:22 PM by chrono chrono is offline
Old
Hello,

While I'm far from a coder I've endeavoured to get stasis up and running. Which after a few attempts seems to be working fine. I'm now trying to get this php file to work so it gives me a nice list of all my raids.

So far I've not been able to get it to work, hopefully somebody can give me a few pointers.

I think I've not placed some files in the correct directory, so here is my directory listings

sws folders are all contained in /Users/usera/guild/sws (I also have a folder in there called "extras" as per the stasis guide

I've downloaded the file listings.zip and extracted it. Now this is where I get a little lost. Extracting it creates a folder called "listings" do I place this in my /Users/usera/guild/sws folder or do I extract the contents into /Users/usera/guild/sws folder?

Also listings.zip also contains an "extras" folder in "listings" does this need to be combined with the existing "extras" folder?

Many thanks in advance if somebody could point me in the probably very easy solution to my problem as I like the look of this feature and really want to get it up and running.
Posted 01/20/09 at 8:25 AM by parivers parivers is offline
Updated 01/20/09 at 9:14 AM by parivers
Old
Can you please point out where I can edit the time so it shows EST. Or better yet, so it just shows the default time the logs are in the first place?
Posted 02/21/09 at 2:58 PM by wowdime wowdime is offline
Updated 02/21/09 at 3:37 PM by wowdime
Old
no longer here
Posted 05/01/09 at 10:35 PM by florianbrenn florianbrenn is offline
Updated 12/27/09 at 10:43 AM by florianbrenn