Forum Replies Created
-
In reply to: Member Stats
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.
In reply to: Activation emailCan you check if it’s going to their spam mailbox?
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.
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 (a copy of your existing files and database) where you can try out the default theme, deactivate plugins without fear of losing anything etc.
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.
In reply to: Different forum permissionsForum topics are a bbPress thing. If you have questions related to those, bbPress is the best place:
Just wanted to reiterate what has been said above: it’s more about what your users are doing than the number of them.
In reply to: How to get buddypress to work with my theme ?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.
In reply to: [Resolved] Create new Post on updating ActivitiesThe
bp_activity_addaction 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', 'post_title' => __( 'Hello world', 'text-domain' ), 'post_content' => $r['content'], 'post_status' => 'publish' ) ); } );Ref: https://developer.wordpress.org/reference/functions/wp_insert_post/
In reply to: Custom Post Type Comment Post Title in ActivityHere’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; } );In reply to: Custom Post Type Comment Post Title in ActivityI’m pretty sure you can use the
bp_blogs_format_activity_action_new_blog_commentfilter to do that.In reply to: How to know the security of a plugin?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 🙂
In reply to: Visibility Conditions Ignoring Single Digit ValuesI was just about to suggest you contact the plugin author as this sounds like it could be a bug.
In reply to: Struggling with Group InvitesNo worries, good luck with your theme!
In reply to: Struggling with Group InvitesAjax 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
In reply to: Struggling with Group InvitesIt 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?
In reply to: How to get a blog post link from a comment linkHi @danbp
We have just the comment URL to start with so the method you linked to won’t work.
In reply to: How to get a blog post link from a comment linkpreg_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 );In reply to: How to get a blog post link from a comment linkYou 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 = get_comment( $comment_id ); echo get_permalink( $comment->comment_post_ID );In reply to: BP exclude member roleYou should use
bp_parse_args(). Check out this article:In reply to: Profile Search no working in mobileHi @juanandrius
Which theme are you using?
In reply to: BP exclude member roleCan you paste the code you’re using?
In reply to: Add $_POST data before submitting registrationIf you comment out your action:
// add_action( 'bp_signup_pre_validate', 'assign_username' );Do you still get the “Do you want to leave the page” message?
I’m not sure why the code you’ve pasted above would trigger a message like that.
In reply to: BP exclude member rolebut the problem i have wrong calcul total member in the filter
Which filter?
In reply to: [Resolved] Password reset templateNo worries @jamesduffell. I’ve used the plugin a number of times with BuddyPress and have found them to work seamlessly together.