This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Changed Root
#1

I need the file that has the comments in it to be at
root/styles/SoftBlueV3/template/

The file I'm using is in that template folder
So I put the whole comments folder into that folder
My admin folder is root/styles/SoftBlueV3/template/comments/donna/

the installer, root/styles/SoftBlueV3/template/comments/installer worked

I can go to my admin

So my root is really root/styles/SoftBlueV3/template

But it doesn't work - Is there something else I have to move?
Can it work like this?
Reply
#2

I would have deleted the past post, but I can't. Not sure why but it works if I put the direct path to the file, but not when I start with the php file at the root

Nevermnd
Reply
#3

The installation instructions say to upload the /comments/ folder to the root of the website.

There's no need to install it anywhere else.

You just need to set the right value for $cmtx_path. That's the correct way to approach it.

Have you completed the interview?
Reply
#4

Got it working!! - I put the comment file back at the root, Made the file that the comments in back to HTML, where I wanted it in the template folder.

The big change that did it was that in that HTML file I changed the php lines to
Quote:<!-- PHP -->
session_start();
ob_start();
<!-- ENDPHP -->

guess I needed that for phpbb

thanks
Reply
#5

Made a new change if anyone is following this thread for their own use. This way I don't mix php and HTML

My page is only Html which includes the

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="comments/css/stylesheet.css"/>

in the head.
At the end, where I want the comments I just put
<!-- INCLUDEPHP newcomment.php -->

In the root is newcomment.php
Quote:<?php
ob_start();

$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
?>

took out the session_start(); line cause I have that even earlier and it gave me a warning

So that's how to put commentic in a custom page in phpbb3
Reply
#6

The above post worked, but that's not really the proper way to do this. I posted the real way to do it here http://www.commentics.org/forum/showthread.php?tid=903

Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)