Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 7,726 through 7,750 (of 94,561 total)
  • Author
    Search Results
  • #276703

    In reply to: Site Wide Activity

    shanebp
    Moderator

    > activate site wide activity.

    Do you have the Activity Streams component activated in BuddyPress settings?

    Do you have the Site Tracking component activated in BuddyPress settings?

    Are you trying to add a custom post type to the Activity Stream?
    If so, please use gist to share your code.

    #276700

    In reply to: Hide members

    lookingahead
    Participant

    so, @shanebp forgive me if resurrecting this thread is a bad idea, but it has the information in it that i have a question on, and i figured it’s easier to use this one to talk about my issue rather than create a new thread and link back here.

    i looked at the bp-custom.php file you linked to for this issue and i’m unsure where i can find the correct code to use with it….because i am actually not trying to merely hide members from the directory, but am instead trying to hide them from the directory and ALL other users on the site. i want to make it so that the user profiles basically are unreachable…along with each user’s information.

    so i believe (not sure, but i believe) that to achieve this is i would need to make sure the profiles are handled in one of the following ways:
    – password protected from view, accessible only to admins/keymaster
    – never loaded at all somehow, via bp-custom.php
    – the template for user profiles is blanked out somehow, so information is never put in them
    – get the buddypress profile for users — when clicking on an avatar — just redirect to the main site page

    of course, i have no idea if these guesses are the way to achieve the goal i really want….which is to have only one profile used (i’m using woocommerce’s account screen for their profiles)……i have no need for a buddypress profile to be used in addition to the woocommerce account profile page that i have them already using.

    i honestly just want each user’s personal profile page in buddypress to be disabled. so they can’t see their own profile or any profile of others.

    whether that involves forwarding users to the site main page when they click on a user, or (ideally) not being clickable at all, or….oh, i don’t know. as long as no buddypress profile is viewable by any member in any way. not even by the buddypress user themselves.

    and yes — this would also include hiding member names from search.

    note: i don’t care if they can see the member list in the hidden group forums; that is the only place i care to see members listed. but i don’t want those member avatars to be clickable in a hidden group forum. not ever.

    thoughts????

    #276699
    Richard Brown
    Participant

    Hi All

    I am a little bit confused and I think I might be reading something wrong.
    I am trying to work out how to activate site wide activity. I am reading the instructions on this page:

    Post Types Activities


    but I cannot work it out.
    Sorry – can someone help please?
    Rich

    #276698
    #276697
    perteus
    Participant

    Hi, i have problem with this issue

    I have WPForo and BuddyPress (but issue was same with bbpress) And if somebody reply on topic when i have subcribion, i have in notification menu blank title. Only Date and time send and action menu. In my Database in wp_bp_notitications is

    id	13677
    user_id	3
    item_id	394
    secondary_item_id	49
    component_name   community
    component_action wpforo_new_reply
    date_notified	2018-09-24 13:48:17
    is_new		1
    #276694
    Prashant Singh
    Participant

    ohh ok got that.

    /**
    * Buddypress Members masonry
    *
    *
    * @package WordPress
    * @subpackage K Elements
    * @author SeventhQueen <themesupport@seventhqueen.com>
    * @since K Elements 1.0
    */
    
    $output = '';
    
    extract(
    shortcode_atts( array(
    'type' => 'newest',
    'member_type' => 'all',
    'number' => 12,
    'class' => '',
    'rounded' => "rounded",
    'avatarsize' => '',
    'width_height' => '',
    'online' => 'show'
    ), $atts )
    );
    //var_dump($avatarsize);
    
    $params = array(
    'type' => $type,
    'scope' => $member_type,
    'per_page' => $number
    );
    if ($rounded == 'rounded') {
    $rounded = 'rounded';
    }
    
    $avatarquery = '';
    if( $avatarsize == 'large' ) {
    $avatarsizewh = explode( 'x', $width_height );
    if( isset( $avatarsizewh[0] ) && isset($avatarsizewh[1] ) ) {
    $avatar_width = $avatarsizewh[0];
    $avatar_height = $avatarsizewh[1];
    $avatarquery = 'type=full&width='.$avatar_width.'&height='.$avatar_height.' ';
    }
    }
    
    if ( function_exists('bp_is_active') ) {
    
    if ( bp_has_members( $params ) ){
    
    ob_start();
    echo '<div class="wpb_wrapper">';
    echo '<div id="members-dir-list" class="members dir-list">';
    echo '<ul id="members-list" class="item-list row kleo-isotope masonry '.$class.'">';
    
    while( bp_members() ) : bp_the_member();
    
    echo '<li class="kleo-masonry-item">'
    .'<div class="member-inner-list animated animate-when-almost-visible bottom-to-top">'
    .'<div class="item-avatar '.$rounded.'">'
    .''. bp_get_member_avatar($avatarquery) . kleo_get_img_overlay() . '';
    if ($online == 'show') {
    echo kleo_get_online_status(bp_get_member_user_id());
    }
    echo '</div>'
    
    .'<div class="item">
    <div class="item-title">'
    .''. bp_get_member_name() . '
    </div>';
    
    echo "<div class=item-meta><p>".
    bp_member_profile_data('field=Expertise')."
    </p></div>";
    
    echo '<div class="item-meta">
    
    <span class="activity">'.bp_get_member_last_active().'</span></div>';
    
    if ( bp_get_member_latest_update() ) {
    echo '<span class="update"> '. bp_get_member_latest_update().'</span>';
    }
    
    do_action( 'bp_directory_members_item' );
    
    echo '</div>';
    
    echo '<div class="action">';
    do_action( 'bp_directory_members_actions' );
    echo '</div>';
    
    echo '</div><!--end member-inner-list-->
    ';
    endwhile;
    
    echo '';
    echo '</div>';
    echo '</div>';
    $output = ob_get_clean();
    }
    
    }
    else
    {
    $output = __("This shortcode must have Buddypress installed to work.","k-elements");
    }

    Please try this code.

    Thanks

    #276692
    israel4lincelot
    Participant

    Does not work. I think it’s because de line I’m writing is within an echo already.

    Full code:

    <?php
    /**
    * Buddypress Members masonry
    *
    *
    * @package WordPress
    * @subpackage K Elements
    * @author SeventhQueen <themesupport@seventhqueen.com>
    * @since K Elements 1.0
    */

    $output = '';

    extract(
    shortcode_atts( array(
    'type' => 'newest',
    'member_type' => 'all',
    'number' => 12,
    'class' => '',
    'rounded' => "rounded",
    'avatarsize' => '',
    'width_height' => '',
    'online' => 'show'
    ), $atts )
    );
    //var_dump($avatarsize);

    $params = array(
    'type' => $type,
    'scope' => $member_type,
    'per_page' => $number
    );
    if ($rounded == 'rounded') {
    $rounded = 'rounded';
    }

    $avatarquery = '';
    if( $avatarsize == 'large' ) {
    $avatarsizewh = explode( 'x', $width_height );
    if( isset( $avatarsizewh[0] ) && isset($avatarsizewh[1] ) ) {
    $avatar_width = $avatarsizewh[0];
    $avatar_height = $avatarsizewh[1];
    $avatarquery = 'type=full&width='.$avatar_width.'&height='.$avatar_height.' ';
    }
    }

    if ( function_exists('bp_is_active') ) {

    if ( bp_has_members( $params ) ){

    ob_start();
    echo '<div class="wpb_wrapper">';
    echo '<div id="members-dir-list" class="members dir-list">';
    echo '<ul id="members-list" class="item-list row kleo-isotope masonry '.$class.'">';

    while( bp_members() ) : bp_the_member();

    echo '<li class="kleo-masonry-item">'
    .'<div class="member-inner-list animated animate-when-almost-visible bottom-to-top">'
    .'<div class="item-avatar '.$rounded.'">'
    .''. bp_get_member_avatar($avatarquery) . kleo_get_img_overlay() . '';
    if ($online == 'show') {
    echo kleo_get_online_status(bp_get_member_user_id());
    }
    echo '</div>'

    .'<div class="item">
    <div class="item-title">'
    .''. bp_get_member_name() . '
    </div>

    <div class="item-meta"><p">
    <?php echo bp_member_profile_data('field=Expertise'); ?>
    </p></div>

    <div class="item-meta">

    <span class="activity">'.bp_get_member_last_active().'</span></div>';

    if ( bp_get_member_latest_update() ) {
    echo '<span class="update"> '. bp_get_member_latest_update().'</span>';
    }

    do_action( 'bp_directory_members_item' );

    echo '</div>';

    echo '<div class="action">';
    do_action( 'bp_directory_members_actions' );
    echo '</div>';

    echo '</div><!--end member-inner-list-->
    ';
    endwhile;

    echo '';
    echo '</div>';
    echo '</div>';
    $output = ob_get_clean();
    }

    }
    else
    {
    $output = __("This shortcode must have Buddypress installed to work.","k-elements");
    }

    #276688
    Prashant Singh
    Participant

    Ok, please check this: https://codex.buddypress.org/developer/member-types/

    BuddyPress had introduced member type concept and using this you can create multiple directories.

    There is a paid plugin https://www.buddyboss.com/product/buddypress-member-types/ that you can check. But still, the payment and free level security need some sort of customization.

    Thanks

    #276684
    israel4lincelot
    Participant

    Hi!

    I’m having some hard time with the following:

    I want to place my profile avatar (item-header-avatar) from the header to the left from my item-nav and eventually delete the header section.

    I’m editing the member-header.php file through my child-theme ( using Kleo-theme ). I thought it would be as easy as copying the div from item-header-avatar and pasting it after <ul class=”responsive-tabs”> but after loading the webpage it does not work.

    So my code looks like this:


    <?php

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

    <?php if ( sq_option( 'bp_nav_overlay', 0 ) == 1 ) : ?>
    <div id="item-nav">
    <div class="item-list-tabs no-ajax" id="object-nav" aria-label="<?php esc_attr_e( 'Member primary navigation', 'buddypress' ); ?>" role="navigation">
    <ul class="responsive-tabs">
    <div id="item-header-avatar" class="rounded">
    ">

    <?php bp_displayed_user_avatar( 'type=full' ); ?>


    <?php do_action('bp_member_online_status', bp_displayed_user_id()); ?>
    </div><!-- #item-header-avatar -->

    <?php bp_get_displayed_user_nav(); ?>

    <?php

    /**
    * Fires after the display of member options navigation.
    *
    * @since 1.2.4
    */
    do_action( 'bp_member_options_nav' ); ?>

    </div>
    </div>
    <!-- #item-nav -->
    <?php endif; ?>

    Thankyou!!

    #276679
    Prashant Singh
    Participant

    Hi,

    You can check this plugin: https://wordpress.org/plugins/buddypress-shortcodes/

    But still, it will need customization to add different fields there.

    Thanks

    Prashant Singh
    Participant

    You can check buddypress-notifications.js file and I think you need to add new listener there. Then only you can run your script just after that, but editing a core file is never recommended.

    Thanks

    #276676
    pavelmititel
    Participant

    Hi,
    I need to create two membership directory with different fields and settings in my website. Is it possible using BuddyPress and how I do that?

    Prashant Singh
    Participant

    Hi,

    You can put code like this:

    function buddypress_notifications_layout() {
    	global $bp;
    	if ('notifications'== $bp->current_component){
                  wp_enqueue_script('test', 'http://example.com/wp-content/themes/twentyfifteen- 
                  child/js/test.js', array('jquery'), '1.0', true);
            }
    }
    add_action('wp_enqueue_scripts', 'buddypress_notifications_layout');

    Thanks

    mutoha
    Participant

    For example,
    This code will be launched in before loading “Profile Page”.

    function buddypress_profile_layout() {
    	global $bp;
    	if (BP_XPROFILE_SLUG != $bp->current_component) return false;
    	wp_enqueue_script('test', 'http://example.com/wp-content/themes/twentyfifteen-child/js/test.js', array('jquery'), '1.0', true);
    }
    add_filter('wp_enqueue_scripts', 'buddypress_profile_layout');

    But,
    I want a code that launched in after loading “Notifications page”.

    Would you mind teaching me how to do that?

    Thanks.

    #276668
    Prashant Singh
    Participant

    Hi,

    There may be possibilities that wpforo is not compatible with BuddyPress so please report to all of them after checking these issues.

    Thanks

    #276667
    Prashant Singh
    Participant

    Hi,

    Please check this plugin: https://wordpress.org/plugins/buddypress-members-only/

    Hopefully, it will help you.

    Thanks

    #276665
    christopher387
    Participant

    .S.: I’m using bbPress with BuddyPress….and I’m referring to the ability for the “updates” people make ~directly~ to the group front page — not updates they make in forums elsewhere that populate in the Activity Stream automatically.

    I think, I got the solution!

    #276664

    In reply to: Child-theme style.css

    shanebp
    Moderator

    buddypress\bp-themes\ is deprecated any only included for legacy installs.

    Your child theme structure seems okay.
    But try using the register templates from here buddypress\bp-templates\bp-legacy\buddypress\members\ in your child theme.

    #276663
    envis
    Participant

    I have tried to add BuddyPress to my child-theme.
    My object is to change the layout of the register and activate form.

    So I have created the following folder structure:
    \wp-content\themes\child-theme\buddypress\members\

    In this folder I placed two files:
    index-register.php = same content as \wp-content\plugins\buddypress\bp-themes\bp-default\registration\index-register.php
    index-activate.php = same content as \wp-content\plugins\buddypress\bp-themes\bp-default\registration\index-activate.php

    This seems to work, but the layout of the forms is completely wrong, all input boxes are not aligned etc. So then I checked this forum and saw that it might be a good idea to import a stylesheet from buddypress in the child-theme folder.
    So I added the following line to \wp-content\themes\child-theme\style.css
    @import url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );

    This fixes the aligning problem, but totally destroys the full width layout of the site.
    The sidebard is destroyed and the background color is wrong etc. etc.

    Is there a way to edit the register and activate form with only overrides, and leave the default styling in tact?

    Any help appreciated!

    #276662
    casper99
    Participant

    Same problem here.
    And: I won’t get an ajax recommendation by entering @username in the field with bp-nouveau.

    It seems to be a problem with the “bp-nouveau” theme.
    With the old standard-theme, it works!

    BuddyPress 3.2.0
    WordPress 4.9.8

    #276658
    heikesworld
    Participant

    Hello
    I would like to restrict the visibility of the following tabs to only be visible to the logged in member:
    Activity – Favorites
    Activity – Friends
    Favorites – Groups
    Forums – Favorites

    To me it doesn’t really make sense that I can see the activity of other members friends, their favorites and the activity of groups that I have not yet joined.
    I read here https://codex.buddypress.org/themes/bp-custom-php/ that I can create a bp-custom.php file which I did. Now I only need the code to hide those fields form everyone except the member him/herself.
    Thank you very much!

    #276655
    hyrozen
    Participant

    The conflict comes when I add BuddyPress, the problem comes from BuddyPress.

    #276653
    Prashant Singh
    Participant

    Hi,

    These are only allowed to admins, please check this https://codex.buddypress.org/administrator-guide/group-settings-and-roles/

    If you want to do it for moderator, then you have to add capabilities using custom code which seems a bit tough right now.

    Thanks

    #276647
    Prashant Singh
    Participant
    #276645
    Prashant Singh
    Participant

    Hi,

    Please follow these links:

    Add custom filters to loops and enjoy them within your plugin

    BuddyPress Activity Filter

    Hopefully, this will help you.

    Thanks

Viewing 25 results - 7,726 through 7,750 (of 94,561 total)
Skip to toolbar