Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 12,076 through 12,100 (of 68,950 total)
  • Author
    Search Results
  • #243631
    Ben Riga
    Participant

    Thanks for the quick response, shane.

    I think I may need some more remedial help though as in trying to do that I broke the page.

    I am using the twentyfourteen theme as a base so have created a child of that called twentyfourteen-child.

    To override the home.php page like you suggested. I created a new file at:
    twentyfourteen-child\buddypress\members\single\home.php

    Even just copying the exact same file over from the buddypress members\single folder broke the page (lost most of the styling and item body and left sidebar etc) so clearly I’m doing this wrong.

    I think I need to have a better idea of how template overriding works. I’ve searched through the codex but have not been able to find anything that helps. What’s the best place to learn more about that? A how-to tutorial or something like that would be great.

    Thanks again for the help and support,
    Ben

    #243624
    danbp
    Participant

    Which theme do you use ? Seems you renamed yours to Test, and i was unable to find it somewhere.
    Also, do you use a cache plugin ? If it’s the case, disable it or clear it while testing CSS.

    I cannot put it in maintenance mode

    This is not necessary if you had a local copy. I strongly recommend you do that if you want to manage correctly a high traffic site.

    You can use a child-theme for your theme, not for BP which has no theme since 1.9. The one called bp-default is no more maintained and is only in for temporary backward compatibility for (very) old BP site.

    BP use templates, which are stored in bp-templates/bp-legacy/buddypress/. Those templates are tailored to fit with almost any recent (and decently coded) themes.

    Creating a child theme is explained on hundreds of sites and on WP’s codex. Additionnal infos for BP are given here.

    #243621
    Henry Wright
    Moderator

    Your theme might be Customizing BuddyPress Avatars?

    #243617
    shadow_boi
    Participant

    okay, i tried the following:

    tag user in BuddyPress Activity, user could receive notification
    tag user in bbpress forum post/comment, user could not receive notification

    it seems like tagging user in forum does trigger notification, can anyone here confirm if this is expected behaviour?

    if i want to trigger notification when user is tagged in forum post/comment, what should i do? thanks

    #243615
    CreationP
    Participant

    I’m trying and trying and can’t find any lead on that.

    The codex is complex and I cannot understand the child theme concept. Is it a child theme of the bp or a child theme of the theme I use (explicit)? If it is of the theme I use how can i make it to incorporate buddypress?

    To add to the problems, alt-tab is a website that receives 1000+ visits/day and I cannot put it in maintenance mode in order to work on my leisure.

    I hate to ask you that, and I know you have better things to do rather than answering questions, but can you please take me by the hand and lead me to solving this problem as I am unable to solve it on my own. Especially in a live environment.

    When I firebug the “Members” title in the alt-tab.gr/members page I get the following:


    I am at a loss here…

    #243612
    danbp
    Participant

    Hi @djsteveb,
    I don’t have that tab under menus on my other bp install Really ? Have you activated buddypress in screen options ? Just in case of… πŸ˜‰

    BuddyPress Links in WordPress Menus

    #243611
    shadow_boi
    Participant

    thanks for you reply.
    i thought that is buddypress feature so i asked here.
    i have also posted the same thing in bbpress now. hopefull will get an response.

    #243605
    djsteveb
    Participant

    @dayan89 – with one of my bp installs I can go to appearance -> menus.. select main-menu (or topmenu, or whatever you called the one you want on top) – click select.. then on the left side I had a tab for buddypress.. with cool links for dynamic links like “my profile” – login.. etc..

    click to add to your menu, save..
    easy now these days..

    for some reason I don’t have that tab under menus on my other bp install – so your setup may vary.

    #243603
    shaunik
    Participant

    Thanks for advice, I’ll look into script available on forum.
    Any reviews on this plugin

    BuddyPress Members Import

    #243601
    shanebp
    Moderator

    You want to remove navigation from all profile pages?
    Create a template overload of this file:
    bp-templates\bp-legacy\buddypress\members\single\home.php

    And remove this div: <div id="item-nav">

    #243599
    danbp
    Participant

    h1.main-title, h1.page-title doesn’t exist. Why don’t you try the example at first ?

    Also, don’t apply template models to BP pages. These are only placeholders used internally, not ordinary WP pages.

    Follow some guidelines on Codex before getting in more trouble.

    #243598
    danbp
    Participant

    Answer from atfpodcast is here.

    #243597
    nolls
    Participant

    @kookidooki
    where had you downloaded the plugin Skype for Buddypress?

    #243572

    In reply to: PHP 7.0 compatibility

    danbp
    Participant

    @vinzen, wait a little or accept yes and no ;-). PHP 7.0.0 RC 1 is out since 2015/08/21…. RC version should not be used on production sites.

    WordPress and BP are both guaranted to work only on the latest stable release of anything needed to get them to work. But you can test at your own risk, RC’s and trunk version are avaible for that.

    php7 has a projected release date of November 2015. Next WP release is scheduled in december 2015. And BP around october…

    WP devs are already using php7 for unit test. More from here (WP) and here (BP).

    #243548
    danbp
    Participant

    Idea Stream use the new post type activity introduced in BP 2.2

    Post Types Activities

    #243538
    coffeywebdev
    Participant

    Take a look at this code, I think it may be helpful for you…

    I created a function vp_add_group_activity_comments() that hooks to the ‘post_comment’ action, so when a user posts a comment an activity stream item is created and added to their group’s feed.. (on my site users can only be in one group at a time)

    It’s all about what you set for the $args array….

    
    function vp_add_group_activity_comments($comment_id){
    
    $comment = get_comment( $comment_id );
    GLOBAL $wpdb;
    $user_id = get_current_user_id();
    $user_info = get_userdata( $user_id );
    
    $current_user_group_id = $wpdb->get_var("SELECT group_id FROM ".$wpdb->prefix."bp_groups_members WHERE user_id = '".(int)$user_id."'");
    
    $comment_action = "<a href='".site_url()."/members/".$user_info->user_login."'>".$user_info->first_name." ".$user_info->last_name."</a> posted a comment on <a href='".get_permalink($comment->comment_post_ID )."'>".get_the_title($comment->comment_post_ID)."</a>";
    
    // arguments to pass to the bp_activity_add() function
    $args = array(
    'action'            => $comment_action,                     // The activity action - e.g. "Jon Doe posted an update"
    'content'           => $comment->comment_content,                     // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!"
    'component'         => 'groups',                  // The name/ID of the component e.g. groups, profile, mycomponent
    'type'              => 'activity_update',                  // The activity type e.g. activity_update, profile_updated
    'primary_link'      => get_permalink($comment->comment_post_ID ),                     // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink)
    'user_id'           => $user_id,  // Optional: The user to record the activity for, can be false if this activity is not for a user.
    'item_id'           => $current_user_group_id,                  // Optional: The ID of the specific item being recorded, e.g. a blog_id
    'secondary_item_id' => $comment->comment_ID,                  // Optional: A second ID used to further filter e.g. a comment_id
    'recorded_time'     => bp_core_current_time(), // The GMT time that this activity was recorded
    'hide_sitewide'     => 0,                  // Should this be hidden on the sitewide activity stream?
    'is_spam'           => 0,                  // Is this activity item to be marked as spam?
    );
    
    $add_activity = bp_activity_add($args);
    
    // Update the group's last activity
    groups_update_last_activity( $current_user_group_id );
    
    return true;
    }  
    add_action('comment_post', 'vp_add_group_activity_comments' );
    
    #243537
    coffeywebdev
    Participant

    Take a look at the code below to see how I use the post_comment action to hook my function vp_add_group_activity_comments(), which creates an activity stream item when a user posts a comment and adds it to their group’s activity stream… This is just what we are doing for our site, but if you look at the code you should be able to figure out how to do it for your site….

    
    function vp_add_group_activity_comments($comment_id){
    
    $comment = get_comment( $comment_id );
    GLOBAL $wpdb;
    $user_id = get_current_user_id();
    $user_info = get_userdata( $user_id );
    
    $current_user_group_id = $wpdb->get_var("SELECT group_id FROM ".$wpdb->prefix."bp_groups_members WHERE user_id = '".(int)$user_id."'");
    
    $comment_action = "<a href='".site_url()."/members/".$user_info->user_login."'>".$user_info->first_name." ".$user_info->last_name."</a> posted a comment on <a href='".get_permalink($comment->comment_post_ID )."'>".get_the_title($comment->comment_post_ID)."</a>";
    
    // arguments to pass to the bp_activity_add() function
    $args = array(
    'action'            => $comment_action,                     // The activity action - e.g. "Jon Doe posted an update"
    'content'           => $comment->comment_content,                     // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!"
    'component'         => 'groups',                  // The name/ID of the component e.g. groups, profile, mycomponent
    'type'              => 'activity_update',                  // The activity type e.g. activity_update, profile_updated
    'primary_link'      => get_permalink($comment->comment_post_ID ),                     // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink)
    'user_id'           => $user_id,  // Optional: The user to record the activity for, can be false if this activity is not for a user.
    'item_id'           => $current_user_group_id,                  // Optional: The ID of the specific item being recorded, e.g. a blog_id
    'secondary_item_id' => $comment->comment_ID,                  // Optional: A second ID used to further filter e.g. a comment_id
    'recorded_time'     => bp_core_current_time(), // The GMT time that this activity was recorded
    'hide_sitewide'     => 0,                  // Should this be hidden on the sitewide activity stream?
    'is_spam'           => 0,                  // Is this activity item to be marked as spam?
    );
    
    $add_activity = bp_activity_add($args);
    
    // Update the group's last activity
    groups_update_last_activity( $current_user_group_id );
    
    return true;
    }  
    add_action('comment_post', 'vp_add_group_activity_comments' );
    
    #243532
    danbp
    Participant
    Henry Wright
    Moderator

    You will need to go through all of the BuddyPress communication channels available:

    1. Private messaging
    2. Public messaging

    etc

    Then when a user attempts to send a message to a user they have not been assigned to, disallow it to happen via one of the hooks BuddyPress makes available.

    With reference to assigning a user to a user, this could be achieved via user meta.

    #243529
    Bezuhov
    Participant

    Just tested with new install of only wordpress and buddypress, all latest versions. Posts and posts comments do not appear in activity stream, sadly.

    It seems there is some inherent bug in the buddypress or something.

    #243526
    Bezuhov
    Participant

    Just tested the snippet provided by @danbp, doesn’t work for me, as nothing shows in the activity stream.

    Will do a clean install, with fresh DB, and only wordpress with buddypress, to see if there is something wrong with my current configuration.

    Will post updates, as i am willing to come to the bottom of this issue for the whole community. πŸ™‚

    #243524
    Bezuhov
    Participant

    djsteveb: site indexing is enabled, yes, googled all the topics regarding this issue, but found (for now) now solution for my problem, will explore further, hope you do too πŸ™‚

    danbp: thanks for the link, read it, and will wait a little bit longer to see if the posts and comments appear in the activity stream after a while

    Generally speaking, is this a bug of the buddypress, or something wrong with my site, as i am seeing that this works just fine on other sites?

    #243520
    danbp
    Participant
    #243519
    danbp
    Participant

    Hi @muskokee,
    BP nav menu code is in bp-core-template.php:3050 to EOF.

    To change the position of an item on profiles page, use this from within bp-custom.php
    Position is defined by the numeric value:

    function bpfr_profile_menu_tab_pos(){
    global $bp;
    $bp->bp_nav['activity']['position'] = 30;
    $bp->bp_nav['forums']['position'] = 50;
    $bp->bp_nav['profile']['position'] = 25;
    $bp->bp_nav['messages']['position'] = 10;
    $bp->bp_nav['notifications']['position'] = 40;
    $bp->bp_nav['friends']['position'] = 20;
    $bp->bp_nav['groups']['position'] = 60;
    }
    add_action('bp_setup_nav', 'bpfr_profile_menu_tab_pos', 100);

    You can also add some condition on the template. Ie

    if ( is_user_logged_in() ) :
       your custom menu stuff
    else
       something for non logged user
    endif;

    Other reference: https://codex.buddypress.org/themes/members-navigation-menus/

    #243518
    danbp
    Participant
Viewing 25 results - 12,076 through 12,100 (of 68,950 total)
Skip to toolbar