MyBB Community Forums
Board Statistics change (merge lines) - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Board Statistics change (merge lines) (/thread-142768.html)



Board Statistics change (merge lines) - Breixo - 2013-07-19

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!


RE: Board Statistics change (merge lines) - Arbaz - 2013-07-19

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 />



RE: Board Statistics change (merge lines) - Breixo - 2013-07-19

(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


RE: Board Statistics change (merge lines) - Arbaz - 2013-07-19

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.