bbPress

Simple, Fast, Elegant

bbPress plugin browser »

Allow Images (0.7.1)

Download

Version: 0.7.1

Other Versions

Last Updated: 2006-10-30

Requires bbPress Version: 0.73 or higher

Compatible up to: 0.73

Author Homepage »

Plugin Homepage »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(32)

Your Rating

Author: Michael D Adams

Tags: ,

  1. I have the reply to my problem. I need to create it :) I found it here.
    And it works great!! Many thanks!!

    Posted: 1 year ago #
  2. نبيل الروسان

    Posted: 1 year ago #
  3. Excelent!

    Thank you ;)

    Posted: 1 year ago #
  4. Plugin needs updating, with bbPress 0.8.2.1 it still displays images but disallows the use of backticks to display any code with brackets.

    Posted: 1 year ago #
  5. Just an idea to give an option to set the minimum user level to allow images?

    I'd like only mods+admin+keymaster to be able to insert images.

    (What would be even nicer, though much trickier perhaps is if a mod edits another user's message they could insert an image then, but not the user themself.)

    Posted: 1 year ago #
  6. fuggi

    Inactive

    Yes, I also found this bug, with version 0.8.2.1, you can no longer use backticks to show some code on the post. Here is what I had to change to get this working again:

    Change this line:
    remove_filter( 'pre_post', 'encode_bad' );
    to:
    remove_filter( 'pre_post', 'bb_encode_bad' );

    And then remove this line completely:
    $text = preg_replace("|(.*?)|se", "'<code>' . encodeit('$1') . '</code>'", $text);

    Posted: 1 year ago #
  7. Those changes didn't work for me. They did something, as it stopped inserting a single letter - close, but no cigar.

    Posted: 1 year ago #
  8. And I think that the comparision of the file extension and the "authorized extension list" should be case insensitive (see : http://bbpress.org/forums/topic/allow-images-plugin-does-not-allow-caps-filename-extensions?replies=1)

    I would propose to change :
    in_array(substr($match[3], -4), [...]
    by
    in_array(strtolower(substr($match[3], -4)) , [...]

    (and same change for the next line with jpeg)

    I'm waiting for finding the exact solution of the "backtick code" problem to release a new version for this plugin

    Posted: 1 year ago #
  9. I'm getting the same problem as Arlo. I've tried the double space trick with no luck.

    Using bbpress 0.8.2.1 and Allow images 0.7.1

    I attempted the fix that Tweek proposed but it didn't solve the problem. My image url's always get truncated down to <img />

    Anyone have any ideas?

    Posted: 11 months ago #
  10. got it working with a fresh install of bbpress.

    Posted: 11 months ago #
  11. Not working. I'm using bbpress 0.8.2.1 and the latest version of this plugin.

    Posted: 8 months ago #
  12. Plugin works great except I have the same need as a previous poster - I need to link to dynamically generated images. The have srs URL's like this:

    http://stockcharts.com/c-sc/sc?s=$NDX&p=W&yr=4&mn=0&dy=0&i=p55776753068&a=121012681&r=1979

    What would I need to add to the allow_images function to whitelist a domain?

    Security is not a major issue for me as users are approved and misbehavior is unlikely, a brute force disable is OK too. I don't think sever harm can come from an image link no?

    Posted: 8 months ago #
  13. I simply disabled all image filters... and things work great.

    Am I inviting disaster?

    remove_filter( 'pre_post', 'encode_bad' );
    add_filter( 'pre_post', 'allow_images_encode_bad', 9 );
    // add_filter( 'pre_post', 'allow_images', 52 );
    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );
    Posted: 8 months ago #
  14. All the img tags in the posts that I had re-edited disappered...

    Posted: 7 months ago #
  15. itissue

    Member

    I'm having the same issue as iBodhi. And the image tag in my signature doesn't work like it used to. I'm so confused. I wonder what page schmitt edited. I'd like to try that disabling image filters thing.

    Posted: 7 months ago #
  16. itissue

    Member

    Nevermind i figured it out. It's on the allow-images.php page. Duh. XD

    Now if only we can set the width of our images. bbPress isn't letting me do that and some of my images are pretty big and are wider than the width of my layout. I need to be able to set the width.

    Posted: 7 months ago #
  17. on 0.8.3 this plugin works but you have to supply the additional xhtml closing slash
    so

    • <img src="foobar.png"> doesn't work
    • <img src="foobar.png" /> does
    Posted: 7 months ago #
  18. Not sure if this was already mentioned, but images with capitalized suffixes don't get allowed. Easy to fix. In allow-images.php, look for the $matches AS $match loop and in particular $match[3]. Wrap $match[3] with strtolower() so it's strtolower($match[3]) and it'll work. What I did was before the if stmt, do:

    $match3low = strtolower($match[3]);

    and then in the code below in two spots, replaced $match[3] with $match3low

    Saves one conversion

    Posted: 5 months ago #
  19. toosalty

    Member

    Hi,

    For those still stuck with the problem of your img tags being reduced to <img />, I am guessing your bbpress installation is integrated with wordpress.

    When you integrate, you include the wp-settings file, which unfortunately, to preserve compatibility with older plugins and php4, automatically magic quotes everything.

    Hence, adding stripslashes would solve the problem:

    function allow_images_encode_bad( $text ) {

    $text = wp_specialchars( stripslashes($text) );

    Posted: 4 months ago #
  20. Great idea for a plug-in, but it's still not as easy to put an image in a post with bbpress as it is in other forums.

    As the most downloaded plug-in, shouldn't this be a feature of the forum?

    Isn't it the case that more administrators would prefer to have the option of attaching\linking files than those who would not want it?

    Speak up here to help let the dev team know that this is an important feature for a future release of bbpress:

    http://bbpress.org/forums/topic/priority-1-imagefile-attachments

    Posted: 3 months ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.