HI I think we are having the same problem. I need the comments people have made to be visible be everyone. But only allow visitor who registered the ability to make comment..
In the book Modx web development this code should work
[!Jot? &canpost=`Registered Users`!] this call should only allow registered users to see the comment form but this does not work for me I don’t know why!
I just want the visitors to see the comments on certain pages which is why I have put my code in a chunk and called that chunk on the pages I want the comments to go. where have you placed your Jot call?
My full code is
[!Jot? &canpost=`Registered Users` &captcha=`2` &moderated=`1` &customfields=`name,email` &validate=`name:Please enter your name,email:Please enter a valid e-mail address.:email` &pagination=`5` &placeholders=`1` &output=`0`!]
<h3> Comments</h3>
[+jot.html.comments+]
[+jot.html.navigation+]
[+jot.html.moderate+]
[+jot.html.form+]
With placeholders This does not work the way I want..I have created a web group and seeing if this will work...
If you have any progress on this do post and tell us about it thanks
Are you still logged in to the manager at the same time when you preview the front end page with the Jot call on it? If so, log out of the manager and see if that helps.
I’m checking it inside another browser, this is definitely not the issue.
I thought the problem was I was viewing the site in preview mode but thats not it thanks for the suggestion tho.
I am wondering if it is because I am placing the call in a chunk and not the template itself... (just throwing things in the air lol)
If you look in the book the example uses &tplForm=`comments` comments being a name of another chunk you have to add the contents from the file chunk.form.inc.html from assests/snippets/jot/templates/... I have also tried this which means I am calling two chunks..
Has anyone followed the directions from the book and got this to work?
Have you tried what I suggested above ??
HI Paul
Thanks for your post im going to install the snippet MemberCheck1.2 and give it a go now.
One question once a user registered and logs in can they add comments straight away, or do I have to add them to the web user group first every time?
Also daspoda could you show us the code you used to call that snippet code to redirect users to the login page thanks
I cannot get this to work!!!
ok I have installed the snippet MemberCheck, I have a chunk with my Jot code in it called Services_Comments. I have created a user group called friends which has one registered user.
I am then adding your code
[[MemberCheck? &groups=`Friends` &chunk=`Services_Comments` &debug=`true`]]
To the pages I want the comments to appear but only registered users access to, to comment but now nothing appear on the pages I have added this code to does anyone know what I am doing wrong?