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

Adding comments has been disabled
#1

Hi,
after implementing the code in the php page, I get following message on the page!

Comments
No comments yet.


Add Comment
Adding comments has been disabled.


And in the footer ore the page end I get following message:
Access denied for user 'ftp-realestate'@'localhost' (using password: NO)Access denied for user 'ftp-realestate'@'localhost' (using password: NO)

Info for the code implementet in the page:
<?php
session_start();
ob_start();
?>

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

<?php
global $page_id, $reference, $path_to_comments_folder;
$page_id = "cmtx_url";
$reference = "cmtx_id";
$path_to_comments_folder = "commentics/comments/";
define ('IN_COMMENTICS', 'true'); //no need to edit this line
require $path_to_comments_folder . "includes/commentics.php"; //no need to edit this line
?>

I will be thank full for any help.
Regards
chello
switzerland
Reply
#2

I'm getting the same issue with pretty much the same code...

{php}
global $page_id, $reference, $path_to_comments_folder;
$p = $this->get_template_vars('product');
$page_id = $p['productid'];
$reference = $p['product'];
$path_to_comments_folder = "./comments/";
define ('IN_COMMENTICS', 'true'); //no need to edit this line
require $path_to_comments_folder . "includes/commentics.php"; //no need to edit this line
{/php}

example.php works absolutely fine, but I'm having problems when integrating into a CMS (which is Smarty template based)

The following are missing...

- Add comment form
- Some language labels
- Thumbs up/down, flag and reply links

It's probably a path issue, but I'm wondering whether there's another config file we need to include?

Also I'm still getting the  code, even having changed the charset code.

Any help appreciated! Fantastic script.

Phil
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Tim
06-Jan-2021, 08:56 PM
Last Post by Tim
18-Oct-2019, 11:45 AM
Last Post by Gevill
23-Jul-2019, 01:17 AM
Last Post by Steven
16-Feb-2018, 09:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)