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

Comment count issue in 2.5
#1

After upgrding to 2.5 I'm getting an error access denied when trying to pull the comment count using the following code which worked in the previous version. Thanks.

define('IN_COMMENTICS', '1');

require_once "includes/db/connect.php";
$page_q = mysql_query ("SELECT c.page_id, p.url, p.id FROM comments c INNER JOIN pages p ON p.url = '$url' AND c.page_id = p.id AND is_approved != 0 ")or die (mysql_error());
$comcount = mysql_num_rows($page_q);
Reply
#2

Hi,

You need to use the Extractor add-on.

Have you completed the interview?
Reply
#3

Hi Steven

Can you explain a bit more how to setup extract.php. Its not working for me.
Reply
#4

I have followed the instructions in the readme file but i'm getting the following error message when integrated into my webpages.

Warning: mysqli_real_escape_string() expects parameter 1 to be mysqli, null given in C:\wamp\www\extractor.php on line 162

However, when when I view the example.php through the browser it works fine
Reply
#5

I have solved the issue,

1. my path to the extractor.php was incorrect and
2. the extractor.php file has to be updated with the cmtx identifier of the webpage.

Hope this helps those who might be in a similar situation.
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
01-Dec-2018, 01:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)