<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress plugin browser Topic: Allow Images</title>
<link>http://bbpress.org/plugins/</link>
<description>bbPress plugin browser Topic: Allow Images</description>
<language>en</language>
<pubDate>Sun, 27 Jul 2008 01:50:24 +0000</pubDate>

<item>
<title>_ck_ on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/3/#post-1514</link>
<pubDate>Wed, 23 Jul 2008 19:22:06 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">1514@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;No, no, don't hack the core. There is no need.&#60;br /&#62;
Very easy to add tags in bbpress via plugin.&#60;/p&#62;
&#60;p&#62;The full plugin probably breaks code sections because it tries to do it's own bad tag encoding. You can try a more direct method instead.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/*
Plugin Name: Allow Images (mini-mod)
*/
add_filter( &#38;#39;bb_allowed_tags&#38;#39;, &#38;#39;allow_img_tag&#38;#39; );
function allow_img_tag( $tags ) {$tags[&#38;#39;img&#38;#39;] = array(&#38;#39;src&#38;#39; =&#38;gt; array(), &#38;#39;title&#38;#39; =&#38;gt; array(), &#38;#39;alt&#38;#39; =&#38;gt; array()); return $tags;}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;.&#60;br /&#62;
try that instead - note it makes no attempt to verify images
&#60;/p&#62;</description>
</item>
<item>
<title>corenominal on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/3/#post-1507</link>
<pubDate>Wed, 23 Jul 2008 01:24:03 +0000</pubDate>
<dc:creator>corenominal</dc:creator>
<guid isPermaLink="false">1507@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;I have the same problem as greenshady, basically the plugin breaks code placed within backticks. This is quite a big problem as allowing users to post code snippets is very important, see below :)  &#60;/p&#62;
&#60;p&#62;So, does anyone have any information about whether a fix is being worked on?&#60;/p&#62;
&#60;p&#62;Note, it is possible to enable images by hacking bb-includes/formatting-functions.php, changing the following function:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function bb_allowed_tags() {
	$tags = array(
		&#38;#39;a&#38;#39; =&#38;gt; array(
			&#38;#39;href&#38;#39; =&#38;gt; array(),
			&#38;#39;title&#38;#39; =&#38;gt; array(),
			&#38;#39;rel&#38;#39; =&#38;gt; array()),
		&#38;#39;blockquote&#38;#39; =&#38;gt; array(&#38;#39;cite&#38;#39; =&#38;gt; array()),
		&#38;#39;br&#38;#39; =&#38;gt; array(),
		&#38;#39;code&#38;#39; =&#38;gt; array(),
		&#38;#39;pre&#38;#39; =&#38;gt; array(),
		&#38;#39;em&#38;#39; =&#38;gt; array(),
		&#38;#39;strong&#38;#39; =&#38;gt; array(),
		&#38;#39;ul&#38;#39; =&#38;gt; array(),
		&#38;#39;ol&#38;#39; =&#38;gt; array(),
		&#38;#39;li&#38;#39; =&#38;gt; array()
	);
	return apply_filters( &#38;#39;bb_allowed_tags&#38;#39;, $tags );
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;To this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function bb_allowed_tags() {
	$tags = array(
		&#38;#39;a&#38;#39; =&#38;gt; array(
			&#38;#39;href&#38;#39; =&#38;gt; array(),
			&#38;#39;title&#38;#39; =&#38;gt; array(),
			&#38;#39;rel&#38;#39; =&#38;gt; array()),
		&#38;#39;blockquote&#38;#39; =&#38;gt; array(&#38;#39;cite&#38;#39; =&#38;gt; array()),
		&#38;#39;br&#38;#39; =&#38;gt; array(),
		&#38;#39;code&#38;#39; =&#38;gt; array(),
		&#38;#39;pre&#38;#39; =&#38;gt; array(),
		&#38;#39;em&#38;#39; =&#38;gt; array(),
		&#38;#39;img&#38;#39; =&#38;gt; array(
                        &#38;#39;src&#38;#39; =&#38;gt; array(),
                        &#38;#39;alt&#38;#39; =&#38;gt; array()),
		&#38;#39;strong&#38;#39; =&#38;gt; array(),
		&#38;#39;ul&#38;#39; =&#38;gt; array(),
		&#38;#39;ol&#38;#39; =&#38;gt; array(),
		&#38;#39;li&#38;#39; =&#38;gt; array()
	);
	return apply_filters( &#38;#39;bb_allowed_tags&#38;#39;, $tags );
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;However, it is probably[?] not a wise idea to do so as I am pretty sure this will not provide any sanity checks -- meaning users could possibly use the image tag to call on malicious scripts etc.&#60;/p&#62;
&#60;p&#62;Therefore, fixing this plugin would be a preferable option.
&#60;/p&#62;</description>
</item>
<item>
<title>pjrobertson on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/3/#post-1412</link>
<pubDate>Thu, 03 Jul 2008 13:32:44 +0000</pubDate>
<dc:creator>pjrobertson</dc:creator>
<guid isPermaLink="false">1412@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;The easiest way to sort out image size problems is to add this code to your .css file:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;.threadpost img
{
width:100%;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;it'll limit the width of the image to the width of the thread post area.
&#60;/p&#62;</description>
</item>
<item>
<title>greenshady on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/3/#post-1406</link>
<pubDate>Wed, 25 Jun 2008 19:19:36 +0000</pubDate>
<dc:creator>greenshady</dc:creator>
<guid isPermaLink="false">1406@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;Plugin works great for me except for one small problem (well, major in my case). &#60;/p&#62;
&#60;p&#62;Whenever users post code in between backticks, as is the preferred method with bbPress, the code is deleted upon submission of the post form.
&#60;/p&#62;</description>
</item>
<item>
<title>Guymed on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/3/#post-1275</link>
<pubDate>Tue, 20 May 2008 20:04:00 +0000</pubDate>
<dc:creator>Guymed</dc:creator>
<guid isPermaLink="false">1275@http://bbpress.org/plugins/</guid>
<description>&#60;blockquote&#62;&#60;p&#62;
xD
&#60;/p&#62;&#60;/blockquote&#62;</description>
</item>
<item>
<title>_ck_ on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/3/#post-1067</link>
<pubDate>Thu, 24 Apr 2008 06:58:55 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">1067@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;Image size restriction has to be done either via javascript or via your own upload (something I am working on).&#60;/p&#62;
&#60;p&#62;For now you can make sure large images don't mess up your layout by applying &#60;code&#62;overflow:hidden;&#60;/code&#62; to the CSS - my educated guess would be to the &#60;code&#62;.threadpost&#60;/code&#62; element, or &#60;code&#62;#thread&#60;/code&#62; (or &#60;code&#62;#thread li&#60;/code&#62;)
&#60;/p&#62;</description>
</item>
<item>
<title>Farkel on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/3/#post-1064</link>
<pubDate>Wed, 23 Apr 2008 23:38:33 +0000</pubDate>
<dc:creator>Farkel</dc:creator>
<guid isPermaLink="false">1064@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;Thanks for this plugin, it works great.&#60;/p&#62;
&#60;p&#62;Is there any way, however, to restrict the image size? If someone posts a large image it completely messed up my layout :(
&#60;/p&#62;</description>
</item>
<item>
<title>bensig on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-988</link>
<pubDate>Tue, 08 Apr 2008 19:06:31 +0000</pubDate>
<dc:creator>bensig</dc:creator>
<guid isPermaLink="false">988@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;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.&#60;/p&#62;
&#60;p&#62;As the most downloaded plug-in, shouldn't this be a feature of the forum?&#60;/p&#62;
&#60;p&#62;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?&#60;/p&#62;
&#60;p&#62;Speak up here to help let the dev team know that this is an important feature for a future release of bbpress:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://bbpress.org/forums/topic/priority-1-imagefile-attachments&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/priority-1-imagefile-attachments&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>toosalty on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-892</link>
<pubDate>Tue, 04 Mar 2008 14:06:39 +0000</pubDate>
<dc:creator>toosalty</dc:creator>
<guid isPermaLink="false">892@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;Hi, &#60;/p&#62;
&#60;p&#62;For those still stuck with the problem of your img tags being reduced to &#38;lt;img /&#38;gt;, I am guessing your bbpress installation is integrated with wordpress.&#60;/p&#62;
&#60;p&#62;When you integrate, you include the wp-settings file, which unfortunately, to preserve compatibility with older plugins and php4, automatically magic quotes everything.&#60;/p&#62;
&#60;p&#62;Hence, adding stripslashes would solve the problem:&#60;/p&#62;
&#60;p&#62;function allow_images_encode_bad( $text ) {&#60;/p&#62;
&#60;p&#62;	$text = wp_specialchars( stripslashes($text) );
&#60;/p&#62;</description>
</item>
<item>
<title>baptiste on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-770</link>
<pubDate>Sat, 02 Feb 2008 14:34:06 +0000</pubDate>
<dc:creator>baptiste</dc:creator>
<guid isPermaLink="false">770@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;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:&#60;/p&#62;
&#60;p&#62;$match3low = strtolower($match[3]);&#60;/p&#62;
&#60;p&#62;and then in the code below in two spots, replaced $match[3] with $match3low&#60;/p&#62;
&#60;p&#62;Saves one conversion
&#60;/p&#62;</description>
</item>
<item>
<title>n3wjack on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-697</link>
<pubDate>Fri, 21 Dec 2007 14:50:08 +0000</pubDate>
<dc:creator>n3wjack</dc:creator>
<guid isPermaLink="false">697@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;on 0.8.3 this plugin works but you &#60;strong&#62;have&#60;/strong&#62; to supply the additional xhtml closing slash&#60;br /&#62;
so &#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;&#38;lt;img src=&#34;foobar.png&#34;&#38;gt;  doesn't work
&#60;li&#62;&#38;lt;img src=&#34;foobar.png&#34; /&#38;gt; does
&#60;/ul&#62;</description>
</item>
<item>
<title>itissue on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-684</link>
<pubDate>Sat, 15 Dec 2007 02:26:49 +0000</pubDate>
<dc:creator>itissue</dc:creator>
<guid isPermaLink="false">684@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;Nevermind i figured it out. It's on the allow-images.php page. Duh. XD&#60;/p&#62;
&#60;p&#62;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.
&#60;/p&#62;</description>
</item>
<item>
<title>itissue on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-683</link>
<pubDate>Sat, 15 Dec 2007 02:21:08 +0000</pubDate>
<dc:creator>itissue</dc:creator>
<guid isPermaLink="false">683@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;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.
&#60;/p&#62;</description>
</item>
<item>
<title>iBodhi on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-672</link>
<pubDate>Mon, 10 Dec 2007 12:29:11 +0000</pubDate>
<dc:creator>iBodhi</dc:creator>
<guid isPermaLink="false">672@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;All the img tags in the posts that I had re-edited disappered...
&#60;/p&#62;</description>
</item>
<item>
<title>schmitt on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-640</link>
<pubDate>Mon, 19 Nov 2007 20:00:37 +0000</pubDate>
<dc:creator>schmitt</dc:creator>
<guid isPermaLink="false">640@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;I simply disabled all image filters... and things work great.  &#60;/p&#62;
&#60;p&#62;Am I inviting disaster?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;remove_filter( &#38;#39;pre_post&#38;#39;, &#38;#39;encode_bad&#38;#39; );
add_filter( &#38;#39;pre_post&#38;#39;, &#38;#39;allow_images_encode_bad&#38;#39;, 9 );
// add_filter( &#38;#39;pre_post&#38;#39;, &#38;#39;allow_images&#38;#39;, 52 );
add_filter( &#38;#39;bb_allowed_tags&#38;#39;, &#38;#39;allow_images_allowed_tags&#38;#39; );&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>schmitt on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-639</link>
<pubDate>Mon, 19 Nov 2007 19:49:29 +0000</pubDate>
<dc:creator>schmitt</dc:creator>
<guid isPermaLink="false">639@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;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:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://stockcharts.com/c-sc/sc?s=$NDX&#38;#38;p=W&#38;#38;yr=4&#38;#38;mn=0&#38;#38;dy=0&#38;#38;i=p55776753068&#38;#38;a=121012681&#38;#38;r=1979&#34; rel=&#34;nofollow&#34;&#62;http://stockcharts.com/c-sc/sc?s=$NDX&#38;#38;p=W&#38;#38;yr=4&#38;#38;mn=0&#38;#38;dy=0&#38;#38;i=p55776753068&#38;#38;a=121012681&#38;#38;r=1979&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;What would I need to add to the allow_images function to whitelist a domain? &#60;/p&#62;
&#60;p&#62;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?
&#60;/p&#62;</description>
</item>
<item>
<title>Xenuan on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-638</link>
<pubDate>Mon, 19 Nov 2007 18:32:25 +0000</pubDate>
<dc:creator>Xenuan</dc:creator>
<guid isPermaLink="false">638@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;Not working. I'm using bbpress 0.8.2.1 and the latest version of this plugin.
&#60;/p&#62;</description>
</item>
<item>
<title>neyoung on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-538</link>
<pubDate>Sat, 25 Aug 2007 07:41:54 +0000</pubDate>
<dc:creator>neyoung</dc:creator>
<guid isPermaLink="false">538@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;got it working with a fresh install of bbpress.
&#60;/p&#62;</description>
</item>
<item>
<title>neyoung on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-534</link>
<pubDate>Sun, 19 Aug 2007 23:07:01 +0000</pubDate>
<dc:creator>neyoung</dc:creator>
<guid isPermaLink="false">534@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;I'm getting the same problem as Arlo.  I've tried the double space trick with no luck.&#60;/p&#62;
&#60;p&#62;Using bbpress 0.8.2.1 and Allow images 0.7.1&#60;/p&#62;
&#60;p&#62;I attempted the fix that Tweek proposed but it didn't solve the problem.  My image url's always get truncated down to &#38;lt;img /&#38;gt;&#60;/p&#62;
&#60;p&#62;Anyone have any ideas?
&#60;/p&#62;</description>
</item>
<item>
<title>thierryyyyyyy on "Allow Images"</title>
<link>http://bbpress.org/plugins/topic/allow-images/page/2/#post-422</link>
<pubDate>Mon, 23 Jul 2007 21:23:44 +0000</pubDate>
<dc:creator>thierryyyyyyy</dc:creator>
<guid isPermaLink="false">422@http://bbpress.org/plugins/</guid>
<description>&#60;p&#62;And I think that the comparision of the file extension and the &#34;authorized extension list&#34; should be case insensitive  (see : &#60;a href=&#34;http://bbpress.org/forums/topic/allow-images-plugin-does-not-allow-caps-filename-extensions?replies=1&#34; rel=&#34;nofollow&#34;&#62;http://bbpress.org/forums/topic/allow-images-plugin-does-not-allow-caps-filename-extensions?replies=1&#60;/a&#62;)&#60;/p&#62;
&#60;p&#62;I would propose to change :&#60;br /&#62;
&#60;code&#62;in_array(substr($match[3], -4),  [...]&#60;/code&#62;&#60;br /&#62;
by&#60;br /&#62;
&#60;code&#62;in_array(strtolower(substr($match[3], -4)) , [...]&#60;/code&#62; &#60;/p&#62;
&#60;p&#62;(and same change for the next line with jpeg)&#60;/p&#62;
&#60;p&#62;I'm waiting for finding the exact solution of the &#34;backtick code&#34; problem to release a new version for this plugin
&#60;/p&#62;</description>
</item>

</channel>
</rss>
