Labs
Currently Viewing: BBClone
BBClone and CodeIgniter
We ran into an issue with trying to get BBClone working under CodeIgniter earlier this week. We found that you cannot include the BBClone code in a controller, or a view page, but instead have to add it to the index.php file in your CodeIgniter root directory. We found the solution over at the CodeIgniter forums, and wanted to share it with everyone.
After BBClone is installed and configured, add this code to the index.php in your CodeIgniter installation directory.
$page = $_SERVER["REQUEST_URI"];
define("_BBC_PAGE_NAME", $page);
define("_BBCLONE_DIR", "bbcode/");
define("COUNTER", _BBCLONE_DIR."mark_page.php");
if (is_readable(COUNTER)) include_once(COUNTER);