Forum Replies Created
-
In reply to: Individual Privacy settings for group areas
just look at the core files bp-groups.php and the function
groups_setup_nav()from there you’ll see how bp sets the current access for most subnav items
look for this line -> // If this is a private or hidden group, does the user have access?which is referenced on line 206/7 for the Forums subnav. What you can do is remove the subnav (
bp_core_remove_subnav_item) then re-add with the paramuser_has_accesscalling some function to determine the access level for your given requirements. (hook your remove/re-add on the actiongroups_setup_nav)In reply to: How can I know what action, filter, function etc.?You can only override functions which are pluggable – I don’t believe any exists within BuddyPress (just the standard wp pluggable.php)
actions are just trigger points that are defined somewhere in the code
https://codex.wordpress.org/Plugin_API#Hooks.2C_Actions_and_Filtersgroups_post_updateis not pluggable – the only action (bp_groups_posted_update) within that function is after the activity update occurs. (which is after is_user_member check)@apwinthrop – only thing on my test site is group forum extras that has an activity stream subplugin – this will display activity comments underneath a forum post.
In reply to: [Resolved] Customizing bp_get_displayed_user_nav()what about removing and re-adding just the subnav? (or getting a bit hackery and editing $bp->bp_options_nav array)
That is because the check within
groups_post_updateallows the site_admin
/* Be sure the user is a member of the group before posting. */
if ( !is_site_admin() && !groups_is_user_member( $user_id, $group_id ) )
return false;
in the function
groups_post_updatea check is performed if someone is a member prior to posting an activity_update (there is no action hook prior to this conditional) – so you’ll need to find out how to join all your members to groups first. (another plugin or custom hook when someone registers, creates a new group, views a group, etc)the theme for /groups/single/activity.php contains a check for bp_group_is_member() around the post-forum.php include
In reply to: Individual Privacy settings for group areasoff the top of my head – each subnav item and the screen functions can be limited to a “user_has_access” flag set in bp_core_new_subnav_item
For example the Forum subnav is restricted if public/hidden – you could remove and re-add the subnav with your own function to check access
my only other guess is server/mysql cache (bp_has_activities is also used in the ajax response for posting a new comment – which works but is filtered for a comment_id)
In reply to: Members only?(tons of solutions via search)
on the recent topic list just a few threads down:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/members-only-site/In reply to: Notifications Widget in Buddypresseach core component deletes notifications within the template call
for example – when viewing the my friends listing (friends_screen_my_friends) – prior to loading the template “members/single/home”
In reply to: Upgrade Guide for Child Themes?@dennis_h a front-end Member FAQ/Help plugin would be a great idea for site owners. Something that other plugins can hook into as well to explain how their features work in terms for a member.
In reply to: GeSHI plugin for BuddyPress?Same issue if you view the permalink of an activity? (/activity/p/somenumber)
other plugins? cache plugin?
In reply to: Ability to post something on personal activity pagesi believe that is just adding in the @simon.goodchild automatically to the message – (though not a plugin and unique to this site – but could be done via some custom coding as the current method is just ‘mention this user’)
In reply to: Is there a latest forum topic widget?if you open your php file with the widget function, you’ll see an actual – that needs to be replaced (right before “posted in ” )
In reply to: Is there a latest forum topic widget?oh the ndash – the entity was converted just use –
In reply to: Is there a latest forum topic widget?i could not spot anything – send me a link to your site.
In reply to: Is there a latest forum topic widget?possible dirty character when copy/paste into your php file?
In reply to: WP 3.0 – BP 1.2.5 500 Error on User Deletealready in trac (see thread i posted above)
In reply to: Getting a Notification on Message Sent?yeah a bug – in trac already
In reply to: BuddyPress Dev Chat –“–notification when using @mention in wordpress side (blog, comments, etc.)”
@intimez i’d imagine easy to set that up – just reuse the notification/atmention functions and hook it into wp. – the comments already hook add_filter( ‘pre_comment_content’, ‘bp_activity_at_name_filter’ );
In reply to: WP 3.0 – BP 1.2.5 500 Error on User Deletea crazy idea – the BP_Activity class on the save method has another set of filters.
$this->content = apply_filters( 'bp_activity_content_before_save', $this->content, &$this );Using $this
check for the activity type (new_blog_post),
grab the secondary_item_id which is the post_id (item_id is the blog_id here)
then lookup your custom excerpt in wp with the post_id and replace?