Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 526 through 550 (of 745 total)
  • Author
    Search Results
  • #111267
    chrisreg1
    Member

    R-a-y – that doesn’t work for me unfortunately.

    I am using the:
    – latest version of WordPress 3.1.2
    – Child theme of Suffusion

    And the latest plugins for Suffusion BP Pack (1.02), BuddyPress (1.2.8), and s2Member (3.5.7).

    Using the s2Member plugin settings, I have set my site to redirect users to a “Member Home” page upon logging in. This function used to work before I added BuddyPress + Suffusion BP Pack. However, since adding those plugins, I initially could not figure out why it no longer worked upon logging in. Currently, when a user logs in, the site just directs them to the main page (the default WordPress & site address). I disabled the other plugins and determined that it was BuddyPress handling the redirection.

    So I made a bp-custom.php and added that code just to see if I can test the redirection function itself and it didn’t work. I even tweaked his code as well to try add_filter(“login_redirect”,”bpdev_redirect_to_profile”,100,3); Did I need to do anything else to activate the plugin or did it automatically run and link to BuddyPress?

    Ultimately, it seems like I may have to implement a technique that onyx mentioned or something like http://www.thinkinginwordpress.com/2009/12/tweak-your-buddypress-login-to-redirect-to-the-page-user-was-viewing-while-login/

    Does anyone have any thoughts? Thanks!

    #111239
    Hugo Ashmore
    Participant

    for the record I have just done this with your page and it works as expected!

    `
    /*
    WOO CUSTOM STYLESHEET



    Instructions:

    Add your custom styles here instead of style.css so it
    is easier to update the theme. Simply copy an existing
    style from style.css to this file, and modify it to
    your liking.

    */
    #activity-stream .activity-content .activity-inner {background: red;}
    `
    Use this stylesheet they provide for most of your customisations rather than squirting them into the head.

    #111230
    nit3watch
    Participant

    You can thank Boone for the answer below. Replace scope=groups with what ever filter you’d like to apply.

    Changing the tabs is an appearance issue; it doesn’t have any effect on the activity items shown.

    Try the following function in your functions.php or bp-custom.php. The logic is this: If the query string is empty (as it is when you first visit the activity page) and there is nothing in the POST variable that says which scope to show (that is, the user has not clicked ‘All Activity’ and thus set an AJAX request into effect), then show only my group content.

    `function bbg_my_groups_activity_default( $qs ) {
    if ( empty( $qs ) && empty( $_POST ) ) {
    $qs = ‘scope=groups’;
    }

    return $qs;
    }
    add_filter( ‘bp_ajax_querystring’, ‘bbg_my_groups_activity_default’, 999 );`

    #110799
    Boone Gorges
    Keymaster

    It looks like you need to do two things.

    1) Don’t do bp_ajax_querystring( ‘friends’ ). The function does not take arguments like ‘friends’. Just do bp_ajax_querystring() in the template file.
    2) Here is a function that, when placed in wp-content/plugins/bp-custom.php, will do what you want:
    `function bbg_my_friends_activity_default( $qs ) {
    if ( is_user_logged_in() && empty( $qs ) && empty( $_POST ) ) {
    $qs = ‘scope=friends’;
    }

    return $qs;
    }
    add_filter( ‘bp_ajax_querystring’, ‘bbg_my_friends_activity_default’, 999 );`

    The problem is that this is almost certain not to work correctly with the function you have in your template file:
    `function my_query_filter_new ( $query_string ) {
    $query_string .= ‘&per_page=10’;
    return $query_string; }
    add_filter( ‘bp_ajax_querystring’, ‘my_query_filter_new’ );`

    If you need this latter functionality, I would try to do some work to combine the functions so that the query strings are added in the proper order.

    #110522
    ultimateuser
    Participant

    @DJPaul These are the plugins im using:

    Add Logo to Admin
    Akismet
    BackupWordpress
    BPAlbum
    BP-Youtube Feed
    BP Profile Search
    BP Redirect to Profile for Buddypress
    BP Xtra Signup
    BuddyPress Announce Group
    Buddypress Auto Group Join
    BuddyPress Block Activity Stream Types
    Buddypress Community Stats
    Buddypress Mandatory Groups
    BuddyPress Mobile
    Buddypress Moderation
    BuddyPress Registration Groups
    BuddyPress Restrict Group Creation
    BuddyPress RSS Character Fixer
    Buddypress Topic Mover
    Capability Manager
    Custom Profile Filters for BuddyPress
    Email Login
    Erocks Dashboard Lockdown
    Fast Secure Contact Form
    Forum Attachments for BuddyPress
    Mail From
    PHP Exec
    Simple Page Ordering
    Twitter Goodies
    Users to CSV
    W3 Total Cache
    Welcome Pack
    WP-Invites
    WP-TwitterBadge
    WP Activate Users

    @mikey3d
    Participant

    I just try it above muchad’s code and put that in your child theme function.php. It works, why? Because the characters are messing it up. Here’s workable code:
    `//=Change the number of activity items to show per page
    function my_custom_query_filter( $query_string ) {
    $query_string .= ‘&per_page=30’;
    return $query_string;
    }
    add_filter( ‘bp_dtheme_ajax_querystring’, ‘my_custom_query_filter’ );`

    #109855
    Marcos Nobre
    Participant
    #109370
    Virtuali
    Participant

    <i> How can I make it so it displays the users by nicknames, not by their names?</i>

    That is what Buddypress does currently. It displays their “RealName” rather than their Username across the site.

    <i> how can I add Activity and Members links in the adminbar?</i>

    Add this to your bp-custom.php:

    function pages(){
    ?>
    
    <li class="no-arrow"><a href="yoursite.com/activity">Activity</a>
    
    <li class="no-arrow"><a href="yoursite.com/groups/">Groups</a>
    
    <?php
    }
    add_action( 'bp_adminbar_menus', 'pages', 15 );
    Virtuali
    Participant

    or, :) you can redirect the “Reply” button to the “Leave a reply” textarea in the forums, and so on in the comments:

    `
    function cac_insert_comment_reply_links( $has_comments ) {
    global $activities_template, $wpdb, $bbdb;

    do_action( ‘bbpress_init’ );

    $topics_data = array();
    $posts_data = array();
    foreach( $activities_template->activities as $key => $activity ) {
    if ( $activity->type == ‘new_forum_topic’ ) {
    $topic_id = $activity->secondary_item_id;
    $topics_data[$topic_id] = $activity->primary_link;
    $topics_data[$topic_id] = $key;
    }

    if ( $activity->type == ‘new_forum_post’ ) {
    $post_id = $activity->secondary_item_id;
    $posts_data[$post_id] = array_pop( array_reverse( explode( ‘#’, $activity->primary_link ) ) );
    $posts_data[$post_id] = $key;
    }
    }

    // In cases where we only have the post id, we must do an extra query to get topic ids
    if ( !empty( $posts_data ) ) {
    $post_ids = array_keys( $posts_data );
    $post_ids_sql = implode( ‘,’, $post_ids );
    $sql = $wpdb->prepare( “SELECT topic_id, post_id FROM {$bbdb->posts} WHERE post_id IN ({$post_ids_sql})” );
    $post_topic_ids = $wpdb->get_results( $sql );

    // Now that we have the topic IDs, we can add that info to $topics_data for the main query
    foreach( $post_topic_ids as $post_topic ) {
    $topics_data[$post_topic->topic_id] = $posts_data[$post_topic->post_id];
    }
    }

    // Now for the main event
    // First, make a topic list and get all the associated posts
    $topic_ids = implode( ‘,’, array_keys( $topics_data ) );
    $sql = $wpdb->prepare( “SELECT topic_id, post_id FROM {$bbdb->posts} WHERE topic_id IN ({$topic_ids})” );
    $posts = $wpdb->get_results( $sql );

    // Now we get counts. BTW it sucks to do it this way
    $counter = array();
    foreach( $posts as $post ) {
    if ( empty( $counter[$post->topic_id] ) )
    $counter[$post->topic_id] = 1;
    else
    $counter[$post->topic_id]++;
    }

    // Finally, concatenate the reply url and put it in the activities_template
    foreach( $topics_data as $topic_id => $data ) {
    $total_pages = ceil( $counter[$topic_id] / 15 );
    $reply_url = cac_forum_reply_url( $data, $total_pages, 15 );
    $key = $data;
    $activities_template->activities[$key]->reply_url = $reply_url;
    }

    return $has_comments;
    }
    add_action( ‘bp_has_activities’, ‘cac_insert_comment_reply_links’ );

    /**
    * Filters the url of the activity reply link to use reply_url, if present
    */
    function cac_filter_activity_reply_link( $link ) {
    global $activities_template;

    if ( !empty( $activities_template->activity->reply_url ) )
    return $activities_template->activity->reply_url;
    else
    return $link;
    }
    add_action( ‘bp_get_activity_comment_link’, ‘cac_filter_activity_reply_link’ );

    /**
    * Echoes the proper CSS class for the activity reply link. This is necessary to ensure that
    * the JS slider does not appear when we have a custom reply_url.
    */
    function cac_activity_reply_link_class() {
    global $activities_template;

    if ( !empty( $activities_template->activity->reply_url ) )
    echo ‘class=”acomment-reply-nojs”‘;
    else
    echo ‘class=”acomment-reply”‘;
    }

    /**
    * A replacement for bp_activity_can_comment(). Todo: deprecate into a filter when BP 1.3 comes out
    */
    function cac_activity_can_comment() {
    global $activities_template, $bp;

    if ( false === $activities_template->disable_blogforum_replies || (int)$activities_template->disable_blogforum_replies ) {
    // If we’ve got a manually created reply_url (see cac_insert_comment_reply_links(), return true
    if ( !empty( $activities_template->activity->reply_url ) )
    return true;

    if ( ‘new_blog_post’ == bp_get_activity_action_name() || ‘new_blog_comment’ == bp_get_activity_action_name() || ‘new_forum_topic’ == bp_get_activity_action_name() || ‘new_forum_post’ == bp_get_activity_action_name() )
    return false;
    }

    return true;
    }`

    #108835
    @mercime
    Participant

    You/re welcome.

    #108834
    dukehm
    Member

    @mercime Thank you!

    #108833
    @mercime
    Participant

    – Create a child theme.

    – Copy over the file index.php from activity folder of bp-default theme to childtheme/activity/index.php
    https://trac.buddypress.org/browser/tags/1.2.8/bp-themes/bp-default/activity/index.php#L10

    – Add the slider to above or within the content div or wherever you want in that index.php file

    #107717
    Virtuali
    Participant

    This only works on the group-loop (group index), you could probably hook it into others as well.

    Put in bp-custom

    `function my_group_loop_activity_item() {
    global $bp, $activities_template;

    if ( !bp_is_active( ‘activity’ ) )
    return;

    if ( !bp_group_is_visible() )
    return;

    $show_hidden = false;

    /* Group filtering */
    $object = $bp->groups->id;
    $primary_id = bp_get_group_id();

    if ( ‘public’ != $bp->groups->current_group->status && groups_is_user_member( $bp->loggedin_user->id, bp_get_group_id() ) )
    $show_hidden = true;

    /* Note: any params used for filtering can be a single value, or multiple values comma separated. */
    $defaults = array(
    ‘display_comments’ => false, // false for none, stream/threaded – show comments in the stream or threaded under items
    ‘sort’ => ‘DESC’, // sort DESC or ASC
    ‘page’ => 1, // which page to load
    ‘per_page’ => false, // number of items per page
    ‘max’ => 2, // max number to return
    ‘include’ => false, // pass an activity_id or string of ID’s comma separated
    ‘show_hidden’ => $show_hidden, // Show activity items that are hidden site-wide?

    /* Filtering */
    ‘object’ => $object, // object to filter on e.g. groups, profile, status, friends
    ‘primary_id’ => $primary_id, // object ID to filter on e.g. a group_id or forum_id or blog_id etc.
    ‘action’ => false, // action to filter on e.g. activity_update, new_forum_post, profile_updated
    ‘secondary_id’ => false, // secondary object ID to filter on e.g. a post_id

    /* Searching */
    ‘search_terms’ => false // specify terms to search on
    );

    $r = wp_parse_args( $args, $defaults );
    extract( $r );

    $filter = array( ‘user_id’ => false, ‘object’ => $object, ‘action’ => $action, ‘primary_id’ => $primary_id, ‘secondary_id’ => $secondary_id );

    $activities_template = new BP_Activity_Template( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden );

    while ( bp_activities() ) : bp_the_activity(); ?>
    <div class="item-desc" id="activity-“>

    <a href="”>

    <?php endwhile;

    }
    add_action( ‘bp_directory_groups_item’, ‘my_group_loop_activity_item’ );`

    #107440
    imjscn
    Participant

    @pcwriter , I currently use otto’s /%year%/%postname%/ with some pityful feeling of missing the “category”, Now I see your new structure, I like the idea :-)
    By the way, you didn’t mention the default blog/ before the custom structure. Did you remove it already? I know there’s a way to remove the blog/ — from the site edit page. But I’m not sure if it is the correct way — what’s your opinion?

    #107108
    Virtuali
    Participant

    Of coarse, simple. I’m understanding you now, just add another tab right?

    Adding the screen function will add the tab next to your profile markup tab: Add to bp-custom.php. You were almost correct on your first approach. :)

    `function my_test_setup_nav() {
    global $bp;
    bp_core_new_nav_item( array( ‘name’ => __( ‘test’ ), ‘slug’ => ‘test’, ‘parent_url’ => $bp->loggedin_user->domain . $bp->slug . ‘/’, ‘parent_slug’ => $bp->slug, ‘screen_function’ => ‘my_profile_page_function_to_show_screen’, ‘position’ => 40 ) );

    bp_core_new_subnav_item( array( ‘name’ => __( ‘Home’ ), ‘slug’ => ‘test_sub’, ‘parent_url’ => $bp->loggedin_user->domain . $bp->slug . ‘/’, ‘parent_slug’ => $bp->slug, ‘parent_slug’ => $bp->slug, ‘screen_function’ => ‘my_profile_page_function_to_show_screen’, ‘position’ => 20, ‘item_css_id’ => ‘test_activity’ ) );

    function my_profile_page_function_to_show_screen() {

    //add title and content here – last is to call the members plugin.php template
    add_action( ‘bp_template_title’, ‘my_profile_page_function_to_show_screen_title’ );
    add_action( ‘bp_template_content’, ‘my_profile_page_function_to_show_screen_content’ );
    bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );
    }
    function my_profile_page_function_to_show_screen_title() {
    echo ‘something’;
    }
    function my_profile_page_function_to_show_screen_content() {

    echo ‘weee content’;

    }
    }`

    austinfav
    Member

    I would assume it goes in the bp-custom.php file located in your plugins directory. However when i loaded it there I got all types of errors. The code given above is more of a reference then anything else i suppose, as there are a load of misspellings.

    #106516
    austinfav
    Member

    I was looking EVERYWHERE for the same thing and nobody would answer my questions. I finally found out how to accomplish adding a tab to the nav bar.

    Paste this code into your bp-custom.php file located in your “plugin” directory:

    function my_test_setup_nav() {
    global $bp;
    bp_core_new_nav_item( array( ‘name’ => __( ‘test’ ), ‘slug’ => ‘test’, ‘parent_url’ => $bp->loggedin_user->domain . $bp->slug . ‘/’, ‘parent_slug’ => $bp->slug, ‘screen_function’ => ‘my_profile_page_function_to_show_screen’, ‘position’ => 40 ) );

    bp_core_new_subnav_item( array( ‘name’ => __( ‘Home’ ), ‘slug’ => ‘test_sub’, ‘parent_url’ => $bp->loggedin_user->domain . $bp->slug . ‘/’, ‘parent_slug’ => $bp->slug, ‘parent_slug’ => $bp->slug, ‘screen_function’ => ‘my_profile_page_function_to_show_screen’, ‘position’ => 20, ‘item_css_id’ => ‘test_activity’ ) );

    function my_profile_page_function_to_show_screen() {

    //add title and content here – last is to call the members plugin.php template
    add_action( ‘bp_template_title’, ‘my_profile_page_function_to_show_screen_title’ );
    add_action( ‘bp_template_content’, ‘my_profile_page_function_to_show_screen_content’ );
    bp_core_load_template( apply_filters( ‘bp_core_template_plugin’, ‘members/single/plugins’ ) );
    }
    function my_profile_page_function_to_show_screen_title() {
    echo ‘something’;
    }
    function my_profile_page_function_to_show_screen_content() {

    echo ‘weee content’;

    }
    }
    add_action( ‘bp_setup_nav’, ‘my_test_setup_nav’ );

    This will add a button into the nav bar named “test” which redirects back to the profile page. It would only take a bit more tweaking to get it to display the page you want. Hope this helps.

    aces
    Participant

    @faceteletv

    I’m trying to keep this conversation within topic here where you originally mentioned it, rather than wild in the activity stream.

    I’ve managed to get forums working on a 1and1 shared hosting…

    I don’t think any of the wp-config.php or .htaccess or php.ini tricks for increasing memory work for 1and1 shared hosting. Even if wordpress tells you it has more, it will still behave as if it hasn’t…

    As ray said, you should disable as many plugins as possible at least till the forums are enabled. I already mentioned what I had done about plugins here

    To find out how much memory a plugin or theme is using I use https://wordpress.org/extend/plugins/wp-system-health/.

    You appear to be using buddypress social theme – which I haven’t tried but it has lots of options and may use lots of memory. With limited memory it would be better to use a simple child theme of buddypress default and customise it.

    Boone Gorges
    Keymaster

    Changing the tabs is an appearance issue; it doesn’t have any effect on the activity items shown.

    Try the following function in your functions.php or bp-custom.php. The logic is this: If the query string is empty (as it is when you first visit the activity page) and there is nothing in the POST variable that says which scope to show (that is, the user has not clicked ‘All Activity’ and thus set an AJAX request into effect), then show only my group content.

    `function bbg_my_groups_activity_default( $qs ) {
    if ( empty( $qs ) && empty( $_POST ) ) {
    $qs = ‘scope=groups’;
    }

    return $qs;
    }
    add_filter( ‘bp_ajax_querystring’, ‘bbg_my_groups_activity_default’, 999 );`

    #105033
    modemlooper
    Moderator

    has_members()
    next_member()
    rewind_members()
    members()
    the_member()
    bp_rewind_members()
    bp_has_members( $args = ” )
    ‘type’ => $type,
    ‘page’ => $page,
    ‘per_page’ => 20,
    ‘max’ => false,
    ‘include’ => false, // Pass a user_id or comma separated list of user_ids to only show these users
    ‘user_id’ => $user_id, // Pass a user_id to only show friends of this user
    ‘search_terms’ => $search_terms, // Pass search_terms to filter users by their profile data
    ‘populate_extras’ => true // Fetch usermeta? Friend count, last active etc.

    bp_the_member()
    bp_members()
    //Misc
    bp_members_pagination_count()
    bp_members_pagination_links()
    bp_member_user_id()
    bp_get_member_user_id()
    bp_member_user_nicename()
    bp_get_member_user_nicename()
    bp_member_user_login()
    bp_get_member_user_login()
    bp_member_user_email()
    bp_get_member_user_email()
    bp_member_is_loggedin_user()
    bp_member_avatar( $args = ” )
    bp_get_member_avatar( $args = ” )
    ‘type’ => ‘thumb’,
    ‘width’ => false,
    ‘height’ => false,
    ‘class’ => ‘avatar’,
    ‘id’ => false,
    ‘alt’ => __( ‘Member avatar’, ‘buddypress’ )

    bp_member_permalink()
    bp_member_link()
    bp_get_member_link()
    bp_member_name()
    bp_get_member_name()
    bp_member_last_active()
    bp_get_member_last_active()
    bp_member_latest_update( $args = ” )
    bp_get_member_latest_update( $args = ” ) {
    ‘length’ => 15

    bp_member_profile_data( $args = ” )
    ‘field’ => false, // Field name
    bp_member_registered()
    bp_get_member_registered()
    bp_member_add_friend_button()
    bp_add_friend_button( $members_template->member->id, $friend_status )
    bp_member_total_friend_count()
    bp_get_member_total_friend_count()
    bp_member_random_profile_data()
    bp_member_hidden_fields()
    bp_directory_members_search_form()
    bp_total_site_member_count()
    bp_get_total_site_member_count()
    //Check bp-core-templatetags.php for comments about nav tags
    bp_get_loggedin_user_nav()
    bp_get_displayed_user_nav()
    bp_get_options_nav()
    bp_get_options_title()
    //Avatar Tags
    bp_has_options_avatar()
    bp_get_options_avatar()
    bp_comment_author_avatar()
    bp_post_author_avatar()
    bp_loggedin_user_avatar( $args = ” )
    bp_get_loggedin_user_avatar( $args = ” ) {
    ‘type’=> ‘thumb’,
    ‘width’=> false,
    ‘height’=> false,
    ‘html’=> true

    bp_displayed_user_avatar( $args = ” )
    bp_get_displayed_user_avatar( $args = ” )
    ‘type’=> ‘thumb’,
    ‘width’=> false,
    ‘height’=> false,
    ‘html’=> true

    bp_avatar_admin_step()
    bp_get_avatar_admin_step()
    bp_avatar_to_crop()
    bp_get_avatar_to_crop()
    bp_avatar_to_crop_src()
    bp_get_avatar_to_crop_src()
    bp_avatar_cropper()
    //Other
    bp_site_name()
    bp_core_get_wp_profile()
    bp_get_profile_header()
    bp_exists( $component_name )
    bp_format_time( $time, $just_date = false )
    bp_word_or_name( $youtext, $nametext, $capitalize = true, $echo = true )
    bp_your_or_their( $capitalize = true, $echo = true )
    bp_get_plugin_sidebar()
    bp_page_title()
    bp_get_page_title()
    bp_styles()
    bp_has_custom_signup_page()
    bp_signup_page()
    bp_get_signup_page()
    bp_has_custom_activation_page()
    bp_activation_page()
    bp_get_activation_page()
    bp_search_form_enabled()
    bp_search_form_action()
    bp_search_form_type_select()
    bp_search_form()
    bp_log_out_link()
    bp_custom_profile_boxes()
    bp_custom_profile_sidebar_boxes()
    bp_create_excerpt( $text, $excerpt_length = 55, $filter_shortcodes = true )
    bp_is_serialized( $data )
    bp_total_member_count()
    bp_get_total_member_count()
    bp_signup_username_value()
    bp_get_signup_username_value()
    bp_signup_email_value()
    bp_get_signup_email_value()
    bp_signup_with_blog_value()
    bp_get_signup_with_blog_value()
    bp_signup_blog_url_value()
    bp_get_signup_blog_url_value()
    bp_signup_blog_title_value()
    bp_get_signup_blog_title_value()
    bp_signup_blog_privacy_value()
    bp_get_signup_blog_privacy_value()
    bp_signup_avatar_dir_value()
    bp_get_signup_avatar_dir_value()
    bp_current_signup_step()
    bp_get_current_signup_step()
    bp_signup_avatar( $args = ” )
    bp_get_signup_avatar( $args = ” ) {
    ‘size’ => BP_AVATAR_FULL_WIDTH,
    ‘class’ => ‘avatar’,
    ‘alt’ => __( ‘Your Avatar’, ‘buddypress’ )
    bp_signup_allowed()
    bp_get_signup_allowed()
    bp_blog_signup_allowed()
    bp_get_blog_signup_allowed()
    bp_account_was_activated()
    bp_registration_needs_activation()
    bp_mentioned_user_display_name( $user_id_or_username )
    bp_get_mentioned_user_display_name( $user_id_or_username )
    bp_get_option( $option_name )
    bp_ajax_querystring( $object = false )
    bp_last_activity( $user_id = false, $echo = true )
    bp_user_has_access()
    bp_user_firstname()
    bp_get_user_firstname()
    bp_loggedin_user_link()
    bp_get_loggedin_user_link()
    bp_loggedinuser_link()
    bp_displayed_user_link()
    bp_get_displayed_user_link()
    bp_user_link()
    bp_displayed_user_id()
    bp_current_user_id()
    bp_loggedin_user_id()
    bp_displayed_user_domain()
    bp_loggedin_user_domain()
    bp_displayed_user_fullname()
    bp_get_displayed_user_fullname()
    bp_user_fullname() { echo bp_get_displayed_user_fullname()
    bp_loggedin_user_fullname()
    bp_get_loggedin_user_fullname()
    bp_displayed_user_username()
    bp_get_displayed_user_username()
    bp_loggedin_user_username()
    bp_get_loggedin_user_username()
    bp_current_component()
    bp_current_action()
    bp_current_item()
    bp_action_variables()
    bp_root_domain()
    bp_get_root_domain()
    //Conditionals
    bp_is_blog_page()
    bp_is_my_profile()
    bp_is_home()
    bp_is_front_page()
    bp_is_activity_front_page()
    bp_is_directory()
    bp_is_page($page)
    bp_is_active( $component )
    bp_is_profile_component()
    bp_is_activity_component()
    bp_is_blogs_component()
    bp_is_messages_component()
    bp_is_friends_component()
    bp_is_groups_component()
    bp_is_settings_component()
    bp_is_member()
    bp_is_user_activity()
    bp_is_user_friends_activity()
    bp_is_activity_permalink()
    bp_is_user_profile()
    bp_is_profile_edit()
    bp_is_change_avatar()
    bp_is_user_groups()
    bp_is_group()
    bp_is_group_home()
    bp_is_group_create()
    bp_is_group_admin_page()
    bp_is_group_forum()
    bp_is_group_activity()
    bp_is_group_forum_topic()
    bp_is_group_forum_topic_edit()
    bp_is_group_members()
    bp_is_group_invites()
    bp_is_group_membership_request()
    bp_is_group_leave()
    bp_is_group_single()
    bp_is_user_blogs()
    bp_is_user_recent_posts()
    bp_is_user_recent_commments()
    bp_is_create_blog()
    bp_is_user_friends()
    bp_is_friend_requests()
    bp_is_user_messages()
    bp_is_messages_inbox()
    bp_is_messages_sentbox()
    bp_is_notices()
    bp_is_messages_compose_screen()
    bp_is_single_item()
    bp_is_activation_page()
    bp_is_register_page()
    bp_the_body_class()
    bp_get_the_body_class( $wp_classes, $custom_classes = false )

    #104792

    Has anyone figured this one out? I tried putting the code into custom.php and functions.php… but nothing happened. I second the idea above to merge all the personal, friends, groups and mentions into one as well… people are so used to the way fb works, it would be nice to do that for them :)

    #104605

    In reply to: My 2 Cents

    @mercime
    Participant

    Simply put, different loops and template tags for index, category, single pages etc. in WP. Then you have different loops and additional template tags for various components – activity, members, groups etc – in BP.
    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/

    #104542

    In reply to: My 2 Cents

    alanchrishughes
    Participant

    I guess all I am saying is I would like to see things more customizable and easy to follow. I’m sure it makes sense to programmers like you guys, but to designers like me, I just spent all afternoon messing with all the members/single/ php files trying to figure out how each /activity, /activity/just-me/, /activity/friends/, etc page works and pulls in that particular feed and I just realized all five of these pages some how come from the /activity/activity-loop.php file, and that file doesn’t seem very clear cut either.

    #104534

    In reply to: My 2 Cents

    alanchrishughes
    Participant

    Would either of those methods result in faster loading times? Or both probably equal? To me, something like this should obviously be built and only exist if a theme includes it, not something built directly into Buddypress and requiring a hack (or whatever you would consider that) just to not have it.

    I also think it would be great to have a tutorial/codex on how to Buddypress’ify a theme or inividual pages without having to use the template pack. Being able to build pages from scratch would be a giant step forward for Buddypress I would think. There is just so much going on behind the programming scene it is spilling over into the front end scene.

    I’ve tried to follow this a bit https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/ to produce something like I described in my previous post, but I don’t see the connection between bp_has_activities() and the “accepted arguments.”

    bp_has_activities(friends)

    …seemed like the only logical way it could work, but no luck. And like I already mentioned, all the files for each activity page are all slurred together and editing them individually, is that even possible? I can’t even find the file for the @mentions page.

    @modemlooper I’m not sure how you took what I said that way, I am suggesting for more options and forcing less built in stuff that not everybody wants, but still can be created, like the navigation bar.

    I don’t see why any one would not enjoy a notification page, but that is something you could simply not link to if you don’t want it and wouldn’t require any special programming knowledge.

    If more people than me have been suggesting a more Facebook like flow, I would guess it is because both do the same thing, but Facebook isn’t as confusing, Buddypress is too anal about things trying to divide everything up and categorize too much. Does anybody really need 5 tabs under the activity tab?

    #104520

    In reply to: My 2 Cents

    Boone Gorges
    Keymaster

    1. If you don’t want the nav bar, you can suppress it with the following line in your wp-config.php file:
    `define( ‘BP_DISABLE_ADMIN_BAR’, true );`
    or you can manually unhook it with the following lines in your theme’s functions.php:
    `remove_action( ‘wp_footer’, ‘bp_core_admin_bar’, 8 );
    remove_action( ‘admin_footer’, ‘bp_core_admin_bar’ );`
    No need to hack anything.

    2. A vanilla installation of BP, using the default theme, loads one stylesheet: style.css. That stylesheet includes two others: _inc/css/default.css and _inc/css/adminbar.css. There is also a stylesheet for the Dashboard view. If you are using the template pack and are finding too many stylesheets, it’s possible that your WP theme is to blame. In this respect, BP is being fairly austere in the number of CSS files it’s loading. If you want to override things, there’s no reason to “hack” – just put your own overriding styles after the import commands in style.css.

    3. This is a great idea, I think. Perhaps you could file a formal enhancement request at trac.buddypress.org (same username/pw as this site)

    4. The way that the default theme handles profile, activity, friends etc separately, provides a large amount of straightforward customization in child themes. If bp-default had them consolidated, child theme authors would have to rebuild the pages to make them separate. We are erring on the side of enhanceability. You are welcome to build a child theme that incorporates these parts of the profile into a single page – I bet a fair number of people would be interested in such a thing.

Viewing 25 results - 526 through 550 (of 745 total)
Skip to toolbar