![]() |
Quote:
|
Quote:
Quote:
|
// Ditch the 2 decimal zeros on a whole percent ...
if (($statscache['topposterpercent'] % 10) == 0) $statscache['topposterpercent'] = vb_number_format($statscache['topposterpercent']) . '%'; else $statscache['topposterpercent'] = vb_number_format($statscache['topposterpercent'], 2) . '%'; // Ditch the 2 decimal zeros on a whole percent ... if (($statscache['topthreadspercent'] % 10) == 0) $statscache['topthreadspercent'] = vb_number_format($statscache['topthreadspercent']) . '%'; else $statscache['topthreadspercent'] = vb_number_format($statscache['topthreadspercent'], 2) . '%'; This one? |
No above all of that. It would have something like this in it:
numbermembers / $newuserid |
That code isnt in my index.php, or the txt file.
??? |
Ok, give me the code you have ABOVE what Owen posted.
|
$statscache['newthreads'] = intval ($newestthreads[count]) ;
$statscache['newposts'] = intval ($newestposts[count]); $statscache['newusers'] = intval ($newestusers[count]); $statscache['getthreadviews'] = intval ($getthreadviews[tviews]); $statscache['topposter'] = $topposter[username]; $statscache['topposterid'] = intval ($topposter[userid]); $statscache['toppostercount'] = intval ($topposter[posts]); $statscache['topposterpercent'] = round(100 * ($topposter[posts] / ($totalthreads + $totalposts)), 2); $statscache['topstarter'] = $topstarter[postusername]; $statscache['topstarterid'] = intval ($topstarter[postuserid]); $statscache['topstartercount'] = intval ($topstarter[count]); $statscache['topthreadspercent'] = round(100 * ($topstarter[count] / $totalthreads), 2); $statscache['getfileviewsun'] = $getfileviews[username]; $statscache['getfileviewsid'] = intval ($getfileviews[userid]); $statscache['getfileviews'] = intval ($getfileviews[profileviews]); $statscache['ref2'] = $ref[username]; $statscache['topreferrerid'] = intval ($ref[userid]); $statscache['ref'] = intval ($ref[referrals]); $statscache['toprepun'] = $toprep[username]; $statscache['toprepid'] = intval ($toprep[userid]); $statscache['topreprep'] = intval ($toprep[reputation]); $statscache['lastupdate'] = intval (TIMENOW); there is this... |
Great! Ok, here we go!
Replace these 2 lines in that code: PHP Code:
PHP Code:
PHP Code:
|
YUPS! It works! Thanks man.
|
Can you post a screenshot so I can see it?
|
<a href="http://www.vxforums.com" target="_blank">www.vxforums.com</a> live!
|
Is there a test account?
|
didnt realise...
uhm not really. here: Last updated at 07:13 PM - March 28th, 2004 Threads: 3,691 (2 Today), Posts: 54,677 (31 Today), Thread Views: 391,961 Total Registrations: 2336, Active Registrations: 2,336 There has been 1 new thread and 5 new posts since your list visit, Owen. Top Poster: Owen (4,831 Posts = 8,475.44%) Top Thread Starter: SSJ3 Goten (214 Threads = 7,133.33%) Top Referrer: danthemansloan (5 Referrals) Top Reputation: Owen (21 Reputation Points) Most Viewed Profile: SSJ3 Goten (582 Views) A warm welcome goes out to our newest member, ((0.1)). |
it got unfixed...
|
But it was working? For how long?
|
less than an hour I think...
|
Go in and optimize and repair your tables in the Admin CP when you get a minute and see if that fixes it again. ;)
|
nope didnt fix it...
|
Also, do a hard refresh (CTRL+F5) and see if it fixes it. If it worked for an hour then the code HAS to be right, or it wouldn't work right at all.
|
still not working... I downloaded my index.php to make sure the code was still in there... It is..
|
nice one boofo - good to know theres an update :)
|
Boofo seeing as u good at stats is there any chance of this option
u know when in admin cp it sshows this New Posts Today 1 New Threads Today 1 and have it reset at say 12 midnight ? be even better if u can get it to say what the stats where for the previousday but i know im pushing me luck :) |
Thanks will be installing this one :)
|
Quote:
Previous day stats would require another query or two, I'm afraid. ;) |
yeah cheers boofo but id like to see how many posts and threads where done each day not so bothered if u cant do previous days though :)
|
That will be in the update when I get it all together as well as percentages if I can get those all worked out for larger boards. ;)
Don't forget to click the install button so you can be notified when the update is released. ;) |
i dont know how to do this part
Quote:
|
Quote:
https://vborg.vbsupport.ru/showpost....4&postcount=47 And don't forget to click install. I will be updating this hack in the next few days. ;) |
^^^ niiice
|
can you make it do a thread of the day as well boofo?
ala https://vborg.vbsupport.ru/showthread.php?t=61260 but to fit into the current display style. |
Haven't you figured out by now that I can do almost anything, sabret00the? Sure, I do most of it badly, but I do it! ;)
It can be added probably very easily. You just have to let me know how you want it to look with the thread of the day and I will see what I can do about adding it. I added (in my site version only so far) the member of the day hack by kentaurus (with his total permission, I might add) already so this shouldn't be too much of a chore to add to this hack, even for an idiot of my caliber. ;) |
a line just above the top poster line would be fine, just to say
Thread Of the Day is: vB3 Forumhome Stats Cache Serialize hack v2.2 not sure what query you'd do to decide thread of the day, but it would be good. |
Wouldn't need a query. Just use the hack with the cron job and rearrange the code for the variable and VOILA! A homemade thread of the day addition to this hack. ;)
|
you lost me :(
|
I t ' s...e a s y...t o...a d d. ;)
By the way, you DID vote for this hack in the HOTM, right? ;) Now we need to get the others to do it. ;) |
we do need others to do it ;) it's a great hack, not to mentio you erwin and xenon seem to have the monopoly on hacks on my test board, so you deserve credit
|
Yes, but wouldn't it be nice to be running a hack of the month on your board, too? ;)
And I meant that we need others to vote for it, too. ;) |
it's being worked on :ninja:
|
I just installed the hack and all the percentages don't work, anything I can do to fix it?
Cheers, Sebastian |
I'm working on that and I might have a fix. If you want to test it out, pm me and I will tell you what to do with it. ;)
Please click the install button too as there will be an upgrade soin with the fix and some more stats added to it. ;) |
All times are GMT. The time now is 05:49 PM. |
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:
|