TopStats on external page
Posted: 16 Oct 2012, 18:21
Hi,
I implement TopStats in my forum poljoforum.rs/statistika.php, i want to use it in separate page out of forum.
Code for file Statistika.php
and code for statistika_body.html
I can see 5 most recent active, but cant's see other boxes. They are turned on in ACP.
Also tried to copy (can't post URL) from other topic sugested by martin123456 in statistika.php before page footer, only change is i get 10 recenet posts and again no other boxes.
I implement TopStats in my forum poljoforum.rs/statistika.php, i want to use it in separate page out of forum.
Code for file Statistika.php
Code: Select all
<?php
/**
*
* @package phpBB3
* @version $Id: page.php ~ Stilithius $
* @copyright (c) 2005 phpBB Group
*
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
page_header('Statistika foruma');
$template->set_filenames(array(
'body' => 'statistika_body.html')
);
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>
Code: Select all
<!-- INCLUDE overall_header.html -->
<h2>Statistika foruma</h2>
<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
<!-- IF S_TSMVT_ENABLE or S_TSMRT_ENABLE or S_TSMAU_ENABLE or S_TSMAF_ENABLE or S_TSLVB_ENABLE or S_TSLRU_ENABLE -->
<!-- INCLUDE top_stats_body.html -->
<!-- ENDIF -->
<!-- INCLUDE jumpbox.html -->
<!-- INCLUDE overall_footer.html -->
Also tried to copy (can't post URL) from other topic sugested by martin123456 in statistika.php before page footer, only change is i get 10 recenet posts and again no other boxes.