I have the reply to my problem. I need to create it :) I found it here.
And it works great!! Many thanks!!
bbPress Plugin Browser »
Allow Images (0.9)
Download
Version: 0.9
Last Updated: 2009-10-24
Requires bbPress Version: 0.8.4 or higher
Compatible up to: 1.0.2
Average Rating





Your Rating
Authors mdawaffe, qayqay12
-
Posted: 4 years ago #
-
نبيل الروسان
Posted: 4 years ago # -
Excelent!
Thank you ;)
Posted: 4 years ago # -
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: 4 years ago # -
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: 4 years ago # -
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: 4 years ago # -
Those changes didn't work for me. They did something, as it stopped inserting a single letter - close, but no cigar.
Posted: 4 years ago # -
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: 4 years ago # -
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: 4 years ago # -
got it working with a fresh install of bbpress.
Posted: 4 years ago # -
Not working. I'm using bbpress 0.8.2.1 and the latest version of this plugin.
Posted: 4 years ago # -
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: 4 years ago # -
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: 4 years ago # -
All the img tags in the posts that I had re-edited disappered...
Posted: 4 years ago # -
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: 4 years ago # -
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: 4 years ago # -
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: 4 years ago # -
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: 4 years ago # -
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: 3 years ago # -
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 years ago #
Add a Comment »
You must log in to post.