Comment Plugin - error in displaying user name
23 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 10, 2014 (RSS)
By meg - June 10, 2014 - edited: June 10, 2014
Thank you, but now I'm getting a server error:
Notice: Undefined variable: questionsRecords in article.php on line 13 MySQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY createdDate DESC' at line 3
By claire - June 10, 2014
That's a quick fix, it's just a wrong variable name. Try this instead:
list($_wsc_commentsRecords, $_wsc_commentsMetaData) = getRecords(array(
'tableName' => '_wsc_comments',
'loadUploads' => true,
'allowSearch' => false,
'where' => 'recordNum = ' . $detailRecord['num'],
));
Claire Ryan
interactivetools.com
Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
By claire - June 10, 2014
Sorry, I should have mentioned: this code needs to go AFTER the function that gets the $detailRecord. I just looked at the file you sent me before and the comments function is entered before it. Make sure to put the comments function after the others and that should fix the error.
Claire Ryan
interactivetools.com
Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/