19-Dec-2013, 01:48 PM
Took a while but I found out to integrate commentic on phpbb3 custom pages. I'm sharing this info if anyone else wants it
On your body.html page in the template file
Put this code in the very top of the page
Add the following inside the page:
Add the following inside the head tag of your overall_header.html
(the body pages don't have <head> tags cause it's in the overall_header)
Just a few small changes and it works perfectly
You can see it on my pages on childchat.org
I'd like to find a way for commentic to use the forum's login - I'm sure it's possible and not too hard
On your body.html page in the template file
Put this code in the very top of the page
Quote: <!-- PHP -->
session_start();
ob_start();
<!-- ENDPHP -->
Add the following inside the page:
Quote:<!-- PHP -->
$cmtx_identifier = '1';
$cmtx_reference = 'Page One';
$cmtx_path = 'comments/';
define('IN_COMMENTICS', 'true'); //no need to edit this line
require $cmtx_path . 'includes/commentics.php'; //no need to edit this line
<!-- ENDPHP -->
Add the following inside the head tag of your overall_header.html
Quote:<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="comments/css/stylesheet.css"/>
(the body pages don't have <head> tags cause it's in the overall_header)
Just a few small changes and it works perfectly
You can see it on my pages on childchat.org
I'd like to find a way for commentic to use the forum's login - I'm sure it's possible and not too hard