WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Activity Plus
[resolved] Buttons for Image/Video Upload do not show up (4 posts)

  1. bergblume
    Member
    Posted 1 year ago #

    Hi,

    I have integrated successfully the post-form of what´s new within my index.php of my theme by integrating this code

    unfortunately I do not see here the activity plus buttons (for links, images and videos).

    what do I have to do to get them also on my front page (Index homepage)? (but without setting whole buddypress site on home and only together with the stand alone post-form!)

    thanks a lot for helping!

    bergblume

    http://wordpress.org/extend/plugins/buddypress-activity-plus/

  2. bergblume
    Member
    Posted 1 year ago #

    ok! I solved it now!

    how?
    I copied my header.php and renamed it to header-activity.php
    in this file I copied the following code in the head-area

    <link rel='stylesheet' id='file_uploader_style-css'  href='./wp-content/plugins/buddypress-activity-plus/css/external/fileuploader.css?ver=3.3.1' type='text/css' media='all' />
    <link rel='stylesheet' id='bpfb_interface_style-css'  href='./wp-content/plugins/buddypress-activity-plus/css/bpfb_interface.css?ver=3.3.1' type='text/css' media='all' />
    <link rel='stylesheet' id='bpfb_toolbar_icons-css'  href='./wp-content/plugins/buddypress-activity-plus/css/bpfb_toolbar.css?ver=3.3.1' type='text/css' media='all' />
    
    <script type="text/javascript">var _bpfbRootUrl="./wp-content/plugins/buddypress-activity-plus";var _bpfbTempImageUrl="./wp-content/uploads/bpfb/tmp/";var _bpfbBaseImageUrl="./wp-content/uploads/bpfb/";</script><script type="text/javascript">
    
    <script type='text/javascript' src='./wp-content/plugins/buddypress-activity-plus/js/external/fileuploader.js?ver=3.3.1'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var l10nBpfb = {"add_photos":"Add photos","add_remote_image":"Add image URL","add_another_remote_image":"Add another image URL","add_videos":"Add videos","add_video":"Add video","add_links":"Add links","add_link":"Add link","add":"Add","cancel":"Cancel","preview":"Preview","choose_thumbnail":"Choose thumbnail","no_thumbnail":"No thumbnail","paste_video_url":"Paste video URL here","paste_link_url":"Paste link here"};
    /* ]]> */
    </script>
    <script type='text/javascript' src='./wp-content/plugins/buddypress-activity-plus/js/bpfb_interface.js?ver=3.3.1'></script>

    in my index.php I`ve replaced
    <?php get_header(); ?>
    with
    <?php include (TEMPLATEPATH . '/header-activity.php'); ?>

    I hope it helps s.o. else with the same problem of using the post-box as stand-alone on any other wordpress-site!

  3. mandy2.he@gmail.com
    Member
    Posted 1 year ago #

    @Bergblume
    thanks very much for the tips. It did not work for me. I tried to find the code in header but there are not that codes there. I could not find any clue of where the buddypress activity plus codes are. I checked with every php file but I have not any idea where to find the "what's new" code with all different types of content formats that bp activity plus should support.

    The what's new form in the activity stream works perfect with different types of content input (txt, picture, video, camera).

    I copied the post-form.php in my homepage.php (try to add the what's new form in the homepage) but the form shown on homepage is only text format. Do you have any idea what is going wrong and how can I fix the problem?
    My site is: http://www.k-12parents.com

    Thanks!

  4. mandy2.he@gmail.com
    Member
    Posted 1 year ago #

    @bergblume

    the post-form.php looks like this. I have not find an idea how to add with different format of content input for the what's new form. It is strange that the bp activity plus works great in the activity stream page.

    <?php

    /**
    * BuddyPress - Activity Post Form
    *
    * @package BuddyPress
    * @subpackage bp-default
    */

    ?>

    <form action="<?php bp_activity_post_form_action(); ?>" method="post" id="whats-new-form" name="whats-new-form" role="complementary">

    <?php do_action( 'bp_before_activity_post_form' ); ?>

    <div id="whats-new-avatar">
    ">
    <?php bp_loggedin_user_avatar( 'width=' . bp_core_avatar_thumb_width() . '&height=' . bp_core_avatar_thumb_height() ); ?>

    </div>

    <h5><?php if ( bp_is_group() )
    printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname() );
    else
    printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname() );
    ?></h5>

    <div id="whats-new-content">
    <div id="whats-new-textarea">
    <textarea name="whats-new" id="whats-new" cols="50" rows="10"><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_attr( $_GET['r'] ); ?> <?php endif; ?></textarea>
    </div>

    <div id="whats-new-options">
    <div id="whats-new-submit">
    <input type="submit" name="aw-whats-new-submit" id="aw-whats-new-submit" value="<?php _e( 'Post Update', 'buddypress' ); ?>" />
    </div>

    <?php if ( bp_is_active( 'groups' ) && !bp_is_my_profile() && !bp_is_group() ) : ?>

    <div id="whats-new-post-in-box">

    <?php _e( 'Post in', 'buddypress' ); ?>:

    <select id="whats-new-post-in" name="whats-new-post-in">
    <option selected="selected" value="0"><?php _e( 'My Profile', 'buddypress' ); ?></option>

    <?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&type=alphabetical&max=100&per_page=100&populate_extras=0' ) ) :
    while ( bp_groups() ) : bp_the_group(); ?>

    <option value="<?php bp_group_id(); ?>"><?php bp_group_name(); ?></option>

    <?php endwhile;
    endif; ?>

    </select>
    </div>
    <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />

    <?php elseif ( bp_is_group_home() ) : ?>

    <input type="hidden" id="whats-new-post-object" name="whats-new-post-object" value="groups" />
    <input type="hidden" id="whats-new-post-in" name="whats-new-post-in" value="<?php bp_group_id(); ?>" />

    <?php endif; ?>

    <?php do_action( 'bp_activity_post_form_options' ); ?>

    </div><!-- #whats-new-options -->
    </div><!-- #whats-new-content -->

    <?php wp_nonce_field( 'post_update', '_wpnonce_post_update' ); ?>
    <?php do_action( 'bp_after_activity_post_form' ); ?>

    </form><!-- #whats-new-form -->

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.