<?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>
									Admin message on forum front page + PHP - General Discussions				            </title>
            <link>https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Fri, 07 Aug 2026 16:33:28 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Admin message on forum front page + PHP</title>
                        <link>https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52214</link>
                        <pubDate>Fri, 19 Mar 2021 21:16:23 +0000</pubDate>
                        <description><![CDATA[@tutrix Thanks you! You showed me the way, and I finished it. 👍 👍 👍

add_action( &#039;wp_head&#039;, function () { ?&gt;
&lt;script&gt;
jQuery(document).ready...]]></description>
                        <content:encoded><![CDATA[<p>@tutrix Thanks you! You showed me the way, and I finished it. 👍 👍 👍</p>
<p></p>
<pre contenteditable="false">add_action( 'wp_head', function () { ?&gt;
&lt;script&gt;
jQuery(document).ready(function($) {	
$('#wpforo #wpforo-wrap .wpforo-admin-note').append($('&lt;div class="usercount"&gt; На форуме зарегистрированы &lt;?php $stat = WPF()-&gt;statistic(); ?&gt; &lt;?php echo $stat; ?&gt; пользователей. Стань &lt;?php echo $stat+1; ?&gt;!&lt;/div&gt;'));
});
&lt;/script&gt;
&lt;?php } );</pre>

<p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>st7878</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52214</guid>
                    </item>
				                    <item>
                        <title>RE: Admin message on forum front page + PHP</title>
                        <link>https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52213</link>
                        <pubDate>Fri, 19 Mar 2021 21:09:54 +0000</pubDate>
                        <description><![CDATA[@aima-forum
I don&#039;t know where the problem is on your sidefor me the code works without any problem
use the plugin if it doesn&#039;t work for you via functions.php
you asked for a way to add ...]]></description>
                        <content:encoded><![CDATA[<p>@aima-forum</p>
<p>I don't know where the problem is on your side<br />for me the code works without any problem</p>
<p>use the plugin if it doesn't work for you via functions.php</p>
<p>you asked for a way to add php to the admin note</p>
<p>the php code above is just an example, you can use your own</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Tutrix</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52213</guid>
                    </item>
				                    <item>
                        <title>RE: Admin message on forum front page + PHP</title>
                        <link>https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52212</link>
                        <pubDate>Fri, 19 Mar 2021 20:09:24 +0000</pubDate>
                        <description><![CDATA[@tutrix Hmmmm 🙄 
in the page code - there is a script. but no text is displayed on the page. and further. in my case I need: &quot;153 users are registered. Become 154&quot; (not 153+1)
and after th...]]></description>
                        <content:encoded><![CDATA[<p>@tutrix Hmmmm 🙄 </p>
<p><span>in the page code - there is a script. but no text is displayed on the page. and further. in my case I need: "153 users are registered. Become <strong><span style="color: #ff0000">154</span></strong>" (not 153+1)</span></p>
<p>and after the main text, not before</p>
<div id="wpfa-0" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1616184564-Desktop-screenshot.png" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> Desktop-screenshot.png</a></div>
<div> </div>
<div> </div>
<div>PS: I won! it worked like this "<span style="color: #008000"><strong>jQuery (document) .ready (function ($)</strong></span>"</div>
<div> </div>
<div>PPS: please help more:<br /><span style="text-decoration: line-through">1) <strong><span style="color: #008000">below the text</span></strong>, <span style="color: #ff0000">not above the text</span></span><br /><span style="text-decoration: line-through">2) not <strong><span style="color: #ff0000">153+1</span></strong>, but <span style="color: #008000"><strong>154</strong></span></span></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>st7878</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52212</guid>
                    </item>
				                    <item>
                        <title>RE: Admin message on forum front page + PHP</title>
                        <link>https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52209</link>
                        <pubDate>Fri, 19 Mar 2021 16:44:37 +0000</pubDate>
                        <description><![CDATA[@aima-forum
yes 😀 😉 it works]]></description>
                        <content:encoded><![CDATA[<p>@aima-forum</p>
<p>yes 😀 😉 it works</p>
<p><a title="https://www.screencast.com/t/qXBRjsZFW2qV" href="https://www.screencast.com/t/qXBRjsZFW2qV" target="true">https://www.screencast.com/t/qXBRjsZFW2qV</a></p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Tutrix</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52209</guid>
                    </item>
				                    <item>
                        <title>RE: Admin message on forum front page + PHP</title>
                        <link>https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52207</link>
                        <pubDate>Fri, 19 Mar 2021 16:29:33 +0000</pubDate>
                        <description><![CDATA[@tutrix no(((
 
 add-code.png
&nbsp;result.png]]></description>
                        <content:encoded><![CDATA[<p>@tutrix no(((</p>
<p> </p>
<div id="wpfa-0" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1616171373-add-code.png" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> add-code.png</a></div>
<div id="wpfa-0" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1616171387-result.png" target="_blank"><i class="fas fa-paperclip"></i>&nbsp;result.png</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>st7878</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52207</guid>
                    </item>
				                    <item>
                        <title>RE: Admin message on forum front page + PHP</title>
                        <link>https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52206</link>
                        <pubDate>Fri, 19 Mar 2021 14:16:17 +0000</pubDate>
                        <description><![CDATA[@aima-forum
you can use this code
add_action( &#039;wp_head&#039;, function () { ?&gt;
&lt;script&gt;
$(document).ready(function() {	
$(&#039;#wpforo #wpforo-wrap .wpforo-admin-note&#039;).prepend($(&#039;&lt;d...]]></description>
                        <content:encoded><![CDATA[<p>@aima-forum</p>
<p>you can use this code</p>
<pre contenteditable="false">add_action( 'wp_head', function () { ?&gt;
&lt;script&gt;
$(document).ready(function() {	
$('#wpforo #wpforo-wrap .wpforo-admin-note').prepend($('&lt;div class="usercount"&gt; &lt;?php $stat = WPF()-&gt;statistic(); ?&gt; &lt;?php echo $stat; ?&gt; users are registered. Become &lt;?php echo $stat; ?&gt; + 1&lt;/div&gt;'));
});
&lt;/script&gt;
&lt;?php } );</pre>
<p>either via the <a title="Code Snippets" href="https://wordpress.org/plugins/code-snippets/" target="true">Code Snippets</a> plugin<br />or in the functions.php of your WP theme</p>
<p>you also have to add text to the admin note, to make it active</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Tutrix</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52206</guid>
                    </item>
				                    <item>
                        <title>Admin message on forum front page + PHP</title>
                        <link>https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52187</link>
                        <pubDate>Fri, 19 Mar 2021 08:15:17 +0000</pubDate>
                        <description><![CDATA[I want to write in a message for forum guests: &quot;XXX users are registered. Become XXX+1&quot;. Number of users, I want to call php function. How can I add a php script to the field on the screen?...]]></description>
                        <content:encoded><![CDATA[<p>I want to write in a message for forum guests: "XXX users are registered. Become XXX+1". Number of users, I want to call php function. How can I add a php script to the field on the screen?</p>
<p> </p>
<div id="wpfa-0" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1616141717-1.png" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> 1.png</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>st7878</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/admin-message-on-forum-front-page-php/#post-52187</guid>
                    </item>
							        </channel>
        </rss>
		