<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[LuxCal Web Calendar — Default day and years span.]]></title>
		<link>https://www.luxsoft.eu/lcforum/viewtopic.php?id=236</link>
		<atom:link href="https://www.luxsoft.eu/lcforum/extern.php?action=feed&amp;tid=236&amp;type=rss" rel="self" type="application/rss+xml"></atom:link>
		<description><![CDATA[The most recent posts in Default day and years span..]]></description>
		<lastBuildDate>Tue, 06 Aug 2019 19:50:42 +0000</lastBuildDate>
		<generator>PunBB 1.4.4</generator>
		<item>
			<title><![CDATA[Re: Default day and years span.]]></title>
			<link>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=824#p824</link>
			<description><![CDATA[<div class="quotebox"><cite>Roel wrote:</cite><blockquote><p>Hi Lesm,</p><p>Edit the file &#039;index.php&#039; in the calendar root and change line 243 from . . .<br></p><div class="codebox"><pre><code>if (empty($_SESSION[$calID][&#039;cD&#039;])) { $_SESSION[$calID][&#039;cD&#039;] = $today; } //empty: today</code></pre></div><p>to . . .<br></p><div class="codebox"><pre><code>if (empty($_SESSION[$calID][&#039;cD&#039;])) { $_SESSION[$calID][&#039;cD&#039;] = &#039;1842-06-15&#039;; }</code></pre></div><p>. . . to go to June 15, 1842 for example.</p><p>Note: If on the admin&#039;s Settings page, in the section User Accounts, &quot;Restore last user selections has been checked, the The &quot;next&quot; default page will be the last selected page.</p><p>This is the &quot;fixed&quot; solution. Do you want the option to set the date on the admin&#039;s Settings page?<br>If so, I will do it for you, because explaining what to do is as much work as doing it <img src="https://www.luxsoft.eu/lcforum/img/smilies/wink.png" width="15" height="15" alt="wink"></p><p>Roel</p></blockquote></div><p>At index.php I also replaced:<br></p><div class="codebox"><pre><code> $today = date(&#039;Y-m-d&#039;);</code></pre></div><p>by:<br></p><div class="codebox"><pre><code> $today = date(&#039;1842-06-15&#039;);</code></pre></div><p>Yet I&#039;m not sure if this affects other parts of the code.</p>]]></description>
			<author><![CDATA[null@example.com (lesm)]]></author>
			<pubDate>Tue, 06 Aug 2019 19:50:42 +0000</pubDate>
			<guid>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=824#p824</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default day and years span.]]></title>
			<link>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=810#p810</link>
			<description><![CDATA[<p>Great Roel! <br>It works just fine. Really it is okay for me but if you wish send the code for the admin&#039;s Settings page mod&nbsp; you are welcome.<br>Thanks a lot.<br>lesm</p>]]></description>
			<author><![CDATA[null@example.com (lesm)]]></author>
			<pubDate>Mon, 05 Aug 2019 12:06:19 +0000</pubDate>
			<guid>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=810#p810</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default day and years span.]]></title>
			<link>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=808#p808</link>
			<description><![CDATA[<p>Hi Lesm,</p><p>Edit the file &#039;index.php&#039; in the calendar root and change line 243 from . . .<br></p><div class="codebox"><pre><code>if (empty($_SESSION[$calID][&#039;cD&#039;])) { $_SESSION[$calID][&#039;cD&#039;] = $today; } //empty: today</code></pre></div><p>to . . .<br></p><div class="codebox"><pre><code>if (empty($_SESSION[$calID][&#039;cD&#039;])) { $_SESSION[$calID][&#039;cD&#039;] = &#039;1842-06-15&#039;; }</code></pre></div><p>. . . to go to June 15, 1842 for example.</p><p>Note: If on the admin&#039;s Settings page, in the section User Accounts, &quot;Restore last user selections has been checked, the The &quot;next&quot; default page will be the last selected page.</p><p>This is the &quot;fixed&quot; solution. Do you want the option to set the date on the admin&#039;s Settings page?<br>If so, I will do it for you, because explaining what to do is as much work as doing it <img src="https://www.luxsoft.eu/lcforum/img/smilies/wink.png" width="15" height="15" alt="wink"></p><p>Roel</p>]]></description>
			<author><![CDATA[null@example.com (Roel)]]></author>
			<pubDate>Mon, 05 Aug 2019 11:13:37 +0000</pubDate>
			<guid>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=808#p808</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default day and years span.]]></title>
			<link>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=806#p806</link>
			<description><![CDATA[<p>Hi Roel,<br>Thanks for the tip. I&#039;ll be glad to make the necessary mods to change the default date only within the span, hence the code change to set the default date to a fixed date is enough.</p><p>Appreciated.<br>lesm</p>]]></description>
			<author><![CDATA[null@example.com (lesm)]]></author>
			<pubDate>Sun, 04 Aug 2019 21:04:32 +0000</pubDate>
			<guid>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=806#p806</guid>
		</item>
		<item>
			<title><![CDATA[Re: Default day and years span.]]></title>
			<link>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=805#p805</link>
			<description><![CDATA[<p>Hi Les,</p><p>Have you considered the following:<br>You can add &quot;?cD=1842-06-15&quot; to the calendar URL. This will bring you to the date specified in ISO format. So in this case June 15, 1842</p><p>I can also send you a very simple PHP code change to set the default date to a fixed date in the past.<br>If you often need to change the default date within the span you specified in your post above, then maybe a date input field should be added to the admin&#039;s Settings page. This is a bit more work, but still not very much.</p><p>So please let me know what you need and then we will take it from there.</p><p>Roel</p>]]></description>
			<author><![CDATA[null@example.com (Roel)]]></author>
			<pubDate>Sun, 04 Aug 2019 20:19:12 +0000</pubDate>
			<guid>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=805#p805</guid>
		</item>
		<item>
			<title><![CDATA[Default day and years span.]]></title>
			<link>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=804#p804</link>
			<description><![CDATA[<p>Hi,</p><p>Have just installed LuxCal Web Calendar and so far it&#039;s working as expected. Thanks!<br>However, my requirements are just a little bit different and maybe require some mods, no problem if I need to change some PHP code. <br>At first glance LuxCal seems to default to the current day, but for a history site I need to default the Calendar to June 15, 1842 within a span of 7 years, that is 1839 to 1845. Is that possible?</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (lesm)]]></author>
			<pubDate>Sun, 04 Aug 2019 19:30:17 +0000</pubDate>
			<guid>https://www.luxsoft.eu/lcforum/viewtopic.php?pid=804#p804</guid>
		</item>
	</channel>
</rss>
