bbPress Plugin Browser »

Allow Images (0.9)

Download

Version: 0.9

Other Versions

Last Updated: 2009-10-24

Requires bbPress Version: 0.8.4 or higher

Compatible up to: 1.0.2

Author Homepage »

Plugin Homepage »

Average Rating

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

Your Rating

Authors mdawaffe, qayqay12

Tags: ,

  1. Note: the above code wont support the generated images like this url:
    http://www.gravatar.com/avatar/7398043db822737c675dceff4fc86446?s=48&d=&r=g

    as it doesn't end with .png, .jpg, .jpeg, or .gif

    If you want these images to be displayed, then just comment out this line:
    add_filter( 'pre_post', 'allow_images', 52 );
    But note that it would be no longer safe.

    The above code is also compatible with bb 1.0.1

    Posted: 2 years ago #
  2. academatic

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    great but wouldn't the data be too much??

    Posted: 2 years ago #
  3. Marius-

    Member

    Can this plugin restrict image width?
    There's nothing stopping an oversized image from exceeding the post space. Can you make it resize images to a fixed maximum size please?

    Posted: 2 years ago #
  4. @Marius an simple solution is to adjust that in your stylesheet.

    Something like this would do the job just fine:

    #thread .post img {max-width:450px;}

    Posted: 2 years ago #
  5. I can't seem to get this plug-in to work. I put the allow-images.php file in the my_plugin folder as instructed and when I try to put an image tag in the post, I just get a copy of the html code.

    Is there any plug-in that can be installed with a browse for images feature?

    Posted: 2 years ago #
  6. I get a weird Html code when trying to embed images etc..

    I see this plugin hasn't been updated for a very long time, is there any plugin that has replaced this fuction?

    Posted: 2 years ago #
  7. qayqay12

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    This plugin is deprecated as it did not evolve for 2 years.

    I've quickly done a new plugin to replace this one:
    http://bbpress.org/plugins/topic/allow-images-2/

    You can find it there:
    http://arna.udwu.st/bbpress-allow-images/

    It just adds 'img' in the allow tags list. bbpress code do the rest.
    This plugin has only 5 lines. No useless check or vain parsing.

    Posted: 2 years ago #
  8. qayqay12

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    Forget my last post, in the meantime, I got access to sources so I updated this plugin.

    Posted: 2 years ago #
  9. Doesn't work for me. In the latest version of bbforum it only allows [img] [/img] I tried the code above as well, and no image shows up. I tried both versions and neither works for me.

    [img]http://picasaweb.google.com/tsheaellison/Maui?authkey=Gv1sRgCMXznemdv6zAkAE#5398966391101030162[/img]

    Posted: 2 years ago #
  10. I got it now. Not sure what was wrong, but it's working now.

    Posted: 2 years ago #
  11. works for me!

    Posted: 2 years ago #
  12. shansta

    Member

    qayqay12 I cannot get this plugin to work.. is there a setting I am missing?

    Posted: 2 years ago #
  13. I can't get it to work either. I'm using bbPress 1.0.2. I get an image placeholder - but no image. I've placed the image in various different folders on the server, but with no luck. Is there a step-by-step guide - in case I've missed something?
    Thanks for your help.

    Posted: 2 years ago #
  14. ChuckMcB

    Member

    Working fine for me.

    @Kerith: right click on the broken image and select 'Properties' look at the URL that's displayed, compare that to where the image is. Also try using an image on another server eg: http://www.google.co.uk/logos/holiday09_1.gif

    Posted: 2 years ago #
  15. paamayim

    Member

    does it work, or not, with bbpress 1.0.2?

    Posted: 2 years ago #
  16. FYI - you can set a restriction on max image size, when using bbCode Lite, by adding style="max-width" to line 46 of BBcode-lite.php:

    'foreach($bbcode_lite['complex'] as $bbcode=>$html){
    if($bbcode!='url') {$text = preg_replace('/\['.$bbcode.'\](.+?)\[\/'.$bbcode.'\]/is','<'.$html[0].' '.$html[1].'="$1" style="max-width:450px">',$text);}'

    Posted: 2 years ago #
  17. Tomcraft1980

    Member

    This breaks the images when someone postst code:
    should be like this:

    <img src="{$tpl_path}img/wastebox.gif" alt="Delete from shopping cart: {$module_data.PRODUCTS_NAME}" />
    </a>

    But this is what I get:

    <img src="%7B$tpl_path%7Dimg/wastebox.gif" alt="Delete from shopping cart: {$module_data.PRODUCTS_NAME}">
    </a>

    Any ideas?

    Kind regards

    Tom

    Posted: 2 years ago #
  18. Tomcraft1980: It's simply encoding the url. Allow Images doesn't parse things like {$tpl_path}.

    Posted: 2 years ago #
  19. Tomcraft1980

    Member

    But how come that disabling "Allow Images" fixes this issue for me?

    I have included http://alexgorbatchev.com/wiki/SyntaxHighlighter to make code more readable.

    Kind regards

    Tom

    Posted: 2 years ago #

RSS feed for this topic

Add a Comment »

You must log in to post.