horst Posted January 7, 2014 Share Posted January 7, 2014 Hi and a happy new year,I have found some old code from here and have put it together with the jquery datatables. The result is uploaded here: http://ranking.pw.nogajski.de/Cheers 12 Link to comment Share on other sites More sharing options...
Soma Posted January 7, 2014 Share Posted January 7, 2014 You did it ! 1 Link to comment Share on other sites More sharing options...
kongondo Posted January 7, 2014 Share Posted January 7, 2014 Soma, is that a question? Happy new year Horst!....thanks for the "lies, damned lies and statistics!"...oops that should be "likes, damned likes, and statistics!" Seriously though, nice effort! 1 Link to comment Share on other sites More sharing options...
Martijn Geerts Posted January 7, 2014 Share Posted January 7, 2014 @kongondo, you sneeked up in the list And Pete is NR1 2 Link to comment Share on other sites More sharing options...
Pete Posted January 7, 2014 Share Posted January 7, 2014 Hehe, I was here before ryan Nah, that number 1 spot is simply the member ID, and since I converted the forums from the old software it automatically made me number 1. I'm a bit confused by a lot of that. Sorting by member ID seems to return random members and I'm really lost as to what the Relation column is all about - I've not had that many relationships (or that many relations!). EDIT: Silly me - the member column sorts by name! 1 Link to comment Share on other sites More sharing options...
kongondo Posted January 7, 2014 Share Posted January 7, 2014 (edited) @Pete...read the old post Horst linked to...it explains relation Sorting by member ID = Alphabetical sorting by member name actually Edited January 7, 2014 by kongondo Link to comment Share on other sites More sharing options...
Pete Posted January 7, 2014 Share Posted January 7, 2014 It seems the ratio code from the old post isn't what's used - the text above the table itself has the new code. Not wanting to sound like a sore loser, but it doesn't make a whole lot of sense to me, though I've not touched statistics since I was in school really so maybe it does? (($likes / $posts * 100) * $likes) Since it's a table of top posters, shouldn't it just be sorted by most posts, leave the "likes" column on and remove the "relation" column? Link to comment Share on other sites More sharing options...
kongondo Posted January 7, 2014 Share Posted January 7, 2014 (edited) ...so maybe the name of the table has to be changed, hehe...Anyway, not to rehash the original [old] post...the idea was that posts count alone do not reflect "top" posts....In other words, it's a mechanism to "weight" posts... And yes, that's the (controversial/imperfect) formula...e.g. liking a post does not necessarily mean the post was helpful .... Edited January 7, 2014 by kongondo 2 Link to comment Share on other sites More sharing options...
horst Posted January 8, 2014 Author Share Posted January 8, 2014 Hi, Soma has said in the old thread somewhere that it would be nice to have a sortable table so that everyone can choose his/her fovourite sorting-column. And with the relation, or should it be better called weigthen?, it is a bit like with Pete is Nr 1 (id): I prefer it, so it is the initial used sorting But the jquery-datatables uses cookies to store your last settings. I have set it to 48 hours. And that, (trying out datatables), was the intention to set this up. Link to comment Share on other sites More sharing options...
apeisa Posted January 8, 2014 Share Posted January 8, 2014 This is fun horst, thanks for building it. This clearly shows the alarming trend about those damn youngsters like Teppo, Nik and Wanze who come and post few silly posts with cool emoticons that everyone just likes... I believe in hard facts like member id, alphabets of member name, number of posts, number of likes and hotness of avatar. 6 Link to comment Share on other sites More sharing options...
MatthewSchenker Posted January 9, 2014 Share Posted January 9, 2014 Greetings, Thanks Horst, this is fun! Yes, the DataTables plugin is great (I now use it in a lot of ProcessWire apps). I still thnk it would be great to give more "like-weight" to posts with problem-solving code. Not possible, but nice to think about. By the way, on days when I am too busy to post, I always log in and "like" lots of posts. As always, this is one of the friendliest and most active communities! Thanks, Matthew 3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now