![]() |
Hack: User's Percent of Total Posts
Version of vB: 2.2.0, although may work on earlier versions but not tested Current Version: 1.0.0 Description: This gives you a user's percent of the total posts on your forum. Once again, this is a small hack but show's something interesting. Enjoy! :cool: |
Er, duh, helps if I attach the file...
03.11.01: Fixed issue with percent's on users with post count of over 1000, thanks FireFly! |
Very nice hack! But, when I tried it out, it said that one of my users had 5988.52% of total posts. :?: :)
|
Yeah, it looks like the results are 1000 times higher than what they should be.
For example, I have 9771 posts on a 116,395-post board. I have 8.39469% of the total posts. Yet it says I have 8423.28%. (It also looks like the rounding is off.) |
hmm well on popular boards the percent would be .02 % and so forth.... also it's a good idea to restrict the number of decimals.
|
Eek, sorry about that, I'll fix it as soon as I get home from tryouts.
:cool: |
Quote:
PHP Code:
So I'm not totally sure. Paste the exact code that you have in member.php (just those couple lines, of course:p), and I'll look them over. I don't really see anything to fix because it's working for me. :cool: |
Code:
$totalposts=number_format($countposts['posts']); Code:
$totalposts=$countposts['posts']; |
Thank's FireFly! I have uploaded the fixed version of it.
:cool: |
Hmzz I know it's little stupid .. but when I install where I can see that info ? :)
Can someone post screenshot .. I wanna too see that Hack .. Please? Tnx |
All times are GMT. The time now is 01:41 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|