We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1626
    • 31 Posts
    I don’t know how this happened but the blog page of my site www.ritualscreative.com is showing 3000 spam comments, while the actual article (only 1 so far) shows only two valid comments. I am currently in the process of deleting those comments, but it has opened my mind to Modx’s weakness regarding comments handling.

    1. There is nowhere while creating a document (or the template) where you can specify whether the comments are open/closed or can be submitted only upon approval.

    2. The Siteadmin Manager does not have a place for comments. The only plae you can delete comments is on the page itself by logging in as a user.

    3. You can not delete multiple comments at one go. You can imagine what I am feeling right now since I have to delete 3000 comments which all seem to have generated yesterday itself.
      • 4310
      • 2,310 Posts
      I’m not sure if Jot now has more Admin features but what I did a while ago was create this snippet "DeleteComments":
      <?php
      $query=$modx->db->query
      ("DELETE FROM `modx_jot_content` WHERE `published` = 0");
      ?>

      and placed a call "[!DeleteComments!]" on an unpublished, don’t show in the menu page.
      Then when I’d published any good comments I opened the page, which deleted all the unpublished/unwanted/spam comments.
      Not very elegant, but effective!
        • 1626
        • 31 Posts
        Will it work with published comments, since all the spam comments I see are published? And how will it differentiate between spam and valid comments?
          • 4310
          • 2,310 Posts
          I can only see two published comments on your blog page.
          Aren’t the others unpublished?
          EDIT sorry, I can see all the others now!
          Have a look at the Jot documentation, you can set the comments to be moderated before publishing.
            • 1626
            • 31 Posts
            Just figured out a faster way to do it. Went to PHPmyadmin on my webserver, selected the modx database, went to the jot contents section and deleted all the unwanted comments.

            In my opinion Modx should focus a little on the designer/enduser and make its snippets more friendly and customisable. Currently everything seems to be "copy snippet info, paste in new snippet area, put snippet call in the document content area etc. But there is no documentation which suggests how to do it.

            In its current avatar, Modx seems to be built for programmers and geeks. Though I’m making all efforts to learn how to implement a good cms, the steep unfriendly and unclear documentation and feature addition in Modx are really making me wish I had used Exponent or CMSMadeSimple instead. Heck, even Wordpress would have sufficed for my requirements, but there was a keenness to learn Modx since it seemed robust and promising. But today if I have to create a site with bells and whistles for a client I know it will be months before I can do it in Modx and only a few days to do the same with CMSMadeSimple or Wordpress or Exponent etc.

            Is anyone at Modx listening?
              • 7455
              • 2,204 Posts
              The snippet JOT is shipped with modx but is not part of the modx Core, the snippet is made by a user and can be used by anyone.
              Jot is nice but you could build your own ore use any other tool (snippet) that is availible.

              You talk lime MODx is 1 person but we all are MODx, togetter we make this a good product.
              Feedback is good but point it at the right person in this case: Armand "bS" Pondman or atleast in the right forums: http://modxcms.com/forums/index.php/board,201.0.html
              there you can come with feedback and comments on this product.

              Dimmy
                follow me on twitter: @dimmy01
                • 7231
                • 4,205 Posts
                Snippets are not maintained by MODx itself, these are third party contributions that we are lucky enough to have people share with others. The authors of these snippets contribute because they think that their work can be useful to others. The contributions are free and support is voluntary. If you feel that there is something that could be done better, well, just do it. That is the beauty of the MODx infrastructure, anyone with a bit of PHP knowledge can create their own snippets (something that requires a bit of experience with most other infrastructures) or modify existing ones to better suit their needs.

                Feel free to make the modifications that you feel need improvement and hopefully share them with the community.

                As for creating a site with bells and whistles... I personally can’t think of a better, more flexible environment in which to do this rather than with MODx.
                  [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                  Something is happening here, but you don&#39;t know what it is.
                  Do you, Mr. Jones? - [bob dylan]