<?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>
									Code to assign secondary user group to a user - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 21 Jul 2026 11:00:00 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Code to assign secondary user group to a user</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-42457</link>
                        <pubDate>Thu, 04 Jun 2020 12:37:20 +0000</pubDate>
                        <description><![CDATA[Hi @plc123
The above-mentioned functions are available now. You just need to update the wpForo plugin to the latest version(v.1.7.7).]]></description>
                        <content:encoded><![CDATA[<p>Hi @plc123</p>
<p>The <a href="https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41679">above-mentioned</a> <span>functions are available now. You just need to update the wpForo plugin to the latest version(v.1.7.7).</span></p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Alvina</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-42457</guid>
                    </item>
				                    <item>
                        <title>RE: Code to assign secondary user group to a user</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41827</link>
                        <pubDate>Thu, 21 May 2020 12:07:18 +0000</pubDate>
                        <description><![CDATA[@plc123,
I&#039;m sorry, but no.]]></description>
                        <content:encoded><![CDATA[<p>@plc123,</p>
<p>I'm sorry, but no.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Alvina</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41827</guid>
                    </item>
				                    <item>
                        <title>RE: Code to assign secondary user group to a user</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41710</link>
                        <pubDate>Tue, 19 May 2020 08:22:33 +0000</pubDate>
                        <description><![CDATA[@Alvina @Sofy
Is it possible to only show the answer chosen as the best one (if the thread is closed/solved) and hide (also partially) the other answers?]]></description>
                        <content:encoded><![CDATA[<p>@Alvina @Sofy</p>
<p>Is it possible to only show the answer chosen as the best one (if the thread is closed/solved) and hide (also partially) the other answers?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>plc123</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41710</guid>
                    </item>
				                    <item>
                        <title>RE: Code to assign secondary user group to a user</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41709</link>
                        <pubDate>Tue, 19 May 2020 08:17:20 +0000</pubDate>
                        <description><![CDATA[@plc123,
As Sofy already mentioned the wpForo doesn&#039;t have such a feature.&nbsp;]]></description>
                        <content:encoded><![CDATA[<p>@plc123,</p>
<p>As Sofy already mentioned the <span>wpForo doesn't have such a feature.&nbsp;</span></p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Alvina</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41709</guid>
                    </item>
				                    <item>
                        <title>RE: Code to assign secondary user group to a user</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41684</link>
                        <pubDate>Mon, 18 May 2020 12:33:47 +0000</pubDate>
                        <description><![CDATA[Hi @Alvina,
ok, thanks. I will wait for next release then.
I would like to use the Q&amp;A layout. Is there any option to sort answers by votes or likes (for example, changing internal que...]]></description>
                        <content:encoded><![CDATA[<p>Hi @Alvina,</p>
<p>ok, thanks. I will wait for next release then.</p>
<p>I would like to use the Q&amp;A layout. Is there any option to sort answers by votes or likes (for example, changing internal query)?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>plc123</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41684</guid>
                    </item>
				                    <item>
                        <title>RE: Code to assign secondary user group to a user</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41679</link>
                        <pubDate>Mon, 18 May 2020 11:04:40 +0000</pubDate>
                        <description><![CDATA[@plc123,
We&#039;ve created two functions, that allows add, delete, and change the usergroup_secondary as you need. Please wait a bit, it will be available in the next versions update:
1) added...]]></description>
                        <content:encoded><![CDATA[<p>@plc123,</p>
<p>We've created two functions, that allows add, delete, and change the usergroup_secondary as you need. Please wait a bit, it will be available in the next versions update:</p>
<pre><span>1) added: WPF()-&gt;member-&gt;set_usergroups_secondary($userid, $groupids);<br />2) added: WPF()-&gt;member-&gt;append_usergroups_secondary($userid, $groupids);</span></pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Alvina</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41679</guid>
                    </item>
				                    <item>
                        <title>RE: Code to assign secondary user group to a user</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41656</link>
                        <pubDate>Sat, 16 May 2020 12:05:10 +0000</pubDate>
                        <description><![CDATA[Hi @sofy,
Thanks, but I&#039;m looking for more information as developer.
I would like to implement a plugin to assign a secondary user group to a certain user if some conditions occur.
Is the...]]></description>
                        <content:encoded><![CDATA[<p>Hi @sofy,</p>
<p>Thanks, but I'm looking for more information as developer.</p>
<p>I would like to implement a plugin to assign a secondary user group to a certain user if some conditions occur.</p>
<p>Is there any documentation about the code?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>plc123</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41656</guid>
                    </item>
				                    <item>
                        <title>RE: Code to assign secondary user group to a user</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41647</link>
                        <pubDate>Sat, 16 May 2020 10:21:11 +0000</pubDate>
                        <description><![CDATA[Hi @plc123,

I would like to assign primary and secondary user group to a user depending on certain events or status every time he signs-in into my website (to restrict access to certain t...]]></description>
                        <content:encoded><![CDATA[<p>Hi <span>@plc123,</span></p>
<blockquote>
<p><span>I would like to assign primary and secondary user group to a user depending on certain events or status every time he signs-in into my website (to restrict access to certain topics). Which is the correct PHP code?</span></p>
</blockquote>
<p>I'd suggest you read this article: <a href="https://gvectors.com/using-secondary-usergroups-in-wpforo-wordpress-forum-plugin/">https://gvectors.com/using-secondary-usergroups-in-wpforo-wordpress-forum-plugin/</a></p>
<p>This fAQ topic also may be helpful for you, here Robert explained the wpForo <span>user permission system</span>: <a href="https://wpforo.com/community/faq/wordpress-user-roles-wpforo-usergroups-and-forum-accesses/">https://wpforo.com/community/faq/wordpress-user-roles-wpforo-usergroups-and-forum-accesses/</a></p>
<blockquote>
<p><span>Is it possible to set the maximum number of nested answers to 0 for a certain sub-forum/topic?</span></p>
</blockquote>
<p>You can set the Replies Nesting Levels Deep for the <span>Threaded Layout. More info here: <a href="https://wpforo.com/docs/root/categories-and-forums/forum-layouts/threaded-layout/#thread-view-%E2%80%93-list-of-parent-posts-and-nested-replies">https://wpforo.com/docs/root/categories-and-forums/forum-layouts/threaded-layout/#thread-view-%E2%80%93-list-of-parent-posts-and-nested-replies</a></span></p>
<blockquote>
<p><span>Is it possible to always sort answers automatically by "likes"/votes?</span></p>
</blockquote>
<p>We're really sorry, but wpForo doesn't have such a feature. </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/code-to-assign-secondary-user-group-to-a-user/#post-41647</guid>
                    </item>
				                    <item>
                        <title>Code to assign secondary user group to a user</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41644</link>
                        <pubDate>Sat, 16 May 2020 09:14:32 +0000</pubDate>
                        <description><![CDATA[Hi,
I would like to assign primary and secondary user group to a user depending on certain events or status every time he signs-in into my website (to restrict access to certain topics). Wh...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>I would like to assign primary and secondary user group to a user depending on certain events or status every time he signs-in into my website (to restrict access to certain topics). Which is the correct PHP code?</p>
<p>Other questions:</p>
<p>Is it possible to set the maximum number of nested answers to 0 for a certain sub-forum/topic?</p>
<p>Is it possible to always sort answers automatically by "likes"/votes?</p>
<p>Many 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>plc123</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/code-to-assign-secondary-user-group-to-a-user/#post-41644</guid>
                    </item>
							        </channel>
        </rss>
		