Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 7,426 through 7,450 (of 94,560 total)
  • Author
    Search Results
  • #279307
    shanebp
    Moderator

    You don’t say which template pack you’re using… Depending on which you’re using:
    Find this file:
    buddypress\bp-templates\bp-legacy\buddypress\activity\index.php
    Or this one:
    buddypress\bp-templates\bp-nouveau\buddypress\activity\index.php

    Then find this code:

    	<?php if ( is_user_logged_in() ) : ?>
    
    		<?php bp_get_template_part( 'activity/post-form' ); ?>
    
    	<?php endif; ?>

    And change it to:

    	<?php if ( is_super_admin( get_current_user_id() ) ) : ?>
    
    		<?php bp_get_template_part( 'activity/post-form' ); ?>
    
    	<?php endif; ?>

    Rather than make the changes to the BP templates, use a template overload instead.

    #279306
    amotylszary
    Participant

    Hello everyone,

    Can someone tell me how we can disable users’ ability to post status updates? We only want admins to be able to create statuses and add to the activity feed. Users will be allowed to comment on those items, but not to post their own.

    Seems simple enough, but I can’t figure it out. Turning off Activity Streams in BuddyPress removes the whole activity page for participants. We just want to remove their ability to post status updates.

    thanks for your help!

    mutoha
    Participant

    I want to call tamplate【A】in the template【B】.

    template【A】
    plugins\buddypress\bp-templates\bp-legacy\buddypress\members\single\profile-loop.php

    template【B】
    plugins\buddypress\bp-templates\bp-legacy\buddypress\members\single\edit.php

    But even if you write the following code in 【B】, 【A】 can not be called.

    <?php get_template_part( 'profile/profile', 'loop' ); ?>	
    <?php bp_get_template_part( 'profile/profile', 'loop' ); ?>

    What should I write in 【B】?

    Tthanks.

    rajh2350
    Participant

    Hello,

    I am using latest version of buddypress and wordpress. The registration process is not working for me. Its just refreshing the page. No data is saving in database. I have tested with deactivating all plugins and also tested with the default theme. But its still not working.

    I need to fix this issue as soon as possible. Please help!
    Thanks in advance.

    hytan96
    Participant

    Is that possible for us to add a new attribute to the existing BuddyPress table? If yes, anyone can give me some guides?

    #279279
    inderpreet2018
    Participant

    Yes, I am using “New User approve” plugin, as I am using “Memberpress” plugin to maintain registrations.

    How I approve new users from buddypress?

    keshabee
    Participant
    /*Disable gravatar*/
    add_filter('bp_core_fetch_avatar_no_grav', '__return_true');
    
    /*Disable gravatar extra function*/
    function bp_remove_gravatar ($image, $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir) {
    
        $default = get_stylesheet_directory_uri() .'/_inc/images/bp_default_avatar.jpg';
    
        if( $image && strpos( $image, "gravatar.com" ) ){ 
    
            return '<img src="' . $default . '" alt="avatar" class="avatar" ' . $html_width . $html_height . ' />';
        } else {
            return $image;
    
        }
    
    }
    add_filter('bp_core_fetch_avatar', 'bp_remove_gravatar', 1, 9 );
    
    function remove_gravatar ($avatar, $id_or_email, $size, $default, $alt) {
    
        $default = get_stylesheet_directory_uri() .'/_inc/images/bp_default_avatar.jpg';
        return "<img alt='{$alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />";
    }
    
    add_filter('get_avatar', 'remove_gravatar', 1, 5);
    
    function bp_remove_signup_gravatar ($image) {
    
        $default = get_stylesheet_directory_uri() .'/_inc/images/bp_default_avatar.jpg';
    
        if( $image && strpos( $image, "gravatar.com" ) ){ 
    
            return '<img src="' . $default . '" alt="avatar" class="avatar" width="150" height="150" />';
        } else {
            return $image;
        }
    
    }

    Reasons being:
    The code helps to disable the gravatar use in buddy-press avatar and cover-image while also removing that gravatar text wordings when editing the avatar and cover image
    But the issue is am making use of a Buddypress Multiblog so this tend to cause issue with my avatar not being displayed in biography on post .

    Thanks in advance.

    #279276
    tsortore
    Participant

    RESOLVED: I was trying not to, but reinstalling BuddyPress fixed the issue.

    I appreciate the help,

    Tony

    #279275
    tsortore
    Participant

    Here is my theme and a list of plugins, most of which came with the premium theme. There have been no complaints I’ve found of the groups not working “out-of-the-box” with this theme.

    *** These were the only plugins that did NOT come with the theme.

    Theme: WOffice
    Active Plugins:

    • Akismet Anti-spam
    • All in one WP Migration
    • BP xProfile Location ***
    • BuddyPress
    • Buddypress Xprofile Fields Custom Css Classes ***
    • DP Pro Event Calendar
    • Eonet Live Notifications
    • File Away
    • GamiPress
    • LocateAnything ***
    • Slider Revolution
    • Unyson
    • User Role Editor ***(suggested and tested compatible plugin)
    • Wise Chat
    • WP ERP
    • WP ERP – PDF Invoice
    • WP Bakery Page Builder

    Still no luck getting group creation working.

    Thanks for your response! Any ideas?

    #279270
    rosemalfoy93
    Participant

    Hello
    All of a sudden my buddypress pages aren’t loading. On checking I saw that #item-body wasn’t loading completely. So when I click on any tab except the profile tab, the entire page below the nav is cut off including the footer.

    I tried removing all my custom css & the functions.php file of my child theme to see if that’s the problem. But no effect. When I activate the parent theme though it seems to be working. Where else can I check or what can I do to solve this issue?

    amkh
    Participant

    Hi,

    I used the code below to notify by email when member updates certain field. In my case the field is multiline text box (TinyMCE). I replaced the email and field ID in the code with my actuals.

    But this snippet is not sending me emails.

    function rc_buddypress_profile_update( $user_id ) { 
     
         $admin_email = "YOUR-EMAIL@DOMAIN.COM";
         $message = sprintf( __( 'Member: %1$s', 'buddypress' ), bp_core_get_user_displayname( $user_id ) ) . "\r\n\r\n"; 
         $message .= sprintf( __( 'Color: %s' ), bp_get_profile_field_data('field=Color') ). "\r\n\r\n";
         wp_mail( $admin_email, sprintf( __( '[YOUR SITE] Member Profile Update' ), get_option('blogname') ), $message );
     }
     
     add_action( 'xprofile_updated_profile', 'rc_buddypress_profile_update', 10, 5 );
    
    #279267
    farisblogger
    Participant

    Hi. My question is how to remove account details in registration page? I want use details registration on profile fields only.

    Wordpress: Version 4.9.8
    BuddyPress: Version 3.2.0

    The website is for my client. Thanks.

    #279261
    alexinzo
    Participant

    Greetings!

    I’m using Buddypress 3.2.0 in KLEO Theme on WordPress 4.9.8.

    I have an issue that appears every time when someone tries to register on my website: after completing the registration fields and hitting “Sign Up” button, the page refreshes and the process isn’t done properly.

    Sometimes the process is working: I can create an account but after that the issue appears again. It is like a 1/10 chance for the process to be done succesfully.

    I searched on the forum’s topics related to this question but I couldn’t find something to work and solve the problem for me.

    *I’m running a single-site.
    *My bp file in directory is named: “BuddyPress”

    Any ideas? I really hope you can help me!

    Cheers!

    #279260
    denrocs
    Participant

    Whenever I try to create a group within my site, I get logged out.
    I’ve tried removing plugins, removing the theme, updating plugins and themes but I still get the same issue.

    I’ve replicated the base of my site on another WordPress instance and that works as much as I can create groups fine.

    What can I do to fix this issue, please?

    EDIT: I’m using WordPress 4.9.8, BuddyPress 3.2 (latest version) on a localhost site running MAMP

    #279254
    Prashant Singh
    Participant

    Hi,

    BuddyPress never lists pending and denied members. Are you using any other system to verify them?

    Thanks

    #279250
    amkh
    Participant

    I am worried about the strange problem I am facing when user registers. My registration page contains three profile fields from “Base” called Base name, gender, DOB and name.

    I noticed frequently users get successfully registered with no update to any of the above mentioned fields. These fields are defined “Required”. I am worried how these fields are not getting updated in database because the registration will not be allowed unless user enters these fields. Is this a bug in buddypress? Or what else otherwise?

    mutoha
    Participant

    Regarding the matter of the “compatible with nouveau”,
    Do you think that “BuddyPress Follow(1.2.2)” will be available if you change any of the “BuddyPress(3.2.0) with nouveau”?

    I am in trouble because I can not use it even if I change the next file.

    bp-nouveau > buddypress > activity > entry.php
    bp-nouveau > buddypress > activity > activity-loop.php

    Would you please give me a hint?

    Thanks.

    Prashant Singh
    Participant

    I always focus on the updated plugin so try to Use the latest “BuddyPress(3.2.0)” with “legacy”. And also please recommend to devs to make it compatible with nouveau.

    Thanks

    #279234
    Prashant Singh
    Participant

    Hi,

    You can check this https://buddypress.org/support/topic/hiding-profile-tabs-i-e-messages-based-on-user-role/ and use bp_core_remove_subnav_item.

    Thanks

    #279229
    Prashant Singh
    Participant

    Hi,

    Please replace the previous code with this code if you want a tab and not the previous one:

    function ps_profile_forum_creation() {
    	if(current_user_can('moderate')){
    		global $bp;
          	bp_core_new_subnav_item( array( 
                'name' => 'Create Forum', 
                'slug' => 'create-forum', 
                'screen_function' => 'ps_create_forum_screen', 
                'position' => 200,
                'parent_url'      => bp_loggedin_user_domain() . '/forums/',
                'parent_slug'     => 'forums',
                'default_subnav_slug' => 'create-forum'
          	) );
    	}
    }
    add_action( 'bp_setup_nav', 'ps_profile_forum_creation' );
     
     
    function ps_create_forum_screen() {
        add_action( 'bp_template_content', 'ps_create_forum_screen_content' );
        bp_core_load_template( 'buddypress/members/single/plugins' );
    }
    
    function ps_create_forum_screen_content() {
        echo do_shortcode('[bbp-forum-form]');
    }

    Hopefully, it will help you.
    Thanks

    #279228

    In reply to: Wrong count shows

    Prashant Singh
    Participant

    Hi Inderpreet,

    Try repairing the count from Tools->BuddyPress, if it does not fix the issue then it seems like your members have not yet logged-in on the site. As soon as they all will log in on the site the count will be fixed. Because BuddyPress shows the count of the active members(at least they logged in once).

    Thanks

    #279207
    Viktor Szépe
    Participant

    https://buddypress.trac.wordpress.org/ticket/6527#comment:4 settles this.

    You should check is_404() at template_redirect priority 11 the earliest.

    #279206
    Viktor Szépe
    Participant

    Hello!

    I think when BuddyPress analyzes the URI WP Query’s is_404 property is true.
    So when my WAF checks is_404() in template_redirect hook it detects group pages as a 404.
    https://accesstourism.co.uk/groups/dorset/
    During this bp_current_component() returns ‘groups’.
    Could you please fix BP to keep is_404 false?

    There is a plugin loosely related to this
    https://plugins.trac.wordpress.org/browser/bp-404s/trunk/bp404s.php

    Thank you.

    mutoha
    Participant

    Can you please teach me.

    Which do you prefer: A or B?

    A:Use the latest “BuddyPress(3.2.0)” with “legacy”
    B:Use the old “BuddyPress(2.9.4)” with “nouveau”

    Thanks.

    mutoha
    Participant

    Hi,

    You just said it!
    The most up-to-date version compatible with “BuddyPress Follow(1.2.2)” was “BuddyPress(2.9.4)”.
    But, as you say, using “legacy” also matches “BuddyPress(3.2.0)”.
    So, What is “legacy”? What is the difference with “nouveau”?
    Where is the explanation?

    Thanks.

Viewing 25 results - 7,426 through 7,450 (of 94,560 total)
Skip to toolbar