vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   -Real- reputation ranking, post/rep ratio rankings System (https://vborg.vbsupport.ru/showthread.php?t=69933)

miz 09-27-2004 10:00 PM

-Real- reputation ranking, post/rep ratio rankings System
 
Ok this hack was requsted here

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

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

Quote:

Originally Posted by wordforge.net
Yes.

Here's my memberlist

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/membe...tio&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)

PHP Code:

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

and replace it with

PHP Code:

$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/membe...o&pp=30&page=0

miz 09-30-2004 01:26 PM

hmmm replace the query

PHP Code:

ALTER TABLE `userADD `ratioINT10 ) DEFAULT '0' NOT NULL 

with

PHP Code:

ALTER TABLE `userADD `ratioVARCHAR10 ) 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

Quote:

Originally Posted by wordforge.net
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

Quote:

Originally Posted by wordforge.net
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 :
PHP Code:

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

After Add :
PHP Code:

function round_to_penny($amount){
  
   
$string = (string)($amount 100);

   
$string_array split("\."$string);
  
   
$int = (int)$string_array[0];
  
   
$return $int 100;
  
   return 
$return;



Find :

PHP Code:

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

Replace with

PHP Code:

$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

Quote:

Originally Posted by dune
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

Quote:

Originally Posted by miz
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

Quote:

Originally Posted by wordforge.net
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

Quote:

Originally Posted by miz
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

Quote:

Originally Posted by wordforge.net
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

Quote:

Originally Posted by dune
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

Quote:

Originally Posted by wordforge.net
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. :)


All times are GMT. The time now is 06:00 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01497 seconds
  • Memory Usage 1,822KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete