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.


Set Gallery options globally

Login / Search

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

Community saint

How do I set Galleries feedback and notes options in galleries globally

I am looking for a shortcut method to set the FEEDBACK AND NOTES portion of the Galleries all uniformally. I want to set all to have the allow comments box with ratings incorporated in it (allow reviews) but not have the seperate rating and trackback boxes show up on all the galleries. What is the way to do this globally? So far I have started by hand to do each individual page but I think there has to be a quicker way.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#57393
Avatar

Community saint

Galleries already created, I believe you have to do them manually…

For future galleries, You should be able to find them in Admin Zone > Security > Global specific-permissions

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#57394
Avatar

Community saint

Ouch!

I do hope you are wrong …but if not, Que Sera, Sera.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#57395
Avatar

Community saint

I had to do that with my forums when I first started using ocPortal. I didn't set permissions globally and ended up having to go through each ones I already created to set up permissions how I wanted… and then for new ones, I had used the Global specific-permissions option. So am guessing it goes with all types.

Eric DeMars . com
My electronic portfolio and personal site. Uses ocPortal!
Back to the top
 
Posted
Rating:
#57396
Avatar

Community saint

I set the chosen options when I created each gallery and it set them up as I had directed but I had included too many options. I had the comment box as the review option (didn't know what was the difference between comment boxes back then) and also included the seperate trackback and ratings boxes.

Afterwords I noted that the comment box had a rating box also incorporated in it so I didn't need the seperate rating box too and I am not sure I will be needing the trackback box so I can get rid of that one too.

I will know the next time I create galleries what options I want when I create them. For now I have about 700 pages to change one by one, I guess.

I havent approached the permissions hurtles yet. I have left them in the default settings, so I will see how that will work soon too.

Eric, Thanks for the directions to the global permissions area in Security. I had not been in that corner much. Looks like an awesome area for globally settng permissions.

This is what I like about ocPortal, it is so vast in it's scope and seemingly in capability too. This is also the scarey part too …what haven't I done that might bit me in my bum?


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#57397
Avatar

Here's an example of a database query that you could run in phpMyAdmin that would disallow comments in all galleries…

UPDATE ocp4_galleries SET allow_comments=0


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:
#57423
Avatar

You can also run this command using OCCLE:

Code

:$GLOBALS['SITE_DB']->query('UPDATE ocp4_galleries SET allow_comments=0');


Like ocPortal on Facebook:
Back to the top
 
Posted
Rating:
#57426
Avatar

Community saint

Thanks Chris and Robbie for alternate methods to do this action 'fast'.

I want to allow only the comment box with reviews which titles itself in the heading as 'POST REVIEWS'. If I understamd, I would use the cpmmand '…SET allow_comments=0' it will remove the comment box and if I do the '…SET allow_comments=1' command it will include the comment box.

What would I do to include the POST REVIEWS box only, the one which has the ratings feature incorporated in one with the comment box?


Last edit: by friendly


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#57437
Avatar

Set one entry manually, then take a look at what the allow_comments and allow_ratings field values are in the database for that row. You can find the row by looking up the one with the ID number shown in the URL when you're editing it. Then run a query similar to my own but sets it to exactly what that test entry had for it's allow_comments/allow_ratings field values.


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   Contract

Your name:
Your message: