Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 801 through 825 (of 1,252 total)
  • Author
    Search Results
  • @mercime
    Participant

    @thesurfinstitute Following is the simplest way to make your theme compatible:

    If you’ve changed any of the BP template files in your theme folder, replace all of them for a clean slate by deleting the 6 BP folders in server – /activity, /blogs, /forums, /groups, /members, and /registration – then re-run Appearance > BP Compatibility. (make sure Sliding Door Child theme is activated before you run this)

    A. Copy your theme’s header.php and Save As > header-buddypress.php

    Open up header-buddypress.php and at the bottom of the file, below all other code, add this:
    `

    `

    Save file.

    B. Create a BLANK sidebar-buddypress.php and add this line only

    `

    `

    Save file.

    C. Upload header-buddypress.php and sidebar-buddypress.php to wp-content/themes/sliding-door-child/

    D. Style modifications for BP templates – you might want to use some or all of styles listed in this page https://codex.buddypress.org/theme-development/theme-dev-bp-template-pack-walkthrough-twenty-ten-bp-1-5/3/

    rossagrant
    Participant

    Hi guys,

    My buddypress site is growing nicely and is really begiining to show some promise.

    I’m not sure if this has just happened recently or I just have noticed it before but I find that my activity stream page is taking a fair bit longer to load than ALL other pages.

    I have ran a time to first byte test and the activity stream is showing over 4.5 seconds. Once that first byte kicks in though, the page loads pretty fast.

    Does anyone know if this is normal behaviour, is it to do with a slow MySQL query, or could it be something else?

    In BP Default, the page loads much faster than my theme, but not as many DB queries are made in the Default theme.

    Here’s the result of a speed test with my custom theme active:

    http://www.webpagetest.org/result/120304_EQ_3F3CA/1/details/

    I’m not too technical when it comes to this kind of thing so could someone take a look and see why there is such a slow time to first byte?

    All other pages contain the same widgets etc and load much faster, so I’m wondering if it’s just the nature of the activity stream or if there is anything I can do to the template of that page to speed stuff up.

    Any help on optimisation of BP sites would be great.

    I’d happily run a caching script but I’ve heard they don’t play nicely with BP due to it’s dynamic nature.

    Anyone got any tips or a reason why my stream would be slow to load in this theme?

    Thanks!

    #130839
    9087877
    Inactive

    Go to the dashboard, under BuddyPress in the left pane select components. Uncheck the checkbox to the left beside Activity Stream. You may also want to create a custom menu while in the dashboard under appearance/menus and name it, make sure under theme locations/primary navigation you select the name you created and save it. Down below check all the post and pages you want to add to the navigation and click the Add to Menu button. To the left you can drag the boxes in the order you want the post/pages to display in the navigation menu. Make sure you save the menu. This way only the items you want you up on the front end navigation and in the buddybar at the top.

    #28017
    9087877
    Inactive

    This is more or less a plea to the BuddyPress development team. I really believe you should make it a priority to make the next version of BuddyPress address the lack of profile privacy options above any other changes you may have planned in the future. Cosmetic changes are not that important because most people with any real BuddPress experience will more than likely be using a child theme to customize the cosmetics of the site to their liking. This change should be integrated into the BuddyPress default core because it is the only real way to make BuddyPress a viable choice for membership only social netwoking. BuddyPress is really a well developed plugin for WordPress and I know it is about being social, but the end user should have the ultimate choice in whether or not their profiles or site activity are view-able to the logged in members(public) or just their friends(private). This should be standard feature in buddypress without being dependent on plugins. When I say public or private, I mean that all members should have to be logged first before even given the option to view another members profile, maybe a landing page integration built into BuddyPress core that redirects any visitor the the landing page when attempting to view any post or page on the site. In my opinion just because a new user activated account there should still be options in the core to keep their profile accessible to only members they are friends with etc. I am not saying to jump the gun and make every single Profile field either view-able or not depending on friendship. Just a simple choice to display or not to display your profile to people you are not friends with. In other words the options in @modemlooper‘s BuddyPress Profile Privacy plugin functionality should be integrated into the BuddyPress default settings without dependency on a plugin. Privacy of the end user seems to be a determining factor in whether or not visitors decide to join/register on your site. Privacy options along with ACL built into BuddyPress right out of the box will put Buddypress in a whole new league for social network CMS choices. I also think the .htaccess file should contain the Options -Indexes code at default. Directory browsing should never be open by default. To me it is a security risk not include the Options -Indexes code in .htaccess at default. I would also like the buddybar and its links to somehow be integrated into a custom menu somehow. I would also like to see an option in the buddypress dashboard that will allow you to choose how many activity items are loaded.

    #28016
    drummergirl
    Participant

    I built a custom widget with an activity stream so my client can set a group ID to display a “featured group” in the sidebar. The group avatar displays as well as the activity stream. All of the activity links work correctly, except for comments and favorites.

    Comments goes to the home page and favorites returns a 404.

    Favorites: http://www.prolifeplanet.com/activity/favorite/114/?_wpnonce=6d82795544

    Here is my widget code:

    `
    add_action( ‘widgets_init’, ‘featured_bpgroup_widget’ );

    /**
    * Register our widget
    */
    function featured_bpgroup_widget() {
    register_widget( ‘tfd_Featured_BPGroup’ );
    }

    /**
    * Add widget style
    */

    add_action(‘wp_enqueue_scripts’, ‘bpfg_styles’);

    function bpfg_styles() {
    wp_enqueue_style(‘bpfg-style’, plugin_dir_url(__FILE__) . ‘bpfg-style.css’);
    }

    /*** Widget class ***/
    class tfd_Featured_BPGroup extends WP_Widget {

    /**
    * Widget setup.
    */
    function tfd_Featured_BPGroup() {
    /* Widget settings. */
    $widget_ops = array( ‘classname’ => ‘bp_fgroup’, ‘description’ => __(‘A widget to display a featured buddy press group.’, ‘fgroup’) );

    /* Widget control settings. */
    $control_ops = array( ‘width’ => 300, ‘height’ => 350, ‘id_base’ => ‘featured-bpgroup’ );

    /* Create the widget. */
    $this->WP_Widget( ‘featured-bpgroup’, __(‘Featured BP Group’, ‘fgroup’), $widget_ops, $control_ops );
    }

    /**
    * How to display the widget on the screen.
    */
    function widget( $args, $instance ) {
    extract( $args );

    /* Our variables from the widget settings. */
    $title = apply_filters(‘widget_title’, $instance );
    $description = $instance;
    if ( !$groupid = (int) $groupid )$groupid = 4;

    /* Before widget (defined by themes). */
    echo $before_widget;

    /* Display the widget title if one was input (before and after defined by themes). */
    if ( $title )
    echo $before_title . $title . $after_title;

    /* Display Group Avatar */
    $avatar = bp_core_fetch_avatar( array( ‘item_id’ => $groupid, ‘object’ => ‘group’, ‘type’ => ‘full’, ‘avatar_dir’ => ‘group-avatars’, ‘alt’ => $alt, /* ‘css_id’ => $id, */’class’ => $class/* , ‘width’ => ‘150px’, ‘height’ => ‘150px’ */ ) );

    printf( ‘

    ‘ . __(‘%1$s’, ‘fgroup’) . ‘

    ‘, $avatar );

    /* Display User-Defined Group Description */
    if ( $description )
    printf( ‘

    ‘ . __(‘%1$s’, ‘fgroup’) . ‘

    ‘, $description );

    /* Display Group Activity */

    if ( bp_has_activities (array ( ‘primary_id’ => $groupid, ‘max’ => ‘5’) ) ) : while ( bp_activities() ) : bp_the_activity();

    locate_template( array( ‘activity/entry.php’ ), true, false );

    endwhile; endif;

    wp_reset_query();

    /* After widget (defined by themes). */
    echo $after_widget;
    }

    /*** Update the widget settings. ***/
    function update( $new_instance, $old_instance ) {
    $instance = $old_instance;

    /*** Strip tags ***/
    $instance = strip_tags( $new_instance );
    $instance = (int) $new_instance;
    $instance = strip_tags( $new_instance );

    return $instance;
    }

    /*** Display widget setting controls on the widget panel. ***/
    function form( $instance ) {

    /* Default widget settings. */
    $defaults = array( ‘title’ => __(‘Featured Group’, ‘fgroup’));
    $defaults = array( ‘groupid’ => __(‘4’, ‘fgroup’));
    $instance = wp_parse_args( (array) $instance, $defaults ); ?>

    <label for="get_field_id( ‘title’ ); ?>”>
    <input id="get_field_id( ‘title’ ); ?>” name=”get_field_name( ‘title’ ); ?>” value=”” style=”width:100%;” />
    Default: Featured Group

    <label for="get_field_id( ‘groupid’ ); ?>”>
    <input id="get_field_id( ‘groupid’ ); ?>” name=”get_field_name( ‘groupid’ ); ?>” value=”” style=”width:100%;” />
    Find the ID in the Network Admin Dashboard under “Buddypress/Group Management”.

    <label for="get_field_id( ‘description’ ); ?>”>
    <input id="get_field_id( ‘description’ ); ?>” name=”get_field_name( ‘description’ ); ?>” value=”” style=”width:100%;” />
    Optional: Enter a description or leave blank.

    <?php
    }
    }`

    Any idea what’s going on? The favorites and comments work fine from the other pages, just not from my widget.

    kobi-ua
    Member

    Hello

    I want to add custom tab called “Posts” at user activity page. Clicking this tab will open only posts of this user. How do I make this customization?

    Image that explain the idea: http://img593.imageshack.us/img593/4310/bpposts.png

    TIA

    kuching
    Participant

    oh ok I see.. well I guess I’ll turn off altogether all profile activities at this point because I don’t use groups, forums with bb2.0 are not supported and commenting on posts is neither

    I’ll look forward for BP1.6 :)

    is much code going to change from bp1.5.x to 1.6? right now I’m developing some custom theme for wp/bb/bp and customising the profile pages as well (like inserting new tabs…) I hope it won’t break when I’ll upgrade to 1.6

    thanks

    kuching
    Participant

    so what’s preventing to the comments to custom post type posts to appear in the activity feed? or do I have to modify the comments template?

    Thanks Paul

    kuching
    Participant

    Oh I see..

    So both the forum tab and forum activity on the activity feed are disabled because of lack of support for BBpress 2.0 plugin?

    But how about the reason why comments made on other custom post types posts won’t work? is it the for similar reasons? ( in that case unsurprisingly because BBPress 2.0 is essentially cpt at work)

    will that be fixed altogether with 1.6? and when 1.6 is going to be released, realistically?

    thank you!

    kuching
    Participant

    I’ve installed latest Buddypress on WP 3.3.1 localhost WAMP environment (WP root install)

    I’ve chosen to run BBPress 2.0.x plugin as forum, I don’t want user groups

    Forum seems to work but I see no integration with BuddyPress

    no forum tab on activity page or member pages…
    and also if a user posts or replies to a thread in the forum, that activity doesn’t show up in the activity field (either global or individual)

    is it something due to my setup? should I change something in the theme?

    I think also standard worpdress comments to custom post type posts are not showing up in my user activities!

    thanks

    ps also if a user adds a forum post (or other content) as a favorite, it doesn’t show up in buddypress favorites either… what happened to the integration?

    @tjbrewers, try the below methood, thats what am using

    /*Change the number of activity items to show per page */

    function my_custom_query_filter( $query_string ) {
    $query_string .= ‘&per_page=11’;
    return $query_string;
    }
    add_filter( ‘bp_dtheme_ajax_querystring’, ‘my_custom_query_filter’ );

    darinroman
    Member

    I have a music community that shares a great deal of media in the activity stream using the awesome BP Activity Stream Plus plugin. Due to all of the media files initializing their streams; the page takes a very long time to load, the Admin Bar is non-existent and page does not accept any user input until completed loading. I would like to limit the default initial entries in the loop to 5. I’ve tried creating a custom loop and it works well to show 5 items, however, every time a user clicks the Load More link, BP spits out the same 5 items from page 1 and can not access previous entries.

    After looking through the codex I’ve tried replacing this:

    “

    with this:

    “

    Does anyone know of a way to accomplish this properly?

    I do not have a problem editing a core file if I have to.

    Thanks,
    Darin

    #27685
    andyJCr
    Member

    So I am trying to use Buddypress and Pagelines, and on my Buddypress pages, I can’t get a second column to come up, which is standard on all of my other Pagelines pages.

    For example, http://www.jobcreatr.com/activity does not work with two columns (don’t worry about the spacing, I’m going to fix that with custom CSS). Like, where’s the first column? The main page (www.jobcreatr.com) does not have this problem

    #27684
    GRAYLILY
    Member

    I think this was deleted before – if there is a problem with my post, please do let me know.

    I just finished building my Buddypress site. There are some additional things I want to do, but I don’t know how to do them.

    1. I do not want Buddypress’s “Name (required)” field to be editable. I installed S2Member, and created custom profile fields, and I was able to remove edit capabilities from them. However, members are still able to change that buddy press name field.

    2. I do not want my homepage to have a blog feel. I want it to be a regular home page that I put text/ pictures on.

    3. I would like a page dedicated to a member profile search. I want four search fields – First Name, Last Name, City, and State. I guess this would have to be tied into the S2Member plugin since I used it to add the additional profile fields First Name, Last Name, City, and State.

    4. I would like an additional Activity tab where members only post pictures and a small comment, unlike their activity/timeline where they post anything they wish.

    5. I would like the activity/timeline page to have a different color scheme than the rest of my site – white so that it’s easier on the eyes.

    Can any of you help with this?

    Thanks!

    #129812
    aces
    Participant

    Couldn’t you use something like travel-junkie’s walled garden technique:
    `
    function sh_walled_garden()
    {
    global $bp;
    if( bp_is_register_page() || bp_is_activation_page() || bp_is_page( BP_FORUMS_SLUG ) || bp_is_page( BP_GROUPS_SLUG ) )
    return;

    if( ! bp_is_blog_page() && ! is_user_logged_in() )
    bp_core_redirect( bp_get_signup_page() );
    }

    add_action( ‘bp_init’, ‘sh_walled_garden’ );
    `
    This goes in bp-custom.php and hides members and activity from those not logged in but enables forums and groups for everyone. It can also be customised…..

    Chris Clayton discussed a similar method here

    Having different menus for logged in users is discussed here – also see here

    stwc
    Participant

    So I’ve finally decided to take the plunge and try and update my BP community at Gamefilter.net to 1.5.x, figuring the dust has pretty well settled by now. Working on my localhost install, so the live site is still working fine. The upgrade has gone pretty well, for the most part, except for one thing.

    It’s all a little complicated, but I’m hoping it’s something that someone more skilled with wrangling BP code than me can just eyeball it and say ‘There’s your problem’!

    So I’m using both a heavily customized version of the old BP-Like plugin to provide a ‘Thanks’ functionality for people’s activity, including posting to the main blog. This is counted — thanks given and received — on user profiles.

    Separate to that is BP favoriting (which I’ve renamed to ‘Bookmark’), which lets people, yeah, save stuff as favorites, that they can go back to later. I extended BP favoriting to blog posts with the following functions.php code:

    class BP_Blog_Post_Fav {
    
    var $activity_id;
    
    function init() {
    add_action( 'the_post', array( &$this, 'get_blog_post_activity_id' ) );
    }
    
    function get_blog_post_activity_id() {
    global $current_blog, $post;
    
    if( isset($post->ID) ) :
    $activity_id = bp_activity_get_activity_id( array(
    'user_id' => $post->post_author,
    'type' => 'new_blog_post',
    'component' => 'blogs',
    'item_id' => $current_blog->blog_id,
    'secondary_item_id' => $post->ID) );
    
    $this->activity_id = $activity_id;
    
    if( !empty($this->activity_id) ) {
    add_filter( 'bp_get_activity_favorite_link', array( &$this, 'bp_get_activity_favorite_link' ) );
    add_filter( 'bp_get_activity_unfavorite_link', array( &$this, 'bp_get_activity_unfavorite_link' ) );
    add_filter( 'bp_get_activity_is_favorite', array( &$this, 'bp_get_activity_is_favorite' ) );
    }
    
    endif;
    
    }
    
    function bp_get_activity_favorite_link() {
    global $current_blog;
    
    if( $current_blog->blog_id != BP_ROOT_BLOG )
    switch_to_blog( BP_ROOT_BLOG );
    
    $nonce = wp_nonce_url( site_url( BP_ACTIVITY_SLUG . '/favorite/' . $this->activity_id . '/' ), 'mark_favorite' );
    
    if( $current_blog->blog_id != BP_ROOT_BLOG )
    restore_current_blog();
    
    return $nonce;
    }
    
    function bp_get_activity_unfavorite_link() {
    global $current_blog;
    
    if( $current_blog->blog_id != BP_ROOT_BLOG )
    switch_to_blog( BP_ROOT_BLOG );
    
    $nonce = wp_nonce_url( site_url( BP_ACTIVITY_SLUG . '/unfavorite/' . $this->activity_id . '/' ), 'unmark_favorite' );
    
    if( $current_blog->blog_id != BP_ROOT_BLOG )
    restore_current_blog();
    
    return $nonce;
    }
    
    function bp_get_activity_is_favorite() {
    global $bp;
    
    return in_array( $this->activity_id, (array)bp_activity_get_user_favorites($bp->loggedin_user->id) );
    }
    }
    $my_bp_favorite = new BP_Blog_Post_Fav();
    $my_bp_favorite->init();
    

    and I build a favorite link on a blog post (remember, it’s called ‘bookmark’ on the live site, in case you want to look at it (but it’s only visible for logged-in users, so)) like so

    <a class=&quot;button fav bp-secondary-action&quot; href=&quot;" title=""></a>

    That builds a link that looks like this (on localhost)

    http://localhost/gamefilter/activity/favorite/837/?_wpnonce=66c4831cef

    This worked swimmingly on my current 1.2 install on the live site, but now, on my local testbed, clicking the link doesn’t do any ajax, and just takes me to the search results page, with no results found.

    I guess something obvious has changed since 1.2, but I’ve spent all day hammering away and can’t seem to figure it out. If anybody has any ideas, I’d be very grateful. Thanks!

    snowlas
    Participant

    Again – many thanks for your hard work! WordPress and BuddyPress are just awesome. I just need help with 2 things. I’m including a photo.

    Screen Capture

    1. I’m not sure where to get the custom background code or if I should place it somewhere in the buddypress default theme or my style sheet.

    2. I went into each page for group, activate, register, activity, etc, that buddy press made. Set the template to a full width template. This did not get rid of the sidebar when I’m in buddypress pages. I want to get rid of the sidebar all together.

    Thank you!

    #129068
    Paul Wong-Gibbs
    Keymaster

    bp_member_last_active() is only used in the members directory / member’s friend pages. It’s not in the default theme’s activity stream. I assume therefore you’re running a custom theme, which we’ll need to adjust. Did you create it yourself, or download it from somewhere? If the latter, hopefully the vendor offers support.

    #128819
    aces
    Participant

    Couldn’t you use something like travel-junkie’s walled garden technique:
    `
    function sh_walled_garden()
    {
    global $bp;
    if( bp_is_register_page() || bp_is_activation_page() || bp_is_page( BP_FORUMS_SLUG ) || bp_is_page( BP_GROUPS_SLUG ) )
    return;

    if( ! bp_is_blog_page() && ! is_user_logged_in() )
    bp_core_redirect( bp_get_signup_page() );
    }
    add_action( ‘bp_init’, ‘sh_walled_garden’ );
    `
    This goes in bp-custom.php and hides members and activity from those not logged in but enables forums and groups for everyone. It can also be customised…..

    kuching
    Participant

    I never used Buddypress.
    I’m working at a wordpress project that is structured as follows in a multisite configuration:

    1) main site, single language, heavily customized with post types, loads of content, no forum, one webshop
    2) secondary site, simpler setup, relatively little content, no forum, no webshop, multilanguage (WPML)
    3) third site hosting a forum only and no other content; forum interface will be multilanguage (like site #2)
    4) fourth site, reserved to admins only, single language, possibly a forum, to manage content and carry on project management tasks and discussions, etc.

    – all sites would be in the same domain (ie http://www.domain.com/ = 1, http://www.domain.com/2, http://www.domain.com/3 etc)

    – sites #1, #2, #3 would be seamlessly integrated in the frontend. However content displayed changes, since #1 has very different contents meant for users in the main language, while #3 is just a forum. Site #2 is intended to provide information and basic contents to international users, while the forum would provide a common space for discussion, being the interface translated.

    I want a multisite setup so users can keep their logins, cookies, across the sites, yet at the same time make some order to admin the different areas.

    Now… it is clear to me that WPML I can take care of the translation part. However, what I’m really clueless about is how to seamlessly integrate the forum part. Since mine is a community-type website, I want to have community features… Buddypress seems to offer a more complete solution for this than bare bbpress. I don’t want users to create their blogs or groups. But it would be nice to have better profile pages, private messaging, set their own display pic, and so on. Features that bbpress lacks or are not natively integrated (I come from a bbpress 1.0 experience and while I love it for the theming possibilities, plugin wise was badly supported).

    So what I would really like to know… Does it make sense to run BuddyPress on site #3, activate only modules for member profiles, forums and activity streams?

    Will the activity streams report activity of these users on sites #1 and #2? (would that include creation of new articles, posts and content by admins and authors? or just comments?)

    Will the users be able to login from site #1 or #2 or #3 and kept logged in without any weirdness happening when navigating through the sites and performing actions?

    Can authors from #1 and #2 link their profiles to profiles found in #3 Buddypress rather than using author.php? Same for registered users that post a comment on #1 or #2, can they have a link directing to their Buddypress member profile page/activity stream?

    Being site #1 only in one language for both content and interface, what if user jumps from #2 or #3 to #1 and then back to #2 or #3, would his languages preference being persistent?

    Thank you!

    #128750
    hhpask
    Member

    In user’s profile page, there are a menu activity, profile,setting,groups, how to add a new menu like that ?
    And when I click profile, it will show public,edit, and change avatar tab, how to add a new tab ?
    And how to customize them (default navigation and tabs) ?

    #27151

    Hello,

    I am setting up a BP-site for our media lab. However, the group creation is broken. I think it is a missing div tag, but it could also be something else. Here is what it looks like: http://medialabswest.se/activity/groups/create/

    Grateful for any help!

    And the specifics:
    1. WP-version: 3.3.1
    2. Directory install
    3. Install in public_html in root
    4. Upgraded from the last version before 3.3.1
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. – Yes
    6. BP-version: 1.5.3.1
    7. Upgraded from the last version before 1.5.3.1
    8. Other plugins activated: bbPress, Booking Calendar, Buddypress Album, BuddyPress re CAPTCHA, BuddyStream, Events Manager, Featured Content Gallery, Jetpack, Page Links To, s2Member, WP Super FAQ, XCloner
    9. Theme: BuddyPress Widget Theme
    10. Modified Core Files: yes, for Featured Content Gallery (index.php) and s2Member (wp-config.php)
    11. Do you have any custom functions in bp-custom.php? – No
    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? Version 1.2, not sure if it was installed with BP.
    13. Please provide a list of any errors in your server’s log files. – Not sure how to do that.
    14. Which company provides your hosting? – Oderland
    15. Is your server running Windows, or if Linux; Apache, nginx or something else? – Linux, Apache

    302kyle
    Member

    I am using WordPress 3.3
    I am using Buddypress 1.5.2
    I am using a WordPress theme called “Pandora” of which I customized to be able to support Buddypress.

    So the problem that I have is that the button “Load More” on the activity page of Buddypress does not load more content. It just does nothing.

    Any ideas on how to fix this?

    username_
    Member

    I am looking into creating some custom header links on my site and wanted them to link to the main activity wall with a corresponding filter selected. For example: click on groups link in the header ( no ajax ) this then loads the main activity page with the groups filter selected and displayed. I understand this is done through cookies to check which filter is selected upon page load. I looked through the _ajax.php file but not sure how to call the function correctly with what I am trying to accomplish.

    I guess my question is. Is this possible or should I try and just duplicate the correct cookies for the filter ( which sounds like over kill to me )?

    I hope this makes sense and possibly someone has an idea of where to start. Thanks!

Viewing 25 results - 801 through 825 (of 1,252 total)
Skip to toolbar