This topic has 11 replies, 5 voices, and was last updated 9 years by Abe.

  • Author
  • #17530
     Pedroml
    Participant

    Hi.
    I want to show on the main page the buddypress activity (as in mydomain.com/activity), but only for logged in users, no logged users will see the registration form.

    Is there any shortcode to show buddypress activity on a page?

    Thanks.

    #17575
     guy_fraser
    Participant

    There is a short code for showing activity, but I have no idea how to only show it to logged in users.

    Anyway, the activity short code is:

    [kleo_bp_activity_stream number=6 show_button=yes button_label="More.." button_link="/activity"]

    I’ll add this to the knowledgebase

    #17578
     Pedroml
    Participant

    Hi @guy_fraser. Thank for this response.

    I already tried this and does not work as I need.

    Look at the screenshots.

    The second one is what I need.

    This plugin works great to limit content by login. http://wordpress.org/plugins/eyes-only-user-access-shortcode/

    Attachments:
    You must be logged in to view attached files.
    #17599
     guy_fraser
    Participant

    Ah, I see the differences:

    * Status update box missing on shortcode version
    * Filter links and drop-down missing on shortcode version
    * Favourite icons missing on shortcode version

    Perhaps if the kleo shortcode could have the following amendments:

    * status=”yes” – show status update box
    * filter=”navbar” – show filter navbar (links, drop-down)
    * favourite=”yes” – show favourite buttons

    BTW, that eyes-only shortcode is awesome, thanks for sharing!

    #17603
     Pedroml
    Participant

    That’s right, in any case I will look for an alternative solution, and I will write here.

    Thanks.

    #17625
     guy_fraser
    Participant
    #17903
     Abe
    Keymaster

    We have added another option to the kleo_bp_activity_stream shortcode to also enable/disable the post form. Also the favourite icon is now visible.

    This will be visible in this theme update.

    Also for you we have created a quick shortcode to display the whole activity page, that will be also available in next theme version so on update make sure to remove the below code so it won’t give you an error. Add the code to kleo-child/functions.php. Use the shortcode as [kleo_bp_activity_page]

    COPY CODE
    
    /**
     * Buddypress Activity page.
     */
    
    function kleo_bp_activity_page( $atts, $content = null ) {
    	ob_start();
    	bp_get_template_part( 'activity/index' );
    	$output = ob_get_clean();
    	
    	return $output;
    }
    add_shortcode('kleo_bp_activity_page', 'kleo_bp_activity_page');
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #27742
     tristanj
    Participant

    Is there any way of just displaying the Update Status field without seeing the newsfeed? I’ve tried putting in 0 to the number of newsfeed items but it didn’t work 🙁

    #28307
     Abe
    Keymaster

    That is not possible right now, sorry

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #31355
     sermsak
    Participant

    After i add the code to kleo-child/functions.php. Use the shortcode as [kleo_bp_activity_page]
    And my templete is – 3 Columns-Left and Right sidebars
    I have a problem with Footer , before i used this code above , the width of Footer is full as Header.
    But now it change. see attached file.

    Please help

    Attachments:
    You must be logged in to view attached files.
    #31358
     sermsak
    Participant

    I wish the width is full as Header.

    #31732
     Abe
    Keymaster

    Hi, this is KLEO forum, not Sweetdate as in your pictures. check your page code though

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 12 posts - 1 through 12 (of 12 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?