We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27728
    • 12 Posts
    If I call this from a page as it works.
    [[LatestComments? &count=`3` &tplComment=`tpl-comment`]]
    


    If I call it from inside chunk as:
    [[LatestComments? &count=`3` &customFields=`name,website` &tplComment=`tpl-comment`]]
    

    I get a error
    PHP error debug
    Error: mysql_query() [function.mysql-query]: Access denied for user ’apache’@’localhost’ (using password: NO)


    If I call as :
    [!LatestComments? &count=`3` &customFields=`name,website` &tplComment=`tpl-comment`!]
    

    I get [[LatestComments? &count=`3` &customFields=`name,website` &tplComment=`tpl-comment`]] in my chunk.
    Anyone have any suggestions?


    • I just want to publish a patched Version of this nice Snippet which relies on PHx (The PHx plugin has to be installed) and sets [+postnumber+] for each comment.

      Installation: Upload the LatestComments folder to assets/snippets and insert the following line as snippet code:
      return include(MODX_BASE_PATH.'assets/snippets/LatestComments/LatestComments.snippet.php');
      [ed. note: Jako last edited this post 12 years, 3 months ago.]
        • 20413
        • 2,877 Posts
        @Jako could you re-upload this file? smiley
          @hawproductions | http://mrhaw.com/

          Infograph: MODX Advanced Install in 7 steps:
          http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

          Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
          http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
        • Here it is (hope so).

          Shit – Uploads are not attached here.