solved Is it possible to control who can see comments?

researchcooperative
@researchcooperative
6 years ago
694 posts
My impression regarding the Comments module is that there are no settings to control who can see comments posted to profiles (in quotas for which comments are enabled).

i.e. any visitor and member will be able to see all comments everywhere (unless they are inside a private group presumably).

Or am I missing something? Is it possible to make comments visible only to logged in members of the site?

I have not found anything about this in Documentation for the Comments module.


--
PJ Matthews, Kyoto
Migrated from Ning 2.0. Now at Jamroom 6 beta and using Jamroom Hosting for The Research Cooperative (researchcooperative.org)

updated by @researchcooperative: 07/11/18 03:32:53PM
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
Edit the jrComment item_list, index, item_detail and item_index templates, put this on the first line:
{if jrUser_is_logged_in()}
and this on the last:
{/if}
Click Save Changes, then select the template's Active checkbox in the list and click Save Changes


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
Strumelia
Strumelia
@strumelia
6 years ago
3,603 posts
Steve, what does the "( )" part of that code mean/do? Just curious, thanks.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
That's what makes it a function:
http://php.net/manual/en/functions.variable-functions.php


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
michael
@michael
6 years ago
7,714 posts
These docs are related if you're feeling adventurous strumelia

Docs: "Defining your own SMARTY function"
https://www.jamroom.net/the-jamroom-network/documentation/module-developer-guide/1569/defining-your-own-smarty-function
Strumelia
Strumelia
@strumelia
6 years ago
3,603 posts
Michael, recent events made me determined to take another attempt at 1) first briefly reviewing my very old basic html knowledge, and then more importantly 2) attempting to learn 'CSS for beginners' type tutorials. Up til now I've managed to guess and stumble my way through some of the CSS tweaks I've needed to make for my JR sites. That's been variously successful..L O L. It's SO hard to find the extra time, but I really need to force myself at least devote 15 or 20 minutes a day to learning a few basic CSS things. Will be making a slow but determined effort to actually learn very basic CSS. But the Smarty thing would come much later I think. I was just kinda curious about the () thing. Thanks! I will 'butt out' of PJ's thread now. ;)


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
researchcooperative
@researchcooperative
6 years ago
694 posts
Thanks to all of the above.

All I would like to add here is that maybe the Comments module would become more generally useful with some comment display options set up for the Quota configuration panel.


--
PJ Matthews, Kyoto
Migrated from Ning 2.0. Now at Jamroom 6 beta and using Jamroom Hosting for The Research Cooperative (researchcooperative.org)
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
SteveX:
Edit the jrComment item_list, index, item_detail and item_index templates, put this on the first line:
{if jrUser_is_logged_in()}
and this on the last:
{/if}
Click Save Changes, then select the template's Active checkbox in the list and click Save Changes
This is what makes it generally useful.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)