Posts: 2,891
Threads: 59
Joined: Jun 2010
Another thing out of interest. In the same file:
Just above this:
Add this:
See if that matches with the domain in your 'sites' database table.
Posts: 1
Threads: 0
Joined: Oct 2023
(10-Apr-2023, 06:03 PM)Steven Wrote: Thanks, that's sorted now.
I think it's normal that the comments from your live server don't appear locally because it's technically a different website and Commentics is multi-site so it's designed not to show comments from different websites where the pages have the same identifier.
You could try opening /comments/system/library/page.php and replacing this:
PHP Code:
<?php
$query = $this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "pages` WHERE `identifier` = '" . $this->db->escape($identifier) . "' AND `site_id` = '" . (int) $site_id . "'");
With this:
PHP Code:
<?php
$query = $this->db->query("SELECT * FROM `" . CMTX_DB_PREFIX . "pages` WHERE `identifier` = '" . $this->db->escape($identifier) . "'");
As to the comments posted locally not appearing locally:
- Do they appear in Manage -> Comments?
- Is the identifier in your integration code the same as the identifier in Manage -> Pages?
- Are the comments approved?
- Try clearing the cache in Tools -> Clear Cache.
- Could it be cached by your local webserver?
- Try enabling error reporting and posting another comment.
- https://commentics.com/faq/troubleshoot/errors
Hi friend
It looks sense that local users won't see comments from the live server. The multi-site design of Commentics ensure that comments remain context meaningful while keeping clarity
GB whatsapp Apkacross several pages that share identify.