How can i put bbclone sniped on aditional page?

Discussions about the phpBB3 Forum. How to get the best from this powerful script.
Note that there is no official support for phpBB3 here, a place to share more than to ask for.

Moderator: Moderators

How can i put bbclone sniped on aditional page?

Postby denius » Wed Feb 17, 2010 12:05 pm

How can i correct put "bbclone Code Snippet" on aditional page? :?:

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. :( :?:
User avatar
denius
 
Posts: 10
Joined: Wed Jul 08, 2009 10:24 am

Advertisement

Re: How can i put bbclone sniped on aditional page?

Postby denius » Wed Feb 17, 2010 12:14 pm

If you remember, I try to make for a long time statistics page at my forum.


Page of statistics.

Please, help me. :idea:
User avatar
denius
 
Posts: 10
Joined: Wed Jul 08, 2009 10:24 am


Return to phpBB Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 11 guests