<?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>
									Only give points in selected forums - wpForo myCRED Integration				            </title>
            <link>https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/</link>
            <description>WordPress Plugins Support Forum</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 12 Apr 2026 00:28:04 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Only give points in selected forums</title>
                        <link>https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/#post-27402</link>
                        <pubDate>Mon, 01 Mar 2021 13:00:06 +0000</pubDate>
                        <description><![CDATA[@astghik Sure! Thanks!]]></description>
                        <content:encoded><![CDATA[@astghik Sure! Thanks!]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-mycred-integration/">wpForo myCRED Integration</category>                        <dc:creator>langel87</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/#post-27402</guid>
                    </item>
				                    <item>
                        <title>RE: Only give points in selected forums</title>
                        <link>https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/#post-27342</link>
                        <pubDate>Fri, 26 Feb 2021 07:40:59 +0000</pubDate>
                        <description><![CDATA[@langel87,
So may I mark this topic as solved?]]></description>
                        <content:encoded><![CDATA[<p>@langel87,</p>
<p>So may I mark this topic as solved? </p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-mycred-integration/">wpForo myCRED Integration</category>                        <dc:creator>Astghik</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/#post-27342</guid>
                    </item>
				                    <item>
                        <title>RE: Only give points in selected forums</title>
                        <link>https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/#post-27335</link>
                        <pubDate>Thu, 25 Feb 2021 21:28:43 +0000</pubDate>
                        <description><![CDATA[I have found the problem, the single and double quotes were backwards, here is the code:
add_filter(&quot;mycred_add&quot;, function ($execute, $data) {
if (($ref = wpfval($data, &#039;ref&#039;)) &amp;&amp; ...]]></description>
                        <content:encoded><![CDATA[<p>I have found the problem, the single and double quotes were backwards, here is the code:</p>
<pre contenteditable="false">add_filter("mycred_add", function ($execute, $data) {
if (($ref = wpfval($data, 'ref')) &amp;&amp; ($forumid = intval(wpfval(WPF()-&gt;current_object, 'forumid'))) &amp;&amp; $ref === 'wpforo_add_post' &amp;&amp; in_array($forumid, array(1,2,3))) {
$execute = false;
}
return $execute;
}, 10, 2);</pre>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-mycred-integration/">wpForo myCRED Integration</category>                        <dc:creator>langel87</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/#post-27335</guid>
                    </item>
				                    <item>
                        <title>RE: Only give points in selected forums</title>
                        <link>https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/#post-27333</link>
                        <pubDate>Thu, 25 Feb 2021 16:24:53 +0000</pubDate>
                        <description><![CDATA[@astghik Could you tell me where to add the code, in what file?
Thanks!]]></description>
                        <content:encoded><![CDATA[<p>@astghik Could you tell me where to add the code, in what file?</p>
<p>Thanks!</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-mycred-integration/">wpForo myCRED Integration</category>                        <dc:creator>langel87</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/#post-27333</guid>
                    </item>
				                    <item>
                        <title>RE: Only give points in selected forums</title>
                        <link>https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/#post-27316</link>
                        <pubDate>Thu, 25 Feb 2021 10:52:27 +0000</pubDate>
                        <description><![CDATA[@langel87,
We&#039;ve checked the code one more time it works fine. Please make sure you&#039;ve inserted the correct code in the correct section. Please leave screenshots or video with the changes y...]]></description>
                        <content:encoded><![CDATA[<p><span>@langel87,</span></p>
<p>We've checked the code one more time it works fine. Please make sure you've inserted the correct code in the correct section. Please leave screenshots or video with the changes you've made. </p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-mycred-integration/">wpForo myCRED Integration</category>                        <dc:creator>Astghik</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/#post-27316</guid>
                    </item>
				                    <item>
                        <title>Only give points in selected forums</title>
                        <link>https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/#post-27301</link>
                        <pubDate>Wed, 24 Feb 2021 22:49:33 +0000</pubDate>
                        <description><![CDATA[Hi again!
I&#039;m following the answer they gave me on the pre-order page of the plugin, which said this:

You can use the hook-code proviede below:
add_filter(“mycred_add”, function ($execu...]]></description>
                        <content:encoded><![CDATA[<p>Hi again!</p>
<p>I'm following the answer they gave me on the pre-order page of the plugin, which said this:</p>
<blockquote>
<p>You can use the hook-code proviede below:</p>
<p>add_filter(“mycred_add”, function ($execute, $data) {<br />if (($ref = wpfval($data, ‘ref’)) &amp;&amp; ($forumid = intval(wpfval(WPF()-&gt;current_object, ‘forumid’))) &amp;&amp; $ref === ‘wpforo_add_post’ &amp;&amp; in_array($forumid, array(<strong>1, 2, 3</strong>))) {<br />$execute = false;<br />}<br />return $execute;<br />}, 10, 2);</p>
<p>Just change the value of the boldly marked part. Replace those with the Forum IDs there you don’t need to add the points.</p>
</blockquote>
<p>My question is, where is this code added? Since I put it in the functions of my theme, adding the ID of the forums in which I do not want give points, but it does not work.</p>
<p>Thanks!</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpforo-mycred-integration/">wpForo myCRED Integration</category>                        <dc:creator>langel87</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-mycred-integration/only-give-points-in-selected-forums/#post-27301</guid>
                    </item>
							        </channel>
        </rss>
		