Skip to:
Content
Pages
Categories
Search
Top
Bottom

Images in wire


  • Roy McKenzie
    Participant

    @roymckenzie

    Is it possible to allow img tags to be allowed and interpreted on wire posts? I’d really like to get that on the wire

Viewing 15 replies - 1 through 15 (of 15 total)

  • John James Jacoby
    Keymaster

    @johnjamesjacoby

    In the realm that anything is possible, yes. :)

    But currently the activity feed strips out any html and anything it thinks is an image. Mostly to avoid mucking up the feed with huge images, etc…

    The best answer I have for this for now, is that BP1.0 is the jumping off point without too many bells and whistles. It shows how to intertwine WordPress MU installs together to become a basic social networking structure. In theory you could certainly add all sorts of activity feed filters and ajax and images and fancy things to it, but there is no on/off option for images.


    Roy McKenzie
    Participant

    @roymckenzie

    Could you point me in the right direction in adding a new activity feed filter?


    John James Jacoby
    Keymaster

    @johnjamesjacoby

    A new filter, like adding a new action to the activity feed? Or a new filter, like adjusting the way that the feed filters information?

    Either way, you could start at bp-activity/bp-activity-filters.php and see if that gets you what you’re looking for?


    Roy McKenzie
    Participant

    @roymckenzie

    I will take a look. Thanks for your help John.


    Roy McKenzie
    Participant

    @roymckenzie

    Allowing if someone wants to post an image to a wire with the <img> tag, it wont get striiped out and so it will show up in the activity feeds

    I added this to my bp-custom.php hoping it would fix my issue.

    <?php
    function my_allowed_tags($allowedtags){
    $allowedtags['img'] = array();
    return $allowedtags;
    }
    add_filter( 'edit_allowedtags', 'my_allowed_tags' );

    add_filter( 'bp_get_activity_content', 'my_allowed_tags' );

    add_filter( 'bp_get_wire_post_content', 'my_allowed_tags' );

    ?>


    nicolagreco
    Participant

    @nicolagreco

    that should be wrong :S

    it should be like that:

    function my_allowed_tags($allowedtags){
    $allowedtags .= <img>;
    return $allowedtags;
    }
    add_filter( 'edit_allowedtags', 'my_allowed_tags' );

    add_filter( 'bp_get_activity_content', 'my_allowed_tags' );

    add_filter( 'bp_get_wire_post_content', 'my_allowed_tags' );

    anyway try bpdev tinymce it should do what want :)


    gpo1
    Participant

    @gpo1

    Can this display images or media in the activity feeds like facebook newsfeed or what?


    Roy McKenzie
    Participant

    @roymckenzie

    Thanks Nicola. I will try that. I do have your Tiny MCE editor plugin installed but it does not support images from what I can see.

    Thanks


    gpo1
    Participant

    @gpo1

    @Roy McKenzie The Tiny MCE editor plugin needs advance features for media and activity feeds needs media enabled


    Roy McKenzie
    Participant

    @roymckenzie

    @Gpo1 Am I correct in guessing that both of these options are not available at the current moment?


    Roy McKenzie
    Participant

    @roymckenzie

    Hey @Nicola. I tried

    function my_allowed_tags($allowedtags){
    $allowedtags .= <img>;
    return $allowedtags;
    }
    add_filter( \'edit_allowedtags\', \'my_allowed_tags\' );

    add_filter( \'bp_get_activity_content\', \'my_allowed_tags\' );

    add_filter( \'bp_get_wire_post_content\', \'my_allowed_tags\' );

    It didn\’t work because i didnt have quotes around <img> so i tried

    $allowedtags .= \'<img>\';

    and

    $allowedtags .= \'img\';

    but no dice! the last one did show \’img\’ in the wire when

    <img src=\"http://whatever.com/image.jpg\">

    was published.


    gpo1
    Participant

    @gpo1

    We need this sorting like Facebook news feed?


    Avaz
    Participant

    @avazbek

    Didn’t work for me either… it’s boring without images, is there any way to display them?


    gpo1
    Participant

    @gpo1

    @Avazbek, Your right its boring without images, we need this sorted like FB newsfeed !


    Roy McKenzie
    Participant

    @roymckenzie

    Agreed!!! Life doesn’t just happen textually :)

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Images in wire’ is closed to new replies.
Skip to toolbar