Social Network with Concrete5
PermalinkIs this option available? If not would my general understanding of PHP be enough to tweak it?
The user block add-on has some of this, but doesn't have the edit-ability of a Concrete5 block. Which is what we are shooting for.
1. where does this new rewritten permission code go?
2. Is there a document with all of the $permissionsConfig alterations that can be made to user[]
Thank you
I am setting up a client area on my site and have made this tutorial on how to do it:
http://www.concrete5.org/community/forums/usage/how-to-create-a-cli...
You might find this might be a solution. You can have an editable area on the page that only certain users can access.
On another note, maybe this could evolve into an add on. Seems like something logical now that Concrete5 has two blog add ons and the e-commerce add on.
you will have to set $area,
$area = $this->getCollectionObj(); //change this $pxml->guests['canRead'] = false; $pxml->registered['canRead'] = false; $pxml->group[0]['gID'] = ADMIN_GROUP_ID; $pxml->group[0]['canRead'] = true; $pxml->group[0]['canWrite'] = true; $pxml->group[0]['canApproveVersions'] = true; $pxml->group[0]['canDelete'] = true; $pxml->group[0]['canAdmin'] = true; $pxml->user[0]['uID']=$this->getUID(); $pxml->user[0]['canRead'] = true; $pxml->user[0]['canWrite'] = false; $pxml->user[0]['canAdmin'] = false; $area->assignPermissionSet($pxml);
define('PERMISSIONS_MODEL', 'advanced');
then you can do stuff like this to programmatically give users access to pages: