MyBB Community Forums

Full Version: Board Statistics change (merge lines)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi! I was wondering if it is possible to merge lines at Board Statistics.
I saw it at languages config, but as these sentences have {1} or {2} variables, I'm not sure if those can be merged.

How it's now:
Who's Online [Complete List]
580 users active in the past 15 minutes (17 members, 4 of whom are invisible, and 561 guests).
Board Statistics
Our members have made a total of 941,958 posts in 120,714 threads.
We currently have 65,150 members registered.
Please welcome our newest member, xxxxx
The most users online at one time was 1,777 on 08-11-2012 at 03:05 AM

How I'd like it to be:
Who's Online [Complete List]
580 users active in the past 15 minutes (17 members, 4 of whom are invisible, and 561 guests).
The most users online at one time was 1,777 on 08-11-2012 at 03:05 AM
Board Statistics
Our 65,150 members have made a total of 941,958 posts in 120,714 threads.
Please welcome our newest member, xxxxx

OR at least:
Board Statistics
Our 65,150 members have made a total of 941,958 posts in 120,714 threads.
Please welcome our newest member, xxxxx
The most users online at one time was 1,777 on 08-11-2012 at 03:05 AM

Is it possible?
Thanks for your help!
This will require an edit of your languages file which will changed after you upgrade your forum.

First go to .inc/languages/english/index.lang.php

Find

$l['stats_posts_threads'] = "We have made a total of {1} posts in {2} threads.";
$l['stats_numusers'] = "We currently have {1} members registered.";

Replace with

$l['stats_posts_threads'] =  made a total of {1} posts in {2} threads.";
$l['stats_numusers'] = "Our {1} members";

Then go to ACP>Templates & Styles>Templates>YOUR THEME>Index>Index_stats

Find

{$lang->stats_posts_threads}<br />
{$lang->stats_numusers}<br />

Replace with

{$lang->stats_numusers}&nbsp;{$lang->stats_posts_threads}<br />
(2013-07-19, 02:37 PM)Arbaz Wrote: [ -> ]Find

$l['stats_posts_threads'] = "We have made a total of {1} posts in {2} threads.";
$l['stats_numusers'] = "We currently have {1} members registered.";

Replace with

$l['stats_posts_threads'] =  "made a total of {1} posts in {2} threads.";
$l['stats_numusers'] = "Our {1} members";
Thanks! I just did it and work perfectly (just added " before "made a total of...").
Thanks a lot!! Smile

PS: I did it with the Spanish language, just the same thing but the Spanish folder Smile
Whoops, tiny mistake. Thanks for correcting the quotes part. Your welcome and thanks for the +rep.

Doesn't matter what language; As long as it gets the job done.