Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 5,901 through 5,925 (of 68,948 total)
  • Author
    Search Results
  • wettowel
    Participant

    Hey guys I need some help with php/buddypress.

    Im trying to create a custom member directory for my website that displays online users…I am very new to php, I have looked at the documentation but i don’t understand what i am doing wrong.

    Things i have done thus far:

    I created a new directory called “buddypress” in my theme (my theme is Divi), I then copied the “members” folder from buddypress and put a duplicate in my new “buddypress” folder within my theme. After that i renamed the “members-loop.php” file to “online-members-loop.php”, and created a new page called “online members”.

    I didn’t make any adjustments to the code at this point and tried to see if it worked… It did not, my online members page is still just blank. I then tried to edit some things within the “online-members-loop.php” file i now have. I changed “<?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) ) ) : ?>”

    to this: “<?php if ( bp_has_members( ‘type=online’ ) ) : ?>”

    I tried to load the page again annnnddd… nothing, nothing at all. It was at this point i knew i was doing something incredibly wrong because even before altering code, the members page didnt load anything.

    If anyone could help a newbie out i would greatly appreciate it 🙂

    #276710
    lookingahead
    Participant

    @vapvarun is there a plugin you can recommend that will allow me to override the ‘group directory listing’ of all groups — that page?

    i merely want to add a header image to display above the list of groups on the group directory page. that’s all.

    i’ve tried (unsuccessfully) to get my site to use its layout options on the page that displays all groups…but no, the buddypress settings are overriding my wish to place an image above the listing of all groups on the group directory page.

    i hate to ask you how to modify template files….but i think that may be what i have to do.

    is there a way to accomplish this with CSS?

    all i want is to have an image display above the list of all the groups on the ‘group directory page’….how to get that done? i do not care the method, i just want it to be there. of course the less code i can use to do this the better, and i do not want to use a plugin to achieve this, but at this point i am desperate!!

    the buddypress template seems too strong to me, i can’t seem to find a way to get the page to do what i want for a layout.

    is this better done with a plugin? it’s a buddypress template that seems unable to be altered. so i have no idea what to do next.

    thank you in advance for any and all assistance! 🙂

    #276704
    ajuuls
    Participant

    This is the old code i was talking about. Dont know if it helps to see and modify so it works somehow:
    https://buddypress.org/support/topic/autocomplete-all-users-on-the-compose-screen/

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

    #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

    #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

    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

    #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.

    #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

    #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

    #276643
    Prashant Singh
    Participant

    Hi,

    Please take a look on this ticket: https://buddypress.trac.wordpress.org/ticket/5513

    Thanks

    #276633
    heikesworld
    Participant

    Sorry I posted this in the wrong category before… I accidentally deleted a user profile field that took me hours to create (it included all countries of the world). Is there any way to recuperate it?
    There should definitely be a double check for deleting these things, a note asking me if I really want to delete it.
    I can see in this thread https://buddypress.org/support/topic/how-do-i-find-custom-profile-field-database-entries/ that there is a file called wp_bp_xprofile_data table, I have contacted my hosting provider and they have made a backup of my site. Where would they find this table? What would I have to replace in the current setup? The whole buddypress plugin? A file in the plugin folder? Can I import it to my current site? It would be best if I don’t have to revert the whole site to a previous version as I have done changes to it. Please please answer quickly!!! Thank you!!!!

    aldorr
    Participant

    You can try placing this in the functions.php of your Child Theme. Though for buddypress you might want to use bp_get_profile_field_data instead of xprofile_get_field_data.
    I’m trying to do something similar, but the fields are not showing up in my email. I have a feeling the email is getting sent before the database is updated, but for the life of me, I can’t get them… Good luck!

    #276623
    r-a-y
    Keymaster

    You’re using the Kleo theme. Can you try another theme to see if it is a problem with Kleo?

    Same report here – https://buddypress.org/support/topic/bp-registration-page-preventing-new-signup-from-same-ip-address/

Viewing 25 results - 5,901 through 5,925 (of 68,948 total)
Skip to toolbar