A entity with 'Friends' access level can be visible by friends (a user that I add as friend) , I want to edit it to 'Friendof' access level , so only my 'friendof' ( a user that add me as friend) can see my post , any suggestion ?
Can 'inverse_relationship' be used for this case ? what's file i must edit ?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ihayredinov@ihayredinov
ihayredinov - 2 likes
- Avicena AlGhiffar Alsharaawy@AVicenaGhifa
Avicena AlGhiffar Alsharaawy - 0 likes
- Matt Beckett@Beck24
Matt Beckett - 0 likes
- Avicena AlGhiffar Alsharaawy@AVicenaGhifa
Avicena AlGhiffar Alsharaawy - 0 likes
- Avicena AlGhiffar Alsharaawy@AVicenaGhifa
Avicena AlGhiffar Alsharaawy - 0 likes
You must log in to post replies.I created a gist here: https://gist.github.com/hypeJunction/e6cc1f5efc00ca06671acba0f142d942
whoooaaa thankyou very much ,
And i want to ask again :D , do you have a code for 'Close friend' access level, my post can be visible by my 'Close friend' (I add X as friend and X adds me as friend) ,
Core already has an access level for friends. If you want "close friends" that are a subset of friends then you can use the core friend collections - create a friend collection, add your close friends, and a new access level for that collection appears.
Under the hood it's using the access_collections API:
http://reference.elgg.org/engine_2lib_2access_8php.html#a8515ffedce90f755ed58262eb26c6c65
http://reference.elgg.org/engine_2lib_2access_8php.html#ac17767a1861da9b6412b42a399153659
@Ismayl , I write a blog post and the access level is "Friend Of" , but when the blog post has been created , the access level becomes "Limited"? why ?
@Matt Becket , "Close friend" that I mean is = I add X as friend and X adds me as friend. Thank for your reference :)
@ismayl : oh I just understand, your code replaces "Friends" with "Friend Of" access level .What if I change my goal., I don't want to change , but I want to add new access level . Is this code can be used for that purpose ?