Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 7,626 through 7,650 (of 69,109 total)
  • Author
    Search Results
  • #269034
    Boone Gorges
    Keymaster

    Hi @barkins – BP doesn’t have a built-in tool for this (though it should – see https://buddypress.trac.wordpress.org/ticket/7393, https://buddypress.trac.wordpress.org/ticket/408). If you know that user IDs will remain the same between the local WP install and the live install, then you can do a simple database export/import, something like:

    $ mysqldump -u db_user -p db_name wp_bp_xprofile_groups wp_bp_xprofile_fields wp_bp_xprofile_data > ~/xprofile-export.sql

    $ mysql -u db_user -p db_name < ~/xprofile-export.sql

    If the user names will not be the same, you’ll need to write a script to handle this, but the details will depend on how you plan to identify users (email address, etc).

    naomibuch
    Participant

    Hello,

    I am new to Buddypress and this is my first post, I am new to web development also, and my PhP coding is not all that great, my years as a software developer was strictly in a windows environment (vb.net and sql)

    I developed my own website and I am using Buddypress as part of my social media for users to connect with each other.

    I have spent endless hours researching a fix, and I have not been able to find anything php file that I can edit in File Manager to edit or remove the line of code.

    When a user updates an Activity, it updates in three places:

    1. The Activity Stream (which is what I want)
    2. The Member’s Profile where the Activity tab was (now removed, which is what I want)
    3. Under the Member’s profile cover, with that pesky “view link” (which I DO NOT want to show)

    And the “view link” is a bit buggy also, sometimes when a user clicks on it, it throws a 404 error, sometimes it opens up a blank page, and sometimes it opens up the recent activity that they posted in the Activity Stream.

    Also in the members directory I have a button to send the user a private message whether or not they are friends.

    When I click on a user name from the member’s directory, it take me to the compose a message like it is suppose to do, and the user name appears , but it does not save the user name in the send to box, do you have a fix for this also?

    Thank you very much, a fix to these problems are greatly appreciated.

    Naomi

    #269017
    writingbox
    Participant

    2 weeks later, I’m still stuck with the same displaying problem. On the template creator’s forum, I asked the same question, and got this answer:

    Any particular reason you’re using a top margin here?
    body.single-item.groups #buddypress div#item-header #item-header-cover-image #item-header-content, body.single-item.groups #buddypress div#item-header #item-header-cover-image #item-actions {
    clear: none;
    margin-left: 0;
    margin-top: 225px;
    max-width: 50%;
    }

    It seems it’s a good clue to fix my problem, but here’s the thing: since I’m a newbie with CSS, I have no idea where to find these lines and modify them. I suppose I have to change “225px” to “0” — how/where can I edit this line?

    Thank you very much for your help, much much appreciated!

    #269012
    Boone Gorges
    Keymaster

    BuddyPress generally shows the admin bar to all users, whether logged in or not. If it’s not showing, it’s probably due to a plugin or theme issue.

    I’ve just downloaded the Point theme and I don’t see anything in the theme that would cause the admin bar to be disabled.

    Perhaps you’re running another plugin that disables it? If you’re able to search your codebase, look for the string show_admin_bar.

    Boone Gorges
    Keymaster

    Hi @ankitjoshi11 – Check out the file buddypress/bp-friends/bp-friends-functions.php. The functions you’ll need are:

    
    friends_add_friend( $initiator_userid, $friend_userid );
    

    which accepts a third $force_accept parameter which makes it unnecessary for user B to manually accept. If you want to handle acceptance separately, look at

    
    friends_accept_friendship( $friendship_id );
    

    You can get the $friendship_id for two users with friends_get_friendship_id( $user_a, $user_b );

    Good luck with your project!

    #269001
    shanebp
    Moderator

    You can prevent auto-links in the profile areas.

    You need to create a file called bp-custom.php and then add this function to it:

    function remove_xprofile_links() {
        remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
    }
    add_action( 'bp_init', 'remove_xprofile_links' );
    #269000
    shanebp
    Moderator

    These are the BuddyPress forums.
    The bbPress forums are on another site.

    #268992
    Boone Gorges
    Keymaster

    Hi @wackao – Thanks for the post. I agree that the REST API could be a big driver for future adoption. (And I obviously agree that BuddyPress is a superior product to its competitors!) That being said, the BP team is a group of volunteers. The folks who build BP are professional and serious, but they work on projects that interest them, according to their availability. I personally would love to spend more time on the REST API, and hope to in the upcoming months, but if I can’t, it’s not an indication of lack of seriousness.

    Anyway, the good news is that “the BP devs” is basically whoever decides to show up. If you have ideas for how the REST API could work – and better still, if you want to start contributing code via pull requests – you are very much encouraged to do so. More hands make for lighter work!

    #268971
    Nikelaos
    Participant

    Thank you for the link!

    And – I’ve run a test and this brings up, that the mechanism described in https://codex.buddypress.org/translations/ seem to work not correctly. The .mo-file in the language/buddypress/-folder is only used if there’s no .mo-file in the language/plugin/-folder.

    Greets!

    #268970

    In reply to: Cover Photo Issues

    Nikelaos
    Participant

    Yes, I can upload an avatar image without problems (but I can remember, that’s I’ve has had a problem with this and the cover-image was loaded without problems) and I don’t use anything like Amazon S3 or CDN. In <wp-uploaddir, which is set in WP-config>buddypress/members/<userid>/cover-image I can find 5a057ea758c30-bp-cover-image.png, which is the image that I want to be the cover.

    Thanks for your reply!

    #268963

    In reply to: BP API Access

    Boone Gorges
    Keymaster

    Hi @barkins – Unfortunately, BuddyPress doesn’t yet have a full set of CRUD endpoints for BP objects. The team is working on it, and we hope to start rolling out endpoints in the near future. BP-REST is the repo to follow for that.

    BP will work fine with the default WP REST API, if all you want to do is access a list of users. However, WP’s user endpoint won’t include any BP data, and you won’t be able to modify/add user data via this endpoint. That said, if your needs are fairly narrow, you can definitely write your own custom endpoint for fetching/updating BP profile data – it’s likely to be much simpler than what’d be required in BP itself, if your needs are pretty specific. Here’s some docs: https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/

    #268959
    Boone Gorges
    Keymaster

    The easiest way to customize things like this is by creating a child theme and overriding the template – in this case, members/register.php. See https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/#child-themes for some information on getting started with child themes.

    #268956
    Boone Gorges
    Keymaster

    Very odd – it appears that this too is caused by your theme, as BuddyPress itself just inherits the mobile styling of the toolbar from WordPress (and the WP toolbar looks fine, as shown by your Dashboard screenshot). Try reaching out to the theme author to see whether they’re able to identify the problem.

    #268953
    shanebp
    Moderator

    Create a template overload of this file: buddypress\bp-templates\bp-legacy\buddypress\members\members-loop.php

    And place your code wherever you want in the overload.

    bp_displayed_user_id() is incorrect in the context of the members loop.
    Instead:

    $user_meta = get_userdata(bp_get_member_user_id());
    echo($user_meta->description);

    Or instead of an overload, use this hook: do_action( 'bp_directory_members_item' );

    modsterl
    Participant

    I received a message from the theme owner:

    Our theme automatically blocks access to /wp-admin section for regular visitors. This is for many reasons, users are supposed to manage their accounts from front-end using My Account page. If Buddpress plugin doesn’t have this possibility than you won’t be able to use it I’m afraid

    ————–

    Now the question is whether buddypress is possible?

    #268943
    shanebp
    Moderator

    You could edit a template.
    If you are using profile cover images, edit buddypress\members\single\cover-image-header.php
    Otherwise, edit buddypress\members\single\member-header.php

    But you can use a function instead.
    Both the templates mentioned above have two action hooks:

    do_action( 'bp_member_header_actions' );
    do_action( 'bp_profile_header_meta' );

    Choose the one that will place your button where you want it and write a function that adds the button.

    TreeTrail
    Participant

    Thankfully, yes I have resolved it …at least for my situation. It appears that this began, when BuddyPress updated to most recent, v2.9.2. I asked SeventhQueen for help and they advised to check for any template overrides in my child theme folder. So, yes I do have a modified “register.php” BuddyPress file. I downloaded a backup of the file and also renamed the current one as “_old”. Then I carefully copied out my modifications. Then I imported the whole updated “register.php” and re-did the custom modifications. Hope this helps.

    #268937

    In reply to: BP API Access

    barkins
    Participant

    I did just find this plugin: JSON API User WordPress Plugin, https://www.parorrey.com/solutions/json-api-user/

    Has anyone used it with BuddyPress? If so, how well did it work?

    Add this to your wp-config.php file before the line that says /* That’s all, stop editing! Happy blogging. */ or your bp-config.php file.

    define( 'BP_ENABLE_ROOT_PROFILES', true );

    That comes from this page: https://codex.buddypress.org/getting-started/customizing/changing-internal-configuration-settings/

    Sometimes the person who knows the answer simply doesn’t see the post 😉

    #268904
    autox420
    Participant

    Found a solution.

    functions.php

    if( !defined( 'BP_DEFAULT_COMPONENT' ) ){
        define( 'BP_DEFAULT_COMPONENT', 'profile' );
    }
    function bp_remove_profile_tab_activity(){
       bp_core_remove_nav_item( buddypress()->activity->id );
    }
    add_action( 'bp_setup_nav', 'bp_remove_profile_tab_activity', 999 );
    Collins Agbonghama
    Participant

    We’ve used BuddyPress internally at my company and for client’s over the years and it has worked fine.
    If you want a Good UI/UX, get a premium buddypress theme. Check the folk at BuddyBoss.

    P.S Made WordPress Email Opt-in and User Registration & Profile plugins.

    Collins Agbonghama
    Participant

    We’ve used BuddyPress internally at my company and for client’s over the years and it has worked fine.

    If you want a Good UI/UX, get a premium buddypress theme. Check the folk at BuddyBoss.

    P.S Made WordPress Email Opt-in and User Registration & Profile plugins.

    #268893
    louisarthur
    Participant

    Thank you very much @boonebgorges !
    Finally found the faulty plugin: Paid Memberships Pro – BuddyPress Add On
    Just have to check that my Buddypress is still correctly locked down without it !

    #268891
    Boone Gorges
    Keymaster

    @louisarthur – Thanks for sending me credentials. I’ve logged into your site to have a look.

    As you note in your email, there’s no href attribute on these links. It’s not clear to me how this would be the case, but I can give you a starting point for looking into it yourself. Briefly, the buttons will be built without an href if the button constructing function passes an empty link_href parameter to the BP_Button class. The functions used in the two cases are different:

    Message public: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-activity/bp-activity-template.php?marks=3090#L3079

    Message privé: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-messages/bp-messages-template.php?marks=1362#L1360

    The logic in each case is different, but since neither is showing up, I’m guessing that one of two things is happening:

    1. One of the conditional checks shared between them is failing for some reason: bp_is_my_profile(), is_user_logged_in().

    2. Something on your installation – perhaps your theme but probably a plugin (since you said Twenty Seventeen was exhibiting the problem as well) – is filtering both ‘bp_get_send_private_message_link’ and ‘bp_get_send_public_message_link’, and then incorrect returning empty strings.

    To test idea #2, you might try – if you can – searching through your codebase for those filter names.

    #268888
    Carsten Lund
    Participant

    Hi Boone, thank you very much for clarifying about avatars.
    Here are the lightboxes I have tried so far:

    jQuery Colorbox
    WP Colorbox
    WP Lightbox 2
    ARI Fancy Lightbox
    Responsive Lightbox
    Simple Lightbox
    Wp Lightbox Bank Standard Edition

    Generally, an option for choosing avatar sizes in BuddyPress would be much appreciated!

    Regards
    Carsten

Viewing 25 results - 7,626 through 7,650 (of 69,109 total)
Skip to toolbar