Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 25,701 through 25,725 (of 94,570 total)
  • Author
    Search Results
  • The Doctor
    Participant

    Hi!

    I’m trying to modify the buddypress plugin into a portfolio for members, and I’m stuck at getting the bio to turn up where the “active right now” is located.

    I’m trying to use this code snippet:

    <?php if ( bp_get_profile_field_data( 'field=User Bio' ) ) : ?>
        <div class="user-bio"><?php bp_profile_field_data( 'field=User Bio' );?></div>

    but I really don’t know where to put it in the buddypress plugin (.php files).

    Any help is greatly appreciated!

    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()

    #182046
    bhekzin
    Participant

    Hello everyone. This is my first time on the forum. I’m more of a server config and admin guy but i also develop sites with WordPress as i find it extremely easy. My current project is a community site. Installed Buddypress and some plugins that will give users a splendid experience. Configured an ad server (revive ad server). Created zones, uploaded banners and all ads are rotating on their respective zones on the site. Got stuck on rotating ads on SimplePress forums but got this, and that was quickly fixed. Only one problem. I cant find a way of inserting ad code on the Buddypress activity stream. I spent hours searching but all the stuff i got does not work or worked on previous versions of buddypress. Please help

    #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!
    }

    SK
    Participant

    In these buddypress.org forums, in order to create a new topic, one has to hover on the buddypress.org icon to see the new topic creation link. This is terrible usability. New topic should be a big fat button that sits on the top of the page and is always visible.

    #182035
    SK
    Participant

    How does BuddyPress decide on the pagination of lists:
    How many items to show on a members list page, or on a groups list page?

    #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

    lowco2525
    Participant

    Hello, I am having a critical and urgent issue with my WordPress site. I have s2member working fine with bbpress, but now with buddypress, any user can see posts and topics in restricted forums in two locations:
    1) Activity stream
    2) Members -> Clicking on a member that has posted in a restricted forum -> Forums -> Clicking on a topic they have started in a restricted forum -> They can see the entire post

    -I have the latest version of everything
    -I have tried the “repair” functions for s2member, Bbpress, and buddypress.

    Please help!
    My website is: http://www.streamersquare.com

    #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

    #182007
    xyhavoc
    Participant

    pre-2.0 my main buddypress template was located at buddypress.php within my current theme folder. After upgrading to 2.0, my template is not showing up the way it should. Where is Buddypress 2.0 getting it’s template from now? Has this changed?

    #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

    klogan2
    Participant

    Hi,
    On the Member/Profile page (domain/member/user) the permalink (being used by my ‘Social’ sharing links is being messed up. I added a simple div with echo the_permalink(); in the footer, and it works fine everywhere (echos the permalink) except on the above mentioned page (The permalink doesn’t echo at all).
    Seems a bug to me,,, any ideas where to look in the buddypress plugin code to check it out???

    Cheers,
    Kevin Logan

    #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.

    Anonymous User
    Inactive

    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

    #181967

    @palmdoc, @benny390

    You can try @imath solution and edit it accordingly to include bbpress.

    /* beginning of the code to paste in the functions.php of your active theme */

    ‘function imath_activivity_dont_save( $activity_object ) {
    // friendship_created is fired when a member accepts a friend request
    // joined_group is fired when a member joins a group.
    $exclude = array( ‘friendship_created’, ‘joined_group’);

    // 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_activivity_dont_save’, 10, 1 );’

Viewing 25 results - 25,701 through 25,725 (of 94,570 total)
Skip to toolbar