<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : add &quot;item available&quot; to list.php</title>
		<link>https://www.cotonti.com</link>
		<description>Neueste Themenbeiträge</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 15 Apr 2026 10:00:37 -0000</pubDate>

		<item>
			<title>Kilandor</title>
			<description><![CDATA[<pre class="code">&lt;!-- IF {PHP.usr.id}={PHP.pag.page_ownerid} OR {PAGE_AVAILABLE}=&quot;1&quot; OR {PHP.usr.isadmin}=&quot;1&quot; --&gt;</pre>
That should work]]></description>
			<pubDate>Fr, 01 Jan 2010 18:56:49 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=5114&d=0#post21881]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[Hi Kilandor,<br />
thnx for the response  <img class="aux smiley" src="https://www.cotonti.com/./images/smilies/smile.gif" alt=":)" /> <br />
How can i do this: &quot;The IAMTHEOWNER could be done via tpl.&quot;<br />
<br />
For the other items, i cannot use xtra fields (in this case)<br />
Still this part:<br />
<pre class="code">
# if ($pag&#091;'page_begin'&#093;&gt;$sys&#091;'now_offset'&#093;)
# {
#     $pag&#091;'page_text'&#093; = $L&#091;'pag_notavailable'&#093;.sed_build_timegap($sys&#091;'now_offset'&#093;, $pag&#091;'page_begin_noformat'&#093;);
#     $t-&gt;assign(&quot;PAGE_TEXT&quot;, $pag&#091;'page_text'&#093;);
#     }
# else
# {
</pre>
<br />
Is in page,inc.php, but not in list.inc.php ?? <br />
So maybe this should be there ???? (why in page and not in list)]]></description>
			<pubDate>Do, 31 Dez 2009 18:02:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=5114&d=0#post21860]]></link>
		</item>
		<item>
			<title>Kilandor</title>
			<description><![CDATA[I don't see any reason to add this to core sorry, its something totaly custom.<br />
<br />
The IAMTHEOWNER could be done via tpl.<br />
The page avail you should be able to do via Custom fields and TPL<br />
Same for the Image thing, can be done with extra fields]]></description>
			<pubDate>Do, 31 Dez 2009 17:48:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=5114&d=0#post21858]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[I am buidling a community site for chessplayers in the Netherlands...<br />
My demo site (still not live) is at <a href="http://schaaksite.2basix.nl/" rel="nofollow">http://schaaksite.2basix.nl/</a><br />
<br />
I use this as follows:<br />
<pre class="code">
&lt;!-- BEGIN: LIST_ROW --&gt;
	&lt;!-- IF {LIST_ROW_IAMTHEOWNER}=&quot;1&quot; OR {PAGE_AVAILABLE}=&quot;1&quot; OR {PHP.usr.isadmin}=&quot;1&quot; --&gt;
	&lt;tr&gt;
		&lt;td&gt;
			&lt;h4&gt;&lt;a href=https://www.cotonti.com/&quot;{LIST_ROW_URL}&quot;&gt;{LIST_ROW_TITLE}&lt;/a&gt;&lt;/h4&gt;
			&lt;p class=&quot;small&quot;&gt;{LIST_ROW_DESC}&lt;/p&gt;&lt;br /&gt;
			&lt;!-- IF {IMGR1_SRC} --&gt;
				&lt;a href=https://www.cotonti.com/&quot;{LIST_ROW_URL}&quot;&gt;&lt;img width=&quot;{IMGR1_WIDTH}&quot; height=&quot;{IMGR1_HEIGHT}&quot; alt=&quot;Kunst&quot; title=&quot;{LIST_ROW_TITLE}&quot; src=https://www.cotonti.com/&quot;{IMGR1_SRC}&quot;/&gt;&lt;/a&gt;
			&lt;!-- ENDIF --&gt;
		&lt;/td&gt;
	&lt;/tr&gt;
	&lt;!-- ENDIF --&gt;
&lt;!-- END: LIST_ROW --&gt;
</pre>
<br />
<br />
<br />
there are a few tags in here that are mine:<br />
{IMGR1_xxx} is a custom plugin I build for resizing imgs to different sizes in different places.<br />
{PAGE_AVAILABLE} Code is in first post:<br />
{LIST_ROW_IAMTHEOWNER} also a new tag i build:<br />
&nbsp; &nbsp; &nbsp;<pre class="code">&quot;LIST_ROW_IAMTHEOWNER&quot; =&gt; $usr&#091;'id'&#093;==$pag&#091;'page_ownerid'&#093; ? '1' : '0',	</pre>
<br />
Anyway i think this could be usefull for the next version (maybe)???]]></description>
			<pubDate>Do, 31 Dez 2009 17:02:59 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=5114&d=0#post21857]]></link>
		</item>
		<item>
			<title>rayblo</title>
			<description><![CDATA[You have a working example m8?]]></description>
			<pubDate>Do, 31 Dez 2009 04:48:54 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=5114&d=0#post21845]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[In <span style="text-decoration:underline"><strong>list.inc.php</strong></span> i do not see the following code.. (see page.inc.php for the same code)<br />
It would be nice to add it there. That way I can detect if a page should be on the list or not. Also I want to show the &quot;NON&quot; published items to admins and owners only.<br />
Also I made 1 tag in page called &quot;PAGE_AVAILABLE&quot; that i can use in xtemplate to make my skin programming simpler.. (and would like that in list too)<br />
The PAGE_AVAILABLE tag i also added to page.inc.php.<br />
<br />
Tell me what you all think....<br />
<br />
In list.inc.php (2 tiny corehacks):<br />
<div class="highlight"><pre class="php">
//============================
// LLS start modification	
//============================
if ($pag&#091;'page_begin'&#093;&gt;$sys&#091;'now_offset'&#093;)
{
	$pag&#091;'page_text'&#093; = $L&#091;'pag_notavailable'&#093;.sed_build_timegap($sys&#091;'now_offset'&#093;, $pag&#091;'page_begin_noformat'&#093;);
	$t-&gt;assign(&quot;PAGE_TEXT&quot;, $pag&#091;'page_text'&#093;);
// LLS modification	
	$t-&gt;assign(&quot;PAGE_AVAILABLE&quot;, &quot;0&quot;);
	}
else
{
	$t-&gt;assign(&quot;PAGE_AVAILABLE&quot;, &quot;1&quot;);

//============================
// LLS END modification
//============================

</pre></div>]]></description>
			<pubDate>Do, 31 Dez 2009 04:46:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/de/forums?m=posts&q=5114&d=0#post21843]]></link>
		</item>
	</channel>
</rss>