Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 9,926 through 9,950 (of 73,984 total)
  • Author
    Search Results
  • #269068
    Henry Wright
    Moderator

    Check out the Languages and Translations article:

    Languages and Translations

    #269067
    Henry Wright
    Moderator

    WordPress users are BuddyPress users. They’re stored in the wp_users table.

    #269066
    wayne alex
    Participant

    Hi,

    I would like to increase the size of the thumbnail images to 480px x 250px, when you post images in the activity stream, also, in groups like in Facebook. I’ve been searching on how to do this for a while now. Can’t seem to find a solution.

    Any ideas?

    Thank you

    #269061
    jamesmcm
    Participant

    Ive am about to start creating my social community and I have one question I have been unable to find the answer to.
    Are logged in wordpress users and logged in buddypress users the same thing?
    I have noticed a lot of wordpress plugins work with a logged in wordpress user/member, for example the ability to store data like a favorites list.
    What I am wondering is if a plugin in that is designed for wordpress, that save’s data to a logged in wordpress users/members profile, works in the same with a logged in buddypress user/member?

    naomibuch
    Participant

    Hi Boone,

    Thanks for getting back to me, the css code you provided doesn’t work when I tested it. I think what I was trying to achieve required a direct modification to the code.

    After thorough testing I realized that some of the code I removed caused an impact on the ability to save a username in the compose box.

    After fine tuning the code module, I finally got it to work, I will share the revised cover-image-header.php file here.

    But please make a copy of the original cover-image-header.php file and save it to a text file before making any changes to the original cover-image-header.php file.

    This is where you can find the cover-image-header.php file: public_html/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/cover-image-header.php

    <?php
    /**
    * BuddyPress – Users Cover Image Header
    *
    * @package BuddyPress
    * @subpackage bp-legacy
    */

    ?>

    <?php

    /**
    * Fires before the display of a member’s header.
    *
    * @since 1.2.0
    */
    do_action( ‘bp_before_member_header’ ); ?>

    <div id=”cover-image-container”>
    “>

    <div id=”item-header-cover-image”>
    <div id=”item-header-avatar”>
    “>

    <?php bp_displayed_user_avatar( ‘type=full’ ); ?>


    </div><!– #item-header-avatar –>

    <div id=”item-header-content”>

    <?php if ( bp_is_active( ‘activity’ ) && bp_activity_do_mentions() ) : ?>
    <h2 class=”user-nicename”>@<?php bp_displayed_user_mentionname(); ?></h2>
    <?php endif; ?>

    <div id=”item-buttons”><?php

    /**
    * Fires in the member header actions section.
    *
    * @since 1.2.6
    */
    do_action( ‘bp_member_header_actions’ ); ?></div><!– #item-buttons –>

    <span class=”activity” data-livestamp=”<?php bp_core_iso8601_date( bp_get_user_last_activity( bp_displayed_user_id() ) ); ?>”><?php bp_last_activity( bp_displayed_user_id() ); ?></span>

    <?php

    /**
    * Fires before the display of the member’s header meta.
    *
    * @since 1.2.0
    */
    do_action( ‘bp_before_member_header_meta’ ); ?>

    <div id=”item-meta”>

    </div><!– #item-meta –>

    </div><!– #item-header-content –>

    </div><!– #item-header-cover-image –>
    </div><!– #cover-image-container –>

    <?php

    /**
    * Fires after the display of a member’s header.
    *
    * @since 1.2.0
    */
    do_action( ‘bp_after_member_header’ ); ?>

    <div id=”template-notices” role=”alert” aria-atomic=”true”>
    <?php

    /** This action is documented in bp-templates/bp-legacy/buddypress/activity/index.php */
    do_action( ‘template_notices’ ); ?>

    </div>

    Boone Gorges
    Keymaster

    Hi @aubreyw – Thanks for the post!

    I haven’t done a lot of work with these plugins myself, so I can’t give direct advice. But I was recently researching a bit, and I found that Restrict Contact Pro has a third-party add-on that does integrate nicely with BuddyPress: https://skillfulplugins.com/plugins/restrict-content-pro-buddypress/ I have not used this myself, but the screenshots make it look really promising, and worth a closer look.

    Boone Gorges
    Keymaster

    > I replaced the indicated line of code in my child theme’s cover-image-header.php with yours. Not only does the Display Name not appear (only the “@” appears), but everything following it (tabs of user activity, etc) disappears. The page just ends.

    Sorry, there was a typo in my original response. I wrote bp_displayed_user-id() instead of bp_displayed_user_id().

    When the page stops rendering like this, it means that there’s been a PHP fatal error. If you’re going to be modifying PHP files, it’s a good idea to get familiar with either your server’s PHP error log, or the WP_DEBUG constant. See https://codex.wordpress.org/Debugging_in_WordPress

    > Any insight into what I may be doing wrong would be appreciated.

    Hard to know exactly what is going on without seeing your site. For the template, my guess is that you have copied things into the incorrect location in your child theme. The template overrides only work if the directory structure matches directly, as described on the codex page linked above. So, the path should be something like wp-content/themes/your-theme/buddypress/members/single/index.php.

    For the CSS, it could be that your theme is using different CSS selectors for page titles. (.entry-title is used by some of the WordPress default themes, so I guessed that it might be in use on your theme too.) Use your browser’s inspector to get the proper selector. Here’s a useful tutorial: http://toolsqa.com/selenium-webdriver/finding-elements-using-browser-inspector/ Once you have found the id/class of the element, replace .entry-title in my snippet with that.

    #269055
    MBV
    Participant

    I tried to add some shortcode to the Activity page via Admin Dashboard > Pages > Activity > Page Edit Section, but it’s not rendering, instead it just renders the actual text for the shortcode.

    Is there a way to allow BP page to render shortcodes from the page content?

    I read on another forum to do the following but it was and old forum and I can’t find that file he referred to:

    Try replacing line 39 of content-buddypress.php
    $custom_content = wpautop( get_the_content() );
    with this:
    $custom_content = do_shortcode( get_the_content() );

    Any ideas?

    richard.miller
    Participant

    Thanks for the thorough and detailed response!

    Unfortunately, I haven’t been able to make your advice work.

    @username display:

    I replaced the indicated line of code in my child theme’s cover-image-header.php with yours. Not only does the Display Name not appear (only the “@” appears), but everything following it (tabs of user activity, etc) disappears. The page just ends.

    Page title:

    1) I copied the WP’s page.php file into my child theme’s buddypress/members/single/ directory and removed this line of code:<h1 class=”entry-title main_title”><?php the_title(); ?></h1>
    No effect.

    I tried hiding the title with CSS – that didn’t work either.

    Any insight into what I may be doing wrong would be appreciated.

    (all caches purged, alternate browsers tried, etc.)

    aubreyw
    Participant

    I use BuddyPress and I’ve been trying to add a good member subscription plugin. I’ve tried Paid Memberships Pro, Restrict Content Pro, and S2 Member. Not of them were very compatible for whatever reasons. Paid Memberships Pro manages the billing successfully, but cannot properly restrict pages. Restrict Content Pro told me –

    The reason many plugins don’t integrate with BuddyPress right out of the box is that BuddyPress uses totally custom templates for all their pages and that means they will not be restricted in the same way we restrict normal WordPress pages. It requires custom coding specifically for BuddyPress in order to restrict access to those pages.”

    I dont know custom coding, so I need a plugin that can be customized with simple settings. Does BuddyPress offer a plugin that makes it play nice with subscription plugins? Or can someone please recommend a subscription plugin that will work for me?

    aubreyw
    Participant

    Does anyone know if BuddyPress is compatible with Woo Commerce memberships if I do NOT have a store or e-commerce component? I’m using wordpress/buddypress with a BuddyBoss theme for an online community where members will pay a small monthly subscription fee. My BuddyPress install came with Woo Commerce, but it looks to me like Woo might be only appropriate for store components. I just need to charge a monthly membership fee via Stripe, protect all pages except Home and a few marketing pages, and I need the ability to add additional custom registration form fields. Sorry, I know this is also somewhat of a Woo questions, but since my BuddyPress came with Woo, I hope its ok to ask this question here. I’ve already tried Paid Memberships Pro and Restrict Content Pro, but neither of them work well with Buddypress (billing works, but page protection doesn’t).

    #269046
    Boone Gorges
    Keymaster

    Hi @writingbox – Unfortunately, it’s very hard to debug this without access to the live site. But if the problem is indeed that there is a margin-top issue on this element, you could put the following into your child theme’s style.css:

    
    body.single-item.groups #buddypress div#item-header div#item-actions {
        margin-top: 0;
    }
    

    Be sure to do this in the stylesheet for your child theme, not in BuddyPress itself or in your WP theme, because those changes would be lost when the plugin/theme is updated. Here’s a guide https://premium.wpmudev.org/blog/how-to-create-wordpress-child-theme/ – the section you want is under the “Creating a Child Theme” header, and the file where you should put your customizations is style.css.

    Boone Gorges
    Keymaster

    If I understand the “view link” issue correctly, then the following CSS is probably enough to hide it:

    
    .latest-update a { display: none; }
    

    A screenshot would verify whether we’re thinking of the same thing.

    Please note that if you’ve made changes in cover-image-header.php within the buddypress directory, these changes will be overwritten the next time BuddyPress is updated. Please create a child theme and override templates there. Here’s a brief guide: http://tentenbiz.com/override-buddypress-template-files/

    > 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?

    Can you described this in more detail? When you say “it does not save the user name”, what do you mean? Do you mean that, when you press Send on the newly composed message, the page reloads without having been sent to the user in question?

    #269042
    Boone Gorges
    Keymaster

    There are a couple places where BuddyPress itself adds an IN clause like this to the user query.

    1. When showing a list of a user’s friends: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-core/classes/class-bp-user-query.php?marks=389#L382

    2. When joining against the user meta table because of some sort of meta_query: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-core/classes/class-bp-user-query.php?marks=455#L430

    3. When parsing the include parameter, which can be populated by a plugin or by a group member query: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-core/classes/class-bp-user-query.php?marks=373#L360

    It’s hard to give exact advice without knowing which of these cases is tripping up the WPEngine tool. Item 2 would only happen if you were using a specific kind of plugin/customization. 1 would only happen if viewing the friends page of a user with a huge number of friends. 3 would happen only if viewing the members page of a group with a huge number of members. 3 is probably the most common, but if you could verify, it would help us to narrow things down.

    It’s hard to give a simple workaround for this kind of issue. One is to prevent BP from doing this specific ‘count’ query. This will have the effect of breaking certain kinds of pagination, but it may be something that you can work around, depending on the details. Fundamentally, this might count as a bug that should be fixed in BP – we may consider switching this to a subquery to avoid this kind of host restriction.

    In the meantime, you might consider reaching out to WP Engine and explaining this problem. In my experience, they’re generally pretty reasonable about disabling or loosening this query-length restriction in certain cases.

    #269040
    Boone Gorges
    Keymaster
    #269037
    Boone Gorges
    Keymaster

    Hi @drnz17 – Yes, there are plugins that make this possible. This one has support for BuddyPress-related conditionals, like “show these widgets on a single user page”: https://wordpress.org/plugins/dynamic-widgets/

    Boone Gorges
    Keymaster

    Hi @richardmiller-1 – The purpose of the @username part of the interface is to tell other users how to mention the user when posting new activity items, etc. It’s possible to change the value that’s displayed here, but if you do, and if users then use that text to “mention” others, then things like auto-linking of @-mentions and @-mention notifications will break, since BP doesn’t know by default how to search by display names.

    If you just want to change the display, then you should copy the cover-image-header.php template to your own child theme, and then change the line you’ve referenced to:

    
    <h2 class=”user-nicename”>@<?php echo bp_core_get_user_displayname( bp_displayed_user_id() ); ?></h2>
    

    It might be possible to retool some of the @-mention plumbing so that notifications etc work. You’d want to start by filtering bp_activity_mentioned_users(), and copying some of the logic in bp_activity_find_mentions() but with modified regex + user lookup. (This is going to be hard because, among other things, display names are not necessarily unique across a network, so @Richard could refer to multiple people. But that depends on the nature of your network.)

    The h1 at the top of the profile page is generated in a weird way, as part of BP’s theme compatibility system. It’s not directly generated by BP, but comes from your WP theme; BP is faking the theme into thinking that the user’s display name is the title of the WP page, so that your theme’s page.php template outputs it as the_title(). There are various workarounds for this. One is to tap into BP’s template hierarchy, so that WP would use a separate template file for single member pages. See https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/#single-member-pages for details. Basically, you’d copy page.php to buddypress/members/single/index.php, and remove the call to the_title(). A simpler solution is to hide with CSS:

    
    .bp-user .entry-title {
    	display: none;
    }
    
    #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

    #269027
    vincent46
    Participant

    Hello everyone. I followed a guide to change the default name of the post. And now from wordpress administration it’s all ok.
    On the workflow of activities, however, each time a user enters a post continues to exit:”User x has entered a new post”.
    How do I make him understand to Buddypress that he doesn’t have to use the word “post” anymore and uses the word I chose?
    I also tried to change the translation file, but this is temporary and does not always work.
    Thank you very much to those who will help me because I really don’t know how to solve it.

    #269026
    Fazlur Khan
    Participant

    I am trying to optimise a wordpress (4.8.3)/ BuddyPress (2.8.2) site with 5000+ users hosted in WPEngine. Getting error in WPEngine error log.

    The WPEngine error log shows following error:
    [Wed Nov 15 23:50:15.430014 2017] [:error] [pid 21215] [client 27.147.203.28:32469]
    KILLED QUERY (35690 characters long generated in
    /nas/content/staging/sued2/wp-content/plugins
    /buddypress/bp-core/classes/class-bp-user-query.php:536):
    SELECT COUNT(u.user_id) FROM wp_bp_activity u WHERE 1=1 AND u.component = ‘members’ AND u.type = ‘last_activity’
    AND u.user_id IN (72,790,8 …..

    #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' );
Viewing 25 results - 9,926 through 9,950 (of 73,984 total)
Skip to toolbar