MyBB Community Forums

Full Version: Change stats forum
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It is a style myipb changed a foot and unfortunately strangely worked out maybe I did something wrong I do not know, so please support. ; (

forum; undefined-mta.cba.pl

First code index_stats
<div class="stats clearfix">
	Forum Statistics
	<br class="clear" />
	{$lang->stats_posts_threads}
</div>

<div class="stats">
	Member Statistics
	<br class="clear" />
	<span class="s_one">{$lang->stats_numusers}<br /><span class="grayp">Total Members</span></span>
	<span class="s_two">{$lang->stats_mostonline}<br /><span class="grayp">Most Online</span></span>
	<span class="s_three">
		<div style="float: left; margin-right: 1%; border: 1px solid #e6e6e6;"><img src="images/myipb/default_avatar.png" widht="44" height="44" /></div>
		<div style="float: left;">
		<span class="grayp" style="text-transform: uppercase;">Newest Member</span>
		<br />
		{$lang->stats_newestuser}
		</div>
	</span>
</div>
Now code
<div class="stats">
	Member Statistics
	<br class="clear" />
	<span class="s_one">{$stats['numusers']}<br /><span class="grayp">Total members</span></span>
	<span class="s_two">$newestmember<br /><span class="grayp">Newest member</span></span>
	<span class="s_one">{$stats['numposts']}<br /><span class="grayp">Total posts</span></span>
	<span class="s_one">{$stats['numthreads']}<br /><span class="grayp">Total threads</span></span>
		</div>
	</span>
</div>
And the last point - screen
http://screenshot.sh/n9CXEGqpH8HqD
I want everything in one line
The file index.lang.php that I include has the text of the footer changed and also has html code, check the file.
i checked and what ?
<?php
/**
 * MyBB 1.8 English Language Pack
 * Copyright 2014 MyBB Group, All Rights Reserved
 *
 */

$l['boardstats'] = "Board Statistics";
$l['new_posts'] = "Forum Contains New Posts";
$l['no_new_posts'] = "Forum Contains No New Posts";
$l['forum_locked'] = "Forum is Locked";
$l['forum_unapproved_posts_count'] = "There are currently {1} unapproved posts in this forum.";
$l['forum_unapproved_post_count'] = "There is currently 1 unapproved post in this forum.";
$l['forum_unapproved_threads_count'] = "There is currently {1} unapproved threads in this forum.";
$l['forum_unapproved_thread_count'] = "There is currently 1 unapproved thread in this forum.";
$l['markread'] = "Mark All Forums Read";
$l['forumteam'] = "Forum Team";
$l['forumstats'] = "Forum Statistics";
$l['todays_birthdays'] = "Today's Birthdays";
$l['birthdayhidden'] = "Hidden";
$l['quick_login'] = "Quick Login:";
$l['index_logout'] = "Log Out";
$l['private_messages'] = "Private Messages";
$l['pms_new'] = "You have {1} new messages since your last visit.";
$l['pms_unread_total'] = "(You have {1} unread messages and {2} total messages in all of your folders.)";
$l['stats_posts_threads'] = "<span class='one'>{2}<br><span class='grayp'>Total Threads</span></span><span class='two'>{1}<br><span class='grayp'>Total Posts</span></span>";
$l['stats_numusers'] = "{1}";
$l['stats_newestuser'] = "{1}";
$l['stats_mostonline'] = "{1}";
$l['whos_online'] = "Who's Online";
$l['complete_list'] = "Complete List";
$l['online_online_plural'] = "users";
$l['online_online_singular'] = "user";
$l['online_member_plural'] = "members";
$l['online_member_singular'] = "member";
$l['online_anon_plural'] = "are";
$l['online_anon_singular'] = "is";
$l['online_guest_plural'] = "guests";
$l['online_guest_singular'] = "guest";
$l['online_note'] = "{4} {5}, {6} invisible, and {8} {9}";
$l['subforums'] = "<strong>Sub Forums:</strong>";
(2016-06-19, 10:30 AM)theeQuz Wrote: [ -> ]i checked and what ?

Maybe you missed this:

$l['stats_posts_threads'] = "<span class='one'>{2}<br><span class='grayp'>Total Threads</span></span><span class='two'>{1}<br><span class='grayp'>Total Posts</span></span>";

And of course their css:

.one {
	width: 50%;
	min-width: 50%;
	max-width: 50%;
	float: left;
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	color: #262626;
}

.two {
	width: 50%;
	min-width: 50%;
	max-width: 50%;
	float: left;
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	color: #262626;
}