I have noticed a few people asking this question and I cannot find an answer.
By DEFAULT albums are created as 'public' how do you change this default setting to 'members' There must be in the coding somewhere where when creating a default album it is set to members. I need new albums when created to be automatically set to 'members' NOT 'public'
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
Thanks for that info, at least now I know where the tables are and I can play around with it. I have managed to change all public albums to members using your info. but changing the default :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" hasn't worked, when I create a new album it still comes up as public. I will keep trying. Thanks for the advice.
just checking in, since on another database, ID=8 was not the record entry ID, that was why i referenced module --> photos name --> album_view and _bx_photos_album_view
as you can see here, its set to VALUE 3, which is public, and this is where you would want to edit, and set thee VALUE to 4 ==> members
trying to create a video as well, but the video app is acting pompous, so not sure if i will get the video created.
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
My ID was different of course, but I was in the right place and was set to 4, after I rebooted the computer it actually worked. When a member creates a new album it is now set to members by default...great, thanks. If I could ask - do you know if the default album (the one created on joining) can be automatically set to members, so that it does not have to be changed manually after someone joins. Thanks
without testing myself, i am going to venture and say, that setting sys_albums to default 4 should set all newly created albums to members. you can test that by creating a new user via registration. report back your findings.
Thanks DosDawg,
My ID was different of course, but I was in the right place and was set to 4, after I rebooted the computer it actually worked. When a member creates a new album it is now set to members by default...great, thanks. If I could ask - do you know if the default album (the one created on joining) can be automatically set to members, so that it does not have to be changed manually after someone joins. Thanks
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Hi DosDawg. Your instructions to change existing members default privacy settings to 'members only' works a treat and all future albums created by an already existing member can be made to default to 'members only'.
However A new album is automatically created for a new member when he joins and the default privacy for that new album is automatically set to default to 'me only' if 'public' is disabled. So the question is... how does one change the default setting of the new album that is automatically created for new members.
NBAny Subsequent album that the new user creates for himself (not automatically produced on registration) is assigned as 'members only' if that is set as your default as is the case for me.
Your help and ideas would be greatly appreciated to solve this long standing problem.
without testing myself, i am going to venture and say, that setting sys_albums to default 4 should set all newly created albums to members. you can test that by creating a new user via registration. report back your findings.
Thanks DosDawg,
My ID was different of course, but I was in the right place and was set to 4, after I rebooted the computer it actually worked. When a member creates a new album it is now set to members by default...great, thanks. If I could ask - do you know if the default album (the one created on joining) can be automatically set to members, so that it does not have to be changed manually after someone joins. Thanks
i believe this to have been addressed. this was a two prong instructional.
one being setting new members albums to default to members only, and the second was to set all existing albums to members only.
the task of setting all newly created albums for new members, defaulting to me only i am unaware of why that would be the case, because if you set default to =4, with 4 being members only, there is no way the albums are set to me only.
would need to see your database settings on the two tables referenced here, as am not disabling default, i am setting default to =4, so albums created are still set to default, with default being 4 (members only)
Hi DosDawg. Your instructions to change existing members default privacy settings to 'members only' works a treat and all future albums created by an already existing member can be made to default to 'members only'.
However A new album is automatically created for a new member when he joins and the default privacy for that new album is automatically set to default to 'me only' if 'public' is disabled. So the question is... how does one change the default setting of the new album that is automatically created for new members.
NBAny Subsequent album that the new user creates for himself (not automatically produced on registration) is assigned as 'members only' if that is set as your default as is the case for me.
Your help and ideas would be greatly appreciated to solve this long standing problem.
without testing myself, i am going to venture and say, that setting sys_albums to default 4 should set all newly created albums to members. you can test that by creating a new user via registration. report back your findings.
Thanks DosDawg,
My ID was different of course, but I was in the right place and was set to 4, after I rebooted the computer it actually worked. When a member creates a new album it is now set to members by default...great, thanks. If I could ask - do you know if the default album (the one created on joining) can be automatically set to members, so that it does not have to be changed manually after someone joins. Thanks
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
I initially had the 'default' disabled in the admin panel security settings. However, I have now enabled this along with the 'members only'. I already had the default set to '4' (members only) in the sys_privacy_actions, so you would think that it would automatically create a members only album on registration. However, it still creates a private album.
also, when you mention the album being set as private, are you inferring that a logged in member is not able to view the album?
because if that is the case, it would seem to me that there is some setting that is not working out right. sys_privacy_actions sets privacy ACL for memberships as stated. where i have not tested, though i will and create a video on this, but from what i believe, the edits i have provided here, will create a default album by newly registered members and set it viewable to members only.
where 'me only' is coming from is beyond me.
Hi DosDawg
I initially had the 'default' disabled in the admin panel security settings. However, I have now enabled this along with the 'members only'. I already had the default set to '4' (members only) in the sys_privacy_actions, so you would think that it would automatically create a members only album on registration. However, it still creates a private album.
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Forget the 'Me Only' that was my error. Newly registered members are having their albums default to '3' which is 'Public'
Yes, logged in members are not able to view the album.
The sys_albums table will only let me edit an albums privacy setting once the album has been created right?
also, when you mention the album being set as private, are you inferring that a logged in member is not able to view the album?
because if that is the case, it would seem to me that there is some setting that is not working out right. sys_privacy_actions sets privacy ACL for memberships as stated. where i have not tested, though i will and create a video on this, but from what i believe, the edits i have provided here, will create a default album by newly registered members and set it viewable to members only.
Further more, on registration the 'profiles' table in the database also defaults profiles to #3 'public' in the following columns:
PrivacyDefaultGroup
Allow_View_to
also, when you mention the album being set as private, are you inferring that a logged in member is not able to view the album?
because if that is the case, it would seem to me that there is some setting that is not working out right. sys_privacy_actions sets privacy ACL for memberships as stated. where i have not tested, though i will and create a video on this, but from what i believe, the edits i have provided here, will create a default album by newly registered members and set it viewable to members only.
yes, that is setting the profile AllowViewTo --> 3 where 3 is public, but that is not what i was iterating
if you want profiles viewable by members only, then yes, you would need to change that record entry from 3 --> 4
Further more, on registration the 'profiles' table in the database also defaults profiles to #3 'public' in the following columns:
PrivacyDefaultGroup
Allow_View_to
also, when you mention the album being set as private, are you inferring that a logged in member is not able to view the album?
because if that is the case, it would seem to me that there is some setting that is not working out right. sys_privacy_actions sets privacy ACL for memberships as stated. where i have not tested, though i will and create a video on this, but from what i believe, the edits i have provided here, will create a default album by newly registered members and set it viewable to members only.
where 'me only' is coming from is beyond me.
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
I followed your instructions as below in bold. Currently my site is configured as follow:
In the Admin Panel 'Privacy Settings' the only two that are now enabled are: 'Default' and 'Members only'
In the database the 'sys_privacy_actions' the defaults have been changed to '4' Members only as per your instructions below.
However, when a new member registers their automatically created album is set to '3' (public) but which can not be viewed by logged in members. Also, their profile in the database is set to 3 'Public' in 'PrivacyDefaultGroup' and 'Allow_View_to'.
I really don't understand what is occurring here. Your thoughts are much appreciated.
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.
I followed your instructions as below in bold. Currently my site is configured as follow:
In the Admin Panel 'Privacy Settings' the only two that are now enabled are: 'Default' and 'Members only'
this is where i think things are going awry for you. depending on what default is set to in the database is what parameter this value would take from the admin panel.
seems the permission settings have been generalized here on the admin panel under privacy settings, and that creates problems.
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Basically I wanted only 2 categories for my site: members + friends. so I disabled all other groups through admin panel/setting/privacy, and so when a member creates an album he can only choose from these 2 groups where "members" was the default, or selected 1. However, for some reason other members, admin included, saw only the ugly padlock and couldn't view the albums, unless they were changed to "friends" and the other member or admin where included in the friend's list.
so I hoped the above solution might help me. I enabled the "default" group as I read somewhere that it better not be disabled, and then I played with the dbase as shown in the VDO, but for me, changing the default value didn't make any difference, and all new albums where now "default". I changed the values many times, and cleared the cache and reloaded my browser - even closed the tab and opened a new 1 - to no avail.... and then i tried pressing "my albums" and what happened you can see in the attached pic...... and I can't get it back to normal again :(
as I am also logged in as admin on another browser (testing user's part on chrome and administrating the site with ie6) I tried to go there to my albums and got exactly the same screen... and now when ever I go to "photos" that's what I see.
So - anyone got an idea of what I did wrong? how to fix it?? I really don't want to re-install D7 once more.........
it worked eventually. for some reason, some changes to the site - probably changes that effect the DB - somehow destroy 1 or some of the pages. it goes back to normal after clearing the cache of the the DB.