Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 14,276 through 14,300 (of 69,016 total)
  • Author
    Search Results
  • #233515
    screampuff
    Participant

    Thanks for the reply Henry.

    I experimented with the code but couldn’t get it to work. I believe it has something to do with if ( bp_current_action() != 'achievements' )

    I’m not sure if this is the best way to describe it, but when I previously used bp_core_remove_nav_item('achievements'); it made the /members/username/achievements outside of the buddpress page. It basically created a new page that had nothing but a list of the user’s achievements. The part it called from the plugin code. It doesn’t show the username, avatar or anything else from buddypress.

    Also thanks for that update Shane.

    #233498
    tracymisidore
    Participant

    I am using the latest wordpress and buddypress 2.1.1
    I have not tried changing my wp theme…

    #233496

    In reply to: Group Page is BLANK???

    shanebp
    Moderator
    #233492
    miguelcortereal
    Participant

    Working now!

    There’s nothing wrong with the theme suffusion, any plugin or Buddypress.

    All I had to do was perform a browser’s cache cleaning.

    Certainly there was an outdated jquery version loaded on my browser’s cache.

    Thanks a lot Henry for your concern.

    #233481

    In reply to: ajax problem

    vl4d
    Participant

    so if i have activate the buddypress
    1. page navigation is not working http://prntscr.com/60jw72 here is missing the button “more videos”
    2. http://prntscr.com/60jwhj this is Show/Hide Blog – Layouts Switcher Tool again is not working just i press and noting..
    3. i have in home page a slider with icons and plays like 2-2-2-2(next-previous) now is all 10 one below the other and more like this..

    only if i have the buddypress on is this problems (if you want i can give you the link from my page to see..)

    #233478
    Henry Wright
    Moderator

    Hi @deshmukh

    • You can add items to the activity stream using bp_activity_add(). You’d write a custom function and hook it to the relevant action which fires when a group message has been posted (see a)
    • The display_comments parameter will help you here. You’ll need to change threaded to stream (see b)

    Refs:

    a) https://codex.buddypress.org/developer/function-examples/bp_activity_add/

    b) https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/

    #233474
    Henry Wright
    Moderator

    Hi @mastodontmedia

    You’ll need to modify your members template. Check out the BuddyPress Template Hierarchy for more info on the template system.

    To show a specific profile field inside the loop, you can just do: bp_member_profile_data( 'field=the field name' );

    danbp
    Participant

    I guess something is not translated, but in this case, the email text should come in english.

    If yo use an “old” translation from a previous version, it is possible that something is missing in your translation.

    After checking both portugese version on GlotPress, (pt_PT and pt_BR) it appears that pt_PT is not translated for 2.1.x and to 38% for pt_PT in the dev version – the one actualy used by BP 2.1.1

    https://translate.wordpress.org/projects/buddypress/dev

    If you use an email plugin, ensure it is matching with WP’s mail action. Or if your theme has is own mail function, check that he uses the same wording as BP (and particulary the $s var) who fires the link.

    Code in 2.1.1 looks like this

    %1$s,\n
    \n
    \n
    \n
    Thanks for registering! To complete the activation of your account and blog, please click the following link:\n
    \n
    %2$s\n
    \n
    \n
    \n
    After you activate, you can visit your blog here:\n
    \n
    %3$s
    #233470

    In reply to: Help required

    Kir 2012
    Participant

    Hi as an update, I tried using the plugin outside of the sidebar tabs plugin and the problem is still there, so I tried using this buddypress-activity-sidebar-widget-resubmission to see if the like’s were pushed to the side in that one too, and the weren’t, that one is perfect, so i’m sure it’s the styling in sitewide activity. Any tips would be most welcome 🙂

    #233453
    BaldEmotions
    Participant

    Interesting. Might be a theming issue. Kleo is built for buddypress and bbpress, but maybe an error.
    Will have to look into that side of things.

    #233443
    miguelcortereal
    Participant

    Thanks Henry for your quick response.

    I’m using Suffusion theme.

    I’m not using template pack conpatibility provided that since BP 1.7 it just became unecessary. However I’m using in child theme /buddypress/members/members-loop.php which I’ve copied from BP-legacy and customized to have a different layout and display xprofile fields information.

    I removed this file to force the use of the original BP markup and the problem remains.

    So it’s Ajax related.

    I’ll try to check theme’s and BP’s Javascript files.

    #233436
    modemlooper
    Moderator
    #233434

    In reply to: Blog & Forum Comments

    danbp
    Participant

    Since BuddyPress 2.0.0 you can use this in bp-custom.php

    function namrons_activity_nocomment( $can_comment = true, $type = '' ) {
            if ( empty( $can_comment ) ) {
                    return $can_comment;
            }
     
            // activities which can't be commented
            $cant_comment_types = array( 
    				'new_forum_topic' => 1,
    				'new_forum_post' => 1,
            );
     
            return ! isset( $cant_comment_types[ $type ] );
    }
    add_filter( 'bp_activity_can_comment', 'namrons_activity_nocomment', 10, 2 );
    modemlooper
    Moderator
    #233431

    In reply to: Blog & Forum Comments

    modemlooper
    Moderator
    #233422

    In reply to: Notification

    Brajesh Singh
    Participant

    Hi Christian,
    no problem. If you decide to not use it again, you can use my plugin BuddyPress notification widget in that case.

    About the notice plugin,
    I will write the code tonight and put on github and link here.
    Thanks
    Brajesh

    #233416
    youmin
    Participant

    Firstly is have set 3 members type using member_type() function . then I set the roles
    Using Henry’s solution
    I.e

    
     add_role(
        'student',
        __( 'Student' ),
        array(
            'read'         => true,  // true allows this capability
            'edit_posts'   => true,
            'delete_posts' => false, // Use false to explicitly 
        )
    
    ); 

    Then by using this function I tie these roles to wo roles.

    function youmin_set_role( $user_id, $member_type, $append ) {
        $userdata = array( 'ID' => $user_id, 'role' => $member_type );
        wp_update_user( $userdata );
    }
    add_action( 'bp_set_member_type', 'youmin_set_role', 10, 3 );

    But still every user is able to create group since by default wp role ‘subscriber’ is loading and buddypress user role let’s the subscriber to create group.

    So isn’t it possible to pass an array to above role function to restrict group creation ? Or any other code snippet ?

    Take a look at https://buddypress.org/support/topic/how-to-bp_set_member_type/

    #233410
    @mercime
    Participant
    #233408

    In reply to: Notification

    Brajesh Singh
    Participant

    Hi Christian,
    There is one functionality in BuddyPress that allows it. You can see the feature as site wide notice(Mark a message as notice).

    The problem is currently, only a user with the capability ‘bp_moderate’ can send the notice. Do you want to allow this notification feature for all users or just selected few?

    #233407
    bringmesupport
    Participant

    Hi @fptquangngai,

    I am assuming you are referring to the name shown in the screenshot below:

    Screenshot

    This name you want to change is coming from the line bp_core_get_userlink( $user_id ); in the snippet you provided, which is part of the bp_message_get_recipient_tabs() function defined in the BuddyPress plugin under bp-members > admin > bp-members-functions.php.

    It seems there are two things you can do here:

    1. You can replace the bp_core_get_userlink() function in the message template (located at wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress\members\single\messages\compose.php) with your own custom function. See BuddyPress Codex for how to properly do this.

    OR

    2. Create a filter.

    Since the bp_core_get_userlink() function uses the ‘bp_core_get_userlink’ filter for the returned value, you can hook into this filter and modify it in your theme’s functions.php file (or your own custom plugin). The only problem is that since the bp_core_get_userlink() function is used in other parts of the code (notably the BuddyPress Login Widget), you will have to make it so that the custom filter is used only under certain conditions.

    Here is the custom filter I came up with. Its not refined, but serves as a working example:

    
    add_filter( 'bp_core_get_userlink', 'my_bp_filter', 10, 2 );
    function my_bp_filter( $string, $user_id ){  
        global $pagename;
        if ( isset( $_GET['r']) && $pagename === 'compose' ){
            $username = bp_core_get_username( $user_id );
            if ( $_GET['r'] === $username ) {
                $string = explode(' ', $string);
                $string = $string[0]. ' '. $string[1]. 'Alt="' . $username . '">'. $username . '</a>';
            }
        }
        return $string;
    }
    
    #233405
    @mercime
    Participant
    #233402
    Brajesh Singh
    Participant

    Hi,
    the problem is that currently the pagination links are broken.
    for example if you put the page number manually like this
    https://buddypress.org/extend/plugins/?ppage=5
    It will work. After the second page, the pagination is broken .

    I am not sure if the moderators, developers are aware.

    #233400
    bazaarocommunity
    Participant

    That’s really too bad. Looks like it has been moved to a future release instead of 2.2 unfortunately.

    Is there a way to replicate the Activity Loop, Comment Box, etc. on a separate homepage instead of using the ‘Activity Stream’ template?

    For example, the theme I’m using allows me to display the activity loop using shortcode and that doesn’t seem to cause an issue. So, I think if I could build a front-page.php template that performed the activity loop, comments, etc., it would bypass the issue.

    I tried to copy and paste the index.php content from buddypress/activity/ into a front-page.php file, and the formatting didn’t work out because I think all the references rely on the files being located in the original hierarchy.

    #233396
    Brajesh Singh
    Participant

    Hi,
    It is a bug with BuddyPress and there is still an open ticket for the purpose.
    You can see the details here

    https://buddypress.trac.wordpress.org/ticket/5087

    and here
    https://buddypress.trac.wordpress.org/ticket/5643

    At the moment, there does not seem to be a solution. The problem is that query variable ‘s’ is used for Normal WordPress search as well as BuddyPress activity search too. So, When BuddyPress activity is set as home page, the wordpress search query( which is like sitename/?s=someterm) is mistaken for BuddyPress activity search and gets handled by BuddyPress causing the trouble.

    It will need some work on the way BuddyPress catches url(I am hoping that). let us hope that it makes to the core soon.

    #233368
    peter-hamilton
    Participant

    Don’t know how to do that, but you could add extra fields to your Buddypress profiles to achieve a similar outcome.

Viewing 25 results - 14,276 through 14,300 (of 69,016 total)
Skip to toolbar