PDA

View Full Version : -Real- reputation ranking, post/rep ratio rankings System


miz
09-27-2004, 10:00 PM
Ok this hack was requsted here (https://vborg.vbsupport.ru/showthread.php?t=69871)

i just hope i posted it on right place

this hack tested on 3.0.3.

info :

this hack take user reputation and devine it with user posts
for exsample user reputation is 9 and he got 3 posts
so user ratio will be 3
its also round it for exsample :
user reputation is 10 and he got 3 posts
so instead of 3.333333 his ratio will be 3

you can see user ratio in his profile, in memberlist and postbit
in memberlist you can view user by ratio higher to lower or the opposite,

hmm thats all i think.

if you like it dont forget to click install :P

yours allways

MiZ.

Edit :

hmm guys i have found some bug (every page load its execute same query)
well fixed now, redownload the file please.

Polo
09-28-2004, 12:57 AM
mmm... sound interesting :) do you have a working demo of this mod in a live site?

miz
09-28-2004, 01:03 AM
and here is some pics if you want :

nexialys
09-28-2004, 01:45 AM
looks like the other RPG levels to me...

Borgs8472
09-28-2004, 06:32 PM
Thanks for making the hack miz, but I've logged in and out, and all ratio levels are still zero...

And they're not displaying in the postbit either...

Borgs8472
09-28-2004, 07:48 PM
ah, I'm getting 1's and 0's now for some reason... but nothing more complex...

miz
09-29-2004, 12:55 AM
so do you got problem with the hack or not ?

Borgs8472
09-29-2004, 08:02 AM
Yes.

Here's my memberlist (http://www.wordforge.net/forum/memberlist.php?&order=DESC&sort=ratio&pp=30&ltr=)

Clicking ratio just orders the users in reverse alphabetical. As you can also see, the numbers are very low.

I don't mind them being low, but I want everyone to have a unique score, this means the value being 4.93 etc, to two decimal places.

And the ordering on the memberlist doesn't work :(

But thanks for your efforts so far, the basics are definately there!

miz
09-29-2004, 01:40 PM
Yes.

Here's my memberlist (http://www.wordforge.net/forum/memberlist.php?&order=DESC&sort=ratio&pp=30&ltr=)

Clicking ratio just orders the users in reverse alphabetical. As you can also see, the numbers are very low.

I don't mind them being low, but I want everyone to have a unique score, this means the value being 4.93 etc, to two decimal places.

And the ordering on the memberlist doesn't work :(

But thanks for your efforts so far, the basics are definately there!

i think you skiped some level cuse when you press on ratio its should move the arraow next to Ratio word thats why its now working.
about the ratio, hmm
you asked it to be
ratio = repultation / posts

now try do like

ratio = 50 / 6124
its something like 0.000615418
and round function turns it to 0

this is the way you asked the hack to be...

Borgs8472
09-29-2004, 10:26 PM
Ah, I had my member.php sitting in the same directory as my memberlist.php, and so was running the old memberlist.php. Fixed it now. :D

Borgs8472
09-29-2004, 10:31 PM
http://www.wordforge.net/forum/memberlist.php?&order=DESC&sort=ratio&pp=30&ltr=

Excellent!

Still seeing less than 50 post users, but never mind. ;) (another time, no rush)

All I would ask now is that the values are not rounded to 0 decimal places, rather that they display to 2 d.p

So the list instead of reading
2
2
2
2
2
2
2

Woudl read

2.45
2.33
2.17
2.07
1.95
1.89
1.76
1.55

For better differenciation. :)

miz
09-30-2004, 12:52 AM
i thought round numbers is nice
but if you think other wise

find this code (Global.php)

$ratio = round($bbuserinfo['reputation'] / $bbuserinfo['posts']) ;

and replace it with

$ratio = $bbuserinfo['reputation'] / $bbuserinfo['posts'] ;


thats all

Borgs8472
09-30-2004, 09:17 AM
Did that, not sure if it will kick in later, but it's not working now.

Is the number type that the ratio's stored in not compatible with decimals perhaps?

http://www.wordforge.net/forum/memberlist.php?&order=desc&sort=ratio&pp=30&page=0

miz
09-30-2004, 01:26 PM
hmmm replace the query

ALTER TABLE `user` ADD `ratio` INT( 10 ) DEFAULT '0' NOT NULL ;

with

ALTER TABLE `user` ADD `ratio` VARCHAR( 10 ) DEFAULT '0' NOT NULL ;

Borgs8472
09-30-2004, 05:43 PM
Um... what SQL query do I need to kill off the previous entry of ratio so I can put the improved one in?... sorry...

miz
09-30-2004, 05:56 PM
Um... what SQL query do I need to kill off the previous entry of ratio so I can put the improved one in?... sorry...

ALTER TABLE `user` DROP `ratio` ;

phpmyadmin is very easy to use system.. and FREE

Borgs8472
09-30-2004, 05:59 PM
Sorry about that, I was coming back to edit my reply, cause I had worked it out at this point. :)

Any chance of displaying to 2 decimal places rather than 8? :D

miz
09-30-2004, 06:08 PM
Sorry about that, I was coming back to edit my reply, cause I had worked it out at this point. :)

Any chance of displaying to 2 decimal places rather than 8? :D


ok do this

Find :

if (($bbuserinfo['userid']) AND ($bbuserinfo['reputation']) AND ($bbuserinfo['posts'])) {

After Add :

function round_to_penny($amount){

$string = (string)($amount * 100);

$string_array = split("\.", $string);

$int = (int)$string_array[0];

$return = $int / 100;

return $return;

}

Find :

$ratio = round($bbuserinfo['reputation'] / $bbuserinfo['posts']) ;

Replace with

$ratio = round_to_penny($bbuserinfo['reputation'] / $bbuserinfo['posts']) ;

should work, update me...

Borgs8472
09-30-2004, 10:00 PM
Woo!

:D

Of course, I have to wait for the other users to log in and correct their value, but all is good. :D

dune
10-01-2004, 01:03 AM
For someone to call this a "Real" reputation ranking system indicates a very poor understanding of how the built-in reputation system is supposed to work. It does require a little extra to effort to understand. But dumbing it down to a score based solely on post count is juvenile...

Sorry, I just think it's an insult to the rep system.

miz
10-01-2004, 03:46 AM
For someone to call this a "Real" reputation ranking system indicates a very poor understanding of how the built-in reputation system is supposed to work. It does require a little extra to effort to understand. But dumbing it down to a score based solely on post count is juvenile...

Sorry, I just think it's an insult to the rep system.


if you look on first page you will find on first post a link
this link is the link to the requested thread, visit this thread, and you will find out that this system worked exsacly same as the user asked.
to bad you credit before you read

dune
10-01-2004, 04:02 AM
if you look on first page you will find on first post a link
this link is the link to the requested thread, visit this thread, and you will find out that this system worked exsacly same as the user asked.
to bad you credit before you read

The nature (and successful completion) of the request doesn't have anything to with the "naming" of the hack. More appropriate would have been "Simplified Reputation System" or "Crippled Reputation System". I took issue solely with the word "Real".

Borgs8472
10-01-2004, 01:48 PM
I see we have a fan?

Oh, admittely "proportional" reputation ranking would be more accurate. :p

miz
10-01-2004, 02:20 PM
i just copy the name in requseted hack....

dune
10-01-2004, 05:14 PM
I see we have a fan?

Oh, admittely "proportional" reputation ranking would be more accurate. :p

A fan of the rep system? Yes. I'm pretty fond of self-moderating algorithms. We've been working hard on our site to make the reputation system useful, fair and valuable. To make that work, people need to UNDERSTAND it, which is difficult, it's more complicated than most people can get their heads around quickly.

dune
10-01-2004, 05:15 PM
i just copy the name in requseted hack....

Ok, no issue with you then! ;) Just the nitwit would asked for a dumbed-down version...

Borgs8472
10-02-2004, 12:03 AM
You realise this is in addition? Not a replacement for the usual rep system...

<sigh>

dune
10-02-2004, 01:30 AM
You realise this is in addition? Not a replacement for the usual rep system...

<sigh>

I didn't see it that way at all. Then again maybe I read it wrong. I can be a nitwit too... :ermm:

miz
10-02-2004, 12:53 PM
I didn't see it that way at all. Then again maybe I read it wrong. I can be a nitwit too... :ermm:

this system take user posts and user rep div 1 with eachother and thats all.

Borgs8472
10-10-2004, 08:19 PM
Just shamelessly bumping this thread to report that I really like this system, it allows you particularly to see the popular newbies...

miz
10-14-2004, 05:59 PM
Just shamelessly bumping this thread to report that I really like this system, it allows you particularly to see the popular newbies...

heh
:nervous:

Borgs8472
10-15-2004, 09:46 PM
Though if this thread were renamed to "Propotional" rather than "real" I wouldn't mind. :)