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 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/