<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Change order of the comments</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 04 May 2026 01:50:22 -0000</pubDate>

		<item>
			<title>foxhound</title>
			<description><![CDATA[Thanks for the info. I guess you are right.<br />
I changed it and will see what people think, otherwise we revert back to asc  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/wink.gif" alt=";)" />]]></description>
			<pubDate>Sal, 29 Haz 2010 05:30:52 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5689&d=0#post25106]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[@Fox:<br />
<br />
<div class="highlight"><pre class="php">
		$i = $d;
		/* === Hook - Part1 : Set === */
		$extp = sed_getextplugins('comments.loop');
		/* ===== */
		while ($row = sed_sql_fetcharray($sql))
		{
			$i++;
</pre></div>
<br />
the same function:<br />
<br />
$i is local and starts with $d (and this is the page start counter [pagination])<br />
It is just a counter for the number off items you want to show.<br />
BUT you changed ASC in DESC so the counter is now &quot;upside down&quot;<br />
<br />
You say that you want to change the counter... <br />
just remove it from the tpl ? and leave the code like it is.. (most simple solution)<br />
<br />
Date and time is usually good enough to see how the order is  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/confused.gif" alt=":/" />]]></description>
			<pubDate>Pzt, 28 Haz 2010 04:30:03 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5689&d=0#post25089]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[That seesms to do it (only applied to the testsite yet).<br />
I really can't believe I did not think of checking the functions php, feel pretty dumb now <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/sleeping.gif" alt="I-)" /> <br />
<br />
Thanks as always ez, you are a great help around here!<br /><br /><b>Added 4 days later:</b><br /><br />Now that we have the comments in descending order, is it also possible to change the number in front of the posted comment?<br />
I checked the functions.php and saw this: 'COMMENTS_ROW_ORDER' =&gt; $i,<br />
I assume &quot;$i&quot; is global as its also used by the forums post order. Anyway to adapt it so only the comments are showing the highest number first?]]></description>
			<pubDate>Çrş, 23 Haz 2010 03:18:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5689&d=0#post25020]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[comments:<br />
<br />
Look in functions.php and find function sed_build_comments.<br />
<br />
<pre class="code">
	$sql = sed_sql_query(&quot;SELECT c.*, u.user_avatar FROM $db_com AS c
		LEFT JOIN $db_users AS u ON u.user_id=c.com_authorid
		WHERE com_code='$code' ORDER BY com_id ASC LIMIT $d, &quot;.$cfg&#091;'maxcommentsperpage'&#093;);
</pre>
<br />
I think it is this one... (do not kill me If i am wrong)<br />
change ASC in DESC<br />
<br />
Warning: Corehacking !<br />
<br />
It is a damn shame that this is not configurable !]]></description>
			<pubDate>Sal, 22 Haz 2010 23:44:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5689&d=0#post25019]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[In &quot;plugins/minichat/inc/minichat.functions.php&quot; change the following:<br />
Line 53 (?): <pre class="code">$sortorder = &quot;ASC&quot;;</pre>
to<br />
<pre class="code">$sortorder = &quot;DESC&quot;;</pre>
<br />
Comment line 60 (?): <pre class="code">if (!isset($_GET&#091;'chatd'&#093;) &amp;&amp; $totalitems!=0)  { $d = $perpage * (ceil($totalitems / $perpage)-1); }</pre>
<br />
And the last one, line 62 (?): <pre class="code">$sortorder = &quot;ASC&quot;;</pre>
to<br />
<pre class="code">$sortorder = &quot;DESC&quot;;</pre>
<br />
** (?) = I have edited my file a bit so its possible for you the line numbers are different.]]></description>
			<pubDate>Sal, 22 Haz 2010 23:32:58 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5689&d=0#post25018]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[Small q:<br />
<br />
how did you fix that with the minichat?]]></description>
			<pubDate>Sal, 22 Haz 2010 19:46:04 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5689&d=0#post25017]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[Probably a stupid question but I can not figure our where to change the order in which the comments are displayed.<br />
I checked the page.inc.php, also the list.inc.php but nowhere there is anything mentioned about the order. So, I start to assume the order is set by the forums? Meaning the comments use the same settings as the forums do?<br />
<br />
In the minichat plugin we use on the website I was able to change the order, I just have no idea where in the core files this setting is for the normal pages.<br />
<br />
BTW, we have finally moved our website to Cotonti  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/sunglasses.gif" alt="B)" /><br />
Took us 3 days to do the whole move but it was well worth it! Thanks cotonti!<br />
<a href="http://www.armaholic.com" rel="nofollow">http://www.armaholic.com</a>]]></description>
			<pubDate>Sal, 22 Haz 2010 19:21:26 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=5689&d=0#post25016]]></link>
		</item>
	</channel>
</rss>