1) I use on my forum phpBB SEO Premod
2) I make aditianal page on my forum. (Used this instruction -http://www.phpbb.com/kb/article/add-a-new-custom-page-to-phpbb/ )
3) I install bbclone script on my forum. -http://www.bbclone.de
All works well.
But now I wish to show statistics on my additional page.
For this purpose I should add "Code Snippet". (As it is told on this page http://help.bbclone.de/index.php?n=Examples.Example7)
How it correctly to make?
- Code: Select all
<?php
// install directory path, starting from the www-root and with a trailing slash
define("_BBCLONE_DIR", "stats/");
if (is_readable(_BBCLONE_DIR."constants.php")) {
require(_BBCLONE_DIR."constants.php");
}
else exit("invalid path given. it must end with a slash");
$BBC_IMAGES_PATH = "stats/images/"; // a workaround
foreach (array("conf/config", "lib/selectlang", "var/access",
"show_global") as $i) {
if (is_readable(_BBCLONE_DIR.$i.".php")) require(_BBCLONE_DIR.$i.".php");
else exit(bbc_msg(_BBCLONE_DIR.$i.".php"));
}
echo "<table border=\"0\" cellpadding=\"20\" cellspacing=\"0\">\n"
."<tr>\n"
."<td valign=\"top\">\n"
.bbc_show_robot()
."</td>\n"
."</tr>\n"
."</table>\n";
?>
I tried to replace a code.
This code
- Code: Select all
echo "<table border=\"0\" cellpadding=\"20\" cellspacing=\"0\">\n"
."<tr>\n"
."<td valign=\"top\">\n"
.bbc_show_robot()
."</td>\n"
."</tr>\n"
."</table>\n";
I replace on this code
- Code: Select all
$template->assign_vars(array(
'BBC_SHOW_ROBOT' => "<table border=\"0\" cellpadding=\"20\" cellspacing=\"0\">\n"
."<tr>\n"
."<td valign=\"top\">\n"
.bbc_show_robot()
."</td>\n"
."</tr>\n"
."</table>\n"
));
And puted in HTML
- Code: Select all
{BBC_SHOW_ROBOT}
As a result at me my additional page opens completely the white.

English |
French