Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 1,526 through 1,550 (of 73,985 total)
  • Author
    Search Results
  • lbnn
    Participant

    Hello,

    I modified the profile-loop.php file some time ago to hide profile fields that are empty but my code doesn’t work anymore, has any change been done to the code some updates ago ?

    Here is what I modified :

    <h2 class="screen-heading view-profile-screen"><?php esc_html_e( 'View Profile', 'buddypress' ); ?></h2>
    
    <?php bp_nouveau_xprofile_hook( 'before', 'loop_content' ); ?>
    
    <?php if ( bp_has_profile('hide_empty_fields=0') ) : ?>
    
    	<?php
    	while ( bp_profile_groups() ) :
    		bp_the_profile_group();
    	?>
    
    		<?php if ( bp_profile_group_has_fields() ) : ?>
    
    			<?php bp_nouveau_xprofile_hook( 'before', 'field_content' ); ?>
    
    			<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
    
    				<h3 class="screen-heading profile-group-title">
    					<?php bp_the_profile_group_name(); ?>
    				</h3>
    
    				<table class="profile-fields bp-tables-user">
    
    					<?php
    					while ( bp_profile_fields() ) :
    						bp_the_profile_field('hide_empty_fields=0');
    					?>
    
    						<?php if ( bp_field_has_data() ) : ?>
    
    							<tr<?php bp_field_css_class(); ?>>
    
    								<td class="label"><?php bp_the_profile_field_name(); ?></td>
    
    								<td class="data"><?php bp_the_profile_field_value(); ?></td>
    
    							</tr>
    							
    						<?php elseif ( !bp_field_has_data() ) : ?>
    						
    							<tr<?php bp_field_css_class(); ?>>
    
    								<td class="label"><?php bp_the_profile_field_name(); ?></td>
    
    								<td class="data"><?php bp_the_profile_field_value(); ?></td>
    
    							</tr>
    							
    						<?php endif; ?>
    
    						<?php bp_nouveau_xprofile_hook( '', 'field_item' ); ?>
    
    					<?php endwhile; ?>
    
    				</table>
    			</div>
    
    			<?php bp_nouveau_xprofile_hook( 'after', 'field_content' ); ?>
    
    		<?php endif; ?>
    
    	<?php endwhile; ?>
    
    	<?php bp_nouveau_xprofile_hook( '', 'field_buttons' ); ?>
    
    <?php endif; ?>
    
    <?php
    bp_nouveau_xprofile_hook( 'after', 'loop_content' );
    

    Can someone help me to hode those fields again please 🙂

    #328458
    waltervl
    Participant

    Just bumped into this discussion as I had the same issue. I came across another discussion that had a fix by adding a function in the functions.php https://buddypress.trac.wordpress.org/ticket/7473

    That helped me fix this issue.

    #328457
    semih2400
    Participant

    Hello, I have this code snippet on my custom page.

    <div id="buddypress" class="buddypress-wrap buddyx bp-dir-hori-nav alignwide">
      <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&action=new_quote' ) ) : ?>
        <div id="activity-stream" class="activity" data-bp-list="activity" >
            <?php bp_get_template_part( 'activity/activity-loop' ); ?>
        </div>
    <?php endif; ?>

    I want to display activity loop. Actually it is ok but activity meta class does not exist. it seem as <div class=" -meta action"> it should be <div class=" activity-meta action">
    If I remove data-bp-list=”activity” on activity-stream div css will be fine it will be activity-meta but click not work. If i use data-bp-list=”activity” click works but css does not work because of -meta (it should be activity-meta)
    Can you help me?

    #328454

    In reply to: BuddyPress 11.1.0

    Try IT Works
    Participant

    I’m not sure why my last comment isn’t being approved, but I need help with buddypress 11.1 in wordpress. It’s displaying a warning error on my website. If I could upload a screen shot to show what I mean, I would. But for now, I’ll just write out what the error message says.

    “Warning: Undefined array key 731 in /homepages/40/d950647655/htdocs/clickandbuilds/tryitworks/wp-includes/nav-menu-template.php on line 211”

    Anonymous User 18187419
    Inactive

    Hi kp,

    yes I’m with ya on keeping extra plugins to a minimum.

    Code published here…

    https://easywebdesigntutorials.com/hide-buddypress-pages-and-bbpress-forums-from-not-logged-in-users/

    …with minor modification (to remove bbpress check) seems to achieve what you want, as per below:

    function ps_guest_redirect() {
         global $bp;
      if ( bp_is_user() ) {
          if(!is_user_logged_in() and !bp_is_register_page() and !bp_is_activation_page()) {
               wp_redirect('https://google.com');
      exit;
          }
      }
    }
    add_filter( 'get_header','ps_guest_redirect',1);
    Anonymous User 18187419
    Inactive

    This free plugin should work for you:

    BuddyPress Members Only

    #328444

    Topic: Group settings

    in group forum Installing BuddyPress
    swietcher
    Participant

    Hello, I am building a training site. I want to create a private group with Buddypress and I want only those who bought the training to be able to join the group I created. How can I do that? I don’t want everyone to be able to join my group. Also, when people want to share on the main page, that is, in the flow, I want them to be approved by me. How can I do that?

    #328432
    Mathieu Viet
    Moderator

    Hi @munklefish

    I was able to see the error message. You should rename /.../wp-content/plugins/bp-custom.php to /.../wp-content/plugins/bp-custom-erroring.php so that BuddyPress does not load it. The issue is with this custom file you added. This file is using a function that is not available when it tries to (undefined function is_site_admin() in /.../wp-content/plugins/bp-custom.php at line 44).

    #328414
    la_ri_za
    Participant

    Hi,

    I’ve been using Invite Anyone plugin until now, but looks like it doesn’t work anymore. The links in invitation emails and Accept buttons go to 404, and no-one answers in the Support forum. Also looks like it is not compatible with PHP8.

    So I’ve been wondering if I could somehow tweak Buddypress myself to be able to send group invites to all members and not just friends. I see that Nouveau template does that but I don’t understand how that works (I’m using Legacy and I don’t want to change that). Could anyone point me to the right direction? Are there any hooks I could use? Thanks in advance!

    jeanb11
    Participant

    WordPress 6.1.1
    BuddyPress 11.0.0
    Theme : BuddyX Pro

    Hi,
    I installed the 11.0.0 today but I have some problem with the groups cover images. In the activities of my groups, the cover images are no longer displayed. They are then replaced by a standard image (placeholder.svg) from my BuddyX Pro theme.
    Please note that the cover images are displayed correctly on the group page. My problem happens on the Group Activities block where this cover image does not seem to be displayed correctly, Whereas with version 10.6.0 it is displayed.

    Any idea of the difference between 10.6.0 and 11.0.0 which could create my bug?
    Thanks for any help!

    #328411
    Phill Healey
    Participant

    With the 2023 theme and only BuddyPress active, I am still unable to login to the site.

    My setup is this:
    Hosting: Siteground
    WP Type: Single site
    WP Version: 6.1.1
    BuddyPress: v11.0.0

    The issue does not occur when using BP v10.6.

    P.s. Adding my logs to a comment here prevents me from posting. Adding my logs to an existing post causes the post to delete. Is there another way I can send the info to you?

    noobdeveloper
    Participant

    Are there any buddypress branded login plugin free alternatives or anything that can stop my login page from being directed to wp-login.php?

    #328401
    Mathieu Viet
    Moderator

    Hello @munklefish

    Have you tried deactivating all plugins except BuddyPress and activating a WordPress default theme like Twenty Twenty-Three to be sure it’s a BuddyPress issue?

    If so, what’s your setup?
    WordPress Multisite or not? WordPress version?
    If Multisite how BuddyPress has been activated? Network wide, on a specific site of the network?
    PHP version?
    Finally, could you check the error_log file of your server?

    #328396
    glennizen
    Participant

    WordPress Version 6.1.1
    BuddyPress Version 11.0.0

    Home

    I’m having a problem implementing BuddyPress on my site. Everything works fine except for Reply to Private Message. When click on Send Reply btn, it errors out: “Your reply was not sent. Please enter some content.” There is content. Please advise. Thank you.

    #328392
    Phill Healey
    Participant

    I’m also getting the log-in issues since the update to v11.0.0.

    The login screen just displays the following message:
    “There has been a critical error on this website. Please check your site admin email inbox for instructions. Learn more about troubleshooting WordPress.”

    Nothing appears in the Debug log to indicate what the issue is.

    Deactivating BuddyPress re-enables the WP login, but BP is needed for a huge chunk of the site functionality so disabling is not a realistic option for us.

    centrowebs
    Participant

    Hi, I have the latest version installed and I am encountering this error in several community profiles:


    Warning: sprintf(): Too few arguments in /furanet/sites/mydomain.com/web/htdocs/wp-content/plugins/buddypress/bp-blogs/bp-blogs-activity.php on line 233

    #328369
    sina780
    Participant

    To disable seeing other members’ pages in BuddyPress, you can use the following steps:

    Log in to your WordPress admin dashboard.

    Navigate to the “Settings” section, then select the “Privacy” tab.

    Under the “Members” section, select the option “Only allow site administrators to view member profiles.”

    Click “Save Changes” to apply the setting.

    With this setting enabled, only site administrators will be able to view member profiles. Regular members will not be able to access other members’ pages.

    Note: These instructions are based on BuddyPress version 7.0 and higher. If you are using an older version of BuddyPress, the steps may be different. Also, make sure to take a backup of your site before making any changes.

    imanakame
    Participant

    Hi.

    Is there any way to prevent other members of BuddyPress from seeing the page?

    e. g)
    If my name is imanakame

    If imanakame access it
    http:localhost/members/imanakame/ → access ok
    http:localhost/members/tanaka/ → access ng

    If tanaka accesses it
    http:localhost/members/imanakame/ → access ng
    http:localhost/members/tanaka/ → access ok

    thank you.

    #328367
    tonygao
    Participant

    Hello,

    The error message is as below:

    PHP Deprecated: Hook bp_get_send_message_button is deprecated since version 1.8.0! Use bp_get_send_message_button_args instead. in /public_html/wp-includes/functions.php on line 5758

    I found the following files include function “bp_get_send_message_button”

    /public_html/wp-content/plugins/buddypress/bp-messages/bp-messages-template.php
    /public_html/wp-content/plugins/buddypress/bp-templates/bp-nouveau/includes/members/template-tags.php

    #328363
    Eng.Lucas
    Participant

    Hi, my client wants to allow an area for the client to upload a personal “Vision Board” for each user and I thought of using BuddyPress’ Cover Image feature for this, however I would need to use the Cover Image outside of the profile page.
    Is this possible?

    Thank you

    Lucas Oliveira

    #328347
    robert7045
    Participant

    The blog I have been working on provides information about APM Test. Since I’m using a WordPress customized theme on that blog, now I’m looking to change the theme to BuddyPress. How can I migrate my website/blog without losing traffic and ranking? Moreover, I also don’t want to change the UI/UX.

    Looking forward to hearing from experts.

    Thank you

    #328345
    Jo Waltham
    Participant

    @mahaprabhu I don’t know. I created that plugin for one particular website which is no longer in use so I’ve not tested it with any recent BuddyPress plugins. Please give it a try and let me know.

    #328344
    Mahaprabhu
    Participant

    i wish to try this plugin you have made Jo. Is it working for the current buddypress ?

    #328341
    eldamania
    Participant

    I have these errors in my site.

    Fatal error: Uncaught ArgumentCountError: 3 arguments are required, 2 given in /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-blogs/bp-blogs-activity.php:230 Stack trace: #0 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-blogs/bp-blogs-activity.php(230): sprintf(‘%1$s ha escrito…’, ‘apply_filters(‘__construct(Array) #9 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/activity-loop.php(17): bp_has_activities(”) #10 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/template.php(785): require(‘/customers/5/b/…’) #11
    /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template(‘/customers/5/b/…’, false, Array) #12 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template(Array, true, false, Array) #13 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/index.php(241): bp_get_template_part(‘activity/activi…’) #14 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/template.php(785): require(‘/customers/5/b/…’) #15
    /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(222): load_template(‘/customers/5/b/…’, false, Array) #16 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(67): bp_locate_template(Array, true, false, Array) #17 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(407): bp_get_template_part(‘activity/index’, NULL, Array) #18 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-theme-compat.php(118): bp_buffer_template_part(‘activity/index’, NULL, false) #19
    /customers/5/b/d/eldamania.com/httpd.www/wp-includes/class-wp-hook.php(308): BP_Activity_Theme_Compat->directory_content(”) #20 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters(”, Array) #21 /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-core/bp-core-theme-compatibility.php(767): apply_filters(‘bp_replace_the_…’, ”) #22 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/class-wp-hook.php(308): bp_replace_the_content(”) #23 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/plugin.php(205): WP_Hook->apply_filters(”, Array) #24 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/post-template.php(255): apply_filters(‘the_content’, ”) #25 /customers/5/b/d/eldamania.com/httpd.www/wp-content/themes/twentyfourteen/content-page.php(20): the_content() #26 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/template.php(785): require(‘/customers/5/b/…’) #27 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/template.php(718): load_template(‘/customers/5/b/…’, false, Array) #28 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/general-template.php(204): locate_template(Array, true, false, Array) #29 /customers/5/b/d/eldamania.com/httpd.www/wp-content/themes/twentyfourteen/page.php(33): get_template_part(‘content’, ‘page’) #30 /customers/5/b/d/eldamania.com/httpd.www/wp-includes/template-loader.php(106): include(‘/customers/5/b/…’) #31 /customers/5/b/d/eldamania.com/httpd.www/wp-blog-header.php(19): require_once(‘/customers/5/b/…’) #32 /customers/5/b/d/eldamania.com/httpd.www/index.php(17): require(‘/customers/5/b/…’) #33 {main} thrown in /customers/5/b/d/eldamania.com/httpd.www/wp-content/plugins/buddypress/bp-blogs/bp-blogs-activity.php on line 230

    #328329
    sixf00t4
    Participant

    I’m trying to make registering on the site require a passphrase to complete the registration (a form of spam filtering / needing to be human).

    when I go through the steps, to register, the field is there, and if entered correctly, it works, but if it’s blank, or just wrong, it just kicks me to a white screen error with:

    “There has been a critical error on this website.

    Learn more about troubleshooting WordPress.”

    It would seem something is wrong with the error handling in my function. help?

    function bp_add_passphrase_field() {
    ?>
      <div class="register-section" id="profile-details-section">
        <div class="editfield">
          <label for="passphrase"><?php _e( 'What sport do the Steelers play?', 'buddypress' ); ?> <?php _e( '(required)', 'buddypress' ); ?></label>
          <input type="password" name="passphrase" id="passphrase" value="" />
        </div>
      </div>
    <?php
    }
    add_action( 'bp_before_registration_submit_buttons', 'bp_add_passphrase_field' );
    
    // Validate the custom passphrase field on form submission
    function bp_validate_passphrase_field( $result ) {
      // Set the desired passphrase
      $correct_passphrase = 'football';
    
      if ( $_POST['passphrase'] != $correct_passphrase ) {
        $result['errors']->add( 'passphrase_error', __( 'The passphrase you entered is incorrect.', 'buddypress' ) );
      }
      return $result;
    }
    add_filter( 'bp_signup_validate', 'bp_validate_passphrase_field' );
    ?>
Viewing 25 results - 1,526 through 1,550 (of 73,985 total)
Skip to toolbar