Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 626 through 650 (of 838 total)
  • Author
    Search Results
  • #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.

    Paul Wong-Gibbs
    Keymaster

    Does this occur on the default theme? After you’ve disabled all plugins? Or have you customised your activity loop in some way? (looks like the activity stream item permalink/single page template)

    pcwriter
    Participant

    @thealchemist @zkwc @djpaul

    Hurray!

    The code snippet works just fine in functions.php. That’s good news for a theme designer: no worries about a theme overriding a user’s custom configurations in bp-custom.php.
    Now I’m off to add “Group Landing Page” as an option in my new theme. It’ll be incorporated with the theme’s “Alternate Header” option too.

    Then I’ve got to adapt the code to work with member profiles. My initial attempts have failed, but I’ve been known to be persistent at times ;-)

    For future reference, here’s the code snippet to add to functions.php or, if you have created it, bp-custom.php.
    You can see it in action here: http://rspacesandbox.org/ Click any group.

    `function redirect_groups_to_forum() {
    global $bp;
    $path = clean_url( $_SERVER );
    $path = apply_filters( ‘bp_uri’, $path );
    if ( bp_is_group_home() && strpos( $path, $bp->bp_options_nav ) === false )
    bp_core_redirect( $path . $bp->bp_options_nav . ‘/’ );
    }
    add_action( ‘wp’, ‘redirect_groups_to_forum’ );`

    thealchemist
    Member

    Well, I have created the bp-custom.php file, added the code they suggested, uploaded … and nada. So, I am likely missing something obvious. How does the page know to even ‘look’ at the bp-custom.php file? Also, the trick suggested works for groups … how would / could this be altered to work on the profile?

    #102931
    r-a-y
    Keymaster

    Create a new WP page with the verbiage you want to add.

    You might want to create your new page with a custom page template:
    https://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    Then set this new page as your frontpage:
    https://codex.wordpress.org/Settings_Reading_SubPanel

    murasaki
    Participant

    cool, let me know how it goes. im doing something similar, instead of the basic activity page, i want a custom page to show, and i give the user the option to navigate to their activity

    #102507
    thealchemist
    Member

    So the instructions for “automatic conversion” aren’t very thorough cuz I keep discovering pages not listed that need to be manually converted. Registration and activation pages etc.

    But here’s a different ? regarding customization. I am trying to get the member profile/login section into the sidebar. http://xtreme.transmutationsciences.com/activity and I have copied some code from another theme and have gotten that section in there. However, as you can see, the subsequent widgets aren’t cooperating and acting as if the login box was right justified.

    The original sidebar was:
    `

    `

    The significant item in the other theme’s code is “

    When I copied the new sidebar I originally kept their version of the sidebar hook. But the section did not display. When I substituted “ the section displayed but then I have the alignment problem.

    Can anyone diagnose my ineptitude?

    Full sidebar code from the theme I an borrowing the code from.
    `

    <?php printf( __( ' You can also create an account.’, ‘buddypress’ ), site_url( BP_REGISTER_SLUG . ‘/’ ) ) ?>

    <form name="login-form" id="sidebar-login-form" class="standard-form" action="” method=”post”>

    <input type="text" name="log" id="sidebar-user-login" class="input" value="” />

    <input type="submit" name="wp-submit" id="sidebar-wp-submit" value="” tabindex=”100″ />

    `

    #102017
    Erlend
    Participant

    Yeah, also tried making new pages, same thing. But, I’m starting to think this is a caching problem. I tried to log out and see if I could see it too then, but the system actually won’t log me out when browsing the introduction page. Browsing any other child or custom page shows the login prompt, so I am indeed logged out, the website seems to forget that whenever I’m browsing a top-tier page.

    We use W3 Total Cache, I’ll ask over there.

Viewing 25 results - 626 through 650 (of 838 total)
Skip to toolbar