<?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>
									forum topic subscribed by user is set to ADMIN not to him ?! - Bug Reports - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 13 May 2026 01:15:47 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: forum topic subscribed by user is set to ADMIN not to him ?!</title>
                        <link>https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/#post-77646</link>
                        <pubDate>Fri, 09 Dec 2022 09:54:54 +0000</pubDate>
                        <description><![CDATA[Hi @chris 
Thank you for your support !]]></description>
                        <content:encoded><![CDATA[<p>Hi @chris </p>
<p>Thank you for your support !</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-forums-bug-reports/">Bug Reports - wpForo 2.0</category>                        <dc:creator>mahi33</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/#post-77646</guid>
                    </item>
				                    <item>
                        <title>RE: forum topic subscribed by user is set to ADMIN not to him ?!</title>
                        <link>https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/#post-77639</link>
                        <pubDate>Fri, 09 Dec 2022 09:09:00 +0000</pubDate>
                        <description><![CDATA[Hi @mahi33,
We have found the problem and we are working on it, The issue would be fixed in the new version.
Thanks]]></description>
                        <content:encoded><![CDATA[<p>Hi <span>@mahi33,</span></p>
<p>We have found the problem and we are working on it, The issue would be fixed in the new version.</p>
<p>Thanks</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-forums-bug-reports/">Bug Reports - wpForo 2.0</category>                        <dc:creator>Chris</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/#post-77639</guid>
                    </item>
				                    <item>
                        <title>RE: forum topic subscribed by user is set to ADMIN not to him ?!</title>
                        <link>https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/#post-77499</link>
                        <pubDate>Mon, 05 Dec 2022 10:53:50 +0000</pubDate>
                        <description><![CDATA[Hi @marc-hild,
We will take a look on this and late you know.
Thank you very much.]]></description>
                        <content:encoded><![CDATA[<p>Hi @marc-hild,</p>
<p>We will take a look on this and late you know.</p>
<p>Thank you very much.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-forums-bug-reports/">Bug Reports - wpForo 2.0</category>                        <dc:creator>Chris</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/#post-77499</guid>
                    </item>
				                    <item>
                        <title>RE: forum topic subscribed by user is set to ADMIN not to him ?!</title>
                        <link>https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/#post-77477</link>
                        <pubDate>Sat, 03 Dec 2022 19:53:32 +0000</pubDate>
                        <description><![CDATA[OK, I found the problem and patched
wpforo/modules/subscriptions/classes/Template.php
Same behaviour on PHP 7.4 and PHP 8.1 with wpForo 2.1.1 and Wordpress 6.1.1
On line 32 in Template.ph...]]></description>
                        <content:encoded><![CDATA[<p>OK, I found the problem and patched</p>
<pre contenteditable="false">wpforo/modules/subscriptions/classes/Template.php</pre>
<p>Same behaviour on PHP 7.4 and PHP 8.1 with wpForo 2.1.1 and Wordpress 6.1.1</p>
<p>On line 32 in Template.php =&gt; $userid is assigned to 0</p>
<pre contenteditable="false"><span>public function </span><span>manager_form( </span><span>$userid </span><span>= </span><span>0 </span><span>) {</span></pre>
<p>In my case however $userid is an ARRAY() with the following values being connected as "maxgarin" and the default value 0 is not taken.</p>
<pre contenteditable="false">userid = Array
val = 93
val = 8
val = forum-topic
val = 1d989ced9d29275b5185ea66f171ac7e
val = 7
val = 1
val =
val =</pre>
<p>On line 43 we have</p>
<pre contenteditable="false">$userid = intval( $userid );</pre>
<p>But <a href="https://www.php.net/manual/fr/function.intval.php" target="_blank" rel="noopener">intval( array() )</a> returns 1 if not empty =&gt; which is the ADMIN userid in my case</p>
<p>I patched this line and changed it to</p>
<pre contenteditable="false"><span>$userid </span><span>= (</span><span>is_array</span><span>(</span><span>$userid</span><span>)) ? </span><span>0 </span><span>: </span><span>intval</span><span>( </span><span>$userid </span><span>);</span></pre>
<p>And the userid is retrieved correctly and is 7 (in this example) and this solves the problem.</p>
<p>Does this makes sense to you ? Will you include the patch in the next wpForo release ?</p>
<p>thank you</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-forums-bug-reports/">Bug Reports - wpForo 2.0</category>                        <dc:creator>mahi33</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/#post-77477</guid>
                    </item>
				                    <item>
                        <title>RE: forum topic subscribed by user is set to ADMIN not to him ?!</title>
                        <link>https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/#post-77474</link>
                        <pubDate>Sat, 03 Dec 2022 17:49:40 +0000</pubDate>
                        <description><![CDATA[Additionnal information...
The subscription submission form &quot;wpf_sbs_form&quot; contains a hidden field &quot;wpforo&quot; with  value = 1 (this is ADMIN). It should be 7 for user &quot;maxgarin&quot; (see ...]]></description>
                        <content:encoded><![CDATA[<p>Additionnal information...</p>
<p>The subscription submission form "wpf_sbs_form" contains a hidden field "wpforo" with  value = 1 (this is ADMIN). It should be 7 for user "maxgarin" (see JPG test with another user). This explains why ADMIN is getting the user subscription.</p>
<p>Now why is the user ID getting lost when displaying page : /participant/{user}/subscriptions and falls back to 1 ?</p>
<p>The Wordpress login cookies are correct :<br />- domain : federation-francaise-de-geobiologie.org<br />- name : wordpress_logged_in_7e3863606bc70e6f2e98232e1eba9c04<br />- value : maxgarin%7C1671300294%7CQaO5vbcmAIgWltPeSgDYThJUY6iwg04itakB1GPHZTK%7C8d5d9b71952dbc99616393cf0474c6ee605ef6dd273475363f59a9f33985dea6</p>
<p>any idea ?</p>
<p> </p>
<div id="wpfa-0" class="wpforo-attached-file"><a class="wpforo-default-attachment" title="code.jpg" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1670089780-code.jpg" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> code.jpg</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-forums-bug-reports/">Bug Reports - wpForo 2.0</category>                        <dc:creator>mahi33</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/#post-77474</guid>
                    </item>
				                    <item>
                        <title>forum topic subscribed by user is set to ADMIN not to him ?!</title>
                        <link>https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/#post-77472</link>
                        <pubDate>Sat, 03 Dec 2022 16:04:12 +0000</pubDate>
                        <description><![CDATA[Hi,
I have a strange behaviour or bug on a private forum.
On the same computer...1° in Firefox I have page /participant/maxgarin/subscriptions open. This user has one forum-topic subscript...]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>I have a strange behaviour or bug on a private forum.</p>
<p>On the same computer...<br />1° in Firefox I have page /participant/maxgarin/subscriptions open. This user has one forum-topic subscription "Envoi à tous" and wants to add the topic "Agriculture et élevage"<br />2° When submitting the "Agriculture et élevage" topic is not added to the user's maxgarin list, BUT TO ADMIN ?! <br />3° in Brave where admin is logged I have on /participant/{admin}/subscriptions page the forum topic added by user maxgarin (see attached JPG)</p>
<p>This is really odd. User subscriptions on page /participant/{user}/subscriptions are set to the <br />/participant/{admin}/subscriptions.</p>
<p>I checked the <strong>wpforo_subscribes</strong> SQL table and confirms the subscription transfer from user to admin.</p>
<p>Can you please help me trace and fix the problem ?</p>
<p>thank you</p>
<div id="wpfa-0" class="wpforo-attached-file"><a class="wpforo-default-attachment" title="wpforo-subscriptions.jpg" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1670083633-wpforo-subscriptions.jpg" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> wpforo-subscriptions.jpg</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-forums-bug-reports/">Bug Reports - wpForo 2.0</category>                        <dc:creator>mahi33</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-forums-bug-reports/forum-topic-subscribed-by-user-is-set-to-admin-not-to-him/#post-77472</guid>
                    </item>
							        </channel>
        </rss>
		