Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 16,951 through 16,975 (of 69,106 total)
  • Author
    Search Results
  • #182098
    dolliv
    Participant

    You can still find the member-header file in the buddypress folder: bp-templates/bp-legacy/buddypress/members/single.

    dice2dice
    Participant

    @henrywright thanks for your response.

    I only just discovered it right now.

    It was my hosting company 1and1 that caused the problem and it was because they had been hacked.

    In response to this they cut off the option for anyone to log in to any WordPress/BuddyPress site they hosted for two full weeks.

    r-a-y
    Keymaster

    Thanks for the report, @klogen2.

    I’ve duplicated the bug and have opened a ticket with a suggested fix:
    https://buddypress.trac.wordpress.org/ticket/5595

    We’ll have this addressed for v2.0.1.

    godavid33
    Participant

    I was incorrect, it’s not a bug. The solution (thanks to @r-a-y) is this:

    
    $act_item = bp_activity_get_specific( array(
        'display_comments' => true,
        'activity_ids' => ACTIVITY_COMMENT_ID
    ) );
    

    Closed trac ticket can be viewed here https://buddypress.trac.wordpress.org/ticket/5592#comment:4

    shanebp
    Moderator

    untested, goes in bp-custom.php

    
    function oc_filter_ajax_querystring( $querystring = '', $object = '' ) {
    
    	if( $object != 'group_members' )
    		return $querystring;
    
    	$querystring['exclude'] = '1'; // change '1' to your user_id
    
    	return $querystring;
    
    }
    add_filter( 'bp_ajax_querystring', 'oc_filter_ajax_querystring', 20, 2 );
    

    More info:

    Add custom filters to loops and enjoy them within your plugin

    #182079

    In reply to: Problems with 2.0

    r-a-y
    Keymaster
    #182070
    billzy
    Participant

    Hi @suysal @mileskimberley & @macpresss

    We have accomplished a similar task, and what a pain in the ass of a task it was…. We made it so that it’s not possible to see all members posts, you must first be friends with them. We also made ours so that you would only see the feed of groups if you joined the group as well, just like fb and all other mainstream networks, it just makes sense to do it this way, more personalised feed, less junk. Its a detailed code of a few hundred lines that we include in our functions.php file.

    We paid for the solution to be custom developed via external teams because it was slightly outside of our inhouse development skillset… If you want to chip in for the code I am more than happy to send it to you. If I coded this myself and it costed me nothing to create I would just paste the code here but it’s not the case in this scenario.

    Alternatively (and our preferred option), if Buddypress core developers want to build it into BP and create a setting for it in the core plugin backend to allow this option then I am happy to send it to them for free so that we don’t need to support this custom piece of code through the upgrades (which we have been supporting this custom code for a year now). I know this setting/option is not for everyone using BP but there are many out there who would love this feature included and it could be as simple as a checkbox in the backend saying should users only see friends activity, maybe a second one as well should users only see groups activity they have previously joined. We haven’t built such a setting because we use this by default.

    Anyways feel free to drop me a line here or at info@fem-productions.com

    Cheers

    #182057
    Quint
    Participant
    Biswadip
    Participant

    Thank you that was very helpful.

    How do I submit a query from the members search form to bring up the appropriate listing in the manner mentioned above? At the moment I can only search for members when the search form submits to the members directory. What I want to do is that when a user submits a search query from a search form on this page:

    http://website/custom-page/

    the results from the query:

    http://website/members/?s=term-searched-for

    are displayed on the same custom page hosting the search form:

    http://website/custom-page/

    I have tried setting the search form action attribute like so:

    form action = ""

    but this creates the query:

    http://website/custom-page/?s=term-searched-for&members_search_submit=Search

    and the result is a 404 page not found.

    I have been reading in some places eg:
    here and here that buddypress redirects search queries so I need to override that redirection and I have attempted doing so without much success.

    My search form looks like this:

    	<div id="members-dir-search" class="dir-search bp-index-search" role="search">
                <?php //bp_custom_directory_members_search_form(); 
                $default_search_value = bp_get_search_default_text( 'members' );
                $search_value = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; ?>
    
                    <form action="" method="get" id="search-members-form">
                        <label><input type="text" name="s" id="members_search" placeholder="<?php echo esc_attr( $search_value ) ?>" /></label>
                        <input type="submit" id="members_search_submit" name="members_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
                    </form>
    
    	</div>

    I check to see if the form has been submitted:

    <?php if(isset($_REQUEST ['members_search_submit'])){ ?>

    and then, following @Slave UA’s suggestion, I have copied and pasted the code from the “members-loop.php” file to my page template and I then changed

    bp_has_members( bp_ajax_querystring( 'members' )

    to

    bp_has_members(array('search_terms' => $search_term))

    If I hardcode the search term then it works but it does not seem to accept the search term submitted through the search form.

    Any help greatly appreciated.

    #182047
    Henry Wright
    Moderator

    There’s a function you can use to do that called bp_activity_add(). See here for the usage:

    bp_activity_add()

    #182039
    dzweb
    Participant

    Try this, it worked for me!

    function custom_setup_nav() {
    global $bp;

    bp_core_new_nav_item( array(
    ‘name’ => __( ‘About’, ‘buddypress’ ),
    ‘slug’ => ‘about’,
    ‘position’ => 30,
    show_for_displayed_user’ => true,
    ‘default_subnav_slug’ => ‘about’,
    ‘item_css_id’ => ‘about’
    ) );
    }

    bp_core_new_subnav_item(
    array( ‘name’ => __( ‘About’, ‘buddypress’ ),
    ‘slug’ => ‘about’,
    ‘parent_url’ => $bp->loggedin_user->domain . ‘about’,
    ‘screen_function’ => ‘about’,
    ‘parent_slug’ => ‘about’,
    ‘position’ => 10,
    ‘item_css_id’ => ‘about’
    )
    );

    add_action( ‘bp_setup_nav’, ‘custom_setup_nav’ );

    function about_page() {
    add_action( ‘bp_template_content’, ‘about_content’ );
    bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/about’ ) );
    }

    function about_content(){
    //Put your content here!
    }

    #182034

    In reply to: 2.1 top features

    SK
    Participant
    #182031
    r-a-y
    Keymaster

    Hope is probably using a theme that is a bp-default derivative.

    This is a bug that was addressed in #5549:
    https://buddypress.trac.wordpress.org/ticket/5549

    It will be fixed in v2.0.1, but @amalsh can manually apply the following changeset in the meantime:
    https://buddypress.trac.wordpress.org/changeset/8292

    #182021
    jerryskate
    Participant

    Ok, a bit better 🙂 Still having my profilename outside the classes, but got all the old ones back.

    <body jerryclass="activity bp-user my-activity my-account just-me buddypress bbp-user-page single singular bbpress page page-id-5 page-template-default logged-in admin-bar no-customize-support bp-wall adminbar-enable not-responsive this-is-a-member-profile member-profile-of-" class=" customize-support" data-twttr-rendered="true">

    #182019
    eddieb12180
    Participant

    @mercime well I want to ty for your css and I did copy it to my child css. but i thin I was confused because this wasn’t added to the list of css you provided….

    #buddypress .standard-form p.description {
    color: #888;
    font-size: 80%;
    margin: 5px 0;
    margin-top: 5px;
    margin-right: 0px;
    margin-bottom: 5px;
    margin-left: 0px;
    }

    but you providing the css above has really helped out. Big props!

    #182010
    jerryskate
    Participant

    Yeah thats what i was thinking too. Seemed kinda weird to me. body.classname would be the obvious choose for me, but well.. weird output. need to fiddle around with it a little to see if i can get it to work. Too bad it filters out all the other classes though. This is how it looks without the filter:

    activity bp-user my-activity my-account just-me buddypress bbp-user-page single singular bbpress page page-id-5 page-template-default logged-in admin-bar bp-wall adminbar-enable not-responsive customize-support

    Wish i could keep those classes and have the bodyclass of the user added.

    Henry Wright
    Moderator

    bp_activity_get_specific() should be used like this:

    // get activity
    $activity_get = bp_activity_get_specific( array( 'activity_ids' => YOURACTIVITYID ) );
    
    // single out the activity
    $activity = $activity_get[0];
    
    // grab specific activity item
    $activity_body = $activity->content;

    Ref: https://buddypress.org/support/topic/gettinng-id-of-the-activity-status/#post-112943

    #182002
    Biswadip
    Participant

    I put the bp_custom_directory_groups_search_form() function suggested by @meginfo into my functions file.

    But when I call it from a template it only works if I submit it to the members directory like this

    function bp_custom_directory_members_search_form() {
    
    	$default_search_value = bp_get_search_default_text( 'members' );
    	$search_value         = !empty( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : $default_search_value; ?>
    
           <form action="<?php echo site_url() ?>/members/" method="get" id="search-members-form">
    		<label><input type="text" name="s" id="members_search" placeholder="<?php echo esc_attr( $search_value ) ?>" /></label>
    		<input type="submit" id="members_search_submit" name="members_search_submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />
    	</form>
    <?php
    }

    If I try to submit to the same page like this:

    form action=""

    of if I try and submit it to the full path of the file I get a 404 not found message.

    How should I submit the function in order to have it give me the search results on the page I want?

    Thanks

    shanebp
    Moderator

    @godavid33

    Did you try:
    bp_get_the_notification_item_id()
    from
    \buddypress\bp-notifications\bp-notifications-template.php

    #181983
    terraling
    Participant

    Thanks @godavid33.

    I’d like to fix this without having to resort to a custom sql query.

    BuddyPress is designed to do this (sort alphabetically by display name rather than username) correctly.

    In the relevant code, it checks to see if WordPress-BuddyPress profile syncing is enabled. If it is, it runs the query against the wp_users table rather than the wp_bp_xprofile_data table, because “the table is smaller and better indexed”. If syncing is disabled then it runs the query against the xprofile display_name field instead.

    I have fixed the problem by turning off syncing so that it uses the xprofile display name, so my question is, what does profile syncing do exactly and when/how does it do it?

    I presume it overwrites nicename in wp_users with the display_name from xprofile (anything else?), but in my case it is not doing so, it appears broken.

    If I could identify the when/how then I’d be able to see if it is something I’ve broken or omitted in, for example, my custom registration page.

    Mathieu Viet
    Moderator

    hi @bitpath

    Don’t worry, it’s been committed to core and will be included in next upgrade
    https://buddypress.trac.wordpress.org/changeset/8304

    bitpath
    Participant

    Hi,
    Can you please help me with the exact same problem as well. I think I am up to date on all patches and just installed a bunch of premium plugins from wpmudev, but I was getting almost this exact same error trying to access admin screens this morning:
    Call to undefined function get_current_screen() in /home/bitpad/public_html/wp-content/plugins/buddypress/bp-members/bp-members-admin.php on line 825

    Your patch fixed it perfectly I think. I can now get back to the admin level. Thank you so much. I was worried I’d have to delete and reinstall plugin possibly starting over on a lot. I am now worried if I will break it by updating since it may over-write plugin patch you gave. Is all ok to upgrade next buddy press one that comes out?
    Thank you for your help! You saved a lot of grief 🙂

    #181973
    palmdoc
    Participant

    OK got the types wrong and got to=he info from the table in phpmyadmin

    Anyway this code works in ones custom function.php

    // Filter bbPress from updating activity stream
    function imath_activity_dont_save( $activity_object ) {
    $exclude = array( 'bbp_topic_create', 'bbp_reply_create');
    
    // if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function
    if( in_array( $activity_object->type, $exclude ) )
    $activity_object->type = false;
    
    }
    
    add_action('bp_activity_before_save', 'imath_activity_dont_save', 10, 1 );
    #181971
    palmdoc
    Participant

    @sharmavishal: It doesn’t seem to work for me
    I put Blocked Activity Types:
    new_forum_topic, new_forum_post
    and the bbPress topics and replies still go thru


    @naijaping
    and anyone, what should the code be? Like this? :

    // Filter bbPress from updating activity stream
    function imath_activity_dont_save( $activity_object ) {
    $exclude = array( 'new_forum_topic', 'new_forum_post');
    
    // if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function
    if( in_array( $activity_object->type, $exclude ) )
    $activity_object->type = false;
    
    }
    
    add_action('bp_activity_before_save', 'imath_activity_dont_save', 10, 1 );
    #181970
    sharmavishal
    Participant

    BuddyPress Block Activity Stream Types is working absolutely fine even with BP 2.0

Viewing 25 results - 16,951 through 16,975 (of 69,106 total)
Skip to toolbar