<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Recent comments</title>
		<link>https://www.cotonti.com</link>
		<description>Neueste Themenbeiträge</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 09 May 2026 14:10:57 -0000</pubDate>

		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>
	Please use English in the normal sections of the forums.</p>
]]></description>
			<pubDate>Do, 08 Nov 2012 12:55:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3023&d=0#post36172]]></link>
		</item>
		<item>
			<title>Uch</title>
			<description><![CDATA[<p>
	Предлагаю сделать небольшие изменения, что бы получить еще и кол-во комментариев:<br /><br />
	1.В строке 45 заменим SQL запрос на:</p>
<pre class="brush:php;">
$sqlcom = $db-&gt;query("SELECT MAX(com_id) AS _id, MAX(com_date) AS _date, COUNT(com_code) AS _count, com_code FROM $db_com GROUP BY com_code ORDER BY _date DESC LIMIT $comd, ".$cfg['plugin']['recentcomments']['commentsperpage']);</pre>
<p>
	2.Сразу после данной строки с SQL запросом добавим опеределине массива, содержащего кол-во комментариев к каждому объекту:</p>
<pre class="brush:php;">
$com_count = array();</pre>
<p>
	3. Внесем в цикл</p>
<pre class="brush:php;">
	while($row = $sqlcom-&gt;fetch())
	{
		$com_latest[] = $row['_id'];
	}</pre>
<p>
	строку</p>
<pre class="brush:php;">
$com_count[$row['com_code']] = $row['_count'];</pre>
<p>
	и получим:</p>
<pre class="brush:php;">
	while($row = $sqlcom-&gt;fetch())
	{
		$com_latest[] = $row['_id'];
		$com_count[$row['com_code']] = $row['_count'];
	}</pre>
<p>
	4. Добавим в определение тегов после 102 строки новый тег:</p>
<pre class="brush:php;">
"RECENTCOMMENTS_ROW_COUNT" =&gt; $com_count[$k]</pre>
<p>
	Готово.</p>
]]></description>
			<pubDate>Do, 08 Nov 2012 12:48:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3023&d=0#post36171]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	It needs an update:</p>
<pre class="brush:php;">
"RECENTCOMMENTS_ROW_DATE" =&gt; cot_date('datetime_short', $row['com_date']),</pre>
<p>
	 </p>
]]></description>
			<pubDate>So, 23 Sep 2012 15:05:10 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3023&d=0#post35572]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[<p>
	Thanks,</p>
<p>
	The date is not showing. </p>
<pre class="brush:php;">
"RECENTCOMMENTS_ROW_DATE" =&gt; cot_date($cfg['datetime_short'], $row['com_date'] + $usr['timezone'] * 3600),</pre>
<p>
	Is this still correct after the changes in Siena?</p>
]]></description>
			<pubDate>So, 23 Sep 2012 05:53:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3023&d=0#post35567]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	There's <a href="https://github.com/trustmaster/cot-recentcomments" rel="nofollow">a port</a> I made 10 months ago actually.</p>
]]></description>
			<pubDate>Sa, 22 Sep 2012 11:19:21 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3023&d=0#post35561]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[<p>
	Perfect. What is soon?</p>
]]></description>
			<pubDate>Sa, 22 Sep 2012 08:35:03 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3023&d=0#post35559]]></link>
		</item>
		<item>
			<title>Kort</title>
			<description><![CDATA[<p>
	<strong>Pieter:</strong> we'll announce the Recent Comments plugin along with a bunch of others soon. No need for porting.</p>
]]></description>
			<pubDate>Sa, 22 Sep 2012 08:13:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3023&d=0#post35558]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[<p>
	Does this exists for Siena? I can't port it, I'm to stupid (for php) :-)</p>
<p><strong>Added 10 minutes later:</strong></p><p>
	In the comments plugin, you can add the tag <span style="background-color:rgb(237,239,244);font-family:Georgia, serif;font-size:11px;line-height:21.883333206176758px;">{PAGE_ROW_COMMENTS} into recentitems.tpl, but this is not for the index-page.</span></p>
]]></description>
			<pubDate>Sa, 22 Sep 2012 05:43:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3023&d=0#post35556]]></link>
		</item>
		<item>
			<title>SunChase</title>
			<description><![CDATA[it would be great if someone made a Recent comments by user plugin...]]></description>
			<pubDate>Mi, 22 Jul 2009 03:32:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3023&d=0#post14716]]></link>
		</item>
		<item>
			<title>KillerSneak</title>
			<description><![CDATA[Does this mean that it works? Or that I'm going to test it (not that i mind, but for me to prepare / backup before I'm going to test it :) )<br /><br /><b>Added 3 minutes later:</b><br /><br /><strong>error</strong><br />
<br />
Fatal error: Uncaught exception 'Exception' with message 'Block RECENTCOMMENTS is not closed correctly in ./plugins/recentcomments/tpl/recentcomments.tpl' in /home/donotarg/public_html/system/xtemplate.php:171 Stack trace: #0 /home/donotarg/public_html/system/xtemplate.php(39): XTemplate-&gt;restart('./plugins/recen...') #1 /home/donotarg/public_html/plugins/recentcomments/recentcomments.index.php(32): XTemplate-&gt;__construct('./plugins/recen...') #2 /home/donotarg/public_html/system/core/index/index.inc.php(44): include_once('/home/donotarg/...') #3 /home/donotarg/public_html/index.php(20): require_once('/home/donotarg/...') #4 {main} thrown in /home/donotarg/public_html/system/xtemplate.php on line 171<br /><br /><b>Added 21 minutes later:</b><br /><br />fixed:<br />
<br />
&lt;!-- END: RECENTCOMMENTS--&gt;<br />
<br />
should be<br />
<br />
&lt;!-- END: RECENTCOMMENTS --&gt;<br /><br /><b>Added 6 minutes later:</b><br /><br />Okey tried it.<br />
<br />
It's nice to have the ajax effect just some notes:<br />
<br />
No poster name of the comment? (see code above of old version)<br />
Want to be able to chnage the date format.]]></description>
			<pubDate>Mi, 22 Jul 2009 02:36:25 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3023&d=0#post14710]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[I think there is <a href="http://svn.cotonti.com/branches/plugins/recentcomments/">recentcomments plugin</a> in the repository which has been ported. You can download it <a href="http://trac.cotonti.com/changeset/845/branches/plugins/recentcomments?old_path=%2F&amp;format=zip">here</a>.]]></description>
			<pubDate>Mi, 22 Jul 2009 02:32:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3023&d=0#post14709]]></link>
		</item>
		<item>
			<title>KillerSneak</title>
			<description><![CDATA[I'm still using the one made for seditio, only thing is that if someone posts a comment and i get the update e-mail not entitlement is given for the e-mail<br />
<br />
<a href="http://www.t3-design.com/latest-comments-in-sed/comment-page-1/" rel="nofollow">http://www.t3-design.com/latest-comments-in-sed/comment-page-1/</a> &lt;- I'm not using this one as i have customized mine a bit so i don't think it's original anymore.<br />
<br />
I want to know if anybody is willing to help me port it to Cotonti - I for one find it very usefull to have the recent comments on the frontpage (also as follow-up and to see what interests the community the most). I think the recent items code/setup can be used to do this?<br />
<br />
<strong>Added 14 minutes later:</strong><br />
<br />
<div class="highlight"><pre class="php">
&lt;?PHP

/* ====================
Seditio - Website engine
Copyright Neocrome
<a href="http://www.neocrome.net" rel="nofollow">http://www.neocrome.net</a>

&#091;BEGIN_SED&#093;
File=plugins/recentcomments/recentcomments.php
Version=110
Updated=2009-mar-14
Type=Plugin
Author=Neocrome
Description=
&#091;END_SED&#093;

&#091;BEGIN_SED_EXTPLUGIN&#093;
Code=recentcomments
Part=main
File=recentcomments
Hooks=index.tags
Tags=index.tpl:{PLUGIN_LATESTCOMMENTS}
Minlevel=0
Order=10
&#091;END_SED_EXTPLUGIN&#093;

==================== */

if (!defined('SED_CODE')) { die('Wrong URL.'); }

/* ============ MASKS FOR THE HTML OUTPUTS =========== */

$cfg&#091;'plu_mask_comments'&#093; = &quot; %3\$s&quot;.&quot; %1\$s&quot;.&quot; &quot;.$cfg&#091;'separator'&#093;.&quot; &quot;.&quot;%2\$s&quot;.&quot;&lt;br /&gt;&quot;;
// %1\$s = Link to the comment
// %2\$s = Author
// %3\$s = Date

$plu_empty = $L&#091;'None'&#093;.&quot;&lt;br /&gt;&quot;;

/* ================== FUNCTIONS ================== */

function sed_get_latestcomments($limit, $mask)
{
//global $L, $db_com, $usr, $cfg, $plu_empty;
global $L, $db_com, $db_pages, $usr, $cfg, $sed_cat, $plu_empty;//motor2hg


$sql = sed_sql_query(&quot;SELECT MAX(com_id) AS _id, MAX(com_date) AS _date FROM $db_com WHERE com_isspecial=0 GROUP BY com_code ORDER BY _date DESC LIMIT $limit&quot;);

$com_latest = array();
while($row = sed_sql_fetcharray($sql)) $com_latest&#091;&#093; = $row&#091;'_id'&#093;;

$sql = sed_sql_query(&quot;SELECT com_id, com_code, com_date, com_author FROM $db_com WHERE com_id IN('&quot;.implode(&quot;','&quot;,$com_latest).&quot;') ORDER BY com_date DESC&quot;);


while ($row = sed_sql_fetcharray($sql))
{
/*$com_code = $row&#091;'com_code'&#093;;
$j = substr($com_code, 0, 1);
$k = substr($com_code, 1);*/
$com_code = $row&#091;'com_code'&#093;;//motor2hg

$z = $row&#091;'page_title'&#093;;//motor2hg

$j = substr($com_code, 0, 1);//motor2hg

$k = substr($com_code, 1);//motor2hg

switch($j)
{
//case 'p':
//$lnk = &quot;&lt;a href=https://www.cotonti.com/\&quot;page.php?id=$k&amp;comments=1#c&quot;.$row&#091;'com_id'&#093;.&quot;\&quot;&gt;&quot;.$L&#091;'Page'&#093;.&quot; #&quot;.$k.&quot;&lt;/a&gt;&quot;;
//break;
//////////////////////////////motor2hg/////////////////////////////
                case 'p':
                $sql2 = sed_sql_query(&quot;SELECT page_title FROM sed_pages WHERE page_id = $k LIMIT 0, 30&quot;);
                while ($row2 = sed_sql_fetcharray($sql2))
                { $page_title = $row2&#091;'page_title'&#093;; }
                $lnk = &quot;&lt;a href=https://www.cotonti.com/\&quot;page.php?id=$k&amp;amp;comments=1#c&quot;.$row&#091;'com_id'&#093;.&quot;\&quot;&gt;&quot;.&quot; \&quot;&quot;.$page_title.&quot;\&quot;&lt;/a&gt;&quot;;
                break;
///////////////////////motor2hg/////////////////////////////////////
case 'v':
$lnk = &quot;&lt;a href=https://www.cotonti.com/\&quot;javascript:polls('&quot;.$k.&quot;&amp;comments=1#c&quot;.$row&#091;'com_id'&#093;.&quot;')\&quot;&gt;&quot;.$L&#091;'Poll'&#093;.&quot; #&quot;.$k.&quot;&lt;/a&gt;&quot;;
break;

}
$res .= sprintf($mask, $lnk, sed_cc($row&#091;'com_author'&#093;), date($cfg&#091;'formatyearmonthday'&#093;, $row&#091;'com_date'&#093; + $usr&#091;'timezone'&#093; * 3600));
}

$res = (empty($res)) ? $plu_empty : $res;

return($res);
}


/* ============= */

if (!$latestcomments &amp;&amp; $cfg&#091;'plugin'&#093;&#091;'recentcomments'&#093;&#091;'maxcomments'&#093;&gt;0)
{
$latestcomments = sed_get_latestcomments($cfg&#091;'plugin'&#093;&#091;'recentcomments'&#093;&#091;'maxcomments'&#093;, $cfg&#091;'plu_mask_comments'&#093; );
//sed_cache_store('latestcomments', $latestcomments, 5); 

}

$t-&gt; assign(array(
	&quot;PLUGIN_LATESTCOMMENTS&quot; =&gt; $latestcomments,
	));
?&gt;

</pre></div>
<br />
<br />
Added current plugin code.[/]<br /><br /><b>Added 27 seconds later:</b><br /><br />Does anybody else see the lose closing tag above? [/] ?? shouldn't be there?]]></description>
			<pubDate>Mi, 22 Jul 2009 01:54:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=3023&d=0#post14702]]></link>
		</item>
	</channel>
</rss>