![]() |
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?
|
All times are GMT. The time now is 03:11 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:
|