Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
-Real- reputation ranking, post/rep ratio rankings System Details »»
-Real- reputation ranking, post/rep ratio rankings System
Version: 1.00, by miz miz is offline
Developer Last Online: Sep 2005 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 09-27-2004 Last Update: Never Installs: 5
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 09-29-2004, 10:31 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #13  
Old 09-30-2004, 12:52 AM
miz miz is offline
 
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #14  
Old 09-30-2004, 09:17 AM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 09-30-2004, 01:26 PM
miz miz is offline
 
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 
Reply With Quote
  #16  
Old 09-30-2004, 05:43 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Um... what SQL query do I need to kill off the previous entry of ratio so I can put the improved one in?... sorry...
Reply With Quote
  #17  
Old 09-30-2004, 05:56 PM
miz miz is offline
 
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 09-30-2004, 05:59 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #19  
Old 09-30-2004, 06:08 PM
miz miz is offline
 
Join Date: Mar 2003
Posts: 416
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?

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...
Reply With Quote
  #20  
Old 09-30-2004, 10:00 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Woo!



Of course, I have to wait for the other users to log in and correct their value, but all is good.
Reply With Quote
  #21  
Old 10-01-2004, 01:03 AM
dune dune is offline
 
Join Date: May 2004
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.14212 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete