Forum Replies Created
-
In reply to: How can I get the activity like facebooks?
BP Activity Privacy doesn’t provide the sort of functionality I want at this stage, but I think it could become a useful tool in the future with the features megainfo says they’ll be adding. I still need a Facebook-style wall though, and I’d still like to know how to do it without hacking into BP core.
In reply to: [Resolved] Where is activity stream privacy?@megainfo: I hope the forthcoming admin controls will allow setting privacy levels for different roles. For example, I’d really like to be able to force subscribers to only be able to post to their friends, where as I’d like my contributors/authors to be able to post public updates. This would essentially make the activity stream work like Facebook for subscribers, but still give higher level users the ability to do public posts.
Okay, I tried your code, both in the activity template and in place of the activity loop, and in either case, it does nothing – it simply spits out all activity. Thanks for trying though anyway!
Hi Shane,
Just to clarify, would I simply stick this in at the top of my customised version of bp-legacy/buddypress/activity/index.php? There isn’t any need to modify the scope of the activity loop itself?
Hi Shane,
Thanks for your suggestion, but with my very limited level of coding knowledge, I need a little bit more than ‘something like’ to be able to make code work. 🙂 Also, AFAIK a new scope needs to be created to do this reliably – can that be done via the means you’re suggesting? Once again, if somebody can give me a fairly detailed way to convert this code into an external function I would be very grateful, as I’m sure would many other BP users, judging from the number of requests for this feature. It’s a obvious candidate for a plug-in – I know there’s already a premium plug-in for this, but that only works in the profile component, whereas I think most people want this functionality in the main activity stream. Or even better, it should just be part of BP core (the obvious way to do this would be for bp_has_activities to accept multiple scopes, if that’s technically possible).
I should have mentioned that to use this code, you insert the scope in a custom activity loop, as per https://codex.buddypress.org/developer/developer-docs/loops-reference/the-activity-stream-loop/ – in this case, the loop would be:
<?php if ( bp_has_activities( 'scope=wall' ) ) : ?>In reply to: How can I get the activity like facebooks?For more detailed info on how to implement this (including follow functionality), see my post here:
https://buddypress.org/support/topic/ive-figured-out-how-to-create-a-facebook-style-wall-but/
Thankyou so much for this code Chris!
In reply to: disable auto embeds in activity streamI applied meg@info’s second code in bp-custom.php and it works perfectly – thanks!