We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21759
    • 139 Posts
    How do I disable the jot snippet so users cannot comment on the blog? I looked in the manage elements section but there is no disable button anywhere under the snippets section. I keep getting this one bot (i assume) that adds a comment all the time even with admin activation for new web users set. When I go into the database his comments are alway in the jot tables along with his email address and new username but in the admin backend there is no record of him at all. I am using modx 1.0.4 evo with the sample content installed.

    Update: I just removed the chunk code for the comments chunk and that got rid of the comments box etc. However, the link to the comments still exists next to the blog article title. How do I remove that also?
      • 16278
      • 928 Posts
      What does your template with the Jot comments look like? I’ve just been following up on some comment spammers posting junk to response forms, and looking at my own blog found some entries in old posts had escaped my attention. Apart from deleting the rubbish, I wanted to close older items to fresh comments while preserving the valid comments on them.

      My first thought was to produce a second "single post" template - the standard one had this under the post:
      <div id="blogComment">
      <h4 id="blogCommentTop">Comments ([[Jot?&action=`count-comments`]])</h4>
      [+jot.html.comments+]
      [+jot.html.form+]
      </div>
      

      The idea was to omit [+jot.html.form+] in the second template, and switch "fossil" items to use it. But a whole template to drop a single line sounded like overkill, so I came up with something much neater, using a template variable assigned to the single-post template.

      The TV is defined as type Radio Options, with options On==[+jot.html.form+]||Off==(Comments closed) and default [+jot.html.form+].

      The template comment DIV looks like this
      <div id="blogComment">
      <h4 id="blogCommentTop">Comments ([[Jot?&action=`count-comments`]])</h4>
      [+jot.html.comments+]
      [*comments*]
      </div>


      Now I can go back to any old item and select to show the comments form below the already entered comment, or "Comments closed", with a simple click on a radio button. Ain’t MODx flexible?! laugh
      KP
        • 21759
        • 139 Posts
        Unfortunately for me, I have no idea what you just said. I have no programming skills at all just web design. I am trying to learn but have limited time to do so which is my achilles heel. I just want a blog addon that no one can hack into so I don’t have to keep visiting it and removing the spam. The default one that comes with Evo 1.0.4 doesn’t seem to provide this. Is it even possible to do this?
          • 1169
          • 312 Posts
          I do not know the program but can you find this code Shown above:-
          <div id="blogComment">
          <h4 id="blogCommentTop">Comments ([[Jot?&action=`count-comments`]])</h4>
          [+jot.html.comments+]
          [+jot.html.form+]
          </div>


          If you can.
          Make a backup of the file then change to:-
          <!--
          <div id="blogComment">
          <h4 id="blogCommentTop">Comments ([[Jot?&action=`count-comments`]])</h4>
          [+jot.html.comments+]
          [+jot.html.form+]
          </div> -->


          Save

          If it works you have done the job if not just delete saved file and revert to backup(rename)

          Nothing ventured nothing gained(learn by trial and error) works for me!!!
          All I have done is commented out the code I think removes the comments altogether(maybe).

          Hope this helps.

            DEVELOPMENT ENV:- Ubuntu 12.04 | MODx Revolution 2.2.8 | LAMP 2i Apache 2.2.22 | Php 5.3.10 | Mysql 5.5.31 MySQL client version: 5.5.31
            • 21759
            • 139 Posts
            Thanks for your reply, I think that was his code not mine. I had already disabled the comments from appearing in the blog but the bot keeps registering usernames and passwords quite frequently. I have it set to admin activate so I can delete him as soon as I get the email, but it is annoying to say the least. I cannot monitor the site all the time so I’m worried that he may somehow get in. Do you know of another blog addon that I can replace the default blog that comes with 1.0.4 that will prevent this from happening?
              • 21759
              • 139 Posts
              I have decided to pay a member here to deal with this for me. Thanks for trying to help me, sorry if I’m not all that knowledgable in php language.