Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 3,076 through 3,100 (of 31,071 total)
  • Author
    Search Results
  • Shashi Kumar
    Participant

    @ngoegan the logic in the Buddypress is correct why an user would like to go to register page when he is already registered and logged in. According to your stated problem your can make register page as static homepage and add the above code in your child’s theme function file or bp-custom.php. It will redirect all your logged in user to activity page.
    To know about how to add bp-custom file read this beautiful post

    Shashi Kumar
    Participant

    @ngoegan add the following code in your child theme’s function file. It modifies default behavior and redirect user to activity page. Link to the source of code

    function bbg_bp_loggedin_register_page_redirect_to( $redirect_to ) {
        if ( bp_is_component_front_page( 'register' ) )
            $redirect_to = bp_get_root_domain() . '/activity';
    
        return $redirect_to;
    }
    add_filter( 'bp_loggedin_register_page_redirect_to', 'bbg_bp_loggedin_register_page_redirect_to' );
    #270364
    klubnika74
    Participant

    Yes. There is a feature in BuddyPress where one user can send a private email to another user. Since my site is an online training site, I set it up such that my students can email privately to the course teacher (I use Social Learner theme). The problem is that course teacher do not always respond to emails and I need to be able to follow up to make sure that my students get their answers.

    #270362
    otty-dev
    Participant

    Hi @djpaul

    My theme was not built to be compatible with Buddypress unfortunately. Where can I edit the php and html myself for this issue? I was trying to navigate plugin > editor > buddypress but I couldn’t find the php for each members profile page and also the html file. So far I could only edit CSS using appearance > customize css.

    #270334
    Paul Wong-Gibbs
    Keymaster

    Hi @ottiya

    Good question, but the answer’s hard. You’ll need to learn how to modify WordPress theme templates. Start reading through all the linked pages on https://codex.buddypress.org/themes/ and when you have a specific question after you’ve made a try, let me know.

    olufemishield
    Participant

    Yes Paul. I since settled for themekraft’s plugins. Thank you

    Paul Wong-Gibbs
    Keymaster

    I think the go-to for this is https://themekraft.com/products/woocommerce-buddypress-integration/ — might be worth a look.

    #270328
    Paul Wong-Gibbs
    Keymaster

    Hi @ottiya

    On the default templates, there is a “Add Friend” button, and we usually position is just below (or next to) the user’s name and avatar picture. But not every theme has to show BuddyPress content in the same way!

    If you’ve bought a theme with BuddyPress templates, or customised some yourself, it might be worth going back to where you got them from and ask for help.

    #270292
    ToobHed
    Participant

    I am trying to call this outside of any buddypress files. I am calling it in my themes functions, it is to run on a cron. I must be missing a global or required file, any ideas?

    Venutius
    Moderator

    The first thing to do is to deactivate all other plugins but buddypress and switch your theme to 2017 and see if it works (it should), then you will have a working configuration to test against, reintroduce your theme and other plugins in stages and check it still works until you find the plugin that is (possibly) causing the issue.

    neo323neo323
    Participant

    Hi guys! I have this problem and i spent all the morning read online but nothing seems work so i wish someone around here with a nice heart would help me to find a solution for this. I am building a forum using Buddypress and BBpress everything seems work smooth but when it comes to register a new user of the forum the activation mail it’s not sent. I tried to send again from Users->All Users and then send again the activation link but it dosen’t work. I also tried to send a test mail with WP Mail SMTP choosing PHP Default caption and the mail it’s sent and in general all the other mail about wordpress like update and comments to my posts(before i don’t have a forum) are always sent. I also tried Tools->Buddypress->Reinstall email(delete and restore defaults) but nothing changed. Seems it’s a problem only with Buddypress… anyone had this problem and found a solution?
    Wordpress verions 4.9.2
    Buddypress version 2.9.2
    Theme Sydney

    #270273
    ToobHed
    Participant

    Thanks for the reply,

    The code runs fine when I call it from “theme\buddypress\members\index.php” and outputs:
    rray(2) { [“groups”]=> array(6) { [0]=> string(1) “2” [1]=> string(1) “0” [2]=> string(2) “11” [3]=> string(1) “7” [4]=> string(2) “12” [5]=> string(2) “13” } [“total”]=> int(6) }

    But when I call it from functions.php in my theme I get the errors:

    Notice: Undefined property: BP_Groups_Component::$table_name_members in /home/vetsgami/public_html/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php on line 561

    Notice: Undefined property: BP_Groups_Component::$table_name in /home/myserver/public_html/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php on line 561

    Notice: Undefined property: BP_Groups_Component::$table_name_members in /home/myserver/public_html/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php on line 562

    Notice: Undefined property: BP_Groups_Component::$table_name in /home/myserver/public_html/wp-content/plugins/buddypress/bp-groups/classes/class-bp-groups-member.php on line 562
    array(2) { [“groups”]=> array(0) { } [“total”]=> int(0) }

    Makes me wonder if I need to include a file from buddypress to run it here?

    #270264
    Venutius
    Moderator

    Regarding 2) a while back Henry passed me this code snippet to go into functions.php in your child theme. I think it could be modified to deliver what you are looking for:

    function keshabee_display_member_role() {
        global $members_template;
        // This is a confirmed group member.
        if ( $members_template->member->is_confirmed )
            echo '<p>Member</p>';
        // This is a group moderator.
        if ( $members_template->member->is_mod )
            echo '<p>Group Mod</p>';
        // This is a group admin.
        if ( $members_template->member->is_admin )
            echo '<p>Admin</p>';
    }
    add_action( 'bp_group_members_list_item_action', 'keshabee_display_member_role' );
    #270227
    stoi2m1
    Participant

    Ok, not a bug

    The function that returns the HTML exists in the bp-legacy theme. In buddypress/bp-templates/bp-legacy/buddypress-functions.php

    So I copied the file into my child theme and modified it to act like I wanted.

    Problem Solved!

    #270214
    Varun Dubey
    Participant

    You can override default template files inside the child theme and adjust UI as you need. You can check corresponding template files name at following path

    Template Hierarchy


    Files inside /buddypress/members/single/ will be responsible for single profile layout.

    #270212
    Varun Dubey
    Participant

    @ottiya

    You could add a template file named buddypress.php to your theme’s directory, and BP would use that template instead since that file is ahead of page.php in the hierarchy above.

    If your theme has full-width template file for page, you can use the same to create buddypress.php

    For further details, you can check https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/

    #270188

    This may depend on your theme, and I don’t have rtmedia installed so you’ll have to work it out for yourself, but you should be able to just hide that tab using CSS.

    On my install of BuddyPress a class of logged-in is added to the body element when the user is logged in. Check your page to make sure that this is the same for you too.

    If it is, you can add CSS to target the rtmedia tab for people who aren’t logged in. Like I said, I don’t have rtmedia installed, so you’ll have to find out the class or ID of the media tab you want to get rid of for yourself (sorry!). But, for the sake of this example, let’s pretend it has an ID of “rtmediatab”.

    So, you could add a line something like this to your CSS and the tab would be hidden:

    body:not(.logged-in) #rtmediatab { display: none; }

    Obviously it doesn’t remove it completely as the underlying HTML will still be in the page, but it won’t be visible on the page and that’s better than nothing.

    Hope that helps

    #270163
    stoi2m1
    Participant

    I found the default theme was also showing issues which I missed.

    I had both Groups and Members as a Child Page to My Activity Page, named Community. This was causing both single members profiles and single groups to not work. Until I find a solution I have made them Main Pages (no parent assigned). Is there a way to set the slug? I found these deprecated constants, is there some new way?

    Deprecated Method in bp-custom.php use:

    define ( 'BP_MEMBERS_SLUG', 'community/groups' );
    define ( 'BP_GROUPS_SLUG', 'community/members' );

    From the following link:

    Changing Internal Configuration Settings

    I also found my other issue in bp-custom.php. Forgot all about that one.

    I created an aggregate feed called “My Feed” to display a more personal feed (which is working just fine). I used it on both the Activity in Profiles and the Main Activity Stream (site wide). I am using the following function to change the default sub nav for activities in profiles (Profile >> Activity >> Default Sub Nav) to “My Feed”. This works for profiles but causes the Site Activity to stop working.

    function gzp_set_default_activity_sub_nav() {
     
        bp_core_new_nav_default (
            array(
                'parent_slug'       => buddypress()->activity->id,
                'subnav_slug'       => 'my-feed',
                'screen_function'   => 'gzp_bp_my_feed_screen_activity'
            )
        );
    }
    add_action( 'bp_setup_nav', 'gzp_set_default_activity_sub_nav', 20 );
    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 );
    #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.

    #270126
    cding
    Participant

    Yes, I have made a child theme of twentyseventeen. I just don’t know where to put the codes you gave.

    #270123
    leog371
    Participant

    Oh no, you should be making a child theme. Anytime you update that theme, your works could be lost forever.

    #270121
    cding
    Participant

    Oh, that would be very good!

    I’m sorry that I know nearly nothing about codes.

    By **need to be a function**, do you mean I have to put the code into function.php and add “my_function{…}”?

    I really do not know where to put the second code. My theme is twentyseventeen.

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

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

Viewing 25 results - 3,076 through 3,100 (of 31,071 total)
Skip to toolbar