Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ![]() Interested in joining? Click here. If you are already a member of ZBCode, feel free to login right here: |
| Directory Ranking | |
|---|---|
| Tweet Topic Started: Jul 5 2009, 05:03 PM (573 Views) | |
| Viral | Jul 5 2009, 05:03 PM Post #1 |
![]()
|
I'm creating a directory but I'm having some trouble thinking of a ranking system. The only variables I have to work with for each forum are:
Anyone have any ideas? |
![]() | |
![]() |
|
| Garath531. | Jul 5 2009, 05:10 PM Post #2 |
![]()
|
Something to do with activity? If this uses server-side of some sort, perhaps the peak amount of users per day/week? |
I'm back after an unexpected hiatus. If I've forgotten about a code I was working on for you, just drop me a PM and let me know.
| |
![]() |
|
| Viral | Jul 5 2009, 05:19 PM Post #3 |
![]()
|
This is what Jory suggested:
But then again, the rating is either too powerful for small forums, or it means next to nothing for big forums - it's trying to find a balance between the two. |
![]() | |
![]() |
|
| Garath531. | Jul 5 2009, 05:23 PM Post #4 |
![]()
|
I seem to be missing something. What will the "relevance" variables mean? |
I'm back after an unexpected hiatus. If I've forgotten about a code I was working on for you, just drop me a PM and let me know.
| |
![]() |
|
| Viral | Jul 5 2009, 05:44 PM Post #5 |
![]()
|
How much I think they are worth in terms of rating. Ok, here's something we sorta figured out, but not too sure on how it would work yet: (post/members)^2 * (sqrt(hits) / (5-rating)) There's then the problem of getting sqrt and powers and stuff in a mysql query |
![]() | |
![]() |
|
| Garath531. | Jul 5 2009, 05:48 PM Post #6 |
![]()
|
How about calculating creation date in there somewhere? Something like: ((post/members)^2 * (sqrt(hits) / (5-rating)))/(days open) |
I'm back after an unexpected hiatus. If I've forgotten about a code I was working on for you, just drop me a PM and let me know.
| |
![]() |
|
| Viral | Jul 5 2009, 06:15 PM Post #7 |
![]()
|
I would, but it would be too much work for that. The only possible way to do it is to grab the join date of the root admin, then somehow convert it into UTC format - which would be far more work than I want to do. |
![]() | |
![]() |
|
| Garath531. | Jul 5 2009, 06:25 PM Post #8 |
![]()
|
Oh, well for your powers/square roots problem (if I read that post correctly), MySQL has built in functions for this. here |
I'm back after an unexpected hiatus. If I've forgotten about a code I was working on for you, just drop me a PM and let me know.
| |
![]() |
|
| Viral | Jul 5 2009, 06:51 PM Post #9 |
![]()
|
You're a godsend, I'll try them out later |
![]() | |
![]() |
|
| Choco | Jul 5 2009, 07:28 PM Post #10 |
|
¡ʎɹoʇɔɐɟ ʎʇıʌɐɹƃ ɐ uı pǝddɐɹʇ ɯ,ı 'dןǝɥ
![]()
|
I can see it now: ERROR: DIVIDE BY 0 |
It's a magical world, Hobbes, ol'd buddy... ...let's go exploring!In progress: Something Special ;) | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Code University · Next Topic » |
















7:47 PM Jul 10