<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Phorum 3 forums (READ ONLY) -  Finished Mods and Plug-ins (READ ONLY)</title>
        <description>If youve done interesting mods and/or plug-ins post them here, if they Finished  Note: All questions about finished mods/plug-ins should be posted in the topic of the mod/plugin. Do not make new topic.</description>
        <link>https://www.phorum.org/support/list.php?8</link>
        <lastBuildDate>Sat, 08 Aug 2026 08:48:15 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48570,48570#msg-48570</guid>
            <title>Display Last X Posts (no replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48570,48570#msg-48570</link>
            <description><![CDATA[ I made a small mod to display the last x posts. I dont know, if it is fast, when you have much posts in you phorum.<br />
<br />
&lt;?<br />
$posts = 5;<br />
<br />
$link = mysql_connect(&quot;xxx&quot;,&quot;xxx&quot;,&quot;xxx&quot;) or die (&quot;Error&quot;);<br />
mysql_select_db(&quot;phorum&quot;) or die(&quot;error&quot;);<br />
<br />
$query = &quot;Select table_name, id from forums&quot;;<br />
$result = mysql_query($query) or die(&quot;Error&quot;);<br />
<br />
$i = 1;<br />
while ($row = mysql_fetch_row($result)) <br />
{<br />
	if ($i == 1)<br />
	{<br />
		$q1 = &quot;(Select datestamp, subject, author, thread, id from $row[0]) &quot;;<br />
		$i =2;	<br />
	}<br />
	else<br />
		$q1 = $q1.&quot; UNION (Select datestamp, subject, author,  thread, id  from $row[0])&quot;;<br />
}<br />
	$q1 = $q1.&quot; order by datestamp desc limit $posts&quot;;<br />
<br />
$result = mysql_query($q1) or die(&quot;Error&quot;);<br />
<br />
echo &quot;&lt;table border=0 WIDTH=100% cellspacing=0&gt;\n&quot;;<br />
echo &quot;&lt;tr&gt;&lt;td&gt;\n&quot;;<br />
echo &quot;&lt;b&gt;&lt;u&gt;Last $posts posts&lt;/u&gt;&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&quot;;<br />
while ($row = mysql_fetch_row($result)) <br />
{<br />
	echo &quot;&lt;tr&gt;&lt;td&gt;\n&quot;;<br />
	echo date(&quot;d.m.Y&quot;, strtotime($row[0])).&quot; &quot;.$row[1].&quot; from &quot;.$row[2];<br />
	echo &quot;&lt;/td&gt;&lt;/tr&gt;\n&quot;;<br />
}<br />
echo &quot;&lt;/table&gt;&quot;;<br />
<br />
mysql_free_result($result);<br />
mysql_close($link);<br />
?&gt;]]></description>
            <dc:creator>TheChief</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Thu, 25 Nov 2004 04:16:59 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48567,48567#msg-48567</guid>
            <title>Icon attachment (no replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48567,48567#msg-48567</link>
            <description><![CDATA[ Hi, <br />
<br />
I want to add an icon on list.php for messages that contain an attachment. Has anyone done this yet?<br />
<br />
I use Phorum v.3.4.4 <br />
<br />
Thank you...]]></description>
            <dc:creator>CduPhil</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Mon, 08 Nov 2004 11:16:02 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48566,48566#msg-48566</guid>
            <title>How can i abilitate the attachments? (no replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48566,48566#msg-48566</link>
            <description><![CDATA[ Please help me.<br />
I have installed for the first time the Phorum script on my site but i need to abilitate the feature that autorize the users to upload images.<br />
My questions are:<br />
<br />
1) How can i do it? I sign the sqare near &quot;Allow upload&quot; but nothing seems to be changed. ( i nothiced that in THIS forum the attachment are on)<br />
<br />
2) Can i abilitate attachments only for images .jpg or .gif, adding some php code?<br />
<br />
3) Can the uploaded images been automatically visualized in the body of the message?<br />
<br />
Thanks.]]></description>
            <dc:creator>Lorenzo</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Fri, 05 Nov 2004 13:01:06 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48564,48564#msg-48564</guid>
            <title>add new topic in to phorum by script (no replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48564,48564#msg-48564</link>
            <description><![CDATA[ Hi everybody,<br />
<br />
I have one problem and i dont know how can i slove it.<br />
I need add new topic by php script .... because i was created small editorial system and when I am adding new article, I would like also add new topic in to phorum by php script and in the article show link to the topic. <br />
<br />
Is it possible ?<br />
<br />
I am using Phorum 3.4 <br />
<br />
thanks very much for your answer <br />
<br />
ivan]]></description>
            <dc:creator>ivan mjartan</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Wed, 13 Oct 2004 02:48:27 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48560,48560#msg-48560</guid>
            <title>test (no replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48560,48560#msg-48560</link>
            <description><![CDATA[ test<br />
<br />
]]></description>
            <dc:creator>testing</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Tue, 21 Sep 2004 20:30:46 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48557,48557#msg-48557</guid>
            <title>Polski cenzor slow. (1 reply)</title>
            <link>https://www.phorum.org/support/read.php?8,48557,48557#msg-48557</link>
            <description><![CDATA[ Na swojej stronie zrobilem cenzor slow po Polsku no i pomyslale, ze komus moze sie przydac :)<br />
<br />
<br />
<br />
Post Edited (09-18-04 03:46)]]></description>
            <dc:creator>Evox</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Thu, 09 Dec 2004 15:34:12 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48525,48525#msg-48525</guid>
            <title>[code] mod to add ip/domain name block in the admin panel (3 replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48525,48525#msg-48525</link>
            <description><![CDATA[ Hi,<br />
<br />
I was allways looking to be able to block ips/domain name within the admin panel without being obliged to modify the bad_host file, and send it by ftp in the correct folder. Also I wanted to give that possibility to my moderators.<br />
<br />
Here is the mod, very easy to add (for MySql only) : 3 files + two images (not mandatory but easy to see what Ip is block yes or not).<br />
I tested in under several 3.4.x releases and it seems to work fine.<br />
Note that it allows to add ipadress (but not to delete them in the database in order to keep a track of ip adresses added). But once you want to release a ip adress, you can say that this ip adress is allowed again (it stays in the database but is not saved into the bad_host file).<br />
<br />
Install steps :<br />
- new table to create in the form database (the syntax is in the txt file)<br />
- ipblock.php file to add in the /forumadminfolder/pages/<br />
- a simple line to add in the panels admin in the file /forumadminfolder/pages/main.php for the admin<br />
&lt;a href=&quot;&lt;?php echo $myname; ?&gt;?page=ipblock&quot;&gt;IP block&lt;/a&gt;&lt;br /&gt;<br />
and/or in the file /forumadminfolder/pages/moderate.php for moderators<br />
&lt;a href=&quot;&lt;? echo &quot;$PHP_SELF?&quot;; ?&gt;f=1&amp;page=stats&quot;&gt;&amp;nbsp;Statistiques&lt;/a&gt;<br />
<br />
Let me know your thoughts<br />
<br />
Cheers,<br />
<br />
David]]></description>
            <dc:creator>David M</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Wed, 14 Jul 2004 14:40:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48517,48517#msg-48517</guid>
            <title>A simple Javascript Smiley Face Insertion System (3 replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48517,48517#msg-48517</link>
            <description><![CDATA[ I put together this smiley face insertion system for my own personal use, and though maybe other people would like to use it, since it is very easy to install. <br />
<br />
Here is how to use it:<br />
<br />
Version Tested: 3.4.8a<br />
File Modified:    /include/form.php<br />
<br />
1- Extract all the smiley images in the zip file into the &quot;/smileys&quot; directory of your phorum.<br />
<br />
2- Replace the &quot;/include/form.php&quot; file of your current phorum directory with the &quot;form.php&quot; file in the zip file.<br />
<br />
3- Go to your administrative interface, and go to &quot;Plugins&quot;. There, click on the &quot;Smiley Plugin&quot; link to activate it.<br />
<br />
4- Using the attached image, fill in the form fields for each smiley along with the corresponding image name and Add them.<br />
<br />
That&#039;s it. I have also attached a snapshot of how the whole thing looks. Feel free to email me questions regarding this modifications.<br />
<br />
]]></description>
            <dc:creator>mt</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Wed, 07 Jul 2004 04:40:31 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48509,48509#msg-48509</guid>
            <title>Please help ! (no replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48509,48509#msg-48509</link>
            <description><![CDATA[ I&#039;m french please try to understand me !<br />
<br />
I would like this mod : add a link next to the subjet which give you only the last 10 or 20 postes of the thread.<br />
<br />
Some threds have 200 or 300 responses on my forums, so it should be great to have only the lastes 10 or 20 and not the 200 or 300 !<br />
<br />
Please tell me if a mod like that exists ???? (my life for a good link !)<br />
<br />
Thank you !<br />
<br />
[<a href="http://www.triumphadonf.com" target="_blank"  rel="nofollow">www.triumphadonf.com</a>]<br />
The french site on Triumph Motorcycles !]]></description>
            <dc:creator>brokenpillar</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Mon, 07 Jun 2004 15:20:39 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48502,48502#msg-48502</guid>
            <title>Require Login in added pages (no replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48502,48502#msg-48502</link>
            <description><![CDATA[ Normally I use the<br />
<br />
if(isset($phorum_user[&#039;id&#039;])){<br />
...<br />
}<br />
<br />
for showing content in added pages on my website only to members<br />
but i would like to have to use the redirection function<br />
like trying to attempt a forum that requires login.<br />
<br />
i guess it&#039;s around here:<br />
<br />
  // including the user-authentication<br />
  include (&quot;$include_path/userlogin.php&quot;);<br />
<br />
  if(!defined(&#039;PHORUM_ADMIN&#039;) &amp;&amp; $DB-&gt;connect_id){<br />
     // check security<br />
    if($ForumFolder==1 || $f==0){<br />
        $SQL=&quot;Select max(security) as sec from $pho_main&quot;;<br />
        $q-&gt;query($DB, $SQL);<br />
        $max_sec=$q-&gt;field(&#039;sec&#039;, 0);<br />
    }<br />
<br />
    $phorum_user=phorum_return_user();<br />
<br />
    if(isset($phorum_user) &amp;&amp; !$phorum_user[&#039;moderator&#039;]){<br />
        if((isset($ForumSecurity) &amp;&amp; $ForumSecurity==SEC_NONE) || (($ForumFolder==1 || $f==0) &amp;&amp; $max_sec==0)){<br />
            unset($phorum_user);<br />
        }<br />
    }<br />
<br />
    if($ForumSecurity==SEC_ALL &amp;&amp; !isset($phorum_user[&#039;id&#039;])){<br />
      header(&#039;Location: &#039;.phorum_loginurl($REQUEST_URI));<br />
      exit();<br />
    }<br />
<br />
but how can I activate it for a certain non-phorum page<br />
like news.php or similar that includes<br />
the header.php and common.php files?!]]></description>
            <dc:creator>Kicker Rock</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Thu, 03 Jun 2004 15:36:22 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48492,48492#msg-48492</guid>
            <title>all posts send to users email address (no replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48492,48492#msg-48492</link>
            <description><![CDATA[ How to the all posts in the phorum send to mail all users.]]></description>
            <dc:creator>brad</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Tue, 18 May 2004 06:56:34 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48476,48476#msg-48476</guid>
            <title>mod for &quot;messages posted since your last visit&quot;? (5 replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48476,48476#msg-48476</link>
            <description><![CDATA[ i&#039;m moving from WebBBS to Phorum and pretty much have everything configured and working OK. however one feature of WebBBS is sorely lacking in Phorum that our users are complaining about - and that is a summary of how many new messages have been posted since their last visit to the site. <br />
<br />
anyone know of a mod or hack that can do this?<br />
<br />
right now it seems Phorum marks all messages as NEW if they haven&#039;t been read, whereas WebBBS would only mark messages as new that have been posted since the user&#039;s last visit - a &quot;paradigm shift&quot; that seems to be confusing our users.<br />
<br />
ideally i think it would be great to have two levels of &quot;new&quot; information displayed to the user:<br />
<br />
-- a way of indicating which messages are new since their last visit<br />
<br />
-- a way of indicating which messages have not been read by the user<br />
<br />
again it seems the concept Phorum uses is that if a user hasn&#039;t specifically read a post it is considered &quot;new&quot;. I&#039;d prefer to define new messages as messages posted since a user&#039;s last visit to the site.<br />
<br />
can anyone help or shed some light on this? it would be GREATLY appreciated!<br />
<br />
thanks in advance,<br />
brian]]></description>
            <dc:creator>Brian Tully</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Thu, 30 Sep 2004 17:59:00 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48467,48467#msg-48467</guid>
            <title>Polski profil z komunikatorami GG i Tlen (4 replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48467,48467#msg-48467</link>
            <description><![CDATA[ pomyslalem sobie, ze ktos moze z tego skorzystac. Zwykly profil do Phorum (z wersji 3.4.6), zamiast ICQ, Yahoo, AIMa i innych daje mozliwosc wprowadzenia numeru GG i identyfikatora Tlen. W profilu wyswietla aktualny status odnosnych komunikatorow.<br />
<br />
Uwaga! W panelu admina nadal wyswietla stare dane, tj podaje ICQ i reszte zamiast polskich - zeby nie bylo, ze cos spaprane, po prostu trzebaby zmienic tamte pliki, a juz uznalem, ze nie warto.<br />
<br />
W zalaczniku jest przerobiony profile.php oraz dwa pliki graficzne - do GG i Tlena, ktore trzeba wrzucic do katalogu images...<br />
<br />
Skomentujcie, jesli komus sie to przyda - ja z powodzeniem uzywam u siebie, jesli chcecie zobaczyc w praktyce:<br />
<br />
[<a href="http://www.opowiadania.org/forum/" target="_blank"  rel="nofollow">www.opowiadania.org</a>]<br />
<br />
Pozdrawiam,<br />
<br />
Godai]]></description>
            <dc:creator>Godai</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Mon, 24 May 2004 03:44:59 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48466,48466#msg-48466</guid>
            <title>Being spammed by THIS phorum!! (no replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48466,48466#msg-48466</link>
            <description><![CDATA[ In order to detect a spam robots source I named my email catchall adresses.<br />
I used <a href="mailto:&#101;&#97;&#115;&#121;&#115;&#109;&#105;&#108;&#105;&#101;&#115;&#64;&#107;&#105;&#99;&#107;&#101;&#114;&#45;&#114;&#111;&#99;&#107;&#46;&#100;&#101;">&#101;&#97;&#115;&#121;&#115;&#109;&#105;&#108;&#105;&#101;&#115;&#64;&#107;&#105;&#99;&#107;&#101;&#114;&#45;&#114;&#111;&#99;&#107;&#46;&#100;&#101;</a> within this thread:<br />
<br />
[<a href="http://phorum.org/mods/read.php?f=4&amp;i=781&amp;t=781" target="_blank" >phorum.org</a>]<br />
<br />
I just received the first spam from this adress.<br />
<br />
Aren&#039;t the emails protected by the htmlencode() function?!]]></description>
            <dc:creator>spameny</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Thu, 22 Apr 2004 19:24:20 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48461,48461#msg-48461</guid>
            <title>Html to Phorum tags (no replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48461,48461#msg-48461</link>
            <description><![CDATA[ Hi,<br />
<br />
I am a webmaster of a little website and I use Phorum since 2 years. The first version I use was the 3.2.11. I followed all the updates (which were very smooth) and now I use the 3.4.7 release.<br />
<br />
But when I consult the oldest posts in my Phorum I see the html tags used in version 3.2.x to format the text. So URL are unclickable and the bold, italic and underline properties are lost.<br />
<br />
To keep the homogeneity of my forum, I have written a little PHP script to convert old message format to new format, with the conversion of html tags to Phorum specific tags.<br />
<br />
My script is attached to this message and need to be edited to set some constant values before working.<br />
<br />
]]></description>
            <dc:creator>tha</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Sat, 17 Apr 2004 13:54:59 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48460,48460#msg-48460</guid>
            <title>PHPBB to Phorum (3 replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48460,48460#msg-48460</link>
            <description><![CDATA[ Is is possible in some way to import all the messages and users from an existing to PhpBB forum to Phorum? If yes, how?<br />
<br />
Thank you in advance.<br />
<br />
]]></description>
            <dc:creator>Jd</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Wed, 07 Jul 2004 18:09:48 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48440,48440#msg-48440</guid>
            <title>a 3.4.1 tuned to the max (link) (12 replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48440,48440#msg-48440</link>
            <description><![CDATA[ -sticky post.<br />
-number of view.<br />
-last poster displayed in thread view and in forum root.<br />
-complete new design.<br />
-auto url any url recognised without need to &quot;url&quot; tag<br />
-link to user&#039;s www, profile near each name in posts.<br />
-new button in post form to modify your text (bold etc etc)<br />
-link into each post &quot;quote this post in my reply&quot;<br />
-rank system from number of posts.<br />
<br />
It&#039;s possible even with the &quot;old&quot; 3.4<br />
<br />
[<a href="http://orbiter.dansteph.com/forum" target="_blank"  rel="nofollow">orbiter.dansteph.com</a>]]]></description>
            <dc:creator>DanSteph</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Mon, 12 Jul 2004 15:33:06 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48432,48432#msg-48432</guid>
            <title>RSS feeder (no replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48432,48432#msg-48432</link>
            <description><![CDATA[ An RSS feeder plugin for phorum...<br />
<br />
]]></description>
            <dc:creator>Br4wN</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Fri, 12 Mar 2004 05:42:36 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48425,48425#msg-48425</guid>
            <title>Collapse/Expand with JavaScript (1 reply)</title>
            <link>https://www.phorum.org/support/read.php?8,48425,48425#msg-48425</link>
            <description><![CDATA[ hi, <br />
<br />
i searched the whole web for a hack, but I couldn&#039;t find it. maybe someone can help me:<br />
is there a hack which shows the phorum-overview in a collapsed views and expands the thread with a click on the &#039;+&#039; ?<br />
I have right now so large threads that the expanded-view is horrible, but my users want to &quot;preview&quot; the threads and answers easily - so I look for the mentioned hack...<br />
<br />
I don&#039;t know if you understand what    I mean, but I hope so :)<br />
thanks a lot !!<br />
chris]]></description>
            <dc:creator>christoph</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Sun, 12 Sep 2004 07:57:22 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48421,48421#msg-48421</guid>
            <title>E-mail replies to this thread, to the address above. (1 reply)</title>
            <link>https://www.phorum.org/support/read.php?8,48421,48421#msg-48421</link>
            <description><![CDATA[ How do I switch on this feature? <br />
&gt;&gt; E-mail replies to this thread, to the address above.<br />
<br />
Can&#039;t find anything pertaining to it in the admin.<br />
<br />
Thanks!]]></description>
            <dc:creator>webfairy</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Tue, 02 Mar 2004 16:51:05 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48411,48411#msg-48411</guid>
            <title>Afficher n nouveaux messages phorum 3.4.6 (6 replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48411,48411#msg-48411</link>
            <description><![CDATA[ Un hack modifié pour afficher ou tu veux les N nouveaux messages<br />
fonctionnant avec phorum-3.4.6 qui donne cela par ex:<br />
<br />
 - [28/02 16:59] Test de l&#039;affichage en Index [2].<br />
 - [27/02 04:44] Voice-Clone[19]<br />
 - [27/02 03:24] mIRC explications [5]<br />
<br />
<br />
Créer un fichier &quot;cequetuveux.php&quot; et y inscrire:<br />
<br />
&lt;?php<br />
$cfgHote  = &quot;HOTE&quot;; <br />
$cfgUser  = &quot;USER&quot;; <br />
$cfgPass  = &quot;PASSWORD&quot;;<br />
$cfgBase  = &quot;BASE&quot;;<br />
<br />
$cfgTable = &quot;TABLE&quot;;<br />
$cfgRep   = &quot;phorum/&quot;;<br />
$cfgRead  = &quot;read.php&quot;;<br />
<br />
$nbMsgForum = 10; // Nbre de discussions à afficher<br />
<br />
// connexion à la base<br />
mysql_connect($cfgHote, $cfgUser, $cfgPass);<br />
<br />
echo &quot;Les &quot;.$nbMsgForum.&quot; dernières discussions - &quot;;<br />
<br />
// Nb msg aujourd&#039;hui<br />
$sql  = &quot;SELECT COUNT(id) &quot;;<br />
$sql .= &quot;FROM &quot;.$cfgTable.&quot; &quot;;<br />
$sql .= &quot;WHERE approved = &#039;Y&#039; AND datestamp LIKE &#039;&quot;.date(&quot;Y-m-d&quot;).&quot;%&#039;&quot;;<br />
<br />
$resultat = mysql_db_query($cfgBase, $sql);<br />
$enr = mysql_fetch_array($resultat);<br />
<br />
echo &quot;&lt;B&gt;&quot;.($nb = $enr[0]).&quot;&lt;/B&gt; message&quot;.($nb &gt; 1 ? &quot;s&quot; : &quot;&quot;);<br />
echo &quot; posté&quot;.($nb &gt; 1 ? &quot;s&quot; : &quot;&quot;).&quot; aujourd&#039;hui&quot;;<br />
<br />
// Nb msg hier<br />
$date = date(&quot;d/m/Y&quot;);<br />
$elts = explode(&quot;/&quot;, $date);<br />
$hier = mktime(0, 0, 0, $elts[1], $elts[0]-1, $elts[2]);<br />
<br />
$sql  = &quot;SELECT COUNT(id) &quot;;<br />
$sql .= &quot;FROM &quot;.$cfgTable.&quot; &quot;;<br />
$sql .= &quot;WHERE approved = &#039;Y&#039; AND datestamp LIKE &#039;&quot;.date(&quot;Y-m-d&quot;, $hier).&quot;%&#039;&quot;;<br />
<br />
$resultat = mysql_db_query($cfgBase, $sql);<br />
$enr = mysql_fetch_array($resultat);<br />
echo &quot; [&lt;B&gt;&quot;.$enr[0].&quot;&lt;/B&gt; hier]&quot;;<br />
<br />
echo &quot;&lt;BR&gt;&lt;BR&gt;\n&quot;;<br />
<br />
// Affichage des fils de discussion et du nombre de réponses<br />
$sql  = &quot;SELECT id,subject,datestamp &quot;;<br />
$sql .= &quot;FROM &quot;.$cfgTable.&quot; &quot;;<br />
$sql .= &quot;WHERE approved = &#039;Y&#039; AND parent = 0 &quot;;<br />
$sql .= &quot;ORDER BY id DESC LIMIT 0,&quot;.$nbMsgForum;<br />
<br />
$resultat = mysql_db_query($cfgBase, $sql);<br />
<br />
while ($message = mysql_fetch_array($resultat)) {<br />
<br />
  $sql2  = &quot;SELECT count(*) &quot;;<br />
  $sql2 .= &quot;FROM &quot;.$cfgTable.&quot; &quot;;<br />
  $sql2 .= &quot;WHERE approved = &#039;Y&#039; AND thread=&quot;.$message[0].&quot; AND parent &lt;&gt; 0&quot;;<br />
<br />
  $resultat2 = mysql_db_query($cfgBase, $sql2);<br />
  $nbRep = mysql_fetch_array($resultat2);<br />
<br />
  echo &quot;&amp;nbsp;-&amp;nbsp;&quot;;<br />
  $date  = substr($message[2], 8, 2) . &quot;/&quot;;<br />
  $date .= substr($message[2], 5, 2) . &quot; &quot;;<br />
  $date .= substr($message[2], 11, 5);<br />
<br />
  echo &quot;[&lt;B&gt;&quot;.$date.&quot;&lt;/B&gt;] &quot;;<br />
  if (strlen($message[1]) &gt; 40)<br />
    $msg = substr($message[1], 0, 40).&quot; ...&quot;;<br />
  else<br />
    $msg = $message[1];<br />
<br />
  $lien = $cfgRep.$cfgRead.&quot;?f=4&amp;i=0&amp;i=&quot;.$message[0].&quot;&amp;t=&quot;.$message[0];<br />
  echo &quot;&lt;A HREF=&#039;&quot;.$lien.&quot;&#039; TARGET=&#039;_self&#039;&gt;&quot;.$msg.&quot;&lt;/A&gt;&quot;;<br />
<br />
  // nb de réponses<br />
  if ($nbRep[0] &gt; 0) echo &quot; [&quot;.$nbRep[0].&quot;]&quot;;<br />
<br />
  echo &quot;&lt;BR&gt;\n&quot;;<br />
}<br />
<br />
?&gt; <br />
<br />
Pour afficher les discussions sur une page d&#039;index.php:<br />
<br />
&lt;?<br />
 include (&#039;cequetuveux.php&#039;) ;<br />
?&gt;<br />
<br />
<br />
Sorry i dont speak english, if someone want to translate, THX.]]></description>
            <dc:creator>guest unknown user</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Fri, 01 Oct 2004 09:17:12 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48407,48407#msg-48407</guid>
            <title>Show real name instead of username (5 replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48407,48407#msg-48407</link>
            <description><![CDATA[ These moderated scripts makes it possible to show the users real names in the threads etc. instead of the username. <br />
<br />
You need to set the variable $author_realname to true somewhere - I do it in the header-script.<br />
<br />
Replace the scripts multithreads, threads and form in the include-dir with the ones attached here.<br />
Read - which I upload in the next message - should be placed in the phorum-dir.]]></description>
            <dc:creator>karl</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Sat, 10 Jul 2004 05:12:28 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48406,48406#msg-48406</guid>
            <title>private messages to user (1 reply)</title>
            <link>https://www.phorum.org/support/read.php?8,48406,48406#msg-48406</link>
            <description><![CDATA[ i worked out a script that allows yout to send private messages to other users.<br />
since i wasn&#039;t able yet to make it a real looking hack for phorum,<br />
i wonder if anybody already did so.<br />
<br />
is it possible to send private messages in the new phorum 5,<br />
will it be available for phorum 3 too?!]]></description>
            <dc:creator>kicker rock</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Wed, 25 Feb 2004 04:15:12 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48360,48360#msg-48360</guid>
            <title>Mods et Support en Français ??? (5 replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48360,48360#msg-48360</link>
            <description><![CDATA[ SVP il n&#039;existe pas un site équivalent à celui-ci mais en français ???<br />
Merci]]></description>
            <dc:creator>brokenpillar</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Tue, 06 Apr 2004 05:37:48 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48356,48356#msg-48356</guid>
            <title>Transaltion in French of the &quot;Install.txt&quot; (1 reply)</title>
            <link>https://www.phorum.org/support/read.php?8,48356,48356#msg-48356</link>
            <description><![CDATA[ ok I don&#039;t know if it&#039;s the good place bùt I translate the &quot;install.txt&quot; in french.....Ok it&#039;s not a perfect translation....bùt I think it will be ok......]]></description>
            <dc:creator>syskhann</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Fri, 23 Jan 2004 00:09:06 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48354,48354#msg-48354</guid>
            <title>I wan&#039;t separated mod-forums for phorum 3 and 5! (1 reply)</title>
            <link>https://www.phorum.org/support/read.php?8,48354,48354#msg-48354</link>
            <description><![CDATA[ I wan&#039;t separated mod-forums for phorum 3 and 5!<br />
To get rid of all:<i> &quot;does it work on 3.4.6.5.4.3....?&quot;</i><br />
Well, think about it.<br />
<br />
]]></description>
            <dc:creator>MRT</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Wed, 21 Jan 2004 08:37:25 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48333,48333#msg-48333</guid>
            <title>Recevoir notification pour tous (no replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48333,48333#msg-48333</link>
            <description><![CDATA[ Comment recevoir une notification de message pour tous les membres non inscrits qui souhaitent en recevoir s&#039;il ont laissés leur mail ???<br />
<br />
Que modifier dans les fichiers ?<br />
<br />
Merci d&#039;avance .<br />
<br />
]]></description>
            <dc:creator>Cyril</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Sun, 04 Jan 2004 06:58:01 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48326,48326#msg-48326</guid>
            <title>HTML in posts and some other questions, please read (1 reply)</title>
            <link>https://www.phorum.org/support/read.php?8,48326,48326#msg-48326</link>
            <description><![CDATA[ Hi to all i just installed this forum to my site, i like it alot :)<br />
My problems/questions are: <br />
<br />
First,i want to allow HTML in posts. I know thats &quot;bad&quot; because u can mess with the page layout, but yeah.. my site is restricted to a bunch of friends so i have no problems with it.. so it is possible?<br />
<br />
And secndly, i want to make something like the topic closes automatically after the first post, something like an &quot;announcement&quot; or something.. yeah, i want to disable replies  O_o<br />
<br />
&gt;_&gt;<br />
<br />
&lt;_&lt;<br />
<br />
don&#039;t ask why its long to explain.. Thanks in advance guys and keep on the good work!<br />
<br />
um and Happy New Year!<br />
<br />
]]></description>
            <dc:creator>Gio</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Tue, 06 Jan 2004 07:54:45 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48321,48321#msg-48321</guid>
            <title>format (4 replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48321,48321#msg-48321</link>
            <description><![CDATA[ Has anybody a hack for formatting the threads you write?<br />
<br />
Joey]]></description>
            <dc:creator>joey</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Tue, 13 Apr 2004 12:17:00 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?8,48305,48305#msg-48305</guid>
            <title>Login site integration trick (10 replies)</title>
            <link>https://www.phorum.org/support/read.php?8,48305,48305#msg-48305</link>
            <description><![CDATA[ If your site already has login capability and uses cookies, here&#039;s an easy fix to integrate the phorum with the rest of the site with a minimal amount of modding. <br />
STEP 1:<br />
When someone first signs up on your site, add this to your existing signup code:<br />
$forumpasswd=md5($passwd);//only if you don&#039;t crypt your password already<br />
$sql=&quot;insert into forums_auth(id, username, password, name, email) values<br />
($id,&#039;$user&#039;,&#039;$forumpasswd&#039;,&#039;$first_name&#039;,&#039;email&#039;)&quot;;<br />
$result=mysql_query($sql);<br />
This will put the user in the phorum auth db.  Don&#039;t worry about the other variables, as users can add those in later if they click on edit profile.<br />
This is fine and dandy if you are just starting a site, but if you already have users, you should put some code in your site login section that checks if the user is in forum_auth(or whatever you named the table) and if they aren&#039;t to add them using something like the code above.<br />
STEP 2:<br />
Set the auth cookie during site login.<br />
Example if your login function takes user and pass as parameters: <br />
$sessionID=&quot;$user:&quot;.md5($pass);<br />
SetCookie(&quot;phorum_cookieauth&quot;, &quot;$sessionID&quot;, time()+86400*365);<br />
Make sure you do this at the top level so the path is &quot;/&quot; and it&#039;s available to the phorum in your forum directory.<br />
STEP 3<br />
In header.php which should contain the top of your site page, you will check for user login in whatever fashion you do on the rest of your site. <br />
For example if you&#039;re using classes:<br />
$logged=$user-&gt;checklog();<br />
If the user isn&#039;t logged in, you don&#039;t let them view the forum. Maybe something like this:<br />
if(!$logged){ echo &quot;You must be logged in before you can use the phorum!!!&quot;;<br />
include phorum_get_file_name(&#039;footer&#039;); exit;}<br />
STEP 4<br />
Lastly since the only time a user will view the forum is when he is logged in, you don&#039;t want him to log out from the forum, only from your main site.  You don&#039;t have to do anything extra in your logout since it isn&#039;t neccessary to delete the forum auth cookie.  You&#039;ll need to comment out one line of code from your main phorum files.  ie<br />
list.php, read.php, post.php, profile.php, and register.php.  Here&#039;s the line:<br />
addnav($menu2, $lLogOut, &quot;login.$ext?logout=1$GetVars&quot;);<br />
Now the logout option won&#039;t show up.  You should have a main logoff somewhere on your site.<br />
<br />
The security setting should be on need login to post.<br />
However, as you can see your mods prevent anyone who is logged in from access to the forum.  <br />
<br />
Cheers<br />
[:]DRINK[/:]]]></description>
            <dc:creator>Scott</dc:creator>
            <category> Finished Mods and Plug-ins (READ ONLY)</category>
            <pubDate>Tue, 15 Jun 2004 10:25:00 -0500</pubDate>
        </item>
    </channel>
</rss>
