<?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>
									Exclude some forums from hide links for guests - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/exclude-some-forums-from-hide-links-for-guests/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 11 Jul 2026 17:56:28 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Exclude some forums from hide links for guests</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/exclude-some-forums-from-hide-links-for-guests/#post-123151</link>
                        <pubDate>Fri, 17 Jan 2025 18:23:02 +0000</pubDate>
                        <description><![CDATA[Works perfect..  thank you!! &#x1f44d;]]></description>
                        <content:encoded><![CDATA[<p>Works perfect..  thank you!! &#x1f44d; </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>alquimist08</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/exclude-some-forums-from-hide-links-for-guests/#post-123151</guid>
                    </item>
				                    <item>
                        <title>RE: Exclude some forums from hide links for guests</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/exclude-some-forums-from-hide-links-for-guests/#post-123136</link>
                        <pubDate>Thu, 16 Jan 2025 10:43:42 +0000</pubDate>
                        <description><![CDATA[Hi,
The developers have provided the following code: 
add_filter(&#039;wpforo_content_after&#039;, function ( $content ){
    if( WPF()-&gt;current_user_groupid === 4 &amp;&amp; ! in_array( WPF()-&amp;...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>The developers have provided the following code: </p>
<pre contenteditable="false">add_filter('wpforo_content_after', function ( $content ){
    if( WPF()-&gt;current_user_groupid === 4 &amp;&amp; ! in_array( WPF()-&gt;current_object,  ) ){
       $content = preg_replace('#&lt;a+href=+&gt;+&lt;/a&gt;#im', '&lt;a href="#" rel="nofollow"&gt;&lt;/a&gt;', $content);
    }
    return $content;
});</pre>
<p>It should work fine. </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Sofy</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/exclude-some-forums-from-hide-links-for-guests/#post-123136</guid>
                    </item>
				                    <item>
                        <title>Exclude some forums from hide links for guests</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/exclude-some-forums-from-hide-links-for-guests/#post-123111</link>
                        <pubDate>Wed, 15 Jan 2025 07:27:33 +0000</pubDate>
                        <description><![CDATA[Hello!
First thanks for such incredible script is very well done.
Trying to adapt this script that works very well to hide visitors links
add_filter(&#039;wpforo_content_after&#039;, &#039;wpforo_hide_l...]]></description>
                        <content:encoded><![CDATA[<p>Hello!</p>
<p>First thanks for such incredible script is very well done.</p>
<p>Trying to adapt this script that works very well to hide visitors links</p>
<pre contenteditable="false">add_filter('wpforo_content_after', 'wpforo_hide_links_for_guests', 10);
function wpforo_hide_links_for_guests( $content ){
    if( WPF()-&gt;current_user_groupid === 4 ){
        $content = preg_replace('|&lt;a+href=+&gt;+&lt;\/a&gt;|im', '&lt;a href="#" rel="nofollow"&gt;&lt;/a&gt;', $content);
    }
   return $content;
}</pre>
<p>From this code need to exclude two different forums that have important links for guests.</p>
<p>like this</p>
<pre contenteditable="false">else {
  WPF()-&gt;current_forumid_key === 3,6 ){
        $content = disable;
}</pre>
<p><br />Trying with</p>
<pre contenteditable="false">WPF()-&gt;current_object variable</pre>
<p>But it doesn't work with the forum number:</p>
<p> I am lost don't know how to add the exclusions so that the code does not apply in just two different forums.</p>
<p>Can help me?</p>
<p><br />Thanks in advance</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>alquimist08</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/exclude-some-forums-from-hide-links-for-guests/#post-123111</guid>
                    </item>
							        </channel>
        </rss>
		