Hello,
Is it possible to add access levels to the posts of the wire?
e.g. I publish a string I only want my friends to see ...
Thanks
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.
@Steve: Well ... I'd like both the wire and the river to be able to set access levels. But when I find out how to do it with the wire, it can't be difficult to do the same on the river ...
I thank Dhrup and untamed for their dedication and interest already and you, Steve, for the comical notes :). Now however, we still need it working. My attempt was not fruitful. I don't know where it goes wrong though.
Ok, I got as far that the access level is stored correctly. Still I can see new posts of non-friends. Maybe something in the script that lists the page? I don't know :s
@fraksken
I used Dhrup's code and it worked only displaying to friends
here is the rewrite, notice I commented out ACCESS_LOGGED_IN
if ($access_id == ACCESS_PRIVATE) {
//$access_id = ACCESS_LOGGED_IN; // Private wire messages are pointless
$access_id = ACCESS_FRIENDS (-2); // Dhrup's mod
}
what is that (-2)? that'll probably be my problem ...
Chocolate Molten =>
/**
* Some useful constant definitions
*/
define ( 'ACCESS_DEFAULT' , -1) ;
define ( 'ACCESS_PRIVATE' , 0) ;
define ( 'ACCESS_LOGGED_IN' , 1) ;
define ( 'ACCESS_PUBLIC' , 2) ;
define ( 'ACCESS_FRIENDS' , -2) ;
I'm sorry, but I can still see non-friend posts :s
Could I have some settings wrong elsewhere that overwrites this?
When I force the code to be used Dhrup gives me, I get this:
Fatal error: Call to undefined function access_friends() in /home/fraksken/public_html/elgg/mod/thewire/actions/add.php on line 20
@Dhrup
Yummmmm :-)
yeah it is not working 100% yet need to look some more
perhaps I am really pushing it here... but what about adding groups too... how could that be possible?
say, a group of friends only...? damm, this one is tricky... I am trying to get a drop down box leaving the thewire post box with a drop down menu to select who can see the post... but I am not quite done... it's KILLING ME!!!
- Previous
- 1
- 2
- 3
- 4
- 5
- 6
- Next
You must log in to post replies.