WordPress.org

Forums

BuddyPress Activity Plus
[resolved] anyway let uploaded image show on the top instead of on the bottom, or... (5 posts)

  1. tangpage
    Member
    Posted 2 years ago #

    any where in the activity?

    Hi , everybody; )

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

  2. Djole
    Member
    Posted 2 years ago #

    Hi,

    Im also looking for this, if buddypress activity plus show image first,on top of activity content, and under text, it could be used as thumb.

    any solution...? thanks

  3. Djole
    Member
    Posted 2 years ago #

    Anybody please,this is where I came and I'm not sure why image won't show up:

    `<?php if ( bp_activity_has_content() ) : ?>

    <div class="activity-inner">

    <?php $info = pathinfo($img);?>
    <?php $thumbnail = file_exists(bpfb_get_image_dir($activity_blog_id) . $info['filename'] . '-bpfbt.' . strtolower($info['extension'])) ?
    bpfb_get_image_url($activity_blog_id) . $info['filename'] . '-bpfbt.' . strtolower($info['extension'])
    :
    bpfb_get_image_url($activity_blog_id) . $img
    ;
    ?>
    <a>" " rel="<?php echo $rel;?>">
    <img src="<?php echo $thumbnail;?>" />
    </a>

    <?php bp_activity_content_body(); ?>

    </div>

    <?php endif; ?>

    <?php do_action( 'bp_activity_entry_content' ); ?>`

  4. Djole
    Member
    Posted 2 years ago #

    in class_bpfb_binder.php find this:

    $content = @$_POST['content'] . "\n" . $bpfb_code;

    its a line 272, and change it to:

    $content = $bpfb_code. "\n" . @$_POST['content'];

    so it will call bpfb first and then content. With css described above, image will go on top left corner,text to right and under.

    I hope its helpful.

  5. tangpage
    Member
    Posted 2 years ago #

    it works!!!!! thank you so much, Djole! : ) i love you ;>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.