Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 1,676 through 1,700 (of 31,071 total)
  • Author
    Search Results
  • #308891
    Mathieu Viet
    Moderator

    Hi,

    Well, as a start, you can try to paste the first example of code of this section: https://codex.buddypress.org/developer/group-extension-api/#examples into a bp-custom.php file and replace the display method of the Group Extension with:

    
    public function display( $group_id = NULL ) {
       $group_id = bp_get_group_id();
       
       $page = get_post( 27 );
       echo apply_filters( 'the_content', $page->post_content );
    }
    
    #308888
    Mathieu Viet
    Moderator

    Hi,

    What is your BuddyPress version ?
    What is your WordPress configuration ? Multisite or regular ?
    What is your active Template pack ? Nouveau or Legacy ?
    Have you tried with a bundled WordPress theme like TwentyNineteen to see if this was an issue with Kleo ?
    Are there other plugins active ?
    Can you add a screenshot ?

    Rick Easley
    Participant

    @nahum I found the problem. In my theme settings the Members slug was being removed and I disabled it in my BuddyPress advanced settings. I deactivated and reactivated BuddyPress and now it’s working. Thank you so much for being patience and giving advice on fixing my issue. Thank you

    Rick Easley
    Participant

    Now I changed BuddyPress template from Nouveau to Legacy and now I cannot view my own profile page. The layout of my members page changed as well which matches more to the theme layout that I wanted. Do I need to delete the buddypress plugin and upload it again to possibly fix the issue of not being able to view profiles.

    Thanks

    Rick Easley
    Participant

    I’m using the Reign Theme from Wbcomdesigns. When I have more time, I’m going to have to go through each plugin and see what is causing this or use a different theme to compare.

    Nahum
    Participant

    what is your theme and what plugins do you have installed? when you say friends, is your site meant to be private? I don’t think there is a setting that would cause this. I’d think it would be a plugin or a customization made in the theme.

    #308850
    Nahum
    Participant

    Yep, I was wrong! It is a BP setting sorry. still does your theme/a plugin you have also have admin bar settings?

    #308849
    Nahum
    Participant

    “Show the Toolbar for logged out users” doesn’t sound like a wp or bp setting? Is that a setting of your theme or a plugin? I could be wrong of course but sounds like something to do with theme/plugin.

    #308843
    amenon
    Participant

    Hello,
    My buddypress group description/except is being cut off on the second line when on that group’s page (not like an ellipsis, like the top half of letters are showing and the bottom half are not). Was wondering if anyone has encountered this/found a solution?
    I’m running WordPress 5.2.4 with Kleo theme version 4.9.18

    thank you!

    #308826

    In reply to: Name in profile

    beat sk
    Participant

    Hello,

    thank you but not working. When i create subfolders buddypress/members/single/ with member-header.php in my child theme then i get error.

    I just removed <?php if ( bp_is_active( ‘activity’ ) && bp_activity_do_mentions() ) : ?> and <?php endif; ?> but i get error. And We have a Legacy template pack no Nouveau.

    Thank you.

    #308812

    In reply to: Name in profile

    shanebp
    Moderator

    You need to adjust the proper template.
    But don’t edit the templates in the plugin or your changes will be wiped out when you update BP.
    Instead, overload the template:

    Theme Compatibility & Template Files

    Re RED: you didn’t say which template pack you are using. I will assume it is Nouveau.
    Over load this template:
    wp-content\plugins\buddypress\bp-templates\bp-nouveau\buddypress\members\single\member-header.php
    Then open the overload template and find this code near the top:

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

    And simply remove the conditional, so it will look like this:

    <h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>

    Your other questions are more complex, but will require the same approach:

      – identify the template(s) you need to change
      – overload them
      – make your changes
    vsimm63
    Participant

    Hi There,

    I’m a newbie and I haven’t made any custom changes to the core files anywhere but……
    After new members register, then click “policy agreement & complete sign up” they’re taken back to the top of the register page. Also, when I login from website memu, I’m taken to WP login page.

    https://tribely.life
    Web hosting service: Blue Host (windows server)
    WP version: 5.2.4
    WP theme: SocialMag Pro version 1.1.2 by ThemesMatic (Buddypress plugin compatable)
    Buddypress: version 5.0 was added to the theme as a plugin
    NOTE: BP members sorted by personality trates. 69 profile field questions, 3 profile detail questions (standard BP), 3 account detail boxes (standard BP)

    Other Buddypress Add On Plugings (all have been diactivated & website reboot, but problem persists:
    1. Buddypress activity social share: version 2.2.1 by Wbcom Design
    2. Buddypress extended friendship request: version 1.2.0 by Buddy Dev Team
    3. Simple Buddypress profile privacy: version 0.7.9 by Justin Hansen
    4. Social sharing buttons: version 1.0 by ThemesMatic
    5. Paid memberships pro: version 2.1.4 by Stranger Studio
    6. Paid memberships pro-WooCommerce add on: version 1.6.1 by Stranger Studio

    #308768
    beat sk
    Participant

    Hello David,

    where can i put this code what you write? Theme using same author pages as WordPress

    Thank you.

    #308748
    shanebp
    Moderator

    subscriptions-tab.php is a custom file in your child theme, correct?

    The obvious guess is that there is a problem with the code in that file.
    Unless you share that code, it is difficult to know what the problem is.
    Please do not post the code here.
    Use a site like pastbin to share your code and then post the url here.

    tevintwotimes
    Participant

    Hello, all of a sudden my site went down because of the following error:

    [31-Oct-2019 09:04:39 UTC] PHP Fatal error:  Uncaught Error: Class 'BP_Component' not found in /home/website/web/website.com/public_html/wp-content/themes/videotube-child/inc/subscriptions-tab.php:11
    Stack trace:
    #0 /home/website/web/website.com/public_html/wp-content/themes/videotube-child/inc/buddypress.php(9): require_once()
    #1 /home/website/web/website.com/public_html/wp-content/themes/videotube-child/functions.php(5): require_once('/home/website...')
    #2 /home/website/web/website.com/public_html/wp-settings.php(499): include('/home/website...')
    #3 /home/website/web/website.com/public_html/wp-config.php(125): require_once('/home/website...')
    #4 /home/website/web/website.com/public_html/wp-load.php(37): require_once('/home/website...')
    #5 /home/website/web/website.com/public_html/wp-blog-header.php(13): require_once('/home/website...')
    #6 /home/website/web/website.com/public_html/index.php(17): require('/home/website...')
    #7 {main}
      thrown in /home/website/web/website.com/public_html/wp-content/themes/videotube-child/inc/subscriptions-tab.php on line 11

    I have the buddypress 5.0 plugin installed and I have an includes(inc) folder in my child theme folder so I can add tabs to the account page.

    Any idea why it is saying ‘BP_Component’ class not found all of a sudden?

    #308738
    Mathieu Viet
    Moderator

    I’d suggest you to deactivate all plugins but BuddyPress and switch to a Twenty* theme. What you describe can be caused by another plugin or your current theme. Sometimes Cache plugins are also wrongly minifying JavaScript templates which can prevent the JavaScript to do its job.

    #308709
    beat sk
    Participant

    Hello.

    Thank you for your reply. The theme which we using is Zeen (premium theme from envato). Author archive pages are probably just from wordpress. I dont know what do you mean with template/function. In the zeen theme folder we dont have author-archives.php or something like that.

    Thank you.

    #308701
    David Cavins
    Keymaster

    That depends on what theme you’re using. If you find out what template or function is producing the author page, you can add a link the user’s profile page using the function bp_core_get_user_domain( $user_id ). You’ll have to pass in the correct user ID, which should be used in the author page, too.

    Your addition might look like
    <a href="<?php echo bp_core_get_user_domain( $user_id ); ?>">Visit User Profile</a>

    #308690
    David Cavins
    Keymaster

    Hi @visitatore-

    The username is used extensively through BuddyPress, so I don’t know how it can be kept a secret. (For instance, it’s used for the user’s profile page url at /members/{username}.)

    I don’t think you can hide the username entirely, since the BP messaging and mention system is built on the username, but you could probably change out some references to the username in the messaging templates by overriding message templates as described here: https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/

    #308686
    Tara Claeys
    Participant

    Several years ago I used code I found here to rename the “Home” nav item on the Groups page. I used this code in my Theme functions.php file.
    It has been working fine for about 4 years, but now when I go to create a new group, I get an error message
    screenshot: https://share.getcloudapp.com/d5ub6x2p

    Below is the code I am using. I assume something changed in an update so perhaps bp_current_item is not working anymore? Or edit_nav?

    //* Rename “Home” to “Reflections”of menu item in BuddyPress Group
    // buddypress()->bp_options_nav[buddypress()->groups->current_group->slug][‘home’][‘name’] = ‘Home/Reflections’;
    buddypress()->groups->nav->edit_nav( array( ‘name’ => __( ‘Home/Reflections’, ‘buddypress’ ) ), ‘home’, bp_current_item() );

    }

    ottomagic
    Participant

    When I login to my own buddypress profile (subscriber role) and take a look at the profile of an other member. I can edit password settings, email settings, profile settings, rights and export data… So not only my own data…also the data of every other member.
    https://mysite.com/members/member-name/settings/profile/
    Every login member (subscriber role) can do that to other member.

    How can i display the settings button only on my own profile (profile sidebar). The settings option on other profiles should be disabled.

    wordpress: 5.2.4
    theme: besocial

    #308645

    In reply to: Fetch user’s avatar

    jbrandsma
    Participant

    Welp, I couldn’t wait so I just spent hours trying to figure this out – with SUCCESS. If anyone stumbles upon this, here is the code I placed in my theme’s function.php file.

    function jb_get_bp_user_avatar($avatar, $id_or_email, $size, $default, $alt)
    {
    if (is_numeric($id_or_email)) {
    $id = (int) $id_or_email;
    $user = get_user_by(‘id’, $id);
    } elseif (is_object($id_or_email)) {
    if (!empty($id_or_email->user_id)) {
    $id = (int) $id_or_email->user_id;
    $user = get_user_by(‘id’, $id);
    }
    } else {
    $user = get_user_by(’email’, $id_or_email);
    }
    if ($user && is_object($user)) {
    $avatar = bp_core_fetch_avatar(array(‘item_id’ => $user->ID));
    }
    return $avatar;
    }
    add_filter(‘get_avatar’, ‘jb_get_bp_user_avatar’, 10000, 5);

    #308618
    Anita C
    Participant

    Unfortunately not. I just happened to notice it on a demo I have set up. I’ve checked all functions, deactivated all plugins except BuddyPress, changed themes, and it happens with the default too. I switched the permalinks to default, saved, switched back. The /members slug will not work. No pages/posts in trash. But if I change it to even /members1 with a 1 after it, it works but the word “members” does not. I am just baffled.

    #308617
    David Cavins
    Keymaster

    That’s pretty old code you’ve found. We have a new API for that:

    Navigation API

    The example “Changing the name of the Unread subnav item of the user’s Notifications nav menu” is pretty close to what you’re looking for. If you want to add the displayed user’s display name, this is close:

    function bpcodex_change_activity_nav_name() {
    
    var_dump( buddypress()->members->nav );
        buddypress()->members->nav->edit_nav( array(
            'name' => bp_get_displayed_user_fullname() . "'s Feed",
        ), 'activity' );
    }
    add_action( 'bp_setup_nav', 'bpcodex_change_activity_nav_name', 100 );

    You’ll need to add that code to your bp-custom.php file or similar. https://codex.buddypress.org/themes/bp-custom-php/

    #308589
    Anita C
    Participant

    All of a sudden after an update, my Member page (i.e., /members) redirects to the home page. If I change the slug to “membership” or some other name and set that as the Member page, it will then go to the page with all the members. I have changed the permalinks several times and I cannot set the page slug as “members”. Any thoughts on this? I am using a Genesis Child Theme. I’ve switched to several default WordPress themes and still cannot get the /members slug to work.

Viewing 25 results - 1,676 through 1,700 (of 31,071 total)
Skip to toolbar