Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: make entire gallery members of the 'registered' group  (Read 4781 times)

0 Members and 1 Guest are viewing this topic.

scottking

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
make entire gallery members of the 'registered' group
« on: November 05, 2005, 01:03:04 pm »

I was wondering if there is a quick way of changing my entire gallery from Everybody (public) to members of the 'registered' group. I have 166 albums and find it a slow process to click on each individual album and make the permission changes this way. Is there a way to change permissions for each category?

Thanks
Scott
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: make entire gallery members of the 'registered' group
« Reply #1 on: November 05, 2005, 01:19:31 pm »

If you want all albums to be only viewable by registered group then run the following query on the database. Use phpMyAdmin or other tool to do so. (Replace cpgPrefix with prefix you have used.)

Code: [Select]
UPDATE cpgPrefix_albums SET visibility='2'

Note: This will affect all the albums in one shot. Be careful. Also do take a backup before doing so.
Logged
Chief Geek at Ranium Systems

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: make entire gallery members of the 'registered' group
« Reply #2 on: November 06, 2005, 02:56:52 pm »

Alternatively, use the solution from the FAQ: http://coppermine.sourceforge.net/faq.php#registeredUsersOnly
Logged
Pages: [1]   Go Up
 

Page created in 0.033 seconds with 19 queries.