<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Images inline - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Fri, 06 Nov 2026 22:55:53 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Images inline</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/#post-59007</link>
                        <pubDate>Fri, 15 Oct 2021 13:31:38 +0000</pubDate>
                        <description><![CDATA[Works fine now, many thanks.]]></description>
                        <content:encoded><![CDATA[<p>Works fine now, many thanks.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>dimalifragis</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/#post-59007</guid>
                    </item>
				                    <item>
                        <title>RE: Images inline</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/#post-59004</link>
                        <pubDate>Fri, 15 Oct 2021 12:54:54 +0000</pubDate>
                        <description><![CDATA[@dimalifragis,
Copy and paste the Code again, please. We have updated in my above reply.]]></description>
                        <content:encoded><![CDATA[<p>@dimalifragis,</p>
<p>Copy and paste the Code again, please. We have updated in my above reply.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Chris</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/#post-59004</guid>
                    </item>
				                    <item>
                        <title>RE: Images inline</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/#post-58988</link>
                        <pubDate>Thu, 14 Oct 2021 16:56:11 +0000</pubDate>
                        <description><![CDATA[14-Oct-2021 16:53:33 UTC] PHP Warning: preg_replace_callback(): Compilation failed: unrecognized character after (? or (?- at offset 23 in /home/wp-content/plugins/custom-functions/custom-fu...]]></description>
                        <content:encoded><![CDATA[<p>14-Oct-2021 16:53:33 UTC] PHP Warning: preg_replace_callback(): Compilation failed: unrecognized character after (? or (?- at offset 23 in /home/wp-content/plugins/custom-functions/custom-functions.php on line 52</p>
<p> </p>
<p>Line 52 is</p>
<pre contenteditable="false">$content</pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>dimalifragis</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/#post-58988</guid>
                    </item>
				                    <item>
                        <title>RE: Images inline</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/#post-58979</link>
                        <pubDate>Thu, 14 Oct 2021 13:40:05 +0000</pubDate>
                        <description><![CDATA[Hi @dimalifragis,
Delete the old Code and add the new one:
add_filter(&#039;wpforo_content_after&#039;, function( $content ){
	return preg_replace_callback(
        &#039;#&lt;a*\sclass=[\&#039;\...]]></description>
                        <content:encoded><![CDATA[<p>Hi @dimalifragis,</p>
<p>Delete the old Code and add the new one:</p>
<pre contenteditable="false">add_filter('wpforo_content_after', function( $content ){
	return preg_replace_callback(
        '#&lt;a*\sclass=(?:*\s)?wpforo-default-attachment(?:\s*)?*\shref=(+)*&gt;.*?&lt;/a&gt;#isu',
        function( $match ){
                $html     = $match;
	        $file     = $match;
	        $pathinfo = pathinfo( $file );
	        if( wpforo_is_image($pathinfo) ) {
                $html = sprintf(
                    '&lt;a href="%1$s" target="_blank"&gt;&lt;img class="wpforo-default-image-attachment" src="%1$s" alt="%2$s" title="%2$s"&gt;&lt;/a&gt;',
	                esc_url($file),
	                esc_attr($pathinfo)
                );
	        }
            return $html;
        },
        $content
    );
}, 11);</pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Chris</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/#post-58979</guid>
                    </item>
				                    <item>
                        <title>RE: Images inline</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/#post-58901</link>
                        <pubDate>Mon, 11 Oct 2021 12:27:01 +0000</pubDate>
                        <description><![CDATA[The code is:
 
add_filter(&#039;wpforo_content_after&#039;, &#039;wpforo_default_attachment_image_embed&#039;, 11);

function wpforo_default_attachment_image_embed($content)
{
    if (preg_match_all(&#039;|&amp;lt...]]></description>
                        <content:encoded><![CDATA[<p>The code is:</p>
<p> </p>
<pre contenteditable="false">add_filter('wpforo_content_after', 'wpforo_default_attachment_image_embed', 11);

function wpforo_default_attachment_image_embed($content)
{
    if (preg_match_all('|&lt;a class=\"wpforo\-default\-attachment\" href\=\"(+)\"*&gt;.+?&lt;\/a&gt;|is', $content, $data, PREG_SET_ORDER)) {
        foreach ($data as $array) {
            if (isset($array)) {
                $file = $array;
                $e    = strtolower(substr(strrchr($file, '.'), 1));
                if ($e == 'jpg' || $e == 'jpeg' || $e == 'png' || $e == 'gif') {
                    $filename = explode('/', $file);
                    $filename = end($filename);
                    $html     = '&lt;a href="' . esc_url($file) . '" target="_blank"&gt;&lt;img class="wpforo-default-image-attachment" src="' . esc_url($file) . '" alt="' . esc_attr($filename) . '" title="' . esc_attr($filename) . '" /&gt;&lt;/a&gt;';
                    $content  = str_replace($array, $html, $content);
                }
            }
        }
    }
    return $content;
}</pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>dimalifragis</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/#post-58901</guid>
                    </item>
				                    <item>
                        <title>Images inline</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/#post-58900</link>
                        <pubDate>Mon, 11 Oct 2021 12:23:38 +0000</pubDate>
                        <description><![CDATA[Hello.
We use for ages now a small code provided by the support guys, that each attachment that was a photo, was show inline (embeded) to the body. Worked perfectly well.
Now it seems some...]]></description>
                        <content:encoded><![CDATA[<p>Hello.</p>
<p>We use for ages now a small code provided by the support guys, that each attachment that was a photo, was show inline (embeded) to the body. Worked perfectly well.</p>
<p>Now it seems something changed, and if I EDIT such a post, the image becomes attachment after saving.</p>
<p>Any ideas how to fix this?</p>
<p> </p>
<p>Thanks</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>dimalifragis</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/images-inline/#post-58900</guid>
                    </item>
							        </channel>
        </rss>
		