vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   User rating calculated via reputation points/post count (https://vborg.vbsupport.ru/showthread.php?t=150404)

steve71 06-26-2007 08:31 AM

Ok. This did limit the quotients to 2 decimal points... but it still produced the wrong results as before when dealing with members having less reputation points than post count.
(it just repeats the reputation points #)

:cool:

Dismounted 06-26-2007 09:35 AM

What do you want it to do? It's performing the calculation you told it to do.

steve71 06-26-2007 02:04 PM

Quote:

Originally Posted by steve71 (Post 1276783)
Ok. This did limit the quotients to 2 decimal points... but it still produced the wrong results as before when dealing with members having less reputation points than post count.
(it just repeats the reputation points #)

:cool:

This attachment was from before the decimals were reduced, but it shows the example of the other problem:

http://www.vbulletin-faq.com/forum/a...7&d=1182758611
959/1546 = 959 ???
>
>
>

Dismounted 06-27-2007 09:38 AM

Heh, I don't know what's wrong with it, what hacks have plugins hooked at postbit_display_complete?

steve71 06-27-2007 11:48 PM

1. vB Ad Management - Ads in Postbit (disabled)
2. Remove popup rep (I believe this refers to the User Defined Reputation Points hack)

steve71 07-02-2007 02:15 PM

Sorry man..that's works perfectly. I didn't realize before that part of the code was a plugin.
Thanks!

UPDATE:

This calculation works perfectly unless the members post count is 1000 or more. In that case it just repeats the users reputation points in the "User rating" location.

Join Date: Jan 2007
Posts: 999
Rep points: 300
User rating: 0.30

Join Date: Jan 2007
Posts: 1,000
Rep points: 300
User rating: 300.00

steve71 07-03-2007 11:44 PM

Just in case anybody wants to apply this mod, this link explains how to make it work. Thanks for your help Dismounted. :up:

http://www.vbulletin.com/forum/showthread.php?t=235180


All times are GMT. The time now is 06:06 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.01817 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete