Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 226 through 250 (of 831 total)
  • Author
    Search Results
  • #258866
    danbp
    Participant

    Hi,

    not sure i understand correctly, but if you want the resume page to show as default landing tab (in place of the user activity) when you are on a profile, you can use this:

    define( 'BP_DEFAULT_COMPONENT', 'resume' );

    Add it to bp-custom.php

    Codex reference.

    #258782
    inzerat
    Participant

    This is part of buddypress. On activity page have meta title description “Side wide Activy – Name of web” a i want change this in bp-custom.php

    #258638
    danbp
    Participant

    I’m unable to reproduce your issue on a single install with over 20 plugins active and plenty of custom functions active in bp-custom.php
    I can upload medias without problem with different 3th party themes or Twenty’s

    Try to upload a fresh copy of WordPress and BP and see if it makes a difference.

    Now about the snippet.
    It works more or less, no code error. You commented the action, so it is deactivated if someone copy/paste it without correcting this.

    That said, what is the reason behind using a redirection to login if the site, or at least the buddyPress parts, should be private ?

    Wouldn’t it be more logic to redirect visitors to an anonymous page with some important information, from which the first one could be Sorry, but this site is private ? Followed by some informations how to register or pay a fee or whatever the reason.

    A private site has two type of visitors: those invited to join and the others. Don’t give the opportunity to those who are there by chance to enter the site so easily.

    I let you think about this and eventually create an appropriate page and template.
    Here a code example redirecting to a page called Intranet and the correct calls to slugs for all components (including bbPress).

    function bpfr_guest_redirect() {
    global $bp;
    // enter the slug or component conditional here
    	if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) || is_bbpress() ) {
    	
    // not logged in user are redirected to - comment/uncomment or add/remove to your need
    		if( !is_user_logged_in() ) { 
    			//wp_redirect( get_option('siteurl') ); //back to homepage
    			//wp_redirect( get_option('siteurl') . '/register' ); // back to register page	
    			wp_redirect( get_option('siteurl') . '/intranet' ); // back to whatever page
    		} 
    	}
    }
    add_filter( 'get_header', 'bpfr_guest_redirect', 1 );

    Add it to child-theme’s functions.php

    #258589
    ositive
    Participant

    I tryed to work also with this solution (provided by @shanebp too):
    https://buddypress.org/support/topic/creating-a-new-order-by-filter-in-groups-loop-with-custom-sql/
    but I do not obtain to order members by rating.. is this the right approach??

    function antares_members_filter_options() {
        echo '<option value="rating">rating</option>';
    }
    add_action( 'bp_members_directory_order_options', 'antares_members_filter_options' );
    
    function antares_ajax_querystring( $query_string, $object ) {
    
    	if ( 'members' != $object ) 
    		return $query_string;
    
    	if ( ! bp_is_members_directory() ) 
    		return $query_string;
    	
    	$query_args = wp_parse_args( $query_string, array() );
    
            $page = $query_args['page'];
    
    	if( isset( $query_args['action'] ) && $query_args['action'] == 'rating' ) {
    	
    		$query_args = array();
    		$query_args['page'] = $page;
    		$query_args['orderby'] = 'rating';		
    		$query_args['order'] = 'ASC';			
    		$query_args['include'] = antares_get_members(); 
    		$query_string = http_build_query( $query_args );
    
    	}
    
    	return $query_string;
    
    }
    add_filter( 'bp_ajax_querystring', 'antares_ajax_querystring', 32, 2 );
    
    function antares_get_members() {
        global $wpdb;
    
            $sql = "SELECT 
    					a.ID as id, a.user_login AS name, a.display_name AS displayname, AVG(star) AS rating, COUNT(star) AS reviews
    				FROM 
    					{$wpdb->prefix}users AS a
    				LEFT JOIN 
    					{$wpdb->prefix}bp_activity AS b ON a.ID = b.usercheck
    				WHERE 
    					(b.is_activated is null or b.is_activated=1)
    				GROUP BY 
    					id
    				ORDER BY 
    					rating DESC";
        
    $buff = array();
    
    $result = $wpdb->get_results( $sql , OBJECT );
    
    		foreach ($result as $row) {
    			$buff[]= $row->id ;
    		}
    		
    $query_str= implode (',', $buff);
    return $query_str;
    }
    #258559
    jbboro3
    Participant

    Why don’t you just put this two lines of css code in your theme’s css or custom css page instead of trying to get into functions files..

    a.button.item-button.bp-secondary-action.delete-activity.confirm {
    display: none;
    }
    a.delete.acomment-delete.confirm.bp-secondary-action {
    display: none;
    }

    #258373
    jbboro3
    Participant

    Hello bp community,

    As I’m relatively new to buddypress, I couldn’t figure out why my widgets are not showing up even after assigning the widget on a relevant page (Home profile page/ members page).

    Interestingly, it shows up whenever I assign the widgets to “404 NOT FOUND” page.. The settings are fine. There is already proper allocation of members pages and Activity streams (NOT in the “404 NOT FOUND” page). Even creating custom template page and assigning them didn’t work either.. Seems like members pages are acting like NONE existent on the actual page they are assigned with

    Am I doing something wrong with the configuration? Please share if someone is facing the same problem..

    Thanks

    lomaymi
    Participant

    I’m trying to change the way new blog posts are seen on the Site Wide Activity page and I’m halfway there, but having a few issues. Here what I have so far (in bp-custom.php):

    
    <?php
    
    // Edits how blog posts appears on activity feed.
    
    function bp_full_posts_in_activity_feed( $content, $activity ) {
    
         if ( 'new_blog_post' == $activity->type ) {
    
            $post = get_post( $activity->secondary_item_id );
    
         if ( 'post' == $post->post_type )
                 $title = isset( $post->post_title ) ? $post->post_title : '';
                 $content = apply_filters( 'the_content', $post->post_content );
                 $author = "<h5 align=center>By Author Name Here</h5>";
                
         }
        
        echo "<h2 align=center>" .$title. "</h2>";
        echo $author;
        echo $content;
         
    }    
    add_filter( 'bp_get_activity_content_body', 'bp_full_posts_in_activity_feed', 10, 2 );
    

    What I’m trying to do is instead of having the full post I want for the post to break whenever the more tag is used in a post. After the more tag a text or button should appear saying “Read More”. I tried a few things with no success, will appreciate some pointers in the right direction.

    Another thing (although not that important) is that instead of having a default text with “By Author Name Here” it would be great if it can print the name of the post author. I tried using get_the_author(), the_author() and the_author_link(), but none of them were able to show the name in the activity feed.

    Thanks in advance

    #258189
    jbboro3
    Participant

    Hey, @danbp Thanks for the long and detailed response.

    I’m fully aware of what you’re trying to convey the risk factors on this.. But as my requirements are different, I’ve completely disabled the media library and allowed access the users to each individual gallery only (negating the access of other’s files).. I’ve uploaded images hosted on sub-domains that completely separate from the main site.

    All the activities that takes place on the site are on the front end.. The back end wp administrator dashboard are disabled for editing ( of course they are enabled for updating plugins & adding pages occasionally) as most of the pages are done in custom-template.. No admin or author level privileges are created on the site – just the subscriber as it’s mainly a networking site.. The idea that attaching the media button gives lots of flexibility to the users to resize the images or review them in the content area itself before they can post the activity.. Unless it’s a forums or community sites, for a networking sites, leaving alone with html codes or text editors may be (perhaps) discouraging impression for the social users.

    I’m glad that you pointed out it’s more of a wordpress thing than buddypress.. I’ll have a look at the possibility of getting it work and let you know.

    Thanks.

    #258125
    danbp
    Participant

    The ultimate tutorial to add wp_editor to What’s New textarea (on Site, Members and Group Activities pages).

    Warning
    The What’s New feature was never intended to publish posts or formatted text. It was imagined for brief announcement or instant conversation. That’s why this textarea is texturized and doesn’t allow much HTML tags. It is also ajaxified and need the original BP ID to work.
    You will use it at your own risk.

    The following trick will let you remove the existing textarea from the template and replace it with a custom wp_editor. And it will be very customized ! For example, you will not have the visual tab, but only his HTML version, similar to the one you see on this forum for example.

    Required:
    BuddyPress activated
    a working child theme
    some understanding of HTML and php grammar

    This trick was succesfully tested on a single install with WP 4.6, BP 2.6.2 and a Twenty Sixteen child theme.

    Start !
    Read from here how to remove the textarea in post-form.php

    The code to remove is line 40 and looks like this:

    <textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10"
    	<?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?>
    ><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>

    You replace it by:

    <?php
    $content = '';
    $editor_id = 'whats-new';
    wp_editor( $content, $editor_id );
    ?>

    As the visual edit tab doesn’t work, you must deactivate it. In your child-theme functions.php, add this:
    add_filter( 'user_can_richedit' , '__return_false', 50 );

    And that’s it !

    If you want also rich edit for activity comments, which i didn’t recommand for sites who have many comments, you can use the same technique as above, with some more settings. Note that each comment has is own ID and that each comment editor should also have an unique ID.

    First, you need to remove the textarea from (child-theme/buddypress/)activity/entry.php
    You remove this:
    <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input bp-suggestions" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
    and replace it by

    <?php
    $id             = bp_get_activity_id();
    $content	= '';
    $editor_id	= 'ac-input-'. $id;
    $settings	= array( 
    			'textarea_name'	=> 'ac_input_'. $id,
    			'editor_class'	=> 'ac-input bp-suggestions'
    		);
    wp_editor( $content, $editor_id, $settings );
    ?>

    With Twenty Sixteen, i first couldn’t see the Post Update button and the option selector. I got it with this little CSS adjustment (in child-theme/style.css).

    div#whats-new-options { display: block!important;}

    Function reference: wp_editor.

    #258122
    lil_bugga
    Participant

    Site:http://www.vwrx-project.co.uk Using WordPress 4.6 and BuddyPress 2.6.2

    I’ve just installed BuddyPress as I want to create a community based website within WordPress.

    My end goal is to have a site where multiple users can add content regarding their car project/build, where each update they add is displayed on the homepage of the site, but where viewing a users profile you could, should you wish, view someones project in its entirety with all posts and content or view just the images they’ve uploaded.

    I’m in the process of creating my own theme for this website but I’m having a hard to changing anything within BuddyPress.

    I’ve copied the entire BuddyPress plugin directory into my theme and then each document I edit I make a note of, so then I can remove any files I haven’t touched. I wanted to start with something simple before moving onto bigger modifications so opted to try and change the Site-Wide Activity title that displays.

    I have found bp-activity-actions.php line 450 & class-bp-activity-component.php line 125 and edited, saved and uploaded/overwrote these files into my themes version of Buddypress but can’t get the title to change.

    Once I’d done that I was hoping to edit the activity page to remove almost everything, the only part I really wanted to keep was the activity feed itself so that anyone visiting my sites homepage will see the most recent updates etc.

    Have I missed/overlooked something silly. I’m more accustomed to creating websites myself with CSS and PHP etc but as I want this site to be easy to use and accessible to multiple people adding content I felt this would be a better route to take.

    #258065
    jgilbert1990
    Participant

    Hope everybody is doing well.
    Im having trouble using a plugin. The plugin is by likebtn.com and allows me to sort activity by most liked content. However it requires modifying a bit of code and im having quite the difficult time. I have tried pasting this line of code into a few different files. Currently im trying to paste it into ‘public_html/wp-content/plugins/buddypress/bp-activity/bp-activity-template.php’. When i try to include it into the PHP file the activity page breaks and a syntax error appears saying there was an unexpected ‘<‘ at the top of the new code. Here is where i pasted the code and the instructions provided by likebtn.com

    function bp_has_activities( $args = '' ) {
    	global $activities_template;
    
    	// Get BuddyPress.
    	$bp = buddypress();
    
    	/*
    	 * Smart Defaults.
    	 */
             //Filtering by Likes.Custom Code.
             <?php query_posts($query_string . '&meta_key=Likes&orderby=meta_value&meta_type=numeric&order=DESC'); ?>
    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>
        <?php get_template_part( 'content', get_post_format() ); ?>
    <?php endwhile; ?>
    
    	// User filtering.
    	$user_id = bp_displayed_user_id()
    		? bp_displayed_user_id()
    		: false;

    https://likebtn.com/en/wordpress-like-button-plugin#sort_posts_by_likes

    #257816
    ositive
    Participant

    Hi!
    First of all thanks for the amazing work you are doing..
    In my buddypress installation I’ve a rating associated to each member (each member can rate each other) and I would like to add “rating” to the “order by” option of the member page.

    Now I can do it with a widget that orders members with the function I report below. But I would like to add the possibility to order members by rating in the “order by” option.

    I’ve seen the topic https://buddypress.org/support/topic/adding-new-order-by-on-members-loop/ trying to adapt it to my case, but the order by rating option do not work properly.

    It is possible to adapt that solution (or another working) to my case?
    Thanks in advance.

    function prorevs_users_by_rating($limit) {
        global $wpdb;
        if (current_user_can('administrator')):
    
            $users = $wpdb->get_results(
                    $wpdb->prepare(
                            "SELECT
                     a.ID as id, a.user_login AS name, a.display_name AS displayname, AVG(star) AS rating, COUNT(star) AS reviews
                 FROM {$wpdb->prefix}users AS a
                 LEFT JOIN {$wpdb->prefix}bp_activity AS b ON a.ID = b.usercheck
                 WHERE (b.is_activated is null or b.is_activated=1)
                 GROUP BY id
                 ORDER BY rating DESC
                 LIMIT %d", $limit
                    )
            );
        else:
            $users = $wpdb->get_results(
                    $wpdb->prepare(
                            "SELECT
                     a.ID as id, a.user_login AS name, a.display_name AS displayname, AVG(star) AS rating, COUNT(star) AS reviews
                 FROM {$wpdb->prefix}users AS a
                 LEFT JOIN {$wpdb->prefix}bp_activity AS b ON a.ID = b.usercheck
                 WHERE (b.is_activated is null or b.is_activated=1)
                 GROUP BY id
                 ORDER BY rating DESC
                 LIMIT %d", $limit
                    )
            );
        endif;
        return prorevs_print_users($users);
    }
    
    function prorevs_users_by_rating_shortcode($atts) {
        extract(shortcode_atts(array('limit' => 10), $atts));
        return prorevs_users_by_rating($limit);
    }
    #257815
    alexdex
    Participant

    Hi, i put this:

    define ( ‘BP_ENABLE_ROOT_PROFILES’, true );

    add_filter( ‘bp_core_enable_root_profiles’, ‘__return_true’ );

    I try in bp-custom. php and also in my function theme but not work

    Every time i click in the activity page on the username (like email) do not work, 404 error

    For example, if a username member is alex7@gmail.com and i click do not work, if is only alex7 it work perfect

    The path is:

    members/alex7@gmail.com/ DO NOT WORK

    members/alex7/ WORK

    Can you help me?

    Thanks a lot

    #257683
    brianhackett
    Participant

    Hi Guys
    Im using custom post activities to pull in rss feeds into user activity feeds. I use wp rss aggregator and feedtopost to create a custom posts feed from other social networks which i can then assign to individual members. So at the moment I have pull in the feed excerpt as a title and the featured image into the feed using this code

    <?php
    // Don't forget to add the 'buddypress-activity' support!
    add_post_type_support( 'social_feed', 'buddypress-activity' );
    function customize_page_tracking_args() {
        // Check if the Activity component is active before using it.
        if ( ! bp_is_active( 'activity' ) ) {
            return;
        }
        bp_activity_set_post_type_tracking_args( 'social_feed', array(
            'component_id'             => buddypress()->blogs->id,
            'action_id'                => 'new_social_feed',
            'bp_activity_admin_filter' => __( 'My Social Feed', 'custom-domain' ),
            'bp_activity_front_filter' => __( 'Social Feed', 'custom-domain' ),
            'contexts'                 => array( 'activity', 'member' ),
            'activity_comment'         => true,
            'bp_activity_new_post'     => __( '%1$s posted a new <a href="%2$s">Social Media Update</a>', 'custom-textdomain'  ),
            'bp_activity_new_post_ms'  => __( '%1$s posted a new <a href="%2$s">Social Media Update</a>, on his profile', 'custom-textdomain' ),
            'position'                 => 100,
        ) );
    }
    
    add_action( 'init', 'customize_page_tracking_args', 1000 );
    
    // Adds title of custom Blog Post Type instead of excerpt
    
    function record_cpt_activity_content( $cpt ) {
    
        if ( 'new_social_feed' === $cpt['type'] ) {
    
            $cpt['content'] = get_the_title();
        }
    
        return  $cpt;
    }
    add_filter('bp_after_activity_add_parse_args', 'record_cpt_activity_content'); 
    
    // Adds custom blog featured image to activity feed
    function record_cpt_activity_content_featured_image( $cpt ) {
    
        if ( 'new_social_feed' === $cpt['type'] ) {
    
            global $wpdb, $post, $bp;
            $theimg = wp_get_attachment_image_src(  get_post_thumbnail_id( bp_get_activity_secondary_item_id() ) );
            $cpt['content'] .= '<img src="' . $theimg[0] . '" width="160px" height="30px">';
        }
    
        return $cpt;
    }
    add_filter('bp_after_activity_add_parse_args', 'record_cpt_activity_content_featured_image');
    ?>

    This works well but i would like to add a link back to the original social media post.I have setup wp rss aggregator to add the original link as the permalink for each of the custom posts.So I wanted to know how to work the permalink in so the title and image are linked back to the original post.
    Thanks

    Apokh
    Participant

    – checked- theres only one Activity page
    – resaved permalink structure
    – i dont use custom code, but activity+ plugin
    – i use quiet a bunch of additional plugins:
    –BoweCodes
    –Buddypress
    –DisableFeeds
    –DownloadManager
    –DynamicWidgets
    –EventsManager
    –GoogleAnalyticsDashboard
    –GoogleFonts for WP
    –HungryFEED
    –LayerSliderWP
    –Mediapress
    –Members
    –Metaslider+Pro
    –myCred
    –myCredHookBP
    –PageBuilder Siteorigin
    –PaypalDonations
    –Peters Login Redirect
    –PHP Text Widget
    –SimplePress
    –Siteorigins Masonry
    –SpamProtect by Cleantalk
    –TablePress
    –Wordpress VideoGalery
    –WP FullCalendar
    –WP Lastlogin
    –WP TwitterFeeds
    –WP ULike
    –WP touchmobile

    danbp
    Participant

    @apock i merged your older topic to this one.

    – ensure you have only one activity page (and none in trash).
    – resave your permalinks. Sometimes pages are lost after updates.
    Also:
    – have you tested with another theme ?
    – which plugins do you use ?
    – do you use some custom code related to activities ?

    #257616
    zelda16
    Participant

    Hi there,

    I was just wondering if you could help me; I’m trying to start a Buddypress sub-community on my existing website. We currently have a user system that enables the use of our services; however I was trying to create a forum as a sub-page on our website and a community from that. I realised, however, that WP was finding it difficult to distinguish users on our current system with users of Buddypress. Is there a way of creating a completely separate user-type for Buddypress, so as to prevent cross-over from our two systems?

    I want to work towards:
    -Different details required for our user system than Buddypress
    -Different menu items for our users than for forum users
    -Our user details and activity goes into a massive database; however I don’t want this to be impacted by the forum users

    Thanks a lot for your help!

    Running: WordPress 4.5.3 on Customizr theme
    Buddypress 2.6.2

    #257147
    buddycore
    Participant

    I’m going to design & develop a theme for BuddyPress to help pay the bills around here.

    The theme will be made open-source until I have an audience then I may put a price on the theme to maintain it and help pay my bills.

    This is my research before embarking on the project. I’d really appreciate the help.

    Should I make a light or dark theme?

    What components are most important, I will build in this order and release for testing once each component is functional. Please order accordingly.

    1. Activity Stream
    2. Member Profiles
    3. Member Directory
    4. Group Pages
    5. Group Directory
    6. Network
    7. BBPress Forums

    Are you interested in being a beta tester? You will get access to the theme files to use in your own projects in return.

    What customisations would you like built in? Things like custom logos, and colours? That type of thing.

    How many custom navs are required?

    Do you want full WordPress support for posts and pages? Things like post format, post thumnbails and HTML5 when and where possible.

    What about templates, would you like an optional custom front-page?

    Anything else you feel like discussing please do so.

    After the theme gets off the ground I may decide to release it as a premium theme to help pay the bills, but for now I’m looking for an audience to get started with.

    Lastly, I was going to blog about the progress in my site buddycore.com to keep anyone who is interested up to date.

    Thanks for your help.

    kmligue
    Participant

    I found this function ‘bp_dtheme_post_update’ in ‘/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php’. Im guessing this is the one who handles new post in activity page. I just would like to make the textarea in the activity page always required even when uploading image. Im using rtmedia plugin, btw.

    #257046
    bigkahunaburger
    Participant

    Try this (the second function adds the course title):

    
    function customize_page_tracking_args() {
        if ( ! bp_is_active( 'activity' ) ) {
            return;
        }
         add_post_type_support( 'sfwd-courses', 'buddypress-activity' );
     
     
        bp_activity_set_post_type_tracking_args( 'sfwd-courses', array(
            'action_id'                         => 'new_sfwd-courses',
            'bp_activity_admin_filter'          => __( 'Published a new course', 'custom-textdomain' ),
            'bp_activity_front_filter'          => __( 'Course', 'custom-textdomain' ),
            'bp_activity_new_post'              => __( '%1$s wrote a new course, <a href="%2$s">[Course]</a>', 'custom-textdomain' ),
            'bp_activity_new_post_ms'           => __( '%1$s wrote a new course, <a href="%2$s">[Course]</a>, on the site %3$s', 'custom-textdomain' ),
            'contexts'                          => array( 'activity', 'member' ),
            'comment_action_id'                 => 'new_sfwd-courses_comment',
            'bp_activity_comments_admin_filter' => __( 'Commented on a course', 'custom-textdomain' ),
            'bp_activity_comments_front_filter' => __( 'Course Comments', 'custom-textdomain' ),
            'bp_activity_new_comment'           => __( '%1$s commented on a <a href="%2$s">Course</a>', 'custom-textdomain' ),
            'bp_activity_new_comment_ms'        => __( '%1$s commented on a <a href="%2$s">Course</a>, on the site %3$s', 'custom-textdomain' ),
            'position'                          => 100,
        ) );
    }
    add_action( 'init', 'customize_page_tracking_args', 1000 );
    
    function new_sfwd-courses_include_post_type_title( $action, $activity ) {
    	if ( empty( $activity->id ) ) {
    		return $action;
    	}
    
    	if ( 'new_sfwd-courses' != $activity->type ) {
    		return $action;
    	}
    
    	preg_match_all( '/<a.*?>([^>]*)<\/a>/', $action, $matches );
    
    	if ( empty( $matches[1][1] ) || '[Course]' != $matches[1][1] ) {
    		return $action;
    	}
    
    	$post_type_title = bp_activity_get_meta( $activity->id, 'post_title' );
    
    	if ( empty( $post_type_title ) ) {
    
    		switch_to_blog( $activity->item_id );
    
    		$post_type_title = get_post_field( 'post_title', $activity->secondary_item_id );
    
    		// We have a title save it in activity meta to avoid switching blogs too much
    		if ( ! empty( $post_type_title ) ) {
    			bp_activity_update_meta( $activity->id, 'post_title', $post_type_title );
    		}
    
    		restore_current_blog();
    	}
    
    	return str_replace( $matches[1][1], esc_html( $post_type_title ), $action );
    }
    add_filter( 'bp_activity_custom_post_type_post_action', 'new_sfwd-courses_include_post_type_title', 10, 2 );
    #257034
    anthlon
    Participant

    Hi, I’m using Buddypress (2.6.1.1) and LearnDash (2.2.1.1) and the BuddyPress for LearnDash add-on (1.1.0.0) with WordPress (4.5.3) to create a website that allows users to learn more about certain subjects and also gives them a place where they can speak about the content that’s on the website, for this I decided to use BuddyPress since it’s Activity Feed and use of Groups seemed like a very good fit for what I was looking for.

    I’m having a bit of trouble getting comments made on the LearnDash Courses appearing in the BuddyPress Activity feed, I was following this:
    Post Types Activities Page
    When I add:
    add_post_type_support( 'sfwd-courses', 'buddypress-activity' );
    to bp-custom.php the creation of a new course is posted to the activity feed, however you can’t comment on it from the activity feed and comments on the Course Page don’t show on the Activity Feed.

    Adding the function Customize_page_tracking_args() to my bp-custom.php also doesn’t change anything and I’m still told that “Admin has added a new item”
    Activity Feed Post

    Pastebin of bp-custom.php

    #256818
    knowitallnz
    Participant

    Hi Jrzvw,

    Were you able to fix this?

    I can’t find where to start a new questions so i will just add to this one?

    My current site only shows the members that were active. There is 50 WP members registered but only 22 showing on ALL MEMBERS page. I feel the amount of members showing will influence the amount that will join up. SO this one time I would like to have it show all registered members and after it can just add them as they are active.

    I tried : add_filter( ‘bp_get_total_member_count’, ‘bp_core_get_total_member_count’ ); in the theme function.php and also bp-custom.php BUT it did nothing.

    I tried a few other suggestions e.g one that did make the last activity of all users registered to be a certain time, however this made all the Members look as they are logged in. Is there any code I can insert in function.php that will show the members registered and not just the active ones?

    Cheers.

    Link to my test site:

    BP 2.6.11
    WP 4.5.3

    #256817
    buddycore
    Participant

    If you look at wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/index.php That’s the template you need to edit in order to change that text.

    Inside wp-content/themes/your-theme/ Make a file called buddypress.php. In that file add the following…

    <?php get_header(); ?>
    <?php the_post(); the_content(); ?>
    <?php get_footer(); ?>

    By default BuddyPress will use a file located in your theme that currently exists, something like page.php as you can read about here.

    By creating a buddypress.php we’re telling BuddyPress to use a custom template loader for all BuddyPress pages and components. Inside that file (buddypress.php) you can do anything you like for the “wrapper” around your BuddyPress stuff. In the code example above for buddypress.php we’re grabbing the content but not bringing in things like <?php the_title(); ?> like you will find in a typical page.php that most WordPress themes will have.

    This will remove ALL page titles from BuddyPress pages, as you now have a custom “wrapper” for those areas the plugin will use.

    If you wish to remove the title on a per page basis you may simply want to do a CSS solution and do target the body tag with CSS and then any suitable elements in the HTML. This means you could do something like…

    body.activity.directory div.page-inner h2 { display: none; }

    If you don’t want to do a CSS solution you can then look into component detection.

    Hope that helps.

    #256721
    shanehidir
    Participant

    Hi, I’m using WordPress 4.5.3–en_GB, with BuddyPress version 2.6.1.1, running on a Customizr child theme.

    I wish to apologise if my following details are too long winded, I wish to include as much details as possible.

    I have included a link in my side menu to view site activity.

    Site-Wide Activity

    It displays all recent site activity. New members, new group creations, new media uploaded, comments on photos etc.. All is displayed well except for the comment on photo part in the activity list.

    When user posts an ‘update’ / photo in group, the thumbnail is there on the activity page, and when clicked it displays lightbox feature along with photo details and comments on the right. But when user has commented on the photo, the update displayed in the activity page is correct (user has commented on a Photo in the group xxx, but upon clicking the link, it shows only lots of words.

    This is the link to the many words displayed instead of the same lightbox effect as stated above.
    http://vacahost.info/groups/sg-24hr-halal-foodfinders/media/7/
    Message displayed: Dedicated to shift workers that have to source for food in the wee hours of the night or morning. Group Admins HomeMembers 2Send InvitesMedia 4Manage All4Albums1Photos4Videos0Music0 20160616_232320 EditDelete Like Comment 0 people like this AyraAdelia 12 July 2016 Selling […]

    Once again, apologies for the detailed description.

    Kindly help me, did I enable or disable something by mistake?

    Regards,
    shanehidir

    #256620
    Ben Riga
    Participant

    Dan,

    I spent some time on this and have figured out the loop that will give me the activity entries I need. I’m trying to add the list of activities on the same page I display the Beer custom post type. So show the beer info at the top and the list of related activities below it. I’m doing that on a theme page and would need to call the activity/entry.php for each of the entries. Is there a way to do that or would I need to copy the code from there?

    The query will look something like this:

    $args = array(
    	'post_type' => 'check_in',
    	'posts_per_page' => '-1',
    	'post_status' => array(
    		'publish',
    	),
    	'meta_key' => 'check_in_details_beer-id',
    	'meta_value' => $current_post
    
    );
    
    // run the query
    $query_checkins = new WP_query ( $args );
    
    // check the query returns posts
    if ( $query_checkins->have_posts() ) :
    
    	while ( $query_checkins->have_posts() ) : $query_checkins->the_post();
    
    		$ci_postid = get_the_ID(); 
    
    		if ( bp_has_activities( bp_ajax_querystring( 'activity' )  . '&secondary_id='. $ci_postid ) ) : 
    

    Thanks for the help and support,
    Ben

Viewing 25 results - 226 through 250 (of 831 total)
Skip to toolbar