Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 132 total)

  • ewebber
    Participant

    @ewebber

    I am using Gravity forms, but that’s only for standard posts not custom post types.
    But I’ll leave you to work out the best ways to do what your site needs to do.


    ewebber
    Participant

    @ewebber

    Your question was “How are your users, on the Activity Feed, selecting to POST in the specified types”. They cannot post from the activity stream.

    I think the confusion here is you are questioning how users can create custom post types and that’s a different topic to this thread.

    The default way would be from the admin dashboard. Other ways are possible depending on your own personal set up and what you want to do.


    ewebber
    Participant

    @ewebber

    Users do not create posts from the activity stream, I’m not sure that this is possible.


    ewebber
    Participant

    @ewebber

    yes into bp-custom.php
    I’m not clear what else you are asking, when a post of the types I have specified in my array is created it creates an item in the activity table.


    ewebber
    Participant

    @ewebber

    I have now done this by adding:

    if( $post->post_type == 'post' ) {
    
    $activity_action  = sprintf( __( '%1$s added the post, %2$s in the categories %3$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>', get_the_category_list( ', ', '', $post->ID ) );
    
    }

    Into my filter for recording posts and custom post types


    ewebber
    Participant

    @ewebber

    @johnnymestizo you can see it on there now


    ewebber
    Participant

    @ewebber

    It’s on my live site, but as there have been no events or businesses listed since I put the code up, you won’t see much right now http://www.yeahhackney.com

    The events that are currently there are not how it will show from now on.


    ewebber
    Participant

    @ewebber

    I just did something like this for cpt “business” and “event”, but removed mention of multisite:

    // add custom post type business to the activity stream
    
    add_filter ( 'bp_blogs_record_post_post_types', 'activity_publish_custom_post_types',1,1 );
    function activity_publish_custom_post_types( $post_types ) {
    $post_types[] = 'business';
    $post_types[] = 'event';
    return $post_types;
    }
    
    add_filter('bp_blogs_activity_new_post_action', 'record_cpt_activity_action', 1, 3);
    function record_cpt_activity_action( $activity_action, $post, $post_permalink ) {
    global $bp;
    if( $post->post_type == 'business' ) {
    
    $activity_action = sprintf( __( '%1$s created a new business listing, %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '' . $post->post_title . '' );
    
    }
    
    if( $post->post_type == 'event' ) {
    
    $activity_action = sprintf( __( '%1$s created a new event, %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '' . $post->post_title . '' );
    
    }
    
    return $activity_action;
    }
    

    ewebber
    Participant

    @ewebber

    Awesome, thanks Henry


    ewebber
    Participant

    @ewebber

    Thanks for responding, any chance you know of a tutorial for this, my php knowledge is pretty lacking.


    ewebber
    Participant

    @ewebber

    Just adding a comment so I can sign up to replies


    ewebber
    Participant

    @ewebber

    I have now completed the migration. I ended up doing a lot of it manually – through csv files as it was a bit complicated.


    ewebber
    Participant

    @ewebber

    Indeed, response from @jjj was:

    “Update everything. Migrate bbPress data into CPT’s. Script topic/post/reply/comment migration by author to their blogs.”


    ewebber
    Participant

    @ewebber

    @djpaul so sorry, you are right. I am using group email subscription – I was convinced it was core functionality (it feels like it should be). It’s @boonebgorges and @dwenaus plugin, I’ll see if I can find out more from them on their own support forum.


    ewebber
    Participant

    @ewebber

    @boonebgorges I have updated the line as suggested and now the e.g. twitter link acts like a buddypress search rather than a twitter link. e.g. the twitter id is mytwittername clicking it goes to http://mywebsite/members/?s=mytwittername


    ewebber
    Participant

    @ewebber

    ….. and it’s stopped sending again :(
    Back to square 1


    ewebber
    Participant

    @ewebber

    Hey @djpaul we might be talking cross purposes, I’ve likely not given you the correct info – it is now sending emails for forum replies


    ewebber
    Participant

    @ewebber

    Finding that the rule for http://www.mywebsite.com/groups/*/forum/topic/* with all cloudflare options off is working (at least for now) it means that the topic pages are not cached – so slower, but fingers crossed I’ve just sorted out a problem I’ve had for a year!
    Still open to other suggestions.


    ewebber
    Participant

    @ewebber

    I might need to do some digging into cloudflare’s page rules http://blog.cloudflare.com/introducing-pagerules-fine-grained-feature-co – if anyone has any thoughts on what files I should exclude from Cloudflare’s options, then all recommendations welcome :)


    ewebber
    Participant

    @ewebber

    I have Cloudflare on my live site, which I am turning off for a bit to see if that effects it – it will slow the site down though :(


    ewebber
    Participant

    @ewebber

    @djpaul group based forums, so bbPress1?


    ewebber
    Participant

    @ewebber

    yup, same codebase and same database.
    yup – only missing emails seem to be: when someone replies to a forum topic I started or took part in


    ewebber
    Participant

    @ewebber

    This seems to work locally using MAMP – but not on my server. Does anyone know where else I can look?


    ewebber
    Participant

    @ewebber

    I’ve just set up a brand new BP site (1.5.5.) and can’t get this to work at all. Does anyone have it working on 1.5.5? Thanks


    ewebber
    Participant

    @ewebber

    I think we are talking about different things, I’m talking about notification emails for registered users not activation emails

Viewing 25 replies - 1 through 25 (of 132 total)
Skip to toolbar