Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 9,876 through 9,900 (of 94,548 total)
  • Author
    Search Results
  • #270156
    Varun Dubey
    Participant

    Hi @freddurst1805
    You can use this approach to load template files from your plugin
    https://gist.github.com/modemlooper/fb70735dd78de7cd2032

    
    function screen_test(){
            add_action('bp_template_title', 'screen_test_title');
            add_action('bp_template_content','screen_test_content');
            bp_core_load_template(apply_filters('bp_core_template_plugin', 'members/single/plugins'));
        }
    // buddypress-template folder and file name which you have created inside your plugin.
        function screen_test_content() {
            	include 'buddypress-template/some-template.php';
        }
    freddurst1805
    Participant

    WP version 4.9.2
    BP version 2.9.2

    Hello everyone,

    I have a very sad issue that I cannot solve. I spent something like 3 hours and nothing helped me.
    I create a new tab on the profile page with “bp_core_new_nav_item” this way :

    function test_custom_tab() {
    global $bp;
    bp_core_new_nav_item( array(
    ‘name’ => __( ‘My recent Posts’, ‘buddypress’ ),
    ‘slug’ => ‘test’,
    ‘position’ => 100,
    ‘screen_function’ => ‘screen_test’,
    ‘show_for_displayed_user’ => true
    ) );
    }
    add_action(‘bp_setup_nav’, ‘test_custom_tab’, 1000);

    So at this step everything is OK. But now I want to associate a view to this tab. I do this way :

    function screen_test () {
    add_action( ‘bp_template_title’, ‘screen_test_title’ );
    add_action( ‘bp_template_content’, ‘screen_test_content’ );
    bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/test’ ) );
    }
    function screen_test_title() {
    echo ‘My new Page Title’;
    }
    function screen_test_content() {
    echo ‘My new Page Content’;
    }

    After I create the “test.php” file into my plugin directory :
    /plugins/my-plugin/templates/members/single/test.php

    I registred my “templates” directory as a template directory for BuddyPress this way :

    function bp_tol_register_template_location() {
    return dirname( __FILE__ ) . ‘/templates/’;
    }

    function bp_tol_start() {
    if( function_exists( ‘bp_register_template_stack’ ) )
    bp_register_template_stack( ‘bp_tol_register_template_location’ );
    }
    add_action(‘bp_init’, ‘bp_tol_start’);

    And the issue is that instead of displaying the content of the file “test.php” it’s displaying a list of member from I don’t know where it takes this page …

    Please help me this issue is horrible

    #270153
    jmidkiff
    Participant

    Hello,

    Would it be possible to trigger a BuddyPress notification when a group’s details (name, description, or slug) are updated?

    Currently an email is sent in bp-groups/bp-groups-notifications.php and I used the ‘bp_groups_sent_updated_email’ action to add a custom action that triggers a new BuddyPress notification. Is there a reason that this notification is not created by default?

    Thanks,
    James M

    #270151
    HDcms
    Participant

    HI,

    I’m trying to filter the buddypress members in the list of members and display them in descending order of precedence on a numeric xprofile field (0 to 10).
    Example of filter xprofile field “I search” = xprofile field “I am”

    I found the function that should work, but I can not do the query:

    function my_bp_loop_querystring( $query_string, $object ) {
    if ( ! empty( $query_string ) ) {
    $query_string .= ‘&’;
    }
    // $query_string .= ‘per_page=2’; //works
    $jerecherche = xprofile_get_field_data(‘Je recherche’, $user_id, $multi_format = ‘comma’ );
    $query_string .= ‘search_terms=true&per_page=2’; // does not work
    
    return $query_string;
    }
    add_action( ‘bp_legacy_theme_ajax_querystring’, ‘my_bp_loop_querystring’, 20, 2 );
    HDcms
    Participant

    HI,

    I’m trying to filter the buddypress members in the list of members and display them in descending order of precedence on a numeric xprofile field (0 to 10).
    Example of filter xprofile field “I search” = xprofile field “I am”

    I found the function that should work, but I can not do the query:

    function my_bp_loop_querystring( $query_string, $object ) {
    if ( ! empty( $query_string ) ) {
    $query_string .= ‘&’;
    }
    // $query_string .= ‘per_page=2’; //works
    $jerecherche = xprofile_get_field_data(‘Je recherche’, $user_id, $multi_format = ‘comma’ );
    $query_string .= ‘search_terms=true&per_page=2’; // <del datetime="2018-01-17T10:23:06+00:00">works</del>
    
    return $query_string;
    }
    add_action( ‘bp_legacy_theme_ajax_querystring’, ‘my_bp_loop_querystring’, 20, 2 );
    HDcms
    Participant

    Hello,
    I see a problem while browsing the activity thread in groups.
    There is a lot of error 404 by clicking on the picture of a member to see his profile. Looking at the url, I see different paths. At given times I changed the page tree of the sites
    1 / at the beginning: monsite.xyz/membres/toto/
    b / then monsite.xyz/reseau/membres/toto/
    c / and now monsite.xyz/reseau-social/membres/toto/

    So I have a mix of these 3 types of url. Some work, others do not.
    I do not see any apparent logic!
    I was in the tools / buddypress and I checked and then all the permalinks to try to “renormalize” with the last url but without success 🙁

    #270147
    stoi2m1
    Participant

    Super weird. I disabled all of my plugins except Buddypress, Activated the Parent Theme and still had issues. Copied over the BP Default theme and things work.

    I have not changed anything in the parent theme, very odd that it seems to be the issue. Maybe some of this happened when I upgraded to the most recent WP and BP.

    krzysztofsw
    Participant

    Hi, can Buddypress only allow user registration, which email addresses have been previously added in wordpress?

    #270130
    vinkgg
    Participant

    I’ve managed to export the contacts list from the old intranet (made in .net) in an excel workbook, with that, i created each column matching the fields from wordpress and also my custom fields for buddypress as well.

    So far i can import the users with no problem, the issue is, is that in the old intranet they had a “birthday widget” showing the co-workers who are celebrating in the current month. I also added a “Birthday Date” column, but when i type the date, the Import Plugin does not take the data in.

    One thing i tried is to create the user in wordpress dashboard, type in all the fields from the user, including the birthday date and export it to a csv file, it did show the date in the column, so i copied the same format as it came from the file, and import it, but it does not import. I’ve tried different date formats but none of those worked out

    YYYY-D-M
    YYYY-D-M HH:MM:SS
    M-D-YYYY HH:MM:SS

    Any ideas?
    Thanks for the reply leog371

    Mwale Kalenga
    Participant

    I would really be thankful for help on this, I want when users type a message subject, it should include their username at the beginning or end. The Subject should be like this: “Username: Are you coming tomorrow?”
    I was reading this useful article: https://samelh.com/blog/2016/01/22/buddypress-how-to-add-custom-content-after-message-text-content/

    Thanks in advance!

    stoi2m1
    Participant

    WP 4.9.1
    BP 2.9.2

    I see the page content instead of the Activity Feed. I put some silly comment as a place holder when I first setup the site years ago and this is what I am currently seeing.

    In Settings >> Buddypress >> Pages – My Activity Page is configured for a page named Community.
    I have tried making a new page named Activity and assigning it instead of the Community Page but then all I get is a blank page (content is blank).
    I have both visited and saved permalinks.
    Both the Members and Groups pages are working.

    Any ideas of what could cause the page content to display instead of page content? Seems like some sort of permalink issue to me. Since the Permalink isnt caught by Buddypress and triggering the feed display.

    #270119
    leog371
    Participant

    What are you exporting this csv out of? Is it from another WordPress or BuddyPress Site? If so, do you have all fields in your new intrasite setup like you did in the last one? If this is from some other social networking script, do all your data columns and things match up?

    #270115
    cding
    Participant

    @leog371 It seems you use the wp delete comment function. I want the comment author can delete their own comment and this is why I want to use buddypress delete activity function. Does your function allow the comment author to delete their own function?

    And it is difficult for me find where to put the second codes.
    I try to put it after

      <?php
      wp_list_comments( array(
      'avatar_size' => 100,
      'style' => 'ol',
      'short_ping' => true,
      'reply_text' => twentyseventeen_get_svg( array( 'icon' => 'mail-reply' ) ) . __( 'Reply', 'twentyseventeen' ),
      ) );
      ?>

    but it is not the right place. I want show the button after each comment.

    #270114
    vinkgg
    Participant

    Anyone?

    I really don’t know what to do, the support from the plugin http://www.youngtechleads.com/buddypress-members-import-support/ doesn’t reply has been a week… and it was kind expensive as well.

    Thanks

    #270106
    digitalmumasia
    Participant

    I have installed WP Multi-site, followed the instructions listed here, for a network wide installation, but install in the root domain of site #4.

    Installation in WordPress Multisite


    where my site id is 4, and the following code in the wp-config.php file in the primary domain
    /*Buddypress*?
    define ( ‘BP_ROOT_BLOG’, $4 );

    Then i go to subsite ID=4, based on the instruction listed here.

    BuddyPress Links in WordPress Menus

    The BP menu does not appear in site #4 ? it only appears in site #1.

    Did i miss something ? seems simple enough, but it didn’t work.

    cding
    Participant

    I found an issue of buddypress. When I edit and update comments(not post a comment) on a blog post , it converts characters such as “\” and “&” to html tags. How to fix it?

    My WordPress version and Buddypress version are both the lateset. My theme is twentyseventeen。

    detailed duplication steps:1. post a comment “\abc” below the blog post “Hellow World!”;
    2.edit it: “\abcd”;
    3.update the comment;
    4.then you’ll get “abcd” with “\” disappearing.

    #270104
    @mercime
    Participant

    @deimz Thank you for submitting the documentation which were attached in this codex page. As @hnla mentioned, your gravatar was included in the BP Codex props/gallery for 2017 at https://bpdevel.wordpress.com/2018/01/09/bp-codex-summary-for-2017/
    Cheers.

    HDcms
    Participant

    HI,
    I got a message from the theme author, but if you could help me or give me an example?

    • “The member loops uses the bp_ajax_querystring function to build member results aslo this function has a filter with you can alterate the query, the filter it’s : bp_ajax_querystring / https://codex.buddypress.org/developer/function-examples/bp_ajax_querystring/

      So there should be made a custom function/s that check it’s there it’s member directory and only then to run that function and also should be builded the logic of your flow.”

    Kowshik Ahmed
    Participant

    I am using buddypress for member registration in a website. In edit profile page, photo-upload section is not working. Can anyone please help me with this issue?

    https://s17.postimg.org/cvdyhtd0v/Capture.png

    #270089
    Varun Dubey
    Participant

    @keshabee You can use following codes

    function vap_remove_buddypress_sites_tabs() {
    	global $bp;
           // to remove main menu for sites.
           bp_core_remove_nav_item('blogs' );
    }
    add_action( 'bp_setup_nav', 'vap_remove_buddypress_sites_tabs', 999 );
    #270087
    Varun Dubey
    Participant

    Hi @shayne-thiessen
    You can use code suggest in following thread.

    Change menu items below user header

    #270086
    Varun Dubey
    Participant

    @phiggins25 inside BuddyPress setting, you have options to set activities marked as spam via Akismet. It might be possible those users have suspicious IP, or their email id is already marked as spammers. Try to disable it.

    #270085
    Varun Dubey
    Participant

    @lpedley It’s theme specific issue, contact theme support for a solution.
    When theme and other related BuddyPress plugin override template files, you have to translate theme and additional plugin strings with correct text domain.

    #270084
    leog371
    Participant

    Wrap that in a BuddyPress Loop on whatever template your using it on.

    https://codex.buddypress.org/type/loop/

    #270083
    schuldbock
    Participant

    Hello guys,

    i just love buddypress, but right now i have problem.

    When a user register he gets a aktivation email. In that is a link to my site which says like “click here and activate your account”.

    If the user clicks on it the link has the problem that it says “https//www.mydomain…”.

    So the problem is that the “:” in the “https://www.mydomain..” is missing. What can i do?
    Can i just change the code somewhere in the ftp? Please help me guys 🙂

    Thank You!

Viewing 25 results - 9,876 through 9,900 (of 94,548 total)
Skip to toolbar