Forum Replies Created
-
In reply to: Custom Hook Help
After you register a user, do you see a message that starts with You have successfully created your account! ?
If you do, your function should work.
You could try putting it in the theme/functions.php
Putting code directly into a template is okay if you create a template overload.
The right way is to use a template overload.
In reply to: Private Messaging Limit with Membership plansI’m not aware of any.
And any such plugin would need to be specific to the code used for membership plans.
Writing such a plugin should be straightforward.
You can post Jobs here.In reply to: Can’t upload Group AvatarsI’ve not seen your issue before.
It may be a bug.
You can submit a possible bug here.
Be sure to include info about the browser you’re using and the hosting environment.In reply to: Add First Name in the Profile PageCreate a template overload of this template:
buddypress\bp-templates\bp-legacy\buddypress\members\single\member-header.phpAdd this wherever you like in that template:
bp_displayed_user_fullname();In reply to: Can’t upload Group AvatarsCan you upload and display member avatars?
In reply to: Can’t upload Group AvatarsThat is odd.
It’s difficult to suggest a solution when replicating the issue is nigh impossible.
But maybe more info about the issue can be generated…Try using a WP theme like 2013, deactivating bbPress and turning debug on in wp-config.php
https://codex.wordpress.org/WP_DEBUGThe file is getting uploaded to “wp-content/uploads/group-avatars/4/” but doesn’t appear on the group.
Does anything appear on the group? View source or use a browser code inspector to take a close look.
In reply to: Filtering Activity LoopI’d try using this hook:
do_action( 'bp_activity_add', $r );frombp-activity/bp-activity-functions.phpIn reply to: Issues with messages pageIt looks like an issue with your theme.
To confirm – try switching to a WP theme like 2015 and see if the problem remains.In reply to: Filtering Activity LoopPlease use the
codebutton when sharing code.I don’t have much experience with multisite, but you’re adding meta based on this hook:
add_action('bp_activity_posted_update', 'where_activity_from', 10, 3);A lot of activity entries are not
updates, so maybe that is why your filtered stream is so sparse.Sometimes it’s easier and faster to test a query directly in a db tool like phpmyadmin first.
There may be an easier way to get blog-specific entries without adding meta.In reply to: Hide All Admins from All Buddypress Activities
…which I have uploaded to the root of the buddpress folder
It should go in the root of the plugins folder.
The filter call is:
apply_filters_ref_array( 'bp_get_activity_content_body', array( $activities_template->activity->content, &$activities_template->activity ) );Your function expects 2 parameters. Your add_filter call states there is only one.
And there is only one – an array.
Read about that kind of filter https://codex.wordpress.org/Function_Reference/apply_filters_ref_arrayTry something like this:
function cshp_add_thumbs_to_activity( $array ) { $post_id = $array[1]->secondary_item_id; //etc $array[0] = // new content return $array; } add_filter( 'bp_get_activity_content_body', 'cshp_add_thumbs_to_activity', 15, 1 );In reply to: Buddypress send PM not refreshing after sent.Members need to be logged in before they can send a PM.
If you’d like to provide a user / pw, somebody might take a closer look.You’re using a custom theme – does its member-header.php include
do_action( 'template_notices' );?
If not, the feedback messages will not appear.In reply to: Error Logs with BuddyPressi’ve discussed this with the theme creators and was told it was an issue with the plugin.
Try switching to a WP theme like 2015.
Do the warnings stop appearing?
If so, then the problem is caused by something in your preferred theme.In reply to: Adding custom page in group section.The Group Extension API is the best way to add a page & creation step.
In reply to: spectator can´t read Private group forumTo find out how to over-ride the capabilities of bbPress user roles, you should ask on the bbPress support forum.
In reply to: spectator can´t read Private group forumPlease do not double post
The default role for bbPress is Participant.
How did you set it to Spectator?
And why?
Do you not want members to be able to post in group forums?Scenario 1 is easy:
Create a template overload of this file:
\buddypress\bp-templates\bp-legacy\buddypress\members\single\profile\profile-loop.phpUse
bp_get_the_profile_field_name()to determine of the current user should be able to see the field – based on the current member’s PMP level.In reply to: oldest firstUse the
sortparameter.In reply to: custom output from registration formcan anyone tell me how i could for instance output only label for email?
In register.php…
<?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> if( 'Email' == bp_get_the_profile_field_name() ) echo 'Email: this is the email field'; //etcYou could use that approach for xprofile fields.
But ’email’ is not an xprofile field.
It is hardcoded in register.php ~Line 77In reply to: Rich EditorAccording to the ticket, it should be in the 2.4 release, which should be the next release.
In reply to: BuddyPress Pages not working 🙁Register and Activate pages directs to home page.
You need to be logged out to see those pages.
In reply to: Stalking-Admin View PM?There is now a free plugin that allows site admins to view messages.
You can get it here: http://www.philopress.com/products/bp-messages-tool/
And it will be in the WP plugin repo soon.In reply to: Given Activation Key, How would you get the User ID?You need to acquire a basic understanding of WP hooks and filters; how they work and the difference between them. Then it will be obvious why ‘the above assignment’ doesn’t work.
The only reason
william_bp_core_activated_user()has access to $user_id is because it is passed by the hook.In reply to: Given Activation Key, How would you get the User ID?Try using this hook
do_action( 'bp_core_activated_user', $user_id, $key, $user );
frombuddypress\bp-members\bp-members-functions.php