<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Some enhancement for list.php</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 20 Apr 2026 02:14:02 -0000</pubDate>

		<item>
			<title>Kilandor</title>
			<description><![CDATA[Correct I think would be best to pull anything that has hardcoded names like that out, or if for some reason we can't, make them configurable.]]></description>
			<pubDate>Ср, 17 Вер 2008 14:31:14 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=438&d=0#post1088]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[Feel free to commit it to trunk. But for longer term, we want to put all icons outta core, don't we?]]></description>
			<pubDate>Ср, 17 Вер 2008 00:57:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=438&d=0#post1077]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[ahh, yes :)<br />
<br />
haha! The power of Arrays !!!<br />
<div class="highlight"><pre class="php">$sed_img_active&#091;'asc'&#093; = &quot;&lt;img src=https://www.cotonti.com/\&quot;skins/&quot;.$usr&#091;'skin'&#093;.&quot;/img/system/arrow-up-active.gif\&quot; alt=\&quot;\&quot; /&gt;&quot;;
$sed_img_active&#091;'desc'&#093; = &quot;&lt;img src=https://www.cotonti.com/\&quot;skins/&quot;.$usr&#091;'skin'&#093;.&quot;/img/system/arrow-down-active.gif\&quot; alt=\&quot;\&quot; /&gt;&quot;;

$arrows = array();
$params = array('title','key','date','author','owner','count','filecount');
foreach($params as $val)
{
	$arrows&#091;$val&#093;&#091;'asc'&#093;  = $sed_img_down;
	$arrows&#091;$val&#093;&#091;'desc'&#093; = $sed_img_up;
}
$arrows&#091;$s&#093;&#091;$w&#093;  = $sed_img_active&#091;$w&#093;;</pre></div>]]></description>
			<pubDate>Вт, 16 Вер 2008 01:25:40 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=438&d=0#post1067]]></link>
		</item>
		<item>
			<title>Asmo</title>
			<description><![CDATA[Good decision.	<br />
I do not coder, but I try :)<br />
<br />
But better this :)<br />
<br />
<div class="highlight"><pre class="php">
$arrows = array();
$params = array('title','key','date','author','owner','count','filecount');
foreach($params as $val)
{
	$arrows&#091;$val&#093;&#091;'asc'&#093;  = $sed_img_down;
	$arrows&#091;$val&#093;&#091;'desc'&#093; = $sed_img_up;
}

$arrow&#091;$s&#093;&#091;'asc'&#093; = ($s &amp;&amp; $w=='asc') ? $sed_img_down_active : $sed_img_down;
$arrow&#091;$s&#093;&#091;'desc'&#093; = ($s &amp;&amp; $w=='desc') ? $sed_img_up_active : $sed_img_up;	
</pre></div>]]></description>
			<pubDate>Пн, 15 Вер 2008 23:54:46 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=438&d=0#post1064]]></link>
		</item>
		<item>
			<title>Orkan</title>
			<description><![CDATA[I like arrows highlighting :) ...but maybe in more compact way?<br />
<br />
<div class="highlight"><pre class="php">$arrows = array();
$params = array('title','key','date','author','owner','count','filecount');
foreach($params as $val)
{
	$arrows&#091;$val&#093;&#091;'asc'&#093;  = $sed_img_down;
	$arrows&#091;$val&#093;&#091;'desc'&#093; = $sed_img_up;
}
$arrows&#091;$s&#093;&#091;'asc'&#093;  = $sed_img_down_active;
$arrows&#091;$s&#093;&#091;'desc'&#093; = $sed_img_up_active;</pre></div>]]></description>
			<pubDate>Пн, 15 Вер 2008 13:51:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=438&d=0#post1051]]></link>
		</item>
		<item>
			<title>Asmo</title>
			<description><![CDATA[This improvement is clear extra variables in the URL string in the sorting and pagination, if they are not used. And add highlight active arrows in sorting bar.<br />
This looks very interesting and + clear URL string.<br />
<br />
<a href="http://img229.imageshack.us/my.php?image=filteroo8.gif" rel="nofollow"><img src="http://img229.imageshack.us/img229/2333/filteroo8.th.gif" alt="" /></a><br />
<br />
<div class="highlight"><pre class="php">// At the very top, before the hook list.first
$url_string     = &quot;list.php?c=$c&quot;;
$sort_string   .= (!empty($s) &amp;&amp; !empty($w)) ? &quot;&amp;amp;s=$s&amp;amp;w=$w&quot; : &quot;&quot;;
$filter_string .= (!empty($o) &amp;&amp; !empty($p)) ? &quot;&amp;amp;o=$o&amp;amp;p=$p&quot; : &quot;&quot;;</pre></div>
<br />
<br />
Pagination:<br />
<div class="highlight"><pre class="php">$pagination = sed_pagination($url_string.$sort_string.$filter_string, $d, $totallines, $cfg&#091;'maxrowsperpage'&#093;);
list($pageprev, $pagenext) = sed_pagination_pn($url_string.$sort_string.$filter_string, $d, $totallines, $cfg&#091;'maxrowsperpage'&#093;, TRUE);</pre></div>
<br />
<br />
	<br />
The next hack adds highlight active arrows in sorting bar<br />
<br />
<div style="margin:4px 0px 4px 0px"><input type="button" value="hack" onclick="if(this.parentNode.getElementsByTagName('div')[0].style.display != '') { this.parentNode.getElementsByTagName('div')[0].style.display = ''; } else { this.parentNode.getElementsByTagName('div')[0].style.display = 'none'; }" /><div style="display:none" class="spoiler"><div class="highlight"><pre class="php">if (!$sed_cat&#091;$c&#093;&#091;'group'&#093;)
	{
	
	$sed_img_up_active   = &quot;&lt;img src=https://www.cotonti.com/\&quot;skins/&quot;.$usr&#091;'skin'&#093;.&quot;/img/system/arrow-up-active.gif\&quot; alt=\&quot;\&quot; /&gt;&quot;;
	$sed_img_down_active = &quot;&lt;img src=https://www.cotonti.com/\&quot;skins/&quot;.$usr&#091;'skin'&#093;.&quot;/img/system/arrow-down-active.gif\&quot; alt=\&quot;\&quot; /&gt;&quot;;
	
	$sed_img_title_down = ($s=='title' &amp;&amp; $w=='asc') ? $sed_img_down_active : $sed_img_down;
	$sed_img_title_up  = ($s=='title' &amp;&amp; $w=='desc') ? $sed_img_up_active : $sed_img_up;

	$sed_img_key_down = ($s=='key' &amp;&amp; $w=='asc') ? $sed_img_down_active : $sed_img_down;
	$sed_img_key_up = ($s=='key' &amp;&amp; $w=='desc') ? $sed_img_up_active : $sed_img_up;
			
	$sed_img_date_down = ($s=='date' &amp;&amp; $w=='asc') ? $sed_img_down_active : $sed_img_down;
	$sed_img_date_up  = ($s=='date' &amp;&amp; $w=='desc') ? $sed_img_up_active : $sed_img_up;

	$sed_img_author_down = ($s=='author' &amp;&amp; $w=='asc') ? $sed_img_down_active : $sed_img_down;
	$sed_img_author_up  = ($s=='author' &amp;&amp; $w=='desc') ? $sed_img_up_active : $sed_img_up;

	$sed_img_owner_down = ($s=='owner' &amp;&amp; $w=='asc') ? $sed_img_down_active : $sed_img_down;
	$sed_img_owner_up  = ($s=='owner' &amp;&amp; $w=='desc') ? $sed_img_up_active : $sed_img_up;
			
	$sed_img_count_down = ($s=='count' &amp;&amp; $w=='asc') ? $sed_img_down_active : $sed_img_down;
	$sed_img_count_up = ($s=='count' &amp;&amp; $w=='desc') ? $sed_img_up_active : $sed_img_up;
	
	$sed_img_filecount_down = ($s=='filecount' &amp;&amp; $w=='asc') ? $sed_img_down_active : $sed_img_down;
	$sed_img_filecount_up = ($s=='filecount' &amp;&amp; $w=='desc') ? $sed_img_up_active : $sed_img_up;
		
	$t-&gt;assign(array(
	&quot;LIST_TOP_CURRENTPAGE&quot; =&gt; $currentpage,
	&quot;LIST_TOP_TOTALLINES&quot; =&gt; $totallines,
	&quot;LIST_TOP_MAXPERPAGE&quot; =&gt; $cfg&#091;'maxrowsperpage'&#093;,
	&quot;LIST_TOP_TOTALPAGES&quot; =&gt; $totalpages,
	&quot;LIST_TOP_TITLE&quot; =&gt; &quot;&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=title&amp;amp;w=asc$filter_string\&quot;&gt;$sed_img_title_down&lt;/a&gt; &quot;.$L&#091;'Title'&#093;.&quot; 
	&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=title&amp;amp;w=desc$filter_string\&quot;&gt;$sed_img_title_up&lt;/a&gt;&quot;,
	&quot;LIST_TOP_KEY&quot; =&gt; &quot;&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=key&amp;amp;w=asc$filter_string\&quot;&gt;$sed_img_down&lt;/a&gt; &quot;.$L&#091;'Key'&#093;.&quot; 
	&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=key&amp;amp;w=desc$filter_string\&quot;&gt;$sed_img_up&lt;/a&gt;&quot;,
	&quot;LIST_TOP_DATE&quot; =&gt; &quot;&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=date&amp;amp;w=asc$filter_string\&quot;&gt;$sed_img_date_down&lt;/a&gt; &quot;.$L&#091;'Date'&#093;.&quot; 
	&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=date&amp;amp;w=desc$filter_string\&quot;&gt;$sed_img_date_up&lt;/a&gt;&quot;,
	&quot;LIST_TOP_AUTHOR&quot; =&gt; &quot;&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=author&amp;amp;w=asc$filter_string\&quot;&gt;$sed_img_author_down&lt;/a&gt; &quot;.$L&#091;'Author'&#093;.&quot; 
	&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=author&amp;amp;w=desc$filter_string\&quot;&gt;$sed_img_author_up&lt;/a&gt;&quot;,
	&quot;LIST_TOP_OWNER&quot; =&gt; &quot;&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=ownerid&amp;amp;w=asc$filter_string\&quot;&gt;$sed_img_owner_down&lt;/a&gt; &quot;.$L&#091;'Owner'&#093;.&quot; 
	&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=ownerid&amp;amp;w=desc$filter_string\&quot;&gt;$sed_img_owner_up&lt;/a&gt;&quot;,
	&quot;LIST_TOP_COUNT&quot; =&gt; &quot;&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=count&amp;amp;w=asc$filter_string\&quot;&gt;$sed_img_count_down&lt;/a&gt; &quot;.$L&#091;'Hits'&#093;.&quot; 
	&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=count&amp;amp;w=desc$filter_string\&quot;&gt;$sed_img_count_up&lt;/a&gt;&quot;,
	&quot;LIST_TOP_FILECOUNT&quot; =&gt; &quot;&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=filecount&amp;amp;w=asc$filter_string\&quot;&gt;$sed_img_filecount_down&lt;/a&gt; &quot;.$L&#091;'Hits'&#093;.&quot; 
	&lt;a href=https://www.cotonti.com/\&quot;$url_string&amp;amp;s=filecount&amp;amp;w=desc$filter_string\&quot;&gt;$sed_img_filecount_up&lt;/a&gt;&quot;
		));
	}</pre></div></div></div>
<br />
You will also need to add two different colour images of arrows, for highlight<br />
img/system/arrow-up-active.gif<br />
img/system/arrow-down-active.gif<br />
<br />
So, it looks very interesting and + clear URL string.<br />
<br />
Heh, P.S. PFS and smiles not work <span style="color:#CC0000">Call to undefined function sed_htmlmetas()</span><br />
Last core revision was very brutal :)]]></description>
			<pubDate>Нд, 14 Вер 2008 23:47:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=438&d=0#post1048]]></link>
		</item>
	</channel>
</rss>