<?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>
									gVectors Team - Forum - Recent Topics				            </title>
            <link>https://gvectors.com/forum/</link>
            <description>WordPress Plugins Support Forum</description>
            <language>en-US</language>
            <lastBuildDate>Fri, 03 Apr 2026 22:50:17 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Bug: Duplicate images when Lightbox is disabled (v7.6.48)</title>
                        <link>https://gvectors.com/forum/media-uploader/bug-duplicate-images-when-lightbox-is-disabled-v7-6-48/</link>
                        <pubDate>Wed, 25 Mar 2026 14:58:48 +0000</pubDate>
                        <description><![CDATA[Hi,
I found a bug in wpDiscuz 7.6.48 that causes uploaded images to display twice in comments when Lightbox is disabled.
The issue is on line 246 of utils/class.WpdiscuzHelperUpload.php:
...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>I found a bug in wpDiscuz 7.6.48 that causes uploaded images to display twice in comments when Lightbox is disabled.</p>
<p>The issue is on line 246 of <code>utils/class.WpdiscuzHelperUpload.php</code>:</p>
<div class="codeBlockWrapper_-a7MRw"><button class="copyButton_CEmTFw copyButton_-a7MRw" title="Copy code" aria-label="Copy code to clipboard"></button>
<pre contenteditable="false"><code class="language-php">$images .= $images .= $imageHtml;
</code></pre>
</div>
<p>The double concatenation operator causes the image HTML to be appended twice. It should be:</p>
<div class="codeBlockWrapper_-a7MRw"><button class="copyButton_CEmTFw copyButton_-a7MRw" title="Copy code" aria-label="Copy code to clipboard"></button>
<pre contenteditable="false"><code class="language-php">$images .= $imageHtml;
</code></pre>
</div>
<p>The lightbox-enabled path on line 242 is correct — it's just this <code>else</code> branch that has the typo.</p>
<p>Thanks, Nick</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/"></category>                        <dc:creator>Nick</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/media-uploader/bug-duplicate-images-when-lightbox-is-disabled-v7-6-48/</guid>
                    </item>
				                    <item>
                        <title>attached picture is not shown problem</title>
                        <link>https://gvectors.com/forum/wpforo-advanced-attachments/attached-picture-is-not-shown-problem/</link>
                        <pubDate>Mon, 23 Mar 2026 08:18:53 +0000</pubDate>
                        <description><![CDATA[Hello.
&nbsp;
I am using Advanced attachment plugin and i have a problem as below. (this forum category and forums are for audiences and customers who do not need to login to see the conte...]]></description>
                        <content:encoded><![CDATA[<p>Hello.</p>
<p>&nbsp;</p>
<p>I am using Advanced attachment plugin and i have a problem as below. (this forum category and forums are for audiences and customers who do not need to login to see the contents)</p>
<p>&nbsp;</p>
<p>- When users log into the forum the attached pictures are shown in the content (attachment 1)</p>
<p>- when users do not log in the attached pictures are shows as attachment (attachment 2)</p>
<p>&nbsp;</p>
<p>I need to solve this problem for audiences to be able to see pictures in the contents who do not log in.</p>
<p>Can you advise me how to solve this problem?</p>
<p>&nbsp;</p>
7870
7869
<p>&nbsp;</p>
<p>You can check the post in the below link</p>
<p><a href="https://www.wetraveltoworld.com/community/%ec%9c%84%ed%8a%b8%eb%9e%98%eb%b8%94%ed%88%ac%ec%9b%94%eb%93%9c-%ed%9a%8c%ec%9b%90%ed%8a%b9%eb%b3%84%ed%95%a0%ec%9d%b8/dtv-%eb%b9%84%ec%9e%90-%ec%84%9c%eb%b9%84%ec%8a%a4/" target="_blank" rel="noopener">https://www.wetraveltoworld.com/community/%ec%9c%84%ed%8a%b8%eb%9e%98%eb%b8%94%ed%88%ac%ec%9b%94%eb%93%9c-%ed%9a%8c%ec%9b%90%ed%8a%b9%eb%b3%84%ed%95%a0%ec%9d%b8/dtv-%eb%b9%84%ec%9e%90-%ec%84%9c%eb%b9%84%ec%8a%a4/</a></p>
<p>&nbsp;</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/"></category>                        <dc:creator>IKBONG JANG</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-advanced-attachments/attached-picture-is-not-shown-problem/</guid>
                    </item>
				                    <item>
                        <title>m4a files do not upload</title>
                        <link>https://gvectors.com/forum/media-uploader/m4a-files-do-not-upload/</link>
                        <pubDate>Thu, 19 Mar 2026 13:52:22 +0000</pubDate>
                        <description><![CDATA[Hello. I have purchased the media uploader addon. I have selected all file types including m4a and all users (including guests) can upload files. However, when I attach an m4a file it is not...]]></description>
                        <content:encoded><![CDATA[<p>Hello. I have purchased the media uploader addon. I have selected all file types including m4a and all users (including guests) can upload files. However, when I attach an m4a file it is not uploaded. The message is posted without an attachment and the file does not appear in my library. <br /><br />Mp3, mp4, wav files upload normally. <br /><br />For example on <a href="https://hopkinsenglish.com/1xsao7ty/" target="_blank" rel="noopener">this page</a>. The password is thrust.</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/"></category>                        <dc:creator>Benjamin Hopkins</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/media-uploader/m4a-files-do-not-upload/</guid>
                    </item>
				                    <item>
                        <title>Custom profile fields not showing for some users</title>
                        <link>https://gvectors.com/forum/wpforo-user-custom-fields/custom-profile-fields-not-showing-for-some-users/</link>
                        <pubDate>Mon, 16 Mar 2026 05:39:10 +0000</pubDate>
                        <description><![CDATA[Hello,
I am using wpForo + User Custom Fields plugin and I’m experiencing an inconsistent behavior with profile fields.
Some custom fields display correctly for certain users, but not for ...]]></description>
                        <content:encoded><![CDATA[<p data-start="679" data-end="697"><span class="BZ_Pyq_fadeIn">Hello</span><span class="BZ_Pyq_fadeIn">,</span></p>
<p data-start="699" data-end="815"><span class="BZ_Pyq_fadeIn">I </span><span class="BZ_Pyq_fadeIn">am </span><span class="BZ_Pyq_fadeIn">using </span><strong data-start="710" data-end="748"><span class="BZ_Pyq_fadeIn">wpForo + </span><span class="BZ_Pyq_fadeIn">User </span><span class="BZ_Pyq_fadeIn">Custom </span><span class="BZ_Pyq_fadeIn">Fields </span><span class="BZ_Pyq_fadeIn">plugin</span></strong><span class="BZ_Pyq_fadeIn"> </span><span class="BZ_Pyq_fadeIn">and </span><span class="BZ_Pyq_fadeIn">I’m </span><span class="BZ_Pyq_fadeIn">experiencing </span><span class="BZ_Pyq_fadeIn">an </span><span class="BZ_Pyq_fadeIn">inconsistent </span><span class="BZ_Pyq_fadeIn">behavior </span><span class="BZ_Pyq_fadeIn">with </span><span class="BZ_Pyq_fadeIn">profile </span><span class="BZ_Pyq_fadeIn">fields.</span></p>
<p data-start="817" data-end="926"><span class="BZ_Pyq_fadeIn">Some </span><span class="BZ_Pyq_fadeIn">custom </span><span class="BZ_Pyq_fadeIn">fields </span><span class="BZ_Pyq_fadeIn">display </span><span class="BZ_Pyq_fadeIn">correctly </span><span class="BZ_Pyq_fadeIn">for </span><span class="BZ_Pyq_fadeIn">certain </span><span class="BZ_Pyq_fadeIn">users, </span><span class="BZ_Pyq_fadeIn">but </span><span class="BZ_Pyq_fadeIn">not </span><span class="BZ_Pyq_fadeIn">for </span><span class="BZ_Pyq_fadeIn">others </span><span class="BZ_Pyq_fadeIn">who </span><span class="BZ_Pyq_fadeIn">belong </span><span class="BZ_Pyq_fadeIn">to </span><span class="BZ_Pyq_fadeIn">the </span><span class="BZ_Pyq_fadeIn">same </span><span class="BZ_Pyq_fadeIn">user </span><span class="BZ_Pyq_fadeIn">group.</span></p>
<p data-start="928" data-end="936"><span class="BZ_Pyq_fadeIn">Example:</span></p>
<p data-start="938" data-end="1076"><span class="BZ_Pyq_fadeIn">User </span><strong data-start="943" data-end="959"><span class="BZ_Pyq_fadeIn">Marie-</span><span class="BZ_Pyq_fadeIn">France</span></strong><span class="BZ_Pyq_fadeIn"> → </span><span class="BZ_Pyq_fadeIn">custom </span><span class="BZ_Pyq_fadeIn">fields </span><span class="BZ_Pyq_fadeIn">appear </span><span class="BZ_Pyq_fadeIn">correctly </span><span class="BZ_Pyq_fadeIn">in </span><span class="BZ_Pyq_fadeIn">the </span><span class="BZ_Pyq_fadeIn">profile </span><span class="BZ_Pyq_fadeIn">tab.</span><br data-start="1012" data-end="1015" /><span class="BZ_Pyq_fadeIn">User </span><strong data-start="1020" data-end="1030"><span class="BZ_Pyq_fadeIn">Yorgos</span></strong><span class="BZ_Pyq_fadeIn"> → </span><span class="BZ_Pyq_fadeIn">no </span><span class="BZ_Pyq_fadeIn">custom </span><span class="BZ_Pyq_fadeIn">fields </span><span class="BZ_Pyq_fadeIn">appear </span><span class="BZ_Pyq_fadeIn">in </span><span class="BZ_Pyq_fadeIn">the </span><span class="BZ_Pyq_fadeIn">profile </span><span class="BZ_Pyq_fadeIn">tab.</span></p>
<p data-start="1078" data-end="1099"><span class="BZ_Pyq_fadeIn">Configuration </span><span class="BZ_Pyq_fadeIn">checks:</span></p>
<p data-start="1101" data-end="1385"><span class="BZ_Pyq_fadeIn">• </span><span class="BZ_Pyq_fadeIn">The </span><span class="BZ_Pyq_fadeIn">fields </span><span class="BZ_Pyq_fadeIn">are </span><span class="BZ_Pyq_fadeIn">enabled</span><br data-start="1125" data-end="1128" /><span class="BZ_Pyq_fadeIn">• "</span><span class="BZ_Pyq_fadeIn">Who </span><span class="BZ_Pyq_fadeIn">can </span><span class="BZ_Pyq_fadeIn">view" </span><span class="BZ_Pyq_fadeIn">includes </span><span class="BZ_Pyq_fadeIn">all </span><span class="BZ_Pyq_fadeIn">groups (</span><span class="BZ_Pyq_fadeIn">Moderator, </span><span class="BZ_Pyq_fadeIn">Members, </span><span class="BZ_Pyq_fadeIn">Équipage </span><span class="BZ_Pyq_fadeIn">Pleines </span><span class="BZ_Pyq_fadeIn">Voiles, </span><span class="BZ_Pyq_fadeIn">etc.)</span><br data-start="1216" data-end="1219" /><span class="BZ_Pyq_fadeIn">• </span><span class="BZ_Pyq_fadeIn">The </span><span class="BZ_Pyq_fadeIn">user </span><span class="BZ_Pyq_fadeIn">belongs </span><span class="BZ_Pyq_fadeIn">to </span><span class="BZ_Pyq_fadeIn">the </span><span class="BZ_Pyq_fadeIn">correct </span><span class="BZ_Pyq_fadeIn">wpForo </span><span class="BZ_Pyq_fadeIn">group (</span><span class="BZ_Pyq_fadeIn">Équipage </span><span class="BZ_Pyq_fadeIn">Pleines </span><span class="BZ_Pyq_fadeIn">Voiles)</span><br data-start="1291" data-end="1294" /><span class="BZ_Pyq_fadeIn">• </span><span class="BZ_Pyq_fadeIn">The </span><span class="BZ_Pyq_fadeIn">field </span><span class="BZ_Pyq_fadeIn">is </span><span class="BZ_Pyq_fadeIn">editable </span><span class="BZ_Pyq_fadeIn">and </span><span class="BZ_Pyq_fadeIn">visible</span><br data-start="1329" data-end="1332" /><span class="BZ_Pyq_fadeIn">• </span><span class="BZ_Pyq_fadeIn">The </span><span class="BZ_Pyq_fadeIn">same </span><span class="BZ_Pyq_fadeIn">field </span><span class="BZ_Pyq_fadeIn">configuration </span><span class="BZ_Pyq_fadeIn">works </span><span class="BZ_Pyq_fadeIn">for </span><span class="BZ_Pyq_fadeIn">another </span><span class="BZ_Pyq_fadeIn">user</span></p>
<p data-start="1387" data-end="1452"><span class="BZ_Pyq_fadeIn">However, </span><span class="BZ_Pyq_fadeIn">the </span><span class="BZ_Pyq_fadeIn">fields </span><span class="BZ_Pyq_fadeIn">still </span><span class="BZ_Pyq_fadeIn">do </span><span class="BZ_Pyq_fadeIn">not </span><span class="BZ_Pyq_fadeIn">display </span><span class="BZ_Pyq_fadeIn">for </span><span class="BZ_Pyq_fadeIn">this </span><span class="BZ_Pyq_fadeIn">user’s </span><span class="BZ_Pyq_fadeIn">profile.</span></p>
<p data-start="1454" data-end="1611"><span class="BZ_Pyq_fadeIn">Interestingly, </span><span class="BZ_Pyq_fadeIn">the </span><span class="BZ_Pyq_fadeIn">value </span><strong data-start="1479" data-end="1526"><span class="BZ_Pyq_fadeIn">does </span><span class="BZ_Pyq_fadeIn">appear </span><span class="BZ_Pyq_fadeIn">under </span><span class="BZ_Pyq_fadeIn">the </span><span class="BZ_Pyq_fadeIn">avatar </span><span class="BZ_Pyq_fadeIn">in </span><span class="BZ_Pyq_fadeIn">forum </span><span class="BZ_Pyq_fadeIn">posts</span></strong><span class="BZ_Pyq_fadeIn">, </span><span class="BZ_Pyq_fadeIn">which </span><span class="BZ_Pyq_fadeIn">suggests </span><span class="BZ_Pyq_fadeIn">the </span><span class="BZ_Pyq_fadeIn">field </span><span class="BZ_Pyq_fadeIn">value </span><span class="BZ_Pyq_fadeIn">exists </span><span class="BZ_Pyq_fadeIn">but </span><span class="BZ_Pyq_fadeIn">the </span><span class="BZ_Pyq_fadeIn">profile </span><span class="BZ_Pyq_fadeIn">template </span><span class="BZ_Pyq_fadeIn">does </span><span class="BZ_Pyq_fadeIn">not </span><span class="BZ_Pyq_fadeIn">display </span><span class="BZ_Pyq_fadeIn">it.</span></p>
<p data-start="1613" data-end="1638"><span class="BZ_Pyq_fadeIn">Could </span><span class="BZ_Pyq_fadeIn">this </span><span class="BZ_Pyq_fadeIn">be </span><span class="BZ_Pyq_fadeIn">related </span><span class="BZ_Pyq_fadeIn">to:</span></p>
<p data-start="1640" data-end="1760"><span class="BZ_Pyq_fadeIn">• </span><span class="BZ_Pyq_fadeIn">user </span><span class="BZ_Pyq_fadeIn">meta </span><span class="BZ_Pyq_fadeIn">not </span><span class="BZ_Pyq_fadeIn">initialized </span><span class="BZ_Pyq_fadeIn">for </span><span class="BZ_Pyq_fadeIn">older </span><span class="BZ_Pyq_fadeIn">accounts?</span><br data-start="1687" data-end="1690" /><span class="BZ_Pyq_fadeIn">• </span><span class="BZ_Pyq_fadeIn">a </span><span class="BZ_Pyq_fadeIn">cache </span><span class="BZ_Pyq_fadeIn">issue?</span><br data-start="1706" data-end="1709" /><span class="BZ_Pyq_fadeIn">• </span><span class="BZ_Pyq_fadeIn">a </span><span class="BZ_Pyq_fadeIn">known </span><span class="BZ_Pyq_fadeIn">issue </span><span class="BZ_Pyq_fadeIn">with </span><span class="BZ_Pyq_fadeIn">the </span><span class="BZ_Pyq_fadeIn">User </span><span class="BZ_Pyq_fadeIn">Custom </span><span class="BZ_Pyq_fadeIn">Fields </span><span class="BZ_Pyq_fadeIn">plugin?</span></p>
<p data-start="1762" data-end="1845"><span class="BZ_Pyq_fadeIn">Screenshots </span><span class="BZ_Pyq_fadeIn">attached </span><span class="BZ_Pyq_fadeIn">showing </span><span class="BZ_Pyq_fadeIn">the </span><span class="BZ_Pyq_fadeIn">field </span><span class="BZ_Pyq_fadeIn">configuration </span><span class="BZ_Pyq_fadeIn">and </span><span class="BZ_Pyq_fadeIn">the </span><span class="BZ_Pyq_fadeIn">affected </span><span class="BZ_Pyq_fadeIn">user </span><span class="BZ_Pyq_fadeIn">profile.</span></p>
<p data-start="1847" data-end="1871"><span class="BZ_Pyq_fadeIn">Thank </span><span class="BZ_Pyq_fadeIn">you </span><span class="BZ_Pyq_fadeIn">for </span><span class="BZ_Pyq_fadeIn">your </span><span class="BZ_Pyq_fadeIn">help.</span></p>
<p data-start="1873" data-end="1885"><span class="BZ_Pyq_fadeIn">Best </span><span class="BZ_Pyq_fadeIn">regards</span></p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/"></category>                        <dc:creator>Aïmata Guillain</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-user-custom-fields/custom-profile-fields-not-showing-for-some-users/</guid>
                    </item>
				                    <item>
                        <title>Error Nonce is invalid when trying to post comments</title>
                        <link>https://gvectors.com/forum/general-forums/error-nonce-is-invalid-when-trying-to-post-comments/</link>
                        <pubDate>Sun, 15 Mar 2026 22:53:58 +0000</pubDate>
                        <description><![CDATA[Hi, since the last update (I think) our users (all logged in) are getting &quot;invalid nonce&quot; errors when trying to post comments. This does not occur for admin users. I have added the hook code...]]></description>
                        <content:encoded><![CDATA[<p>Hi, since the last update (I think) our users (all logged in) are getting "invalid nonce" errors when trying to post comments. This does not occur for admin users. I have added the hook code from this thread (https://wordpress.org/support/topic/error-nonce-is-invalid-when-trying-to-post-comments/), and cleared cache, but still getting the invalid nonce errors.</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/"></category>                        <dc:creator>Jeffrey Carreira</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/general-forums/error-nonce-is-invalid-when-trying-to-post-comments/</guid>
                    </item>
				                    <item>
                        <title>The read more button</title>
                        <link>https://gvectors.com/forum/how-to-and-troubleshooting/the-read-more-button/</link>
                        <pubDate>Sun, 15 Mar 2026 18:56:44 +0000</pubDate>
                        <description><![CDATA[The read more button and the load more comments button don&#039;t work. When you click them, the loading button appears in the top right corner, but no more comments are loaded.]]></description>
                        <content:encoded><![CDATA[<p>The read more button and the load more comments button don't work. When you click them, the loading button appears in the top right corner, but no more comments are loaded.</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/"></category>                        <dc:creator>AllReballing</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/how-to-and-troubleshooting/the-read-more-button/</guid>
                    </item>
				                    <item>
                        <title>move comments in front-end moderation does not work for us</title>
                        <link>https://gvectors.com/forum/wpdiscuz-frontend-moderation/move-comments-in-front-end-moderation-does-not-work-for-us/</link>
                        <pubDate>Thu, 12 Mar 2026 15:08:44 +0000</pubDate>
                        <description><![CDATA[When we input the post we want the comment to be redirected to we get a red notice to &quot;add a post&quot;. What is the solution?]]></description>
                        <content:encoded><![CDATA[<p><span>When we input the post we want the comment to be redirected to we get a red notice to "add a post". What is the solution?  </span></p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/"></category>                        <dc:creator>SophieGreen</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpdiscuz-frontend-moderation/move-comments-in-front-end-moderation-does-not-work-for-us/</guid>
                    </item>
				                    <item>
                        <title>Blog Cross Posting Button box</title>
                        <link>https://gvectors.com/forum/wpforo-blog-cross-posting/blog-cross-posting-button-box/</link>
                        <pubDate>Wed, 11 Mar 2026 09:00:01 +0000</pubDate>
                        <description><![CDATA[Hi,
Would anyone be able to advise some way to change the background of the button box as I&#039;ve no idea. See attachment. 
Many Thanks.]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>Would anyone be able to advise some way to change the background of the button box as I've no idea. See attachment. </p>
<p>Many Thanks.</p>
7851]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/"></category>                        <dc:creator>radiostv</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-blog-cross-posting/blog-cross-posting-button-box/</guid>
                    </item>
				                    <item>
                        <title>Moderator able to switch groups for end users front side</title>
                        <link>https://gvectors.com/forum/wpforo-topic-custom-fields/moderator-able-to-switch-groups-for-end-users-front-side/</link>
                        <pubDate>Mon, 09 Mar 2026 14:54:32 +0000</pubDate>
                        <description><![CDATA[Sorry, this is so long. I am using a checkbox User Field to manage secondary user groups from the front end.
I do not want my moderators to have back-end access, just todo this one task. My...]]></description>
                        <content:encoded><![CDATA[<p>Sorry, this is so long. I am using a checkbox User Field to manage secondary user groups from the front end.</p>
<p>I do not want my moderators to have back-end access, just todo this one task. My platform is much more SEC by doing it from the front side<br /><br />I have created a custom checkbox field that is only visible and editable by moderators and admins. The end user does not have permission to edit the field</p>
<p>I already have the checkbox field ID and the corresponding user group IDs. <br /><br />I need the specific code snippet or hook to ensure that when a moderator selects a checkbox (on the user's profile) and saves the user profile, the user is automatically added to the secondary user group in the database. The end user cannot edit this.<br /><br />1. Custom checkbox field created in User Fields.<br />2. Permissions set to moderator and admin only.<br />3. Field ID and user group IDs are identified.<br />4. Goal is to sync the custom checkbox to save when the moderator updates, when the profile is saved.<br /><br />Please see the current code I am using below.</p>
<p>I need the specific code snippet or hook to ensure that when a moderator selects a checkbox and saves the user profile, the user is automatically added to that secondary user group in the database.<br /><br />Please see the current code I am using below.</p>
<div class="code-block ng-tns-c2432481757-103 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwia2bC5_5KTAxUAAAAAHQAAAAAQigI">
<div class="formatted-code-block-internal-container ng-tns-c2432481757-103">
<div class="animated-opacity ng-tns-c2432481757-103">
<pre class="ng-tns-c2432481757-103" contenteditable="false"><code class="code-container formatted ng-tns-c2432481757-103 no-decoration-radius" role="text" data-test-id="code-content">add_action('wpforo_after_update_user', function($user_id) {
    // 1. GATEKEEPER SECURITY: Only allow Admins or Gatekeepers
    if (!current_user_can('moderate_comments') &amp;&amp; !current_user_can('manage_options')) return;

    // 2. THE MAP: "Label in Field" =&gt; "wpForo Group ID"
    $field_key = 'field_6d80de0';
    $group_map = ;

    // 3. CAPTURE DATA FROM THE WPFORO-SPECIFIC ARRAY
    $selected_labels = [];
    
    if (isset($_POST)) {
        $selected_labels = (array)$_POST;
    } elseif (isset($_POST)) {
        $selected_labels = (array)$_POST;
    }

    // Safety: If the field isn't in the submission, don't change anything
    if (empty($selected_labels) &amp;&amp; !isset($_POST)) return;

    // 4. SYNC TO WPFORO SECONDARY GROUPS
    if (function_exists('WPF')) {
        $member = WPF()-&gt;member-&gt;get_member($user_id);
        if (!$member) return;

        // Current secondary groups (wpForo stores these as an array of IDs)
        $current_secondary = !empty($member) ? (array)$member : [];

        foreach ($group_map as $label =&gt; $group_id) {
            if (in_array(trim($label), array_map('trim', $selected_labels))) {
                // Add if checked and missing
                if (!in_array($group_id, $current_secondary)) {
                    $current_secondary[] = $group_id;
                }
            } else {
                // Remove if unchecked (only for these 4 managed groups)
                $current_secondary = array_diff($current_secondary, );
            }
        }

        // 5. THE FINAL FIRE: Update the database and clear forum cache
        WPF()-&gt;member-&gt;update($user_id, );
        WPF()-&gt;member-&gt;reset($user_id);
    }
}, 10);
</code></pre>
</div>
</div>
</div>
<p data-path-to-node="5">Thank you!</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/"></category>                        <dc:creator>Danno61</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpforo-topic-custom-fields/moderator-able-to-switch-groups-for-end-users-front-side/</guid>
                    </item>
				                    <item>
                        <title>Learndash with wpDiscuz</title>
                        <link>https://gvectors.com/forum/how-to-and-troubleshooting/learndash-with-wpdiscuz/</link>
                        <pubDate>Wed, 04 Mar 2026 12:46:43 +0000</pubDate>
                        <description><![CDATA[Hi there!I&#039;m trying to give my learndash students the option to write a comment with a image. When I add the wpDiscuz form to the learndash comment section I see two comment fields and the c...]]></description>
                        <content:encoded><![CDATA[<p>Hi there!<br /><br />I'm trying to give my learndash students the option to write a comment with a image. <br /><br />When I add the wpDiscuz form to the learndash comment section I see two comment fields and the comments dissapear.<br /><br />What I did was:<br />In the Default Form, <span>Display comment form for post types, select </span>'<span>sfwd-lessons'.</span></p>
<p>Can you help me out?</p>
<p>Thank you so much!</p>
7850
<p>&nbsp;</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/"></category>                        <dc:creator>Irene Staal</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/how-to-and-troubleshooting/learndash-with-wpdiscuz/</guid>
                    </item>
							        </channel>
        </rss>
		