-
shanebp replied to the topic Adding event to activity stream in the forum Creating & Extending 11 years, 3 months ago
What are you using to create the form for submitting a review?
The review creation process should have a hook. -
shanebp replied to the topic How to Get User Profile Data in the forum How-to & Troubleshooting 11 years, 3 months ago
>would it work with BP’s fields
It should.
You can always hard code an ID to find out. -
shanebp replied to the topic How to Get User Profile Data in the forum How-to & Troubleshooting 11 years, 3 months ago
If you mean activity comments…
$bp_location = bp_get_profile_field_data( 'field=Location&user_id=' . bp_get_activity_comment_user_id() );
echo $bp_location;If you mean post comments, I think you need to create a custom comment display.
Example:…[Read more] -
shanebp replied to the topic Explanation for recurring coding pattern in BP core in the forum How-to & Troubleshooting 11 years, 3 months ago
Sometimes you want to echo the returned value.
Sometimes you just want the value. -
shanebp replied to the topic Private Message Button Label Change in the forum How-to & Troubleshooting 11 years, 3 months ago
Open the plugin file, find the text, replace the text
-
shanebp replied to the topic Private Message Button Label Change in the forum How-to & Troubleshooting 11 years, 3 months ago
@henrywright-1
And how would you avoid double buttons due to this call in member-header.php?
do_action( ‘bp_member_header_actions’ );@tayenewm
Use the provided apply_filters:function tweak_button_label ( $args ) {
$args[link_text] = 'Something';
return $args;
}
add_filter( 'bp_get_send_message_button_args', 'tweak_button_label', 1, 1… -
shanebp replied to the topic Hide/restrict access to Private Messaging in the forum Creating & Extending 11 years, 3 months ago
@henrywright-1
Don’t include the global if you aren’t going to use it. -
shanebp replied to the topic Cannot add specific user to a group in the forum How-to & Troubleshooting 11 years, 3 months ago
Did you try switching to a theme like WP 2012?
Although that won’t explain why the same setup on a different domain works, still it would be a clue.
-
shanebp replied to the topic Cannot add specific user to a group in the forum How-to & Troubleshooting 11 years, 3 months ago
Use Dashboard > Users to see if their Role types are the same.
-
shanebp replied to the topic Buddypress Members Loop ordered by custom field value? in the forum Installing BuddyPress 11 years, 3 months ago
-
shanebp replied to the topic Buddypress Members Loop ordered by custom field value? in the forum Installing BuddyPress 11 years, 3 months ago
You should be able to do a conditional based on the page slug, action or uri.
But the user query might fire before that check can be run.
Try a simple echo from a function on that hook, see where/when it appears.You could manipulate the members loop (stuff into array & resort)
but that’s very inefficient unless you have less than 1000 users.…[Read more] -
shanebp started the topic dashboard settings page: WP 3.6 (multisite) and BP 1.8.1 (multiblog) in the forum How-to & Troubleshooting 11 years, 3 months ago
What is the proper way to add a Dashboard > Settings page for a custom plugin in
WP 3.6 (multisite) and BP 1.8.1 (multiblog) ?Currently:
When network activating the plugin it only shows on the settings on
Network Admin. The plugin settings don’t show on the subsites.When deactivating the plugin network wide it’s active on the subsite
but…[Read more] -
shanebp replied to the topic Buddypress Members Loop ordered by custom field value? in the forum Installing BuddyPress 11 years, 3 months ago
It would be best to filter this at the query level.
See do_action_ref_array( ‘bp_pre_user_query’, array( &$this ) );
In function prepare_user_ids_query()
In buddypressbp-corebp-core-classes.php -
shanebp replied to the topic Charging for file uploads in the forum Creating & Extending 11 years, 3 months ago
You could use Easy Digital Downloads or Woocommerce.
They both have premium extensions for front-end creation of ‘products’.Both approaches will need customization to handle the credits.
There may be some extension available.Or you’ll have write a full solution.
-
shanebp replied to the topic Can I stop private messages being sent to one particular user? in the forum How-to & Troubleshooting 11 years, 3 months ago
You’ll need to know the user_id for the teacher.
Then check the array for that id. If it’s found, remove it.
And tell the student why, something like:
bp_core_add_message( __( 'You cannot send a private message to the teacher.', 'buddypress' ), 'error' );
-
shanebp replied to the topic Can I stop private messages being sent to one particular user? in the forum How-to & Troubleshooting 11 years, 3 months ago
Do you know how to use filters?
Take a look at function send() in
buddypressbp-messagesbp-messages-classes.phpIt has lots of filters.
I’d use the do_action_ref_array -
shanebp replied to the topic How to enable users to block other users from their profile? in the forum Installing BuddyPress 11 years, 3 months ago
There is a premium plugin that supports blocking on a per member basis:
BuddyBlock -
shanebp replied to the topic buddypress profile new tab returns permission denied in the forum How-to & Troubleshooting 11 years, 3 months ago
Try these changes:
'parent_url' => $bp->loggedin_user->domain . '/',
'parent_slug' => $bp->profile->slug, -
shanebp replied to the topic Buddypress locking a member out of his own group in the forum How-to & Troubleshooting 11 years, 3 months ago
I’ve had great success using w3totalcache with most everything selected except page caching.
And I always use the memcached option – so you have to have memcache set up across all your servers.
Involves a lot of fiddling – but worth it for installs with tens of thousands of members.
-
shanebp replied to the topic Correct way to setup BP_Theme_Compat class for custom theme in the forum How-to & Troubleshooting 11 years, 3 months ago
> if I want to create a completely bespoke theme (not theme compat), how do I stop an instance of BP_Legacy being created and registering its actions?
Just guessing here, but perhaps by manipulating ‘register_theme_packages’ in bp-loader.php ?
If you get this working, any info / hints you can share would be appreciated.
- Load More
@shanebp
Active 12 hours, 33 minutes ago