Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 18,751 through 18,775 (of 94,540 total)
  • Author
    Search Results
  • #242199

    In reply to: activity stream

    djsteveb
    Participant

    @jgob – The simple answer would be sure, there is a way, edit the css.

    there is no real way to answer your question I don’t think – there are no details. What is messed up? What is cleaner? Who decides these things?

    What you are asking is highly dependent on which theme you are using.

    As is suggested here: https://buddypress.org/support/topic/when-asking-for-support-2/

    Best to have the info so people may take a look.

    Without that info – right click on your pictures, inspect elemment, go to your css and change things is all I can tell ya.

    #242196
    Easy Web Scripts
    Participant

    Could anyone tell me how to get a better look and feel for profile areas with BuddyPress?

    Not sure how to get rid of sidebars for profile area, How to allow buddyPress custom header to work as it should etc.

    Changing profile tags to icons would be a huge plus.

    This is what I am limited to

    How could this become something remotely close to this one:

    http://seventhqueen.com/themes/kleo/members/kleoadmin/

    Thank you in Advance

    #242191
    Garrett Hyder
    Participant

    Hi @shanebp,

    Sorry for the confusion, I’ve created a bp_group_list_managers that’s a merge of bp_group_list_admins and bp_group_list_mods to provide a single consolidated listing.

    function bp_group_list_managers($group=false) {
        global $groups_template;
        if(empty($group)) {
            $group =& $groups_template->group;
        }
    
        // fetch group admins if 'populate_extras' flag is false
        if (empty($group->args['populate_extras']) || true) {
            $query = new BP_Group_Member_Query(array(
                'group_id'   => $group->id,
                'group_role' => 'admin',
                'type'       => 'alphabetical',
            ));
    
            if (!empty($query->results)) {
                $group->admins = $query->results;
            }
        }
    
        // fetch group mods if 'populate_extras' flag is false
        if (empty($group->args['populate_extras']) || true) {
            $query = new BP_Group_Member_Query(array(
                'group_id'   => $group->id,
                'group_role' => 'mod',
                'type'       => 'alphabetical',
            ));
    
            if (!empty($query->results)) {
                $group->mods = $query->results;
            }
        }
    
        $admins = (array)$group->admins;
        $mods = (array)$group->mods;
    
        usort($admins, 'bp_group_member_sort');
        usort($mods, 'bp_group_member_sort');
    
        $group->managers = array_merge($admins, $mods);
    
        if (!empty($group->managers)) { ?>
            <ul id="group-managers">
                <?php foreach((array)$group->managers as $manager) { ?>
                    <li>
                        <a href="<?php echo bp_core_get_user_domain($manager->user_id, $manager->user_nicename, $manager->user_login); ?>"><?php echo bp_core_fetch_avatar(array('item_id' => $manager->user_id, 'email' => $manager->user_email, 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname($manager->user_id)))) ?></a>
                    </li>
                <?php } ?>
            </ul>
    <?php } else { ?>
        <span class="activity"><?php _e( 'No Managers', 'buddypress' ) ?></span>
    <?php }
    }

    As you can see I set the type here to alphabetical and was first confused why it did nothing then I realized the BP_Group_Member_Query’s were never even called as I guess populate_extras was set so not empty. This meant that the $group->admins and $group->mods came from the global $group_template->group which wasn’t ordered. I’m curious how to make that global $group_template->group admin/mod lists could be alphabetically ordered by default.

    For now I just amended my method to simply force the BP_Group_Member_Query’s to be used instead which has allowed for the alphabetical ordering.

    Hope that clears things up.

    Thanks

    #242188
    shanebp
    Moderator

    BP_Group_Member_Query is a class extension of BP_User_Query
    Take a look at the code examples here:

    BP_User_Query

    #242171
    shanebp
    Moderator
    #242168
    WTHeel
    Participant

    I just did, but it did not work. I looked at the function, saw $groups_template, and added the following inside and outside of the loop:
    var_dump($groups_template);

    Here’s the code from buddypress.php:

    <?
    /*
    Template Name: BuddyPress
    */
    
    get_header(); 
    $plp_user_check = plp_user_check($current_user);
    	var_dump($groups_template);
    	echo "<br>Course Path: " . bp_get_group_slug();
    include("forums-header.php");
    ?>
    
    <?	if( have_posts() ): ?>
    
    		<? 	while( have_posts() ): the_post();
    				var_dump($groups_template);
    				echo "<br>Course Path: " . bp_get_group_slug();
    				the_content();
    			endwhile; 
    		?>
    
    	<? else: ?>
    
    		<div id="post-404" class="noposts">
    
    			<p><? _e('None found.','example'); ?></p>
    
    		</div><!-- /#post-404 -->
    
    	<? endif; wp_reset_query(); ?>
    
    </div><!-- /#bodyContainer
    <?	get_footer(); ?>

    The first var dump just returned “NULL”. The second one returned:

    object(stdClass)#644 (1) { ["group"]=> NULL }

    #242153

    In reply to: Activating Memberships

    djsteveb
    Participant
    #242150
    WTHeel
    Participant

    Hello,

    As I have read here, BP modifies the $wp_query object, rendering several WordPress functions useless inside the original loop.

    However, I need to access the page slug.

    I’m on http://www.domain.com/group/name-of-group/ and I need to access “name-of-group”. Any suggestions? For what it’s worth, I am trying to do so in buddypress.php right after header() — in the loop or out of the loop, it doesn’t matter. I just don’t want to resort to parsing the URL.

    Thank you.

    #242144

    In reply to: Where i

    jessy
    Participant
    #242142

    In reply to: Where i

    jessy
    Participant

    How to customize “profile/change-avatar/” page?

    I have used “index-action-change-avatar.php” template, but javascript is not loaded and you can not crop image by your needs. I have copied all the content from /profile/change-avatar.php default buddypress template directory.

    Thank you.

    #242136
    dwommack
    Participant

    Wordpress 4.2.2 – BuddyPress Version 2.3.2.1

    I cannot understand how to set up Memberships, Registration. Tutorials don’t seem to address this.

    Please give me link to documentation.

    I go to Settings > BuddyPress > Pages & I see these instructions/fields to fill in, but no clue as to what all this means:

    Directories
    Associate a WordPress Page with each BuddyPress component directory.
    Members > PAGE NAME
    Registration
    Associate WordPress Pages with the following BuddyPress Registration pages.
    Register > PAGE NAME
    Activate > PAGE NAME

    BuddyBoss support says: Please create a page for each option and then you can select those pages for each option. Create the Pages first , after that you will get options to select them.

    This is clear as mud.

    #242125
    Whiskyharry
    Participant

    in an older installation I did the same (I hope so) and it works fine.
    Yesterday I had some issues with the profile header and I reinstalled buddypress. Now, some translations are missing…

    #242122
    Whiskyharry
    Participant

    In my the7.2-Theme I have several templates for using them for pages and the blog.
    But I do not really unerstand the concept behind buddypress:

    • I have to create a page and then I assign it to members/groups/activity… but as I create the PAGE, there is a sidebar. WHy doesn’t buddypress use/show this sidebar?
    • It’s the same issue with the footer widget area (ok, it’s the same as a siebar)
    • Why do I have to extend the functions.php to be able to use the sidebars?
    • And what are these functions (posted above) do?
    Whiskyharry
    Participant

    Hi,
    On the page https://codex.buddypress.org/translations/deutsch/ I found a link to the translation files for using buddypress in german.

    I downloaded them (but they seem to be relatively old).

    Then I uploaded them into the following folders.

    /plugins/buddypress/bp-languages/
    wp-content/languages
    wp-content/languages/buddypress/
    wp-content/languages/plugins

    Last I added define( ‘WPLANG’, ‘de_DE’ ); to my wp-config.php

    Some words are translatet, some are not.

    Is there a better way?

    #242120
    Whiskyharry
    Participant

    oh sorry:
    I’m using the7.2 from themeforrest.

    They’ve sent me some snippets to include in the themes functions.php, but I don’t know if I’ve included them correctly. But after including them, I had the sidebar on several pages (e.g. the member-subpages), but still missing on

    • all groups
    • single group
    • members list (first page)
    • group list (first page)
    • activity list (first page)

    They said it was a kind of “blueprint”, so I added the lines – without really understanding what I’m doing. As a result, it seems to work on some pages – but not on all:

    function dt_bbypress_template_config1()
    {
    if( is_bbpress() )
    {
    $pagid = 35615; //sidebar, footer settings of the page id given will be applied to user profiles
    $config = presscore_get_config( );
    presscore_config_base_init( $pagid );

    }
    }
    add_action( ‘get_header’, ‘dt_bbypress_template_config1’, 10 );

    function dt_buddypress_template_config2()
    {
    if( bbp_is_single_user() ){
    $pagid = 35615; //sidebar, footer settings of the page id given will be applied to user profiles
    $config = presscore_get_config( );
    presscore_config_base_init( $pagid );
    }
    }

    add_action( ‘get_header’, ‘dt_buddypress_template_config2’, 10 );

    function dt_bbypress_template_config3()
    {
    if( is_bbpress() )
    {
    $pagid = 35609; //sidebar, footer settings of the page id given will be applied to user profiles
    $config = presscore_get_config( );
    presscore_config_base_init( $pagid );

    }
    }
    add_action( ‘get_header’, ‘dt_bbypress_template_config3’, 10 );

    function dt_buddypress_template_config4()
    {
    if( bbp_is_single_user() ){
    $pagid = 35609; //sidebar, footer settings of the page id given will be applied to user profiles
    $config = presscore_get_config( );
    presscore_config_base_init( $pagid );
    }
    }

    add_action( ‘get_header’, ‘dt_buddypress_template_config4’, 10 );

    #242113
    djsteveb
    Participant

    I’ve seen a couple examples in some comments, like:

    To prevent new entries, try adding this to your theme functions.php
    remove_action( ‘bp_register_activity_actions’, ‘friends_register_activity_actions’ );

    Can someone add a page to explain for examples,maybe a list of things can be blocked and the underscored code for each?

    One bp install I am using I current set the old ‘block activity strames’ plugin to block

    friendship_created, blogpost_liked, new_member, joined_group

    but I’d like to block “changed profile picture” as well
    (it would REALLY awesome to allow one instance of changed profile picture to show in stream, but have something determine that profile pic was changed more than once in last 24 hours, then only show one instance (instead of the dozen added activity “UserX changed profile pic a dozen times)

    My old non-updated version of buddypress activity block shows these options:

    updated_profile
    new_blog_comment
    new_blog
    rtmedia_update
    friendship_created
    blogpost_liked
    joined_group
    created_group
    activity_liked
    new_avatar
    bp_album_picture
    new_member
    new_blog_post

    I am not sure if this is what could/should be added / append to the code that Shanbp had suggested above, and if so how.

    Going back through old threads, I see that there was a post about:

    Recently introduced function bp_parse_args allows since 2.0 to modify easely your templates. Faster and lighter than a plugin.

    Is the parse args better, or is that older and the current preferred method is to use a them functions.php?

    Is one lighter on resources than the other..
    …confused and not sure what method to use, and how to properly use it.

    #242108
    djsteveb
    Participant

    @ronz – have you poked around https://codex.buddypress.org/themes/ ?

    I am would not bet things are as up to date as they could be, but I think there is some useful info there.

    what do you mean “page is visible” to user logged in?

    #242107
    5high
    Participant

    I know this is a VERY old thread but it’s exactly the same problem: https://buddypress.org/support/topic/error-composing-messages/ – may be helpful if you’re well versed in BP?

    #242106
    djsteveb
    Participant

    @whiskyharry – what theme are you using?

    with all of my buddypress sites I have the same sidebar on all pages.

    #242094
    Whiskyharry
    Participant

    Hi,
    I have a very strange Problem!
    In the <div id=”item-header-content”> section there Should be a <h2 class=”user-nicename”></h2> entry with @whiskyharry, for example.
    In my installation, I’m missing this since today.

    What did I do?
    I’ve installed two plugins “BP Display Name” and “Buddypress Usernames Only”

    Why did I do that?
    In the registration process, there are some fields to be filled out and they are organized in two columns:
    Username, Emailaddress and Password ( I think these are for WP ) and another Name ( I think this is the nickname for Buddypress )

    I entered the following:
    username “Snowwhite”
    name “Sleeping Beauty”

    In the tables, I found the entries as follows:
    wp_xy_users:
    user_login: Snowwhite
    user_nicename: snowwhite
    display_name: Sleeping Beauty

    wp_xy_usermeta:
    first_name: Sleeping
    last_name: Beauty
    nickname: Sleeping Beauty

    wp_xy_bp_xprofile_data:
    field_id 1: Sleeping Beauty

    Then I log-in:
    URL: snowwhite
    Login-Widget: Sleeping Beauty
    Header: Snowwhite
    Breadcrumb: Snowwhite
    in the Profile Name field: Sleeping Beauty

    Then I Change my Name (expected: I change the nickname) to “Tarzan”
    URL: snowwhite
    Login-Widget: Sleeping Beauty
    Header: Snowwhite
    Breadcrumb: Snowwhite
    in the Profile Name field: Sleeping Beauty

    When I log in and change my Profile-Name to “Tarzan”, I find the following:
    URL: snowwhite
    Login-Widget: Tarzan (that should be the Username?)
    Header: Tarzan
    Breadcrumb: Tarzan
    in the Profile Name field: Tarzan

    wp_xy_users:
    user_login: Snowwhite
    user_nicename: snowwhite
    display_name: Tarzan

    wp_xy_usermeta:
    first_name: Tarzan
    last_name:
    nickname: Tarzan

    wp_xy_bp_xprofile_data:
    field_id 1: Tarzan

    So, with changing the nickname, I changed first_name, last_name, nickname and the LOGIN_NAME

    So I ask me some questions:
    1. Is this the correct behavor?
    2. What do I really change?
    3. Where is my “item-header-content” ?

    Can anybody hep me? I’m very confused 🙁

    #242091
    ronz
    Participant

    Is there a website where buddypress functions are listed ?

    #242088
    shanebp
    Moderator

    Try this…

    Make a template overload of this file:
    bp-templates\bp-legacy\buddypress\members\single\profile\profile-loop.php

    In that new file, change this:
    <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>

    to this, assuming the id of your base group is 1

    <?php while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
        <?php if( bp_get_the_profile_group_id() != 1 ) : ?>

    And add an <?php endif; ?> before the <?php endwhile; ?> near the bottom of the page.

    Do the same for:
    bp-templates\bp-legacy\buddypress\members\single\profile\edit.php

    #242083
    poco06
    Participant

    Hello,
    I have a site where members can define their gender (thanks to a specific xprofile field, and depending of that, have a specific xprofile field to define their age.
    ie : member can be male or female or couple. If they define themself as male, the have to fill the xprofile ‘male_age’. If female, then ‘female_age’ and if couple, both ‘male_age’ and ‘female_age’ should be filled.
    The issue there is that I need to make these fields (male_age and female_age) required. If I do this, the 2 fields are required for all members, which is not what I want.
    What could be done to adapt the right situation?
    Wordpress 4.2.2
    Buddypress 2.2.3.1
    Thanks
    Pat

    #242080
    shanebp
    Moderator

    >…the page I created for the Members.

    How did you create that page?
    You should just create a page titled ‘Members’. The page should be blank.
    You then assign that page to the Members component through Settings > BuddyPress
    You should then be able to see a listing of all active members by visiting:
    …yoursite.com/members/

    Or is your issue just about navigation?

    #242076
    sarahdaglish
    Participant

    I’m sorry for the very newbie type question but my Buddypress is giving me trouble. I have set up buddypress as an intranet site for members of staff only, and bolted onto our external website which is designed through wordpress.

    I originally had a lot of difficulty seeing how my buddypress members could see a directory for all members or all groups. I realise that in order to see this list they need to go to the page I created for the Members. I have downloaded the Buddypress Custom Profile Menu and tried to add the members page to the directory that way, but it just shows the members list for that user (ie those that they are already friends with). When I tried adding a direct link to the members page it tends to add the members name into the URL, which again removes any members that aren’t friends with the user. Can anyone help me see where I am going wrong?

    Many thanks in advance for your help!

Viewing 25 results - 18,751 through 18,775 (of 94,540 total)
Skip to toolbar