How can i place boardstats on forumdisplay?
#11
Hmm doesnt seem to be working, look at footer. :

http://gojii.net/
Reply
#12
That has to do with FBI's answer.
--Pyridine
Reply
#13
(02-07-2011, 01:17 AM)pyridine Wrote: That has to do with FBI's answer.

do you know exacly what to do tho? cause i'm not sure :/
Reply
#14
(02-07-2011, 02:59 AM)Angel Caquias. Wrote:
(02-07-2011, 01:17 AM)pyridine Wrote: That has to do with FBI's answer.

do you know exacly what to do tho? cause i'm not sure :/

I don't know PHP, sorry.
--Pyridine
Reply
#15
This user has been denied support. This user has been denied support.
add these lines somewhere in your inc/languages/english/global.lang.php file

$l['stats_posts_threads'] = "Our members have made a total of {1} posts in {2} threads.";
$l['stats_numusers'] = "We currently have {1} members registered.";
$l['stats_newestuser'] = "Please welcome our newest member, <b>{1}</b>";
$l['stats_mostonline'] = "The most users online at one time was {1} on {2} at {3}";
MyPlugins:1-2-3-4-5
MyTutorials:AddBots
Reply
#16
(02-07-2011, 04:31 AM)TheGodFather Wrote: add these lines somewhere in your inc/languages/english/global.lang.php file

$l['stats_posts_threads'] = "Our members have made a total of {1} posts in {2} threads.";
$l['stats_numusers'] = "We currently have {1} members registered.";
$l['stats_newestuser'] = "Please welcome our newest member, <b>{1}</b>";
$l['stats_mostonline'] = "The most users online at one time was {1} on {2} at {3}";

Did this, still says the same thing :/
Reply
#17
This user has been denied support. This user has been denied support.
oops. sorry. i forgot to mention the main edit that is needed in forumdisplay.php file.

just add the below code at the bottom of page before these lines
$plugins->run_hooks("forumdisplay_end");
$foruminfo['name'] = strip_tags($foruminfo['name']); .........

// Build the forum statistics to show on the index page.
if($mybb->settings['showindexstats'] != 0)
{
    // First, load the stats cache.
    $stats = $cache->read("stats");

    // Check who's the newest member.
    if(!$stats['lastusername'])
    {
        $newestmember = "no-one";
    }
    else
    {
        $newestmember = build_profile_link($stats['lastusername'], $stats['lastuid']);
    }

    // Format the stats language.
    $lang->stats_posts_threads = $lang->sprintf($lang->stats_posts_threads, my_number_format($stats['numposts']), my_number_format($stats['numthreads']));
    $lang->stats_numusers = $lang->sprintf($lang->stats_numusers, my_number_format($stats['numusers']));
    $lang->stats_newestuser = $lang->sprintf($lang->stats_newestuser, $newestmember);

    // Find out what the highest users online count is.
    $mostonline = $cache->read("mostonline");
    if($onlinecount > $mostonline['numusers'])
    {
        $time = TIME_NOW;
        $mostonline['numusers'] = $onlinecount;
        $mostonline['time'] = $time;
        $cache->update("mostonline", $mostonline);
    }
    $recordcount = $mostonline['numusers'];
    $recorddate = my_date($mybb->settings['dateformat'], $mostonline['time']);
    $recordtime = my_date($mybb->settings['timeformat'], $mostonline['time']);

    // Then format that language string.
    $lang->stats_mostonline = $lang->sprintf($lang->stats_mostonline, my_number_format($recordcount), $recorddate, $recordtime);

    eval("\$forumstats = \"".$templates->get("index_stats")."\";");
}
MyPlugins:1-2-3-4-5
MyTutorials:AddBots
Reply
#18
So would look like :

Quote:// Build the forum statistics to show on the index page.
if($mybb->settings['showindexstats'] != 0)
{
// First, load the stats cache.
$stats = $cache->read("stats");

// Check who's the newest member.
if(!$stats['lastusername'])
{
$newestmember = "no-one";
}
else
{
$newestmember = build_profile_link($stats['lastusername'], $stats['lastuid']);
}

// Format the stats language.
$lang->stats_posts_threads = $lang->sprintf($lang->stats_posts_threads, my_number_format($stats['numposts']), my_number_format($stats['numthreads']));
$lang->stats_numusers = $lang->sprintf($lang->stats_numusers, my_number_format($stats['numusers']));
$lang->stats_newestuser = $lang->sprintf($lang->stats_newestuser, $newestmember);

// Find out what the highest users online count is.
$mostonline = $cache->read("mostonline");
if($onlinecount > $mostonline['numusers'])
{
$time = TIME_NOW;
$mostonline['numusers'] = $onlinecount;
$mostonline['time'] = $time;
$cache->update("mostonline", $mostonline);
}
$recordcount = $mostonline['numusers'];
$recorddate = my_date($mybb->settings['dateformat'], $mostonline['time']);
$recordtime = my_date($mybb->settings['timeformat'], $mostonline['time']);

// Then format that language string.
$lang->stats_mostonline = $lang->sprintf($lang->stats_mostonline, my_number_format($recordcount), $recorddate, $recordtime);

eval("\$forumstats = \"".$templates->get("index_stats")."\";");
}


$plugins->run_hooks("forumdisplay_end");

$foruminfo['name'] = strip_tags($foruminfo['name']);

But still wont show :/
Reply
#19
This user has been denied support. This user has been denied support.
lol. you are making me to do everything.

add this before {$footer} in forumdisplay template

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>BoardStats</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$forumstats}
</tbody>
</table>
MyPlugins:1-2-3-4-5
MyTutorials:AddBots
Reply
#20
(02-07-2011, 06:55 AM)TheGodFather Wrote: lol. you are making me to do everything.

add this before {$footer} in forumdisplay template

<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>BoardStats</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$forumstats}
</tbody>
</table>

Ye sorry, cause i don't know what to do :/ I did the that now it shows another boardstats near the first on but no bottom piece :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)