-
Henry Wright replied to the topic Latest Activity Image on Members Loop in the forum How-to & Troubleshooting 8 years, 3 months ago
Do you mean you want to show the post thumbnail?
-
Henry Wright replied to the topic Member Stats in the forum Requests & Feedback 8 years, 3 months ago
WooCommerce with the Memberships extension is a good starting point. Memberships is a premium extension but I’ve used successfully in the past.
I’m sure there’s a statistics add on too.
-
Henry Wright replied to the topic Activation email in the forum Installing BuddyPress 8 years, 3 months ago
Can you check if it’s going to their spam mailbox?
-
Henry Wright replied to the topic Buddypress Registation-related pages & buttons not showing in the forum How-to & Troubleshooting 8 years, 4 months ago
I haven’t read that article but I mean using a complete WordPress install as a testing environment. It’s important to have something separate from your live website.
-
Henry Wright replied to the topic Buddypress Registation-related pages & buttons not showing in the forum How-to & Troubleshooting 8 years, 4 months ago
The only thing I haven’t done is strip everything down; deactivate all the plugins and switch to default theme. I could do that, but do I lose configuration I already did to my theme now?
In theory you should be able to switch theme without problems, but unfortunately this isn’t always the case. My advice would be to set up a testing install (…[Read more]
-
Henry Wright replied to the topic Profiles won't load – I get "page isn't working" error in the forum How-to & Troubleshooting 8 years, 4 months ago
Can you list the plugins you’re using? The likely cause is either a) a plugin b) your theme or c) some code snippet you have in bp-custom.php.
-
Henry Wright replied to the topic Different forum permissions in the forum How-to & Troubleshooting 8 years, 4 months ago
Forum topics are a bbPress thing. If you have questions related to those, bbPress is the best place:
-
Henry Wright replied to the topic Using plugin for online gaming community with heavy site traffic in the forum Installing BuddyPress 8 years, 4 months ago
Just wanted to reiterate what has been said above: it’s more about what your users are doing than the number of them.
-
Henry Wright replied to the topic How to get buddypress to work with my theme ? in the forum How-to & Troubleshooting 8 years, 4 months ago
Try asking the theme author to add BuddyPress support. It’s easy for themes to support BuddyPress ever since the template hierarchy went live in BP 1.7.
-
Henry Wright replied to the topic [Resolved] Create new Post on updating Activities in the forum How-to & Troubleshooting 8 years, 4 months ago
The
bp_activity_add
action fires at the end of adding a new activity item. So you can hook a custom function to that and add your custom post within that. Here’s an example:add_action( 'bp_activity_add', function( $r ) {
// Insert a new post.
wp_insert_post(
array(
'post_type' => 'activitfeed',…[Read more] -
Henry Wright replied to the topic Custom Post Type Comment Post Title in Activity in the forum How-to & Troubleshooting 8 years, 4 months ago
Here’s an example of how to use the filter:
add_filter( 'bp_blogs_format_activity_action_new_blog_comment', function( $action, $activity ) {
// Do what you wish with $activity here.$action = __( 'Your text here.', 'text-domain' );
return $action;
} ); -
Henry Wright replied to the topic Custom Post Type Comment Post Title in Activity in the forum How-to & Troubleshooting 8 years, 4 months ago
I’m pretty sure you can use the
bp_blogs_format_activity_action_new_blog_comment
filter to do that. -
Henry Wright replied to the topic How to know the security of a plugin? in the forum Third Party Plugins 8 years, 4 months ago
BuddyPress Follow is one of the best. No need to worry about security or performance when using that plugin; @r-a-y will have your back 🙂
-
Henry Wright replied to the topic Visibility Conditions Ignoring Single Digit Values in the forum How-to & Troubleshooting 8 years, 4 months ago
I was just about to suggest you contact the plugin author as this sounds like it could be a bug.
-
Henry Wright replied to the topic Struggling with Group Invites in the forum How-to & Troubleshooting 8 years, 4 months ago
No worries, good luck with your theme!
-
Henry Wright replied to the topic Struggling with Group Invites in the forum How-to & Troubleshooting 8 years, 4 months ago
Ajax fails usually because a necessary class or ID is missing from the DOM. Try doing a quick comparison against the default template to see what classes or IDs your customised template is missing
-
Henry Wright replied to the topic Struggling with Group Invites in the forum How-to & Troubleshooting 8 years, 4 months ago
It just doesn’t work as expected. Is there a guide to implement this template anywhere?
I don’t think there’s a guide available. Can you describe how it isn’t working for you?
-
Henry Wright replied to the topic How to get a blog post link from a comment link in the forum How-to & Troubleshooting 8 years, 4 months ago
Hi @danbp
We have just the comment URL to start with so the method you linked to won’t work.
-
Henry Wright replied to the topic How to get a blog post link from a comment link in the forum How-to & Troubleshooting 8 years, 4 months ago
preg_replace() requires a pattern, a replacement and a source string. In your case the source string will be your comment URL. Try this:
$url = 'https://example.com/2016/07/09/post-name/#comment-12';
$pattern = '/#comment-([0-9]+)/';
$replacement = '$1';
$comment_id = preg_replace( $pattern, $replacement, $url );Ref:…[Read more]
-
Henry Wright replied to the topic How to get a blog post link from a comment link in the forum How-to & Troubleshooting 8 years, 4 months ago
You need to get the comment ID from the URL and then you can look up the post. So imagine you have this:
https://example.com/2016/07/09/post-name/#comment-12
The comment ID is 12. You’d need to extract that from the string. Stuff like
preg_replace()
orfilter_var()
can be used here. Once you have the comment ID you can do this:$comment =…
[Read more] - Load More
@henrywright
Active 8 months, 1 week ago