Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 14,851 through 14,875 (of 69,016 total)
  • Author
    Search Results
  • #229704
    shanebp
    Moderator

    No offense, but your code is a real mess.
    And you should be using wpdb instead of mysql_query.
    Please consider hiring a developer. You can post a job here.

    shanebp
    Moderator

    Your code is garbled and missing the href. Try this:

    add_filter('bp_blogs_activity_new_post_action', 'record_cpt_activity_action', 1, 3);
    function record_cpt_activity_action( $activity_action,  $post, $post_permalink ) { 
    
       if( $post->post_type == 'projects' ) {
    	$activity_action  = sprintf( __( '%1$s created a new Project, %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );
       }
    	
       return $activity_action;
    }
    milenushka
    Participant

    Hi @shanebp,

    I am sorry I don’t quite understand..

    My exact code looks like this:

    add_filter( 'bp_blogs_record_post_post_types', 'inspired_record_more_types' );
    function inspired_record_more_types( $types ) {
        $types[] = 'projects';
            return $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 == 'projects' ) {
    if ( is_multisite() )
    $activity_action = sprintf( __( '%1$s created a new project, %2$s, on the site %3$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '' . $post->post_title . '', '' . get_blog_option( $blog_id, 'blogname' ) . '' );
    else
    $activity_action = sprintf( __( '%1$s created a new project, %2$s', 'buddypress' ), bp_core_get_userlink( (int) $post->post_author ), '' . $post->post_title . '' );
    }
    return $activity_action;
    }

    and the link to the project custom post is not showing. It does show with only the first part of the code- but the slug is generic – .. “wrote a new post”

    #229688
    Henry Wright
    Moderator

    @hnla you’re right, it could be more robust. I’ve added a conditional check to test if the messages component is active.

    function send_message_to_new_member( $user_id, $key, $user ) {
    
        if ( ! bp_is_active( 'messages' ) )
            return;
    
        $args = array(
            'sender_id' => 1,
            'thread_id' => false,
            'recipients' => $user_id,
            'subject' => 'Hello new user',
            'content' => 'Welcome to the site',
            'date_sent' => bp_core_current_time()
        );
    
        $result = messages_new_message( $args );
    }
    add_action( 'bp_core_activated_user', 'send_message_to_new_member', 3 );

    I think editing the codex is off-limits to the masses right now, although you may have access? See here.

    #229678
    peter-hamilton
    Participant

    Needs to be done, especially if this means a stronger team that produces wicked updates and maintain a strong trustworthy codex.

    Thanks for being Buddypress.

    #229677
    Hugo Ashmore
    Participant

    @mmaccou you should always check the BuddyPress documentation for things like this as well as third party sites.

    In this instance the required item is not perhaps that obvious to find, so I’m considering a version of the page slightly re-written and added under our ‘Administrators’ section.

    Filters & Constants Reference

    #229611
    danbp
    Participant

    Hi @mmaccou,

    The place in the functions.php has no importance. You can also use bp-custom.php to be independant of your theme.
    That said, the tip (published 2010) you tried is no more accurate for BP 2.x and/or bbPress.

    Try this one instead:

    /* deactivate @mention - BP 2.0+ & bbpress */
    
    add_filter( 'bp_activity_do_mentions', '__return_false' ); // BP only
    add_filter( 'bbp_find_mentions', '__return_false' ); //bbPress only
    #229598
    marvc
    Participant

    Two weeks and not even a response? So no one in this ENTIRE buddypress community sees this as something worth responding to? How can you not get support, or even a response, from developers of their own product?
    Gonna re-post as it doesn’t appear as though this forum is being monitored.

    #229586
    Jahfree
    Participant

    I just ionstalled BuddyPress on a Server without different Port

    What does this mean? Im having the same problem and i dont understant what “without different port” means?

    PLEASE help

    THANK YOU

    #229504
    Jozef de Beer
    Participant

    I was looking for something similar, only I want to put in a description on my registration page. Just a paragraph explaining a couple of things at the registration page. I can’t believe that this would be a plugin not a feature with buddypress. If this is operator error (which I think is most likely) then please tell me how to do this.

    Thanks,

    Jozef de Beer
    creativecollaborating.com

    #229499
    Henry Wright
    Moderator

    It wouldn’t be BuddyPress documentation you’d need, rather, WordPress documentation. Take a look at the articles on user meta, specifically look at the get_user_meta() and update_user_meta() functions.

    The general idea would be to increment a user’s share count each time something is shared by that user.

    Refs:

    https://codex.wordpress.org/Function_Reference/update_user_meta
    https://codex.wordpress.org/Function_Reference/get_user_meta

    shanebp
    Moderator

    Glad it worked.
    Unless you’re explicitly using the BP default theme, you should use the templates from here:
    buddypress/bp-templates/bp-legacy/buddypress

    [yeah, it’s not intuitive]

    #229497

    Hey @henrywright thanks for getting back to me. Yes I figured it would require custom coding. I have scoured the plugin directory for something close to this and could not find anything. If I were to develop a plugin like this can you point me to buddypress documentation that would be helpful to get started?

    #229496
    djsteveb
    Participant

    @mika909 – I do not think anyone at the buddypress forums is going to help you with this. When trying to get a particular plugin to work with BP it is best to read the instructions with that plugin ( wordpress . org/plugins/paid-memberships-pro/faq/ )

    or ask in the support forums for said plugin ( https://wordpress.org/support/plugin/paid-memberships-pro )

    Although the FAQ for this plugin links to the premium plugin site – which basically says figure it out on your own.. or register there free to get access to extra documentation, or pay $297 to get extra help and up to one hour of consultation / help in setting this plugin up.

    This is really not a buddypress how to / troubleshooting thing. If there is a way to mark this thread as resolved you should do that.

    #229491
    dshirac
    Participant

    Hey @mercime! Well,
    I’ve been told and yes I was mistaking, but on members page I have the search form to search members, but no result from this one, not by first/last name and not by username.
    Anyway, I had to do some coding and wrote that small function:
    ———-
    <?php
    $term = $_POST[“fname”].’ ‘.$_POST[“lname”];
    header(‘http://www.allthatsheneeds.com/members/?s=$term.’#’);
    ?>
    ———-
    I found out that buddypress search uses s, letters and member_search as parameters, and send them to this url above, so why not to just send them via my form 🙂
    Problem:
    ‘s’ represent first name but that’s it, I can’t pass any other param except this one.. (they all been ignored ) do you have any idea how to pass also my ‘lname; value? to which param should I send it?

    Thank you so much!

    shanebp
    Moderator

    If you select “Discourage search engines from indexing this site” in WP – Settings – Readings then bbpress new topics and replies won’t be shown in Buddypress Activity.

    just fyi – if selected, it will also prevent blog comments from showing up in the activity stream.

    #229474
    dshirac
    Participant

    Hey mercime! Well,
    I’ve been told and yes I was mistaking, but on members page I have the search form to search members, but no result from this one, not by first/last name and not by username.
    Anyway, I had to do some coding and wrote that small function:
    ———-
    <?php
    $term = $_POST[“fname”].’ ‘.$_POST[“lname”];
    header(‘http://www.allthatsheneeds.com/members/?s=$term.’#&#8217;);
    ?>
    ———-
    I found out that buddypress search uses s, letters and member_search as parameters, and send them to this url above, so why not to just send them via my form 🙂
    Problem:
    ‘s’ represent first name but that’s it, I can’t pass any other param except this one.. (they all been ignored ) do you have any idea how to pass also my ‘lname; value? to which param should I send it?

    Thank you so much!

    #229473

    In reply to: Youtube z-index

    @mercime
    Participant

    @navinachettri this is not a BuddyPress issue and more like a theme issue. Please check if the issue is resolved if you change to the Twenty Fourteen theme. If it is, then do post at the theme author’s site.

    #229472
    @mercime
    Participant

    @dshirac following are the only BP Widgets https://codex.buddypress.org/buddypress-components-and-features/buddypress-widgets/ Perhaps you mean a feature with another theme or plugin?

    #229461
    djsteveb
    Participant

    Sounds possible… probably have to hire on some custom coding help though. I am not aware of anything out of the box or plugin wise that will do searching by distance with zip codes.

    The other stuff you mentioned can probably be pieced together with plugins from various places – may need some tweaks to get things to work as you describe – which will take some extra coding mercenary expenses I think.

    I am not an expert on all the various plugins, and couldn’t begin to tell you how much coding help would be needed. You can create a buddypress site pretty cheap to play with it and then see how many modifications you would need to get what you are going after.

    #229459
    djsteveb
    Participant

    @yanner11 – did you disable all plugins and switch themes and see if buddypress works?
    Not sure all the plugins you are using.. but sometimes disabling them all, then re-enabling them after enabling buddypress will fix things… but if you do not know if it is a plugin or theme thing – you are kind of flying blind.

    I would do the disable as outlined above and see if it works without the theme, or maybe you will find that enabling plugins one by one there is a particular plugin that is causing the issue.

    With some plugins in my experience after an update there may be the need to go to your permalinks settings, change permalinks to a different setup, save. Then change permalinks back to your original setup and save again.

    In most if you run through these steps your issue will be resolved.

    #229456
    djsteveb
    Participant

    deactivate all your plugins, switch to twenty twelve theme. reactivate buddypress pluing. Check if your groups work.

    If so – then reactivate plugins one by one and see if it still works.

    If it works with all your plugins and twenty twelve theme then it is your custom community theme.

    Hope that helps…

    #229451
    aaronkine
    Participant

    I used a plugin called WordPress User Frontend Pro and their Buddypress addon. I also used this plugin to create new User Roles “Capability Manager Enhanced”

    #229448
    shanebp
    Moderator

    You should.
    And – btw – this is the BuddyPress forum.
    Your question is better suited to the bbPress forum.

    #229446
    MaWe4585
    Participant

    I just ionstalled BuddyPress on a Server without different Port and it works fine there.
    So i guess that is what causing it.
    What the bug is exactly, that i don’t know. but it has something to do with the port i think.

Viewing 25 results - 14,851 through 14,875 (of 69,016 total)
Skip to toolbar