<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : How do I make pages &quot;created&quot; in future visible for the guests?</title>
		<link>https://www.cotonti.com</link>
		<description>Last topic posts</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Wed, 08 Apr 2026 17:12:55 -0000</pubDate>

		<item>
			<title>Dayver</title>
			<description><![CDATA[<p>Yes your correct solution. But when updating your cotonti you need again repeat it. better if you do creat mini plugin which is only two file yourminiplug.setup.php and yourminiplug.page.list.query.php and that work on this file and contain Hook page.list.query only one line</p>

<p><code class="php variable" style="line-height:14.3000001907349px;white-space:pre;margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:rgb(170,119,0);float:none;height:auto;width:auto;background:none;">$where</code><code class="php plain" style="line-height:14.3000001907349px;white-space:pre;margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:#000000;float:none;height:auto;width:auto;background:none;">[</code><code class="php string" style="line-height:14.3000001907349px;white-space:pre;margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:#0000FF;float:none;height:auto;width:auto;background:none;">'date'</code><code class="php plain" style="line-height:14.3000001907349px;white-space:pre;margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:#000000;float:none;height:auto;width:auto;background:none;">] = </code><code class="php string" style="line-height:14.3000001907349px;white-space:pre;margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:#0000FF;float:none;height:auto;width:auto;background:none;">"(page_expire = 0 OR page_expire &gt; {$sys['now']})"</code><code class="php plain" style="line-height:14.3000001907349px;white-space:pre;margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;color:#000000;float:none;height:auto;width:auto;background:none;">;</code></p>
]]></description>
			<pubDate>Sat, 31 Jan 2015 21:45:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7880&d=0#post40495]]></link>
		</item>
		<item>
			<title>staleo</title>
			<description><![CDATA[<p>Hi folks,</p>

<p>For one of my projects, i create lots of pages on a regular basis. <a href="http://www.cotonti.com/forums?m=posts&amp;q=7737">Here's</a> i asked a community on how do I extend BEGIN dates further than 2000, and i appreciate a good help with it. However, I'm now stuck with another issue.</p>

<p>As you can see in the post mentioned above, i dont use <em>PAGEEDIT_FORM_BEGIN</em>. Instead, i input a date in <em>{PHP.pag.page_begin|cot_selectbox_date($this, 'long', 'rpagebegin', '2030', '1900')}</em> and it's all set. Nonetheless, while creating a page, if i set any future date, the page will appear in a list only for the administrators, not for regular users.</p>

<p>Why so? And how do I make those pages "from the future" visible for everyone?</p>

<p>Thank you all in advance.</p>
<p><strong>Добавлено 19 часов спустя:</strong></p><p>All right, here's what worked for me. Find a <strong>/modules/page/inc/page.list.php</strong>, and than turn a string</p>

<pre class="brush:php;">
$where['date'] = "page_begin &lt;= {$sys['now']} AND (page_expire = 0 OR page_expire &gt; {$sys['now']})";</pre>

<p>into</p>

<pre class="brush:php;">
$where['date'] = "(page_expire = 0 OR page_expire &gt; {$sys['now']})";
</pre>
]]></description>
			<pubDate>Fri, 30 Jan 2015 21:01:08 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/forums?m=posts&q=7880&d=0#post40493]]></link>
		</item>
	</channel>
</rss>