<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Display moderators for the forum</title>
        <description> Hi,
I wrote a simple function to display the list of moderators for each forum.
Tested on Phorum 3.4.3a - index.php
-------------------
in the if(!$rec[&amp;quot;folder&amp;quot;]){ section about line 150 
-----------------
//MODIF-&amp;gt;Add list of moderators
		$pho_mod = $PHORUM[&amp;#039;mod_table&amp;#039;];
		$sSQL=&amp;quot;Select moderation from $pho_main where id=$num&amp;quot;;
      	$mq = new query($DB, $sSQL);
      	$mrec=$mq-&amp;gt;getrow();
      	$mod=$mrec[&amp;quot;moderation&amp;quot;];
		if($mod != &amp;quot;n&amp;quot;)
		{
			$modnames = &amp;quot;&amp;quot;;
			$sSQL=&amp;quot;SELECT user_id FROM $pho_mod WHERE forum_id=$num&amp;quot;;
        	$mq= new query($DB, $sSQL);
			$i=0;
			$sep = &amp;quot;&amp;quot;;
      		while($mrec=$mq-&amp;gt;getrow())
			{
				$i++;
				$pho_auth = $PHORUM[&amp;#039;auth_table&amp;#039;];
				$modo_id = $mrec[&amp;#039;user_id&amp;#039;];
				$sSQL = &amp;quot;SELECT username from $pho_auth WHERE id=$modo_id&amp;quot;;
      			$zq = new query($DB, $sSQL);
      			$zrec=$zq-&amp;gt;getrow();
				$modo_name = $zrec[&amp;quot;username&amp;quot;];
				if ($i &amp;gt; 1)
					$sep = &amp;quot;, &amp;quot;;
				$modnames .= $sep.&amp;quot;&amp;lt;a href=&amp;#039;profile.$ext?f=$num&amp;amp;id=$modo_id$GetVars&amp;#039;&amp;gt;$modo_name&amp;lt;/a&amp;gt;&amp;quot;;
			}
		}
------------------
And about line 220 in the text:
------------------
&amp;lt;!--MODIF: display the moderators--&amp;gt;
&amp;lt;?php 
if(!empty($modnames))
{
?&amp;gt;
&amp;lt;tr&amp;gt;
    &amp;lt;td colspan=3 bgcolor=&amp;quot;&amp;lt;?php echo $table_body_color_1; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;FONT color=&amp;quot;&amp;lt;?php echo $ForumNavFontColor; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;blockquote&amp;gt;&amp;lt;?php echo $lModerator; ?&amp;gt;: &amp;lt;b&amp;gt;&amp;lt;?php echo $modnames ?&amp;gt;&amp;lt;b&amp;gt;&amp;lt;/blockquote&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;
&amp;lt;?php
}



Post Edited (06-14-03 07:07)</description>
        <link>https://www.phorum.org/phorum5/read.php?8,48228,48228#msg-48228</link>
        <lastBuildDate>Sat, 14 Mar 2026 01:58:53 -0400</lastBuildDate>
        <generator>Phorum 5.2.22</generator>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48530#msg-48530</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48530#msg-48530</link>
            <description><![CDATA[ How did you get all those statistics?  Are the mods available?<br />
<br />
Mike.]]></description>
            <dc:creator>Mike Woods</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Mon, 12 Jul 2004 16:38:35 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48404#msg-48404</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48404#msg-48404</link>
            <description><![CDATA[ Re Hello<br />
<br />
Any idea to make it works with the rest of my site ......I would like to write on each pages of my site the name of the members online<br />
<br />
Best regards,<br />
<br />
Franck]]></description>
            <dc:creator>Franck</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Thu, 19 Feb 2004 05:16:14 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48403#msg-48403</guid>
            <title>Who is online like BB</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48403#msg-48403</link>
            <description><![CDATA[ I just change the subjet line for that this thread will be be easy searchable ....beacause i have search this script 2 days .......]]></description>
            <dc:creator>Franck</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Thu, 19 Feb 2004 04:40:29 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48402#msg-48402</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48402#msg-48402</link>
            <description><![CDATA[ great job it works perfectly after some searching beacause i&#039;am not very good in php.<br />
<br />
some additions to the comments for beginner like me:<br />
<br />
do not forget to create the table whoisonline ;-)<br />
<br />
<br />
CREATE TABLE whosonline (<br />
ip char(15) NOT NULL default &#039;&#039;,<br />
ts timestamp(14) NOT NULL,<br />
username char(255) NOT NULL default &#039;&#039;,<br />
forum char(250) NOT NULL default &#039;&#039;,<br />
PRIMARY KEY (ip),<br />
KEY ts (ts),<br />
KEY forum (forum)<br />
) TYPE=MyISAM;<br />
<br />
INSERT INTO whosonline VALUES (&#039;record&#039;, 20011118030340, &#039;1&#039;, &#039;Whatever&#039;);<br />
<br />
<br />
<br />
<br />
if you read 0 registered user and not last registered user ...<br />
.....check in the callscript.php it was forum_auth intead of phorum_auth for me ....<br />
<br />
$tsql=&quot;SELECT count(*) as total FROM phorum_auth&quot;;<br />
$q-&gt;query($DB, $tsql);<br />
$who_nbusers=$q-&gt;field(&quot;total&quot;, 0);<br />
<br />
$usql=&quot;SELECT username, id FROM phorum_auth ORDER BY id DESC&quot;;<br />
$q-&gt;query($DB, $usql);<br />
$record2=$q-&gt;getrow();<br />
$who_lastid=$record2[&#039;id&#039;];<br />
$who_lastuser=$record2[&#039;username&#039;];<br />
<br />
<br />
now it&#039;s working great !!! at:<br />
&lt;www.mammillarias.net/phorum/&gt;<br />
thanks to all !!!<br />
<br />
Franck<br />
(from France)]]></description>
            <dc:creator>Franck</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Thu, 19 Feb 2004 04:38:22 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48401#msg-48401</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48401#msg-48401</link>
            <description><![CDATA[ Sorry for the link, I tried to put it again but it doesn&#039;t work... maybe it&#039;s too big.<br />
Anywway the functions to add in your common.php are below:<br />
---------<br />
	//MODIF-&gt;Whoisonline script<br />
	function get_location($PHP_SELF,$REQUEST_URI,$title,$ForumName)<br />
	{<br />
		switch(basename($PHP_SELF))<br />
		{<br />
		case &quot;post.php&quot;:<br />
			$pagename=&quot;Posting Now Topic in &lt;b&gt;&lt;a href=\&quot;$REQUEST_URI\&quot;&gt;&quot;.$ForumName.&quot;&lt;/a&gt;&lt;/b&gt;&quot;;<br />
		break;<br />
		case &quot;whoisonline.php&quot;:<br />
			$pagename=&quot;Viewing this page&quot;;<br />
		break;<br />
		case &quot;index.php&quot;:<br />
			$pagename=&quot;Viewing: &lt;b&gt;&lt;a href=\&quot;$REQUEST_URI\&quot;&gt;&quot;.$title.&quot;&lt;/a&gt;&lt;/b&gt;&quot;;<br />
		break;<br />
		case &quot;list.php&quot;:<br />
			$pagename=&quot;Reading: &lt;b&gt;&lt;a href=\&quot;$REQUEST_URI\&quot;&gt;&quot;.$ForumName.&quot;&lt;/a&gt;&lt;/b&gt; Forum&quot;;<br />
		break;<br />
		case &quot;read.php&quot;:<br />
			$readtitle=$title;<br />
			$readtitle=str_replace(&quot;-&quot;,&quot; &quot;,$readtitle);<br />
			$pagename=&quot;Reading: &lt;b&gt;&lt;a href=\&quot;$REQUEST_URI\&quot;&gt;&quot;.$readtitle.&quot;&lt;/a&gt;&lt;/b&gt; in &lt;b&gt;&quot;.$ForumName.&quot;&lt;/b&gt; Forum&quot;;<br />
		break;<br />
		}<br />
		return $pagename;<br />
	}<br />
	<br />
	function get_whosonline($IP, $username, $pagename) <br />
	{<br />
		global $DB,$q;<br />
		//Kill Old guys<br />
		$sql=&quot;delete from whosonline where ts &lt; DATE_SUB(NOW(), INTERVAL 3 MINUTE) and ip!=&#039;record&#039;&quot;;<br />
		$q-&gt;query($DB, $sql);<br />
		//Replace each entry with new one...if it doest exist it creates new one<br />
		$sql=&quot;replace INTO whosonline (ip, username, forum) VALUES(&#039;$IP&#039;, &#039;$username&#039;, &#039;$pagename&#039;)&quot;;<br />
		$q-&gt;query($DB, $sql);<br />
		//count them<br />
		$sql=&quot;SELECT count(*) as total FROM whosonline where ip!=&#039;record&#039;&quot;;<br />
		$q-&gt;query($DB, $sql);<br />
		$users=$q-&gt;field(&quot;total&quot;, 0);<br />
		//count guest number<br />
		$sql=&quot;SELECT count(*) as total FROM whosonline where ip!=&#039;record&#039; and (username=&#039;Guest&#039; or username=&#039;&#039;)&quot;;<br />
		$q-&gt;query($DB, $sql);<br />
		$guests=$q-&gt;field(&quot;total&quot;, 0);<br />
		//count member number<br />
		$sql=&quot;SELECT count(*) as total FROM whosonline where ip!=&#039;record&#039; and username&lt;&gt;&#039;Guest&#039;&quot;;<br />
		$q-&gt;query($DB, $sql);<br />
		$members=$q-&gt;field(&quot;total&quot;, 0);<br />
		<br />
		$userframe[users]=$users;<br />
		$userframe[guests]=$guests;<br />
		$userframe[members]=$members;<br />
		<br />
		//check record table<br />
		$sql=&quot;SELECT username FROM whosonline WHERE ip=&#039;record&#039;&quot;;<br />
		$q-&gt;query($DB, $sql);<br />
		$record=$q-&gt;getrow();<br />
		if($record[username] &lt; $users)<br />
		{<br />
			$sql=&quot;UPDATE whosonline set username=&#039;$users&#039; WHERE ip=&#039;record&#039;&quot;;<br />
			$q-&gt;query($DB, $sql);<br />
		}<br />
		return $userframe; <br />
	}<br />
	<br />
	function get_regonline($f) <br />
	{<br />
		global $DB, $q, $ext;<br />
		<br />
		$sSQL=&quot;SELECT ip, username FROM whosonline WHERE username&lt;&gt;\&quot;Guest\&quot; and ip&lt;&gt;\&quot;record\&quot;&quot;;<br />
        $q-&gt;query($DB, $sSQL);<br />
		$sep = &quot;&quot;;<br />
      	while($record=$q-&gt;getrow())<br />
		{<br />
			$i++;<br />
			if ($i &gt; 1)<br />
				$sep = &quot;, &quot;;<br />
			$id=$record[&#039;ip&#039;];<br />
			$name=$record[&#039;username&#039;];<br />
			$members .= $sep.&quot;&lt;a href=&#039;profile.$ext?f=$f&amp;id=$id$GetVars&#039;&gt;$name&lt;/a&gt;&quot;;<br />
		}<br />
		return $members; <br />
	}<br />
--------------<br />
The stuff won&#039;t work without them, so put them in the file, it&#039;s not complicated.<br />
<br />
Cyril<br />
<br />
<br />
<br />
Post Edited (02-19-04 02:13)]]></description>
            <dc:creator>voimamatti</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Thu, 19 Feb 2004 03:09:49 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48400#msg-48400</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48400#msg-48400</link>
            <description><![CDATA[ ù&#039;re link don&#039;t work cyril !!!....bùt if i delete the line $who_username = get_regonline($f); in callscript.php , i have an other pb with index.php on line 163.....maybe y langen.php isn&#039;t in the good place ??....I look for the pb....]]></description>
            <dc:creator>syskhann</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Wed, 18 Feb 2004 20:05:30 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48399#msg-48399</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48399#msg-48399</link>
            <description><![CDATA[ Sorry guys, but I forgot that a lot of my functions are actually in common.php. This includes the get_regonline function that you are missing Sammy.<br />
<br />
It might sort out also other problems. <br />
<br />
Check line 218-&gt;Whoisonline script with the 2 get_ fucntions afterwards...<br />
<br />
Cyril<br />
<br />
<br />
<br />
Post Edited (02-19-04 02:08)]]></description>
            <dc:creator>voimamatti</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Wed, 18 Feb 2004 16:20:39 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48398#msg-48398</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48398#msg-48398</link>
            <description><![CDATA[ I just deleted this line in callscript.php -<br />
<br />
$who_username = get_regonline($f);]]></description>
            <dc:creator>Mandingo</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Wed, 18 Feb 2004 10:08:17 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48397#msg-48397</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48397#msg-48397</link>
            <description><![CDATA[ what version do you use ?<br />
<br />
I use 3.4.6 and don&#039;t know why it doesn&#039;t work, tried a few things to change in the callscript.<br />
<br />
Is it possible to upload your callscript.php ?]]></description>
            <dc:creator>Sammy</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Tue, 17 Feb 2004 13:14:12 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48396#msg-48396</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48396#msg-48396</link>
            <description><![CDATA[ Works great for me, though i had to deleate a line to get it to work.<br />
Thanks Easyexpat!]]></description>
            <dc:creator>Mandingo</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Tue, 17 Feb 2004 05:33:04 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48395#msg-48395</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48395#msg-48395</link>
            <description><![CDATA[ I&#039;ve got some prob. when i use the callscript. Then the whole forum won&#039;t work anymore.<br />
<br />
Without the callscript no problems. Tommorow I will look at it, but my php isn&#039;t very...so don&#039;t expect to much from me]]></description>
            <dc:creator>Sammy</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Mon, 16 Feb 2004 18:34:59 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48393#msg-48393</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48393#msg-48393</link>
            <description><![CDATA[ I tried to install all on 3.4.6.....bùt it didn&#039;t work.....I will try again tomorrow.....]]></description>
            <dc:creator>syskhann</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Sun, 15 Feb 2004 20:54:57 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48390#msg-48390</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48390#msg-48390</link>
            <description><![CDATA[ Hi,<br />
Sorry to be so long to answer but we had tremendous problems with our hosting provider and finally it was fixed by ...changing to an new one hopefully more relliable on a dedicated server.<br />
<br />
The code for the Who&#039;s on line has been given by Vulpes here: [<a href="http://phorum.org/mods/read.php?f=4&amp;i=461&amp;t=461" target="_blank" >phorum.org</a>].<br />
<br />
The only thing that I did is to change it a bit to make it similar to phpBB.<br />
You will find attached my index.php with the functions.<br />
<br />
In addition at the same level I&#039;ve got the Whosonline.php and callscript.php.<br />
<br />
Eventually you need to had in your include/footer.php the following:<br />
======<br />
footer.php<br />
======<br />
&lt;?php <br />
//MODIF-&gt; add the whoisoline plugin<br />
include &quot;callscript.php&quot;;<br />
?&gt;<br />
=======<br />
<br />
Of course you need also to modify your lang scritps, with additional variable. I give an example in english:<br />
======<br />
langen.php<br />
=======<br />
	$lWho_title			= &quot;Who is Online?&quot;;<br />
	$lWho_nbposts1		= &quot;Our users have posted a total of&quot;;<br />
	$lWho_nbposts2		= &quot;messages&quot;;<br />
	$lWho_nbuser1		= &quot;We have&quot;;<br />
	$lWho_nbuser2		= &quot;registered users&quot;;<br />
	$lWho_newest		= &quot;The newest registered user is&quot;;<br />
	$lWho_on1			= &quot;In total there are&quot;;<br />
	$lWho_on2			= &quot;users online :: &quot;;<br />
	$lWho_on3			= &quot;Registered,&quot;;<br />
	$lWho_on4			= &quot;Guests&quot;;<br />
	$lWho_most			= &quot;Most users ever online at the same time was&quot;;<br />
	$lWho_reg			= &quot;Registered Users:&quot;;<br />
	$lWho_elapsed		= &quot;This data is based on users active over the past 3 minutes&quot;;<br />
==========<br />
<br />
Voila, I think that&#039;s it.<br />
<br />
Good luck<br />
<br />
Cyril<br />
<br />
<br />
<br />
Post Edited (02-14-04 05:59)]]></description>
            <dc:creator>voimamatti</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Sat, 14 Feb 2004 06:59:25 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48386#msg-48386</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48386#msg-48386</link>
            <description><![CDATA[ Thanks easyexpat!<br />
I look forward to that script!<br />
<br />
:-D]]></description>
            <dc:creator>Mandingo</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Sat, 07 Feb 2004 14:09:05 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48385#msg-48385</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48385#msg-48385</link>
            <description><![CDATA[ Great to see that others find it useful :-)<br />
Give me today (I&#039;m too busy currently as I migrate to a dedicated server the all website) and I will give you the info...<br />
BTW, I think I found some tips for displaying the moderators on this forum...can&#039;t remember but it&#039;s likely.]]></description>
            <dc:creator>voimamatti</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Sat, 07 Feb 2004 05:43:50 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48384#msg-48384</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48384#msg-48384</link>
            <description><![CDATA[ I second that! The &#039;who&#039;s online&#039; feature is excellent...if you could share it that&#039;d be great! :-)]]></description>
            <dc:creator>Mandingo</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Sat, 07 Feb 2004 05:26:55 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48383#msg-48383</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48383#msg-48383</link>
            <description><![CDATA[ Hi,<br />
<br />
I&#039;m going to install it with 3.4.6., but when I look at your site I see a cool Who&#039;s online hack...is it possible to send also that code ?<br />
<br />
I mean this one : [<a href="http://www.easyexpat.com/forum/index_en.htm" target="_blank"  rel="nofollow">www.easyexpat.com</a>]<br />
<br />
grtz,<br />
sammy]]></description>
            <dc:creator>Sammy</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Fri, 06 Feb 2004 07:03:13 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48329#msg-48329</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48329#msg-48329</link>
            <description><![CDATA[ Thanks! It works perfectly in 3.4.5! =)]]></description>
            <dc:creator>Cliekid</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Thu, 01 Jan 2004 17:12:29 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48328#msg-48328</guid>
            <title>I...</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48328#msg-48328</link>
            <description><![CDATA[ Have 3.4.5, but I couldn&#039;t find the proper things to put that in...could you email me your index.php file, and I can test it that way, and if it works, I&#039;ll use it? Email is <a href="mailto:&#99;&#108;&#105;&#101;&#107;&#105;&#100;&#64;&#116;&#104;&#101;&#45;&#98;&#97;&#114;&#114;&#97;&#99;&#107;&#115;&#46;&#111;&#114;&#103;">&#99;&#108;&#105;&#101;&#107;&#105;&#100;&#64;&#116;&#104;&#101;&#45;&#98;&#97;&#114;&#114;&#97;&#99;&#107;&#115;&#46;&#111;&#114;&#103;</a> . Thanks!]]></description>
            <dc:creator>Cliekid</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Wed, 31 Dec 2003 14:00:53 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48243#msg-48243</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48243#msg-48243</link>
            <description><![CDATA[ I attached the file to the post. <br />
Because I&#039;ve done some URL rewriting and other changes, you will see other comments. Just ignore them and focus on the comments for moderators (the line number is not always correct because lines moved when I make the changes, but it gives you an idea where to look at).<br />
In addition in your lang file I added the variable: $lModeratorp  = &quot;Moderators&quot;; for the plurial of moderator when needed.<br />
<br />
If you want to see the results go to my forum: [<a href="http://www.easyexpat.com/forum/index_en.htm" target="_blank"  rel="nofollow">www.easyexpat.com</a>]<br />
<br />
Cyril<br />
<br />
]]></description>
            <dc:creator>voimamatti</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Fri, 01 Aug 2003 16:39:59 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48238#msg-48238</guid>
            <title>Re: Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48238#msg-48238</link>
            <description><![CDATA[ doesn&#039;t seem to work, where exactly do I have to paste the last part to?]]></description>
            <dc:creator>me</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Thu, 24 Jul 2003 09:40:05 -0400</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/phorum5/read.php?8,48228,48228#msg-48228</guid>
            <title>Display moderators for the forum</title>
            <link>https://www.phorum.org/phorum5/read.php?8,48228,48228#msg-48228</link>
            <description><![CDATA[ Hi,<br />
I wrote a simple function to display the list of moderators for each forum.<br />
Tested on Phorum 3.4.3a - index.php<br />
-------------------<br />
in the if(!$rec[&quot;folder&quot;]){ section about line 150 <br />
-----------------<br />
//MODIF-&gt;Add list of moderators<br />
		$pho_mod = $PHORUM[&#039;mod_table&#039;];<br />
		$sSQL=&quot;Select moderation from $pho_main where id=$num&quot;;<br />
      	$mq = new query($DB, $sSQL);<br />
      	$mrec=$mq-&gt;getrow();<br />
      	$mod=$mrec[&quot;moderation&quot;];<br />
		if($mod != &quot;n&quot;)<br />
		{<br />
			$modnames = &quot;&quot;;<br />
			$sSQL=&quot;SELECT user_id FROM $pho_mod WHERE forum_id=$num&quot;;<br />
        	$mq= new query($DB, $sSQL);<br />
			$i=0;<br />
			$sep = &quot;&quot;;<br />
      		while($mrec=$mq-&gt;getrow())<br />
			{<br />
				$i++;<br />
				$pho_auth = $PHORUM[&#039;auth_table&#039;];<br />
				$modo_id = $mrec[&#039;user_id&#039;];<br />
				$sSQL = &quot;SELECT username from $pho_auth WHERE id=$modo_id&quot;;<br />
      			$zq = new query($DB, $sSQL);<br />
      			$zrec=$zq-&gt;getrow();<br />
				$modo_name = $zrec[&quot;username&quot;];<br />
				if ($i &gt; 1)<br />
					$sep = &quot;, &quot;;<br />
				$modnames .= $sep.&quot;&lt;a href=&#039;profile.$ext?f=$num&amp;id=$modo_id$GetVars&#039;&gt;$modo_name&lt;/a&gt;&quot;;<br />
			}<br />
		}<br />
------------------<br />
And about line 220 in the text:<br />
------------------<br />
&lt;!--MODIF: display the moderators--&gt;<br />
&lt;?php <br />
if(!empty($modnames))<br />
{<br />
?&gt;<br />
&lt;tr&gt;<br />
    &lt;td colspan=3 bgcolor=&quot;&lt;?php echo $table_body_color_1; ?&gt;&quot;&gt;&lt;FONT color=&quot;&lt;?php echo $ForumNavFontColor; ?&gt;&quot;&gt;&lt;blockquote&gt;&lt;?php echo $lModerator; ?&gt;: &lt;b&gt;&lt;?php echo $modnames ?&gt;&lt;b&gt;&lt;/blockquote&gt;&lt;/font&gt;&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;?php<br />
}<br />
<br />
<br />
<br />
Post Edited (06-14-03 07:07)]]></description>
            <dc:creator>voimamatti</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Sat, 14 Jun 2003 07:32:31 -0400</pubDate>
        </item>
    </channel>
</rss>
