Thank you Deano. I had no idea when I first started on this that it would be so involved. Thank you for working on this; it will add to the value of Cheetah.
Thank you Deano. I had no idea when I first started on this that it would be so involved. Thank you for working on this; it will add to the value of Cheetah. |
I have added a tutorial for this. https://www.cheetahwsb.com/m/tutorials/view/Add-custom-global-privacy-groups
Hopefully i did not miss anything.
|
It appears to be working. I logged in as Tommie, I added a co-worker. I then created an album, set the privacy to co-workers, and uploaded a photo. My co-worker could see the photo but when I logged in as a non co-worker I could not see the post and it was not listed in the timeline. Looks good. Thanks so much Deano for working on this. You are the greatest. |
Ok. i am close to complete on this. Sorry for the delay, as you were not in a hurry due to other projects, i put it on hold to do some other things myself. So. Play around on those accounts and let me know if it even come close to what you need. |
@Geek_Girl, if you want the splash on my demo site http://digital-junction.com/demo l haven't tested it on Cheetah, but let me know and I'll email it to you. Yes, I have that and it works great on Cheetah. This is a splash.php file to present a cover to the website instead of the default index.php file. |
@Geek_Girl, if you want the splash on my demo site http://digital-junction.com/demo l haven't tested it on Cheetah, but let me know and I'll email it to you. |
Sorry for the delay on this. This is proving to be a bit more difficult than i had thought. OK Deano, always put the important work ahead of such things as this. I am working on other things at the moment, coding in a splash page with the login and join forms. I do appreciate your devotion. |
Sorry for the delay on this. This is proving to be a bit more difficult than i had thought. |
I wonder how they are handling privacy in UNA?
No clue. I have not downloaded UNA since it's early beta days. |
I work all day tomorrow, so Monday i will whip up some sample code to do a custom global privacy group. 1) A action button for the profile page action block, such as Add Co-Worker or Co-Worker. 2) A page that will show current Co-Workers and allow adding of new ones. 3) A database query to create the new Global Privacy Group 4) A database table to store the Co-Workers
I will put it in the Tutorials section as it can reworked to be used for other List gathering/Privacy group needs just by changing a few things. It should not take me to long to do. And it will at least provide an example of how those things work.
Thanks Deano. I need to buy you whatever your favourite beverage may be. |
Thanks Deano, the way they want to handle privacy is rather complicated. That might have to be reconsidered. I thought Modzzz had a module "Custom Privacy" but it isn't adding custom privacy groups but adding parameters that you can filter on; such as sex and age and country. I wonder how they are handling privacy in UNA? |
I work all day tomorrow, so Monday i will whip up some sample code to do a custom global privacy group. 1) A action button for the profile page action block, such as Add Co-Worker or Co-Worker. 2) A page that will show current Co-Workers and allow adding of new ones. 3) A database query to create the new Global Privacy Group 4) A database table to store the Co-Workers so the Privacy group has a list to work with.
I will put it in the Tutorials section as it can reworked to be used for other List gathering/Privacy group needs just by changing a few things. It should not take me to long to do. And it will at least provide an example of how those things work.
|
Having a list to go by is actually the key here. define('BX_DOL_PG_DEFAULT', '1'); This one i do not know what it does. Sorry. This one has me stumped. |
I will have to discuss this with the person I am building the site for; they requested the privacy groups. It is a very niched site with very specific parameters. |
there are a few things I see with your idea. I did this a long time ago with a dolphin site and it just became easier to allow users to create their own privacy groups. for starters, you don't want to waste your time creating a multitude of privacy groups - and then those privacy groups are not used. a tutorial - for users- on how to add their own privacy group and add people to it is what I ended up going with because it was a lot easier. in your example of a co-workers privacy group. I am self employed and don't have co-workers. so you would have created something that actually gets into my way instead of assisting me. I think that was the basic logic with dolphin - lets give em a bare minimum and let the users create the rest based on their specific needs. the most common groups are 'friends', 'everyone', 'no one', 'members only', or 'non members only'. in my opinion - anything more than that and the user should create for themselves. you will end up spending a lot of time for something that won't actually get much use.
now - how would you accomplish what you want. it isn't all that difficult, but when I did it, it ended up being a waste of time cause no-one used the new global privacy group. I can't remember all the steps, but you want to look at the Faves privacy group as your template. Faves are based on the user specifically. If you try to use the Members privacy group as an example - it will result in what deano was referring to - a privacy group with ALL coworkers - regardless of the company they work for. since Faves is based on the user individual friends list, it will only list co workers related to that specific user. if you want a co workers privacy group that doesn't have to be populated from existing friends - then use the Friends privacy group as your template. I remember that I originally started by trying to rename the Faves privacy group to a new name. this allowed me to follow all the places and duplicate the code snippets in the correct places.
Example. You have 2 members. One works at Dunkin Donuts, the other at Stop&Shop. Each enter their coworkers into this privacy group. Now you have a group that has both Dunkin Donuts and Stop&Shop co-workers in it which i assume is not how you would want it to work. The global groups are not designed to work at the individual member level, that's what the members groups are for.
First of all, I know I am creating custom code that I would be responsible to maintain; making sure upgrades don't overwrite my custom code. I did this a lot for Dolphin. I don't understand exactly what you are saying here. There is a global privacy group for friends, favourites, and contacts although there is no way for one to add to the contact group; Dolphin had a lot of incomplete features; for one, I can't see who has blocked me although the coding is in place for that; the GUI is missing. I can manually add members to my favourite list and that favourite list only applies to me. However, all members can add or remove members from their own favourites list. So I don't understand the privacy group thing enough to be able to add an additional group, "co-workers" that site members can access and add members so they have a list of their co-workers in a privacy group to control viewing, comments, etc just like I do with friends and favourites. For example, I create a blog post that is about work and I only want my co-workers to read just as can be done now with friends. Maybe this is an example of terminology. When I say global, I mean accessible to all members of the site. Currently global privacy groups that members can use are Friends, Favs, Me Only, Public, Members, and Contacts although I don't know how you add someone to Contacts. For Favs you go to their profile and there is an action button for that. Me Only, Public, Members are privacy group that one don't add to as a list for obvious reasons. Friends get added or removed when you add or remove someone as a friend. So it only seems logical that as a programmer I could custom code a site to have a "co-worker" privacy group that members can use as well as friends and favourites. I also know that privacy is controlled by a number: bx_import('BxDolPrivacyQuery'); define('BX_DOL_PG_DEFAULT', '1'); Which corresponds to the ID in the sys_privacy_group. By the way, I have been curious about privacy level hidden; 8 and where that is used.
|
Example. You have 2 members. One works at Dunkin Donuts, the other at Stop&Shop. Each enter their coworkers into this privacy group. Now you have a group that has both Dunkin Donuts and Stop&Shop co-workers in it which i assume is not how you would want it to work. The global groups are not designed to work at the individual member level, that's what the members groups are for.
First of all, I know I am creating custom code that I would be responsible to maintain; making sure upgrades don't overwrite my custom code. I did this a lot for Dolphin. I don't understand exactly what you are saying here. There is a global privacy group for friends, favourites, and contacts although there is no way for one to add to the contact group; Dolphin had a lot of incomplete features; for one, I can't see who has blocked me although the coding is in place for that; the GUI is missing. I can manually add members to my favourite list and that favourite list only applies to me. However, all members can add or remove members from their own favourites list. So I don't understand the privacy group thing enough to be able to add an additional group, "co-workers" that site members can access and add members so they have a list of their co-workers in a privacy group to control viewing, comments, etc just like I do with friends and favourites. For example, I create a blog post that is about work and I only want my co-workers to read just as can be done now with friends. Maybe this is an example of terminology. When I say global, I mean accessible to all members of the site. Currently global privacy groups that members can use are Friends, Favs, Me Only, Public, Members, and Contacts although I don't know how you add someone to Contacts. For Favs you go to their profile and there is an action button for that. Me Only, Public, Members are privacy group that one don't add to as a list for obvious reasons. Friends get added or removed when you add or remove someone as a friend. So it only seems logical that as a programmer I could custom code a site to have a "co-worker" privacy group that members can use as well as friends and favourites. I also know that privacy is controlled by a number: bx_import('BxDolPrivacyQuery'); define('BX_DOL_PG_DEFAULT', '1'); Which corresponds to the ID in the sys_privacy_group. By the way, I have been curious about privacy level hidden; 8 and where that is used. |
The built in privacy groups access is determined by the script that is in the get_content field of the sys_privacy_groups table. |
if it is what I ran into a long time ago - it is a decent tool
example - you create a new group, but you only want 6 of your friends to view it - they are your bffs you create a privacy group called bffs, and add those friends to that privacy group. then, you set your new group to the bffs privacy group, and only those 6 people can see it. This is member created privacy groups. In the sys_privacy_group table, there is a field for the owner and a parent field since you can create a privacy group from an existing group. What I want is to create new privacy groups that can be used by anyone on the site. |
if it is what I ran into a long time ago - it is a decent tool
example - you create a new group, but you only want 6 of your friends to view it - they are your bffs you create a privacy group called bffs, and add those friends to that privacy group. then, you set your new group to the bffs privacy group, and only those 6 people can see it. |
I am working on a site where I need to add in several new privacy groups that can be available to all members. I am trying to understanding how this works. I know there is the database tables; including sys_privacy_groups and ChWsbPrivacy.php along with a few other privacy classes. So what would be the procedure for me to add in new site privacy groups? In the backend, I see where one can enable or disable the built-in privacy groups; how is that managed? There is one other thing I noticed is that Dolphin included a Contacts privacy group but there did not seem to be a way to add anyone to the Contacts privacy group. So when I set up these new privacy groups, there must me a way for members to add someone to the group. For example, I will be adding the privacy group Co-workers so members need to be able to add other members they work with into that group. |