Can photo albums be set to non-private by default?

After battling the Dolphin security/access control model again, I'm unable to get something to function as I would like, and as it seems it should.

This time, it's setting profile photo albums to be viewable by Members by default (not Public).

Try as I might, unless a user physically changes the Allow viewing album to: drop-down value to Members on the Edit Album page (see attached image), it doesn't seem to accept changes made on the Privacy Settings page (see 2nd attached image).

Does anyone know how photo albums can be set to viewable by members by default?

edit_photo_album.JPG · 34.2K · 303 views
photo_album_privacy_setting.JPG · 52.4K · 353 views
Quote · 7 Jan 2011

Hi, did you get an answer for this as i am looking at doing this also.

Quote · 18 Oct 2011

 Hi, did you get an answer for this as i am looking at doing this also.

 Unfortunately not. Frown

Quote · 18 Oct 2011

 is there not a setting in admin panel that lets you set the default permission?

 Hi, did you get an answer for this as i am looking at doing this also.

 Unfortunately not. Frown

 i recall messing with this back when this silly access control was first released. basically just set everything on your site viewable to members, and take guest access away. those access control features are a true nightmare from what i recall.

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 18 Oct 2011

i posted the answer on another thread:

 

http://www.boonex.com/forums/#topic/Default-settings.htm

 

set album view to members only by default.

 

though this is not a setting in the admin panel specifically, it is an achievable task.

 

login to your database --> sys_privacy_actions

 

round about id = 8 album_view && module_uri=photos with default group set to 3

 

its currently set to 3 edit this and change it to 4

 

[or you can run this sql statement]

 

UPDATE sys_privacy_actions SET `default_group`='10' WHERE `module_uri`='photos' AND `title`='_bx_photos_album_view'

 

 

the where clause coupled with the AND just holds a safety net, that you are not going to fork off something, you could omit the module_uri, but there are other `name`='album_view' so you have to narrow down your query on this.

 

i am making an assumption here, and of course you know what goes with assumptions. 

 

now look at your admin panel under settings

 

look at the privacy settings

 

Default --> 1

Me Only --> 2

Public --> 3

Members --> 4

Friends --> 5

 

actually found something more solid to go on other than my presumption:

 

inc/classes/BxDolPrivacy.php

 

on or about line 25

define('BX_DOL_PG_DEFAULT', '1');

define('BX_DOL_PG_NOBODY', '2');

define('BX_DOL_PG_ALL', '3');

define('BX_DOL_PG_MEMBERS', '4');

define('BX_DOL_PG_FRIENDS', '5');

define('BX_DOL_PG_FAVES', '6');

define('BX_DOL_PG_CONTACTS', '7');

 

 

 

you could disable default, which is set at 3 not sure where that is at, i found it once before, but it eludes me now, and its supper time.

 

now from admin, go to site home to your profile icon, click on photos, then on Add Album, you will see "Allow viewing album to: Members" as being default.

 

though what i noticed is that the default album is set to public.

 

so you can change all albums that are already created with a sql statement on the sys_albums table in the database.

 

two ways, if the only setting on sys_albums is 3

 

UPDATE sys_albums SET `AllowAlbumView`='4'

 

Else

 

if there are multiple values on the table

 

UPDATE sys_albums SET `AllowAlbumView`='4' WHERE `AllowAlbumView`='3'

 

both do relatively the same thing, just using a where clause on the second statement narrows your query.

 

though what i found uncomprehensible was that in sys_privacy_actions

 

there are values set to default:

=a

=f

=p

so if anybody knows what those mean, kick us a clue. 

 

if you want to go further, you can search the database for everywhere boonex has set public --> as the default

 

 

i.e. Profiles table allow_view_to is set to 3, if you want this to be members only, then run the sql statement:

 

you will also notice on this same table, that you can set PrivacyDefaultGroup --> to Members, but i think this can also be achieved by what little actual admin control is available from the admin panel. 

 

UPDATE Profiles SET `allow_view_to`='4' WHERE `allow_view_to`='3'

 

UPDATE Profiles SET `PrivacyDefaultGroup`='4' WHERE `PrivacyDefaultGroup`='3'

 

i personally believe that allowing this functiont to be managed by the user is a nightmare, but good luck and to each his own. 

 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 19 Oct 2011

DosDawg... here is the answer to your questions:

 

=a   ALL

=f    Friends

=p   Private

~Simion~ http://1Faze.com ~ Custom Dolphin Development. ~ Dolphin Consultation
Quote · 27 Dec 2011

the DosDawg technic touch all forum and lock public by member  for any

I found the solution for changing for each module  and this add the possibility in the futures to add "public" and "my only" and keep in default "members" or another for this four modules ; files , photo , sound , video.

By default the modules privacy is 3, for solved this you need to edit this files

 

(root)/modules/boonex/(module name)/classes/Bx(modules name)PageAlbumsMy.php

ex ( (root)/modules/boonex/photos/BxPhotosPageAlbumsMy.php)

in this files search this line

                'AllowAlbumView' => BX_DOL_PG_ALL,
For member replace by this
                'AllowAlbumView' => BX_DOL_PG_MEMBERS,
yep whatever you change in you database each module by default setup 3
only change by the default setting you need
BX_DOL_PG_DEFAULT= use default = 1
BX_DOL_PG_NOBODY= only me = 2
BX_DOL_PG_ALL= public = 3
BX_DOL_PG_MEMBERS= member = 4
BX_DOL_PG_FRIENDS= friends = 5
BX_DOL_PG_FAVES= faves = 6
BX_DOL_PG_CONTACTS= contacts = 7
save and now when dolphin create a new album automaticly he create with your own setting
Quote · 20 Jan 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.