Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 21,501 through 21,525 (of 94,569 total)
  • Author
    Search Results
  • #233511
    screampuff
    Participant

    Hello, I have Buddypress and Achievements for WordPress (the author is not active or providing support). This is an internal company site and I want to make the Achievements private so that users can only see their own achievements.

    I’ve figured out how to make the xprofile Achievements tab only appear for the current user and admins with this code:

    function hide_achievements_from_users() {
    global $bp;
    if ((bp_loggedin_user_id() == bp_displayed_user_id()) || (current_user_can('manage_options'))){
    return;
    }
    bp_core_remove_nav_item('achievements');
    }
    add_action( 'bp_setup_nav', 'hide_achievements_from_users', 99 );

    However a user can still browse other user’s achievements by manually typing out the url like http://mysite.com/members/username/achievements/

    Is there a way I can make this section of user’s profiles private so that only they (and admins) can view it? Users should still be able to visit another user’s profile, it is only the /achievements/ at the end of the URL which needs to be blocked.

    chatty24
    Participant

    Hi

    I am running buddypress 2.1.1
    I have two problems –

    1. Crop function is not fitting in the web browser. How can I make it so that it fits the web browser screen. I found this solution but was unable to figure out where should I put the code. Else, how can I disable the crop feature and just show a box with defined dimensions which user would be able to move and set a location if the image is bigger than the box.

    2. Buddypress is not accepting capital letter file formats of avatar in the default android browser, however it is working on browsers like Google Chrome for android. Is there any specific reason for why is it happening?

    Thanks

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

    #233491
    tracymisidore
    Participant

    I just installed buddypress. I have set all my pages and settings and added the groups and activity to my menu. when i go to the front end and click on groups, it has a button that says “create group” when I click on that it goes to a blank page???

    How do I set up the groups? How do I set up the forum topics etc?? how do I set up the activity??

    please help! lol
    Tracy.

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

    #233479
    #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 🙂

    Neosnc
    Participant

    After searching for a plugin to import WordPress user data into BuddyPress, I ran across this helpful but dated article on the topic: http://aendrew.com/content/importing-proprietary-user-database-buddypress-boss/

    Using that as a guide I wrote 3 MySQL queries to import First Name, Last Name and Description from standard WordPress user meta data. I also added empty string checks and an if exists check to prevent duplicate data. Always make a backup first and use as needed.


    /* first name import */
    INSERT INTO wp_bp_xprofile_data (field_id, user_id, value, last_updated)
    SELECT '2' AS field_id, wp_usermeta.user_id AS user_id, wp_usermeta.meta_value AS value, NOW() AS last_updated
    FROM wp_usermeta
    WHERE wp_usermeta.meta_key='first_name'
    AND TRIM( wp_usermeta.meta_value ) != ''
    AND NOT EXISTS (
    SELECT value FROM wp_bp_xprofile_data WHERE field_id='2' AND
    wp_bp_xprofile_data.user_id=wp_usermeta.user_id
    );

    /* last name import */
    INSERT INTO wp_bp_xprofile_data (field_id, user_id, value, last_updated)
    SELECT '3' AS field_id, wp_usermeta.user_id AS user_id, wp_usermeta.meta_value AS value, NOW() AS last_updated
    FROM wp_usermeta
    WHERE wp_usermeta.meta_key='last_name'
    AND TRIM( wp_usermeta.meta_value ) != ''
    AND NOT EXISTS (
    SELECT value FROM wp_bp_xprofile_data WHERE field_id='3' AND
    wp_bp_xprofile_data.user_id=wp_usermeta.user_id
    );

    /* description import */
    INSERT INTO wp_bp_xprofile_data (field_id, user_id, value, last_updated)
    SELECT '12' AS field_id, wp_usermeta.user_id AS user_id, wp_usermeta.meta_value AS value, NOW() AS last_updated
    FROM wp_usermeta
    WHERE wp_usermeta.meta_key='description'
    AND TRIM( wp_usermeta.meta_value ) != ''
    AND NOT EXISTS (
    SELECT value FROM wp_bp_xprofile_data WHERE field_id='12' AND
    wp_bp_xprofile_data.user_id=wp_usermeta.user_id
    );

    #233466
    vl4d
    Participant

    hello. i put the buddypress in my website and after activate the plugin all my stuff in site is not working because is ajax based (like navigation images plugins..) so how to fix what??

    #233463

    Topic: Help required

    in group forum Requests & Feedback
    Kir 2012
    Participant

    Hi there,
    I’m looking for help with a couple of specific bits

    I’m using sitewide activity widget in tabs using Sidebartabs plugin, and I would like to have an activity stream for only the logged in user in the one tab, and only friends in the other.

    Has anyone done this before?

    Also I am using plugin Wp-ulike and when someone like’s one of my posts, on the sidebar with the activity, an icon shows up with their user (or user-tooltip?), but that icon goes off screen. I don’t mind the icon showing up if I can get it to sit in the middle, but it goes off to the right and you can’t see the name in the bubble etc. I’m sure this must be so easy to change in the style sheet wp-ulike.css or swa.css but it’s beyond me :-/

    Can anyone help me? My site is locked for devel but I can supply a log in.
    Many thanks in advance 🙂
    Kirsty

    @sbrajesh
    @Alimir

    #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
    #233428
    namrons
    Participant

    In Buddypress settings there is unfortunately only one setting that controls the ability to comment on both blog and forum posts which appear on the activity stream. There is the check box “Allow activity stream commenting on blog and forum posts”.
    My issue is that I require activity stream commenting on blog posts but do not want them on forum posts. Logically, there is no reason why there should be one setting controlling both. Is it perhaps possible to separate the two so that users have this freedom?

    #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
Viewing 25 results - 21,501 through 21,525 (of 94,569 total)
Skip to toolbar