The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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! ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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! |
|
#3
|
||||
|
||||
|
Very nice hack! But, when I tried it out, it said that one of my users had 5988.52% of total posts. :?:
|
|
#4
|
||||
|
||||
|
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.) |
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
|||
|
|||
|
Eek, sorry about that, I'll fix it as soon as I get home from tryouts.
|
|
#7
|
|||
|
|||
|
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 ), and I'll look them over. I don't really see anything to fix because it's working for me.
|
|
#8
|
||||
|
||||
|
Code:
$totalposts=number_format($countposts['posts']); Code:
$totalposts=$countposts['posts']; |
|
#9
|
|||
|
|||
|
Thank's FireFly! I have uploaded the fixed version of it.
|
|
#10
|
|||
|
|||
|
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 |
![]() |
|
|