-
Henry Wright replied to the topic Free Theme almost ready in the forum Showcase 8 years, 3 months ago
Hi buddycore,
I think the theme is looking good! Will you be accepting pull requests on GitHub?
-
Henry Wright replied to the topic [Resolved] Wrap embeds in div in the forum How-to & Troubleshooting 8 years, 3 months ago
Cool, no worries!
-
Henry Wright replied to the topic [Resolved] Wrap embeds in div in the forum How-to & Troubleshooting 8 years, 3 months ago
bp_use_oembed_in_activity
can be used to allow or disallow oEmbeds in activity items.The
bp_activity_embed()
function just adds a bunch of filters and actions. It’s not really for filtering the oEmbed output. -
Henry Wright replied to the topic [Resolved] Wrap embeds in div in the forum How-to & Troubleshooting 8 years, 3 months ago
Can you try the
bp_activity_embed_html
hook?add_filter( 'bp_activity_embed_html', function( $retval ) {
return '<div>' . $retval . '</div>';
} ); -
Henry Wright replied to the topic [Resolved] Wrap embeds in div in the forum How-to & Troubleshooting 8 years, 3 months ago
Perhaps that filter hook is for filtering embeds in WordPress content? BuddyPress must have a filter for this. I’ll need to have a dig around…
-
Henry Wright replied to the topic [Resolved] Wrap embeds in div in the forum How-to & Troubleshooting 8 years, 3 months ago
Think of it like this:
Filters return stuff
Actions don’tHere’s an example using the
embed_oembed_html
filter:add_filter( 'embed_oembed_html', function( $html, $url, $attr, $post_ID ) {
// Use $html, $url, $attr and $post_ID here if you like.// Wrap the HTML output.
$html = '<div>' . $html . '</div>';// Return $html.…[Read more]
-
Henry Wright replied to the topic [Resolved] Wrap embeds in div in the forum How-to & Troubleshooting 8 years, 3 months ago
Check out the
embed_oembed_html
filter. I think that’s what you need here. -
Henry Wright replied to the topic Activate BuddyPress components programmatically in the forum Installing BuddyPress 8 years, 3 months ago
Can you let me know what output you get from this?
add_action( 'bp_loaded', function() {
var_dump( bp_get_option( 'bp-active-components' ) );
} ); -
Henry Wright replied to the topic Activate BuddyPress components programmatically in the forum Installing BuddyPress 8 years, 3 months ago
Can you var_dump
$bp_active_components
just to see what we have in the db? -
Henry Wright replied to the topic Activate BuddyPress components programmatically in the forum Installing BuddyPress 8 years, 3 months ago
You need
activated_plugin
. It fires after a plugin has been activated but note that if a plugin is silently activated (such as during an update), the hook doesn’t fire.Here’s an example:
add_action( 'activated_plugin', function( $plugin, $network_wide ) {
// $plugin is a string (the path to main plugin file).
}, 10, 2 ); -
Henry Wright replied to the topic How to properly set bcc in all emails? in the forum How-to & Troubleshooting 8 years, 3 months ago
bcc stands for blind carbon copy. It’s a way of sending email to a group of recipients without them seeing who else the email is addressed to. So bcc will be blank every time.
-
Henry Wright replied to the topic [Resolved] Sorry, there was no activity found. Please try a different filter. in the forum How-to & Troubleshooting 8 years, 3 months ago
@apokh glad you solved the problem 🙂
-
Henry Wright replied to the topic [Resolved] Sorry, there was no activity found. Please try a different filter. in the forum How-to & Troubleshooting 8 years, 3 months ago
Which theme are you using?
-
Henry Wright replied to the topic How to properly set bcc in all emails? in the forum How-to & Troubleshooting 8 years, 3 months ago
Try changing this
$bcc = new BP_Email_Recipient( 'myemail@gmail.com' );
to
$bcc[] = new BP_Email_Recipient( 'myemail@gmail.com' );
-
Henry Wright replied to the topic Free theme in development in the forum Showcase 8 years, 3 months ago
@buddycore This looks super cool! Looking forward to seeing it up on GitHub 😀
-
Henry Wright replied to the topic Update custom table field when posting activity in the forum How-to & Troubleshooting 8 years, 3 months ago
In order to update a custom table you’d need to use the wpdb class.
-
Henry Wright replied to the topic Cant seem to trigger the bp_activity_set_action after form submission in the forum How-to & Troubleshooting 8 years, 3 months ago
Are you sure the
gform_after_submission_79
action is firing? -
Henry Wright replied to the topic distorted gravatar in the forum How-to & Troubleshooting 8 years, 3 months ago
This could be a CSS issue. Which theme are you using?
-
Henry Wright replied to the topic Change colors of fields in the forum How-to & Troubleshooting 8 years, 3 months ago
We’d need to see your theme’s markup in order to provide you with the relevant CSS help. Do you have a link to your website?
-
Henry Wright replied to the topic [Resolved] Check if on profile of an admin? in the forum How-to & Troubleshooting 8 years, 3 months ago
This is possible. As @mrjarbenne said you can check the capabilities of the displayed user.
- Load More
@henrywright
Active 8 months, 1 week ago