HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Hide comments in forum

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#108009 (In Topic #21059)
Avatar

Fan in action

Hello,

I have created a new Catalogue and regular members are not able to access it or see it. However, if one of my super-members comments on an entry in this catalogue, then the comments appear in the forum.

Is there a way to bypass this?

Thanks
Back to the top
 
Posted
Rating:
#108012
Avatar

Easiest way is just to remove access to that forum.

Otherwise there's this technique:
View topic: Private gallery OK but private comments go public to forum - ocPortal.com

If your catalogue is called foo, this OcCLE command and your private feedback forum is #10:

Code

:set_value('comment_forum__catalogues__foo','10');


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108014
Avatar

Fan in action

Chris Graham said

Easiest way is just to remove access to that forum.

Otherwise there's this technique:
View topic: Private gallery OK but private comments go public to forum - ocPortal.com

If your catalogue is called foo, this OcCLE command and your private feedback forum is #10:

Code

:set_value('comment_forum__catalogues__foo','10');


Can I connect the specific forum with the specific catalogue comment?
Back to the top
 
Posted
Rating:
#108024
Avatar

I'm not sure what "specific catalogue comment" means.

The comments are on catalogue entries, not catalogues. And comments are obviously all in a same topic so wouldn't be referenced individually.

If you're asking if you can have each individual catalogue entry having a topic in a different forum, that's not possible. You can do it on a per-catalogue level only.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108025
Avatar

Fan in action

Chris Graham said

I'm not sure what "specific catalogue comment" means.

The comments are on catalogue entries, not catalogues. And comments are obviously all in a same topic so wouldn't be referenced individually.

If you're asking if you can have each individual catalogue entry having a topic in a different forum, that's not possible. You can do it on a per-catalogue level only.

Thanks Chris.

How do I do that? Per catalogue level I mean
Back to the top
 
Posted
Rating:
#108034
Avatar

Community saint

Jaap said

Chris Graham said

Easiest way is just to remove access to that forum.

Otherwise there's this technique:
View topic: Private gallery OK but private comments go public to forum - ocPortal.com

If your catalogue is called foo, this OcCLE command and your private feedback forum is #10:

Code

:set_value('comment_forum__catalogues__foo','10');


Can I connect the specific forum with the specific catalogue comment?
​I think this was already answered. You need to run OcCLE (which is the ocPortal Command Line Environment) from the Admin Zone and then run that command that Chris posted with your catalogue name and the forum id where you wish the comments to go. So basically a new or existing forum you can set permissions on is where the comments will then go after running that command.
Back to the top
 
Posted
Rating:
#108043
Avatar

Fan in action

I executed this command:

:set_value('comment_forum__catalogues__injuries','7');

Doesnt place the comments from catalogue code 'injuries' to forum id '7' though….doesnt seem to work…am I doing something wrong?
Back to the top
 
Posted
Rating:
#108047
Avatar

Community saint

Try entering

Code

:set_value('comment_forum__catalogues_injuries','7');
That should hopefully do it.
Back to the top
 
Posted
Rating:
#108050
Avatar

Fan in action

KingBast said

Try entering

Code

:set_value('comment_forum__catalogues_injuries','7');
That should hopefully do it.

still doesnt work….its the same thing I have entered.

I press go and then it returns this

:set_value('comment_forum__catalogues_injuries','7');:
Back to the top
 
Posted
Rating:
#108051
Avatar

Community saint

Okay, well you're best waiting for a response from Chris. I am not really familiar with OcCLE. I just read the gallery thread, which was attempting to do a similar thing, and removed an extra _ from the command (as that fixed that issue for galleries). So the command I posted was slightly different to the first one you tried, even if it looked the same. Sorry I can't help more Jaap.
Back to the top
 
Posted
Rating:
#108052
Avatar

Fan in action

Chris Graham said

Easiest way is just to remove access to that forum.

Otherwise there's this technique:
View topic: Private gallery OK but private comments go public to forum - ocPortal.com

If your catalogue is called foo, this OcCLE command and your private feedback forum is #10:

Code

:set_value('comment_forum__catalogues__foo','10');


I have tried the OcCLE code tou provided and it didnt work. Am i doing something wrong? Sorry for all the fuss…
Back to the top
 
Posted
Rating:
#108060
Avatar

Fan in action

Tried with every single combination :( nothing happens
Back to the top
 
Posted
Rating:
#108061
Avatar

You're missing an underscore.

Code

:set_value('comment_forum__catalogues__injuries','7');


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108069
Avatar

Fan in action

Chris Graham said

You're missing an underscore.

Code

:set_value('comment_forum__catalogues__injuries','7');<br />
Still nothing.

Just to check that the data that I add are correct the forum ID is 7 since when I add a topic to that forum I get this URL: forum/index.php?page=topics&type=new_topic&id=7

Also I use the codename of the catalogue which is 'injuries'



I am looking at the right places and getting the right data for the command right?
Back to the top
 
Posted
Rating:
#108071
Avatar

That's correct. I'm not sure why it would not work then. Even if you'd got the forum ID wrong, you'd expect some change, like a crash or topics going into a different forum.

Make sure my command is pasted into OcCLE exactly and executed.

To confirm it has run, you can do:

Code

:echo get_value('comment_forum__catalogues__injuries');


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108073
Avatar

Fan in action

Chris Graham said

That's correct. I'm not sure why it would not work then. Even if you'd got the forum ID wrong, you'd expect some change, like a crash or topics going into a different forum.

Make sure my command is pasted into OcCLE exactly and executed.

To confirm it has run, you can do:

Code

:echo get_value('comment_forum__catalogues__injuries');


First I run the code you sent me. Nothing happened.

Then I run this code….removed one underscore…and I got back '11'
:echo get_value('comment_forum__catalogues_injuries');

So I thought I should run the code that you previously send with one underscore less so I run this:
:set_value('comment_forum__catalogues_injuries','7');

Now I run the echo code again and it returns '7'.

But when I create a new injuries catalogue entry and I add a comment it goes directly to forum id '11' and not '7'. So no change…

Unbelievable :)
Back to the top
 
Posted
Rating:
#108074
Avatar

You've got it backwards there ;). Remember before I mentioned you missed an underscore – well it seems your new command with the added underscore never run, and hence get_value returned nothing.

So you don't want to bodge get_value to return the wrong value, you want to take that as a note that set_value hasn't run, and double check this :).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108075
Avatar

Fan in action

Chris Graham said

You've got it backwards there ;). Remember before I mentioned you missed an underscore – well it seems your new command with the added underscore never run, and hence get_value returned nothing.

So you don't want to bodge get_value to return the wrong value, you want to take that as a note that set_value hasn't run, and double check this :).

Ok sorry now I am confused….apologies :)

But now this command returns '7' :echo get_value('comment_forum__catalogues_injuries');

while both these commands don't return anything:

:set_value('comment_forum__catalogues__injuries','7');

:echo get_value('comment_forum__catalogues__injuries');

The two underscore commands don't seem to work

Again apologies for the whole fuss…
Back to the top
 
Posted
Rating:
#108077
Avatar

It's not a problem to go over things here, in fact we encourage it. It produces a reference for everyone.
set_value should not output anything as it sets only. Actually maybe it would be nice to print back what it sets, we'll consider that for v10. This feature we're trying to set up is an advanced one, hence the lack of proper options. Let me have a think here…


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#108078
Avatar

Ok I just double checked the commands from your last post and it seems fine for me, so I'm a bit lost. These set_value and get_value commands are pretty straight-forward in terms of their code implementation. Maybe try manually editing the DB using phpMyAdmin. Go to the ocp_values table and insert a row with the_name= comment_forum__catalogues__injuries and the_value=7 and any random number for date_and_time.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Expand