![]() |
Quote:
For example, I installed the Board Spent Time Hack: https://vborg.vbsupport.ru/showthread.php?t=60488 Is there a way to add the total spent time on the board (all members), then the the member who spent the most time on the board with his time (and maybe even expressed as a percentage of the total spent time)? Also, I force people to choose a gender at registration. Is it possible to display "x% male, y% female"? They also have to add their ethnicity (via a drop-down menu) ... again, would it be possible to display percentages (x% A, y% B, z% C, &c.) Average age of the members? (compiled from those who have a valid age set?) The possibilities seem to be endless. :) |
Quote:
This addon will add a line to your Forumhome Stats to Display the Most Played Game (with a link directly to that game), the highest scorer in that game (the Champion) and his score. Here we go! In index.php, find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
In the forumhome template, find: HTML Code:
<if condition="$show['reputation']"> HTML Code:
<tr> NOTE: Don't forget to set the update time to 0 and refresh the page so the cache can get updated with the new stats. And don't forget to set it back to what you had it set at after updating the cache. ;) You're done! Enjoy! |
Works great, Boofo. Thanks for this one. ;)
|
One suggestion: Would it also be possible to display how often the game has been played?
|
I think we would have to go another query for that. And there are already more than I originally wanted with this hack. :(
EDIT: I think I can do it with this same query. Hold on and I will test it and be right back to let you know for sure. ;) The post above has been updated to count the Total Game Plays now. To add this, just redo the code that you added to the forumhome template. ;) |
Suggestion for the next version:
Options in ACP to turn on\off any stats line, that would rock! |
If there's a stat in there you don't need, just take the query for it out and the line in the templates for it out. Having an option to turn off a stat is still going to let the query still run for it. And if I added the ability to turn off the query, too, this hack would get bloated a lot worse than it already is. ;)
|
Top Poster: l1quid (6 Posts = 66.67%)
There is only 6 posts, and I posted all 6 of them.. for somr reason it only shows me as posting in 2/3 of them |
Run your counters and see if that strightens it out. If that doesn't work, then take out the percentage code. I will be dropping that in the next update. The only one I can seem to get it working right for is me. ;)
|
Actually, boofo....
The percentages don't all work on your own forums as well See attachment The top poster has 200 out of 2322, which is 8,61 % and not 6,85% The other percentages are correct I have the same problem, the top poster % is incorrect on my forum as well, while the others do work |
All times are GMT. The time now is 03:35 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:
|