![]() |
Boofo sent me instructions on how to fix the percentage problems and it worked out nicely, expect a fix soon ;)
http://www.csbanana.com/stats3.jpg |
ah cool, I am in need of that too.
|
PM me and I'll give you the code. I would like to test it on yours, too, to make sure it is right. ;)
|
Just go ahead and PM me ;) I'll check it out.
|
No, because I need you to test it out as soon as you get it so we can put it back like it was before it messes anything up if it doesn't work. When you're ready, let me know. I need your full attention while we are doing this. ;)
|
I am on msn, you dont seem to be online though...
|
You'll have to give me a few minutes. I'm right in the middle of helping someone with a hack. ;)
|
i just updated to 2.2 and now i get this
please help me |
Quote:
... percentages still don't work (yes, I applied the changes you suggested.) ... I have a style-problem. The stats window is displayed in some sort of default vBulletin style in all my six styles to which I applied the modified FORUMHOME template (see screenshot.) Do you have a fix for this? :) |
Quote:
In the FORUMHOME template, replace: HTML Code:
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]"> HTML Code:
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]"> This fix is a modification of Boofo's modification which you can find here: https://vborg.vbsupport.ru/showpost....&postcount=208 In index.php replace: PHP Code:
PHP Code:
PHP Code:
|
Ok, I had a fix for the percentage code but yours might actually be better. Let's have a few of the larger boards try it and see if that fixes it for sure. If it works for the rest of you, I will update the hack with both changes. Thank you, sir. ;)
Nj?rd, where were you when I was tearing what little hair I have left out coming up with a fix for the percentages? You could have saved me some hair. ;) |
Quote:
|
What exactly does 1 Uncached Template mean?
Does that uncashed template do any good/bad to my board? |
An uncached template adds an extra query. Which template is uncached? If you followed the instructions in the very first part of the hack, then the templates are cached for this hack. You might want to recheck it. ;)
|
Sweet hack boofo!
Always wanted stats but never liked the amount of queries it added (you load them 10x a day and only view them like once....) but this solves it! Gonna read the whole thread so i'll be back with questions/suggestions later prolly ;) [high]* BarBeQue clicks install![/high] |
Woops, that post was supposed to go to this topic: https://vborg.vbsupport.ru/showthread.php?t=62173
Anyway, while we're at it, how can i "cash" some template? (I have no idea, which one is uncashed, i just know that there is one). |
Quote:
Quote:
|
Let me know if it works, Seby. ;)
|
Boofo, any news on how to add the arcade stats to your hack?
Would love to have those added :D |
Give me a few. I haven't added it yet even on my board. I will do that shortly. ;)
|
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 |
Yes, they do. Add the posts and threads together before you divide. ;)
2322 + 595 = 2917 200 / 2917 = 0.0685636 0.0685636 = 6.85 % |
Quote:
|
Quote:
wtf that's so wrong ADD threads and posts??? that's double counting if you have an empty board (like my test board) and make 1 thread, then you will have 1 thread, 1 post, BBQ posted 1 post (50%) Now, that's just wrong. There is only 1 post and that's the thread post. You don't add threads and posts together |
Look at how vBulletin counts them before you claim anything is wrong.
PHP Code:
If you think it is wrong, just take out the code for the percentages. I'm going to remove it in the update, anyway. And give me a link to your test board in pm so I can check it out. |
Take out the percentages?
Nah, i just fixed your formule (yes fixed :p ) $statscache['topposterpercent'] = round(100 * ($topposter[posts] / ($totalposts)), 2); now it's right again :D |
First of all this satement is wrong:
HTML Code:
$statscache['topposterpercent'] = round(100 * ($topposter[posts] / ($totalposts)), 2); HTML Code:
$statscache['topposterpercent'] = round(100 * ($topposter[posts] / $totalposts), 2); And third, you are only counting replies this way, so you should call it Top Replier. ;) Do what you want, but the code will come out of it in the next update. It's not worth messing with anymore. |
hey boofo I'm back for round 2 attempt lol oh no he says...........
when i run the query iget error: #1146 - Table **********.datastore' doesn't exist so i guess i am missing something, should i be changing the title of the query? please and thanks |
Don't worry about the first query (the one with datastore in it). The datastore entries will be made when you install the code in the index.php and run the hack for the first time. ;)
|
:( lol lol
I have a different error now boofo, would you have any ideas please? seem like 1 error is solved then i get another........ lol At least this time I did see the template, before i got the error lol ;) Database error in vBulletin 3.0.0: Invalid SQL: SELECT profileviews,username,userid FROM vb3_user ORDER BY profileviews DESC LIMIT 1 mysql error: Unknown column 'profileviews' in 'field list' mysql error number: 1054 |
Quote:
[/high] I counted each post on my board damnit and you do NOT add the threads to it cause threadposts are already included in the postcount Make a new thread and you'll notice your postcount go up by 1. |
All times are GMT. The time now is 12:17 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:
|