<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : need support on list modification</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Fri, 17 Apr 2026 15:55:05 -0000</pubDate>

		<item>
			<title>SunChase</title>
			<description><![CDATA[Trying to make the lists show the subcategories.<br />
<br />
Took some things from an old news plugin and inserted them in the list:<br />
<br />
<pre class="code">
$jj = 0;
$mtch = $sed_cat&#091;$c&#093;&#091;'path'&#093;.&quot;.&quot;;
$mtchlen = strlen($mtch);
$catsub = array();
$catsub&#091;&#093; = $c;
foreach($sed_cat as $i =&gt; $x)
	{
	if (substr($x&#091;'path'&#093;, 0, $mtchlen)==$mtch &amp;&amp; sed_auth('page', $i, 'R'))
		{ $catsub&#091;&#093; = $i; }
	}
</pre>
<br />
and <br />
<br />
<pre class="code"> else
	{
                sed_die(empty($sed_cat&#091;$c&#093;&#091;'title'&#093;) &amp;&amp; !$usr&#091;'isadmin'&#093;);
                        $sql = sed_sql_query(&quot;SELECT COUNT(*) FROM $db_pages
			WHERE page_cat='$c' AND (page_state='0' OR page_state='2')&quot;);

                        $totallines = sed_sql_result($sql, 0, 0);

                        $sql = sed_sql_query(&quot;SELECT p.*, u.user_name &quot;.$join_ratings_columns.&quot;
                        FROM $db_pages as p &quot;.$join_ratings_condition.&quot;
		        LEFT JOIN $db_users AS u ON u.user_id=p.page_ownerid
                        WHERE page_state=0 AND page_cat NOT LIKE 'system'
			AND page_cat IN ('&quot;.implode(&quot;','&quot;, $catsub).&quot;') ORDER BY
			page_$s $w  LIMIT $d,&quot;.$cfg&#091;'maxrowsperpage'&#093;);

        }</pre>
<br />
The subcategories are shown,but the LIST_ROWCAT_... tags stoped working + dont know how to edit the $catpath so it would show the proper category name.<br />
<br />
Tried to edit the sql so it would get the category name from the structure_title field :<br />
<br />
<pre class="code">$sql = sed_sql_query(&quot;SELECT p.*, u.user_name ,s.structure_code ,s.structure_title &quot;.$join_ratings_columns.&quot;
                        FROM $db_pages p , $db_users u ,$db_structure s
                        WHERE page_state=0 AND page_cat NOT LIKE 'system'
                        AND p.page_cat=s.structure_code
                        AND u.user_id=p.page_ownerid
                        AND page_cat IN ('&quot;.implode(&quot;','&quot;, $catsub).&quot;') ORDER BY
			page_$s $w  LIMIT $d,&quot;.$cfg&#091;'maxrowsperpage'&#093;);

&quot;CAT&quot; =&gt; $row&#091;'structure_title'&#093;,</pre>
<br />
but dont know how to do it correctly.<br />
This is the first time i'm trying to edit something massive as list.php.]]></description>
			<pubDate>Per, 15 Eki 2009 22:41:45 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=3394&d=0#post17853]]></link>
		</item>
	</channel>
</rss>