<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EPC Tutorials</title>
	<atom:link href="http://www.epctutorials.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.epctutorials.com</link>
	<description>Providing custom integration services for Easy PHP Calendar</description>
	<lastBuildDate>Sun, 23 May 2010 12:24:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to integrate the calendar in WordPress (Part 3)</title>
		<link>http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-3/</link>
		<comments>http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-3/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 03:13:45 +0000</pubDate>
		<dc:creator>ve9gra</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.epctutorials.com/?p=108</guid>
		<description><![CDATA[It&#8217;s finally here&#8230; part 3. How to redirect the sidebar calendar clicks to a full page with the event details. In this part, we will be building on the previous two parts, so make sure to review those posts before continuing. You can use this setup if you prefer to redirect your users to a [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s finally here&#8230; part 3. How to redirect the sidebar calendar clicks to a full page with the event details. In this part, we will be building on the previous two parts, so make sure to review those posts before continuing. You can use this setup if you prefer to redirect your users to a full page with event details instead of using the popup functions. The trick itself can be used in more than just WordPress, but this post will deal with the WP specific issues.<br />
<span id="more-108"></span></p>
<p>To start, we will deal with the easy part first. For this, we need to reuse the instructions from Part 2. You need to create a new page template, but this time instead of integrating the regular calendar, we&#8217;re going to add the 2nd part of the Blog mode. Don&#8217;t forget to change the name of the template in the code. Here, I am just adding the Blog list code as-is from the official docs for reference.</p>
<pre class="brush: php;">&lt;?php
$EPCBLOG=2;
$template=&quot;blog.php&quot;;
$DF = &quot;l, F j, Y&quot;;
require (&quot;calendar/calendar.php&quot;);
?&gt;</pre>
<p>Then you will want to create a page that uses your new template. That will give you a URL&#8230; you want to make note of it, we&#8217;ll be using it later.</p>
<p>Now onto the guts of it&#8230; For this part, we need to go back to the sidebar. Here&#8217;s the gist of what we&#8217;ll be doing. First, we change the calendar mode to be the first part of the Blog mode. Then, we need to fake the calendar into thinking it&#8217;s somewhere else than it really is. And finally, we disable the default navigation and create our own. </p>
<p>To use the Blog mode, simply add $EPCBLOG=1; before the require. Then we set $thisFile to the URL we saved earlier, and set $noNav=1; to disable the default navigation. At this point the require is called, and right after we destroy the $thisFile variable. To create the replacement navigation, refer the post <a href="http://www.epctutorials.com/tutorials/create-your-own-navigation-table/">Create your own navigation table</a>.</p>
<p>So here is the code that you would have in the sidebar, but note that I am omitting the navigation table code as it is a literal copy-paste of what is in the post mentioned just above. Of course, you would be setting $thisFile to your own URL. </p>
<pre class="brush: php;">$EPCBLOG=1;
$noNav=1;
$thisFile=&quot;/wordpress/calendar/blog-page/&quot;; // use your own URL here
require(&quot;epcal/calendar.php&quot;);
unset($thisFile);
// add the navigation table code here
</pre>
<p>So there you have it. With this solution, a visitor can browse the calendar on the page they are currently viewing, and when they click on a date, it will direct them to a new page that has the event details.</p>
<p>This concludes the series, but look forward to new posts coming in the near future. Using widgets on your site? Stay tuned&#8230;</p>
<p><em>In case you missed the other posts in this series, please go to:</p>
<ul>
<li><a href="http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-1/">How to integrate the calendar in WordPress (Part 1) &#8211; Prerequisites and adding the calendar to the sidebar</a></li>
<li><a href="http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-2/">How to integrate the calendar in WordPress (Part 2) &#8211; Integrating the TOC in a page</a></li>
</ul>
<p></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to integrate the calendar in WordPress (Part 2)</title>
		<link>http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-2/</link>
		<comments>http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-2/#comments</comments>
		<pubDate>Sun, 07 Dec 2008 22:31:05 +0000</pubDate>
		<dc:creator>ve9gra</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.epctutorials.com/?p=96</guid>
		<description><![CDATA[The first part of this tutorial tackled integrating the regular mode calendar in your WordPress sidebar. In this part, we will be creating a page in WordPress and integrate one of the more advanced modes of the calendar, like the TOC or Blog mode. Note that we are building on the previous part where the [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-1/">first part of this tutorial</a> tackled integrating the regular mode calendar in your WordPress sidebar. In this part, we will be creating a page in WordPress and integrate one of the more advanced modes of the calendar, like the TOC or Blog mode. Note that we are building on the previous part where the required $CSS and $OL lines were added. If you only want to have the page part and skip the sidebar calendar, you will still have to refer to the first part in order to have a working integration. Ok, let&#8217;s dive in.<br />
<span id="more-96"></span></p>
<p>Once again, I won&#8217;t be getting into specific code as it deals with a file that is theme specific. You should be able to find where to add the code in your own files. Here&#8217;s a quick overview of what we&#8217;ll be doing :</p>
<ul>
<li>First, we will create a new page template</li>
<li>Then, we will create a new page that uses that template</li>
<li>Finally, we will tweak the code to add your preferred calendar mode to the page</li>
</ul>
<p>The easy way to create a new page template is simply to copy and rename page.php. If you already have a page template that you would want to reuse for your calendar page, feel free to use that one instead. You will find that file in /wp-content/themes/*your-theme*/. Once you have your new file created, you will want to take out the code that is in &#8220;the loop&#8221; and replace it with some placeholder text for now.</p>
<p>What <a href="http://codex.wordpress.org/The_Loop" target="_blank">&#8220;the loop&#8221;</a> is defined as is the area between two very specific lines of code :</p>
<pre class="brush: php;">&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;
&lt;!-- This here is the loop --&gt;
&lt;?php endwhile; else : ?&gt;</pre>
<p>So you can add any text you want as a test where I have put the comment. At the very top of the page, you will want to add the template name so that you can use it.</p>
<pre class="brush: php;">&lt;?php
/*
Template Name: Calendar Page
*/
?&gt;</pre>
<p>When you are done, save the file and upload it to your theme folder. That completes creating the template.</p>
<p>Now, we create the page. This is the easy part. Simply go in your admin screen, to the Write -&gt; Page section. You can name the page anything you want, but the text you add in the page section will not be added to the actual page. Then select the page template to apply (it&#8217;s in one of the possibly collapsed sections underneath the page text). Save your page, publish it, and then check it out to make sure that the text we added as a test is showing up. If that all checks out, then you can proceed to adding the calendar code.</p>
<p>Go back to the template file that was created in the first step, remove the test text and replace it with the calendar code. Here you can add any of the modes that you want, and any plugins or options you would like. For the purpose of this tutorial, we&#8217;ll use the TOC as it is probably going to be a very popular selection, and it is also one of the simplest modes. So, replace the text in &#8220;the loop&#8221; with this :</p>
<pre class="brush: php;">&lt;?php
$TOC=1;
require(&quot;calendar/calendar.php&quot;);
?&gt;</pre>
<p>If you view your page again at this point, you should now see the TOC mode, and part two is now completed. Should you want to add the List mode, or the multi-calendar, then follow the <a href="http://docs.easyphpcalendar.com/">official integration instructions</a> for each of the modes.</p>
<p>On the last part, we&#8217;ll add the Blog mode to this page here, and create a custom redirection for the sidebar calendar. Stay tuned&#8230;</p>
<p><em>In case you missed the other posts in this series, please go to:</p>
<ul>
<li><a href="http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-2/">How to integrate the calendar in WordPress (Part 1) &#8211; Prerequisites and adding the calendar to the sidebar</a></li>
<li><a href="http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-3/"><em>How to integrate the calendar in WordPress (Part 3) &#8211; Redirecting the sidebar calendar to the TOC page</em></a></li>
</ul>
<p></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to integrate the calendar in WordPress (Part 1)</title>
		<link>http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-1/</link>
		<comments>http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-1/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 01:23:32 +0000</pubDate>
		<dc:creator>ve9gra</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Integration]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.epctutorials.com/?p=87</guid>
		<description><![CDATA[As it seems that instructions for a proper integration in WordPress are a bit scattered across a few posts and have to be gleaned to make up something that you can use, I figured it would be a good idea to create a multi-part tutorial that centralizes everything. In this first part, we&#8217;ll add the [...]]]></description>
			<content:encoded><![CDATA[<p>As it seems that instructions for a proper integration in WordPress are a bit scattered across a few posts and have to be gleaned to make up something that you can use, I figured it would be a good idea to create a multi-part tutorial that centralizes everything. In this first part, we&#8217;ll add the calendar to your sidebar. The next part will be how to create a page to integrate something like the TOC, or the List mode. And for the last one, we&#8217;ll go deep and create a custom Blog mode integration.<br />
<span id="more-87"></span></p>
<p>This tutorial will make some assumptions, like your WordPress is installed in your web root (not in a sub-folder), and you already have the calendar installed in the /calendar folder. Also, in order to be able to perform the integration, you have to make sure that the calendar uses the same database as your WordPress installation.</p>
<p>Let&#8217;s start easy with setting up the proper permalink structure. Go to your WP administration interface, in the Settings section, and then Permalinks. You will have to use the &#8220;Default&#8221; setting. This is so that the calendar navigation work. Using any of the other modes and you will not be able to navigate to different months.</p>
<p>Now, we&#8217;re getting into the guts of things. Here, you can use the Theme Editor, but I strongly suggest that you do not. Instead modify the actual files. All of the files that are modified are in your /wp-content/themes/&lt;your theme&gt;.</p>
<p>The first file to edit is your header.php so that we can add the CSS code required for the calendar. Find the &lt;/head&gt; tag and then add the following code just before it.</p>
<pre class="brush: php;">&lt;?php $CSS=1; require(&quot;calendar/calendar.php&quot;); ?&gt;</pre>
<p>Now, for this step, you need to find the file that has the &lt;body&gt; tag. I can&#8217;t tell you which file to look in, but in my case it was also in the header.php file. Simply find the &lt;body&gt; tag and add this code just after it. This is required if you want to make use of the mouse-over popups.</p>
<pre class="brush: php;">&lt;?php $OL=1; require(&quot;calendar/calendar.php&quot;); ?&gt;</pre>
<p>And as the last step for this tutorial, we&#8217;ll add the calendar to the sidebar. So, open up your sidebar.php and copy one of the entries that make up the block. Here&#8217;s an example from my theme:</p>
<pre class="brush: php;">&lt;h3&gt;Categories&lt;/h3&gt;
&lt;ul&gt;
&lt;?php wp_list_categories('title_li='); ?&gt;
&lt;/ul&gt;</pre>
<p>Yours will probably be a bit different, but you get the idea. Then, using that, simply modify it a bit in order to display the calendar.</p>
<pre class="brush: php;">&lt;h3&gt;Calendar&lt;/h3&gt;
&lt;ul&gt;
&lt;?php require(&quot;calendar/calendar.php&quot;); ?&gt;
&lt;/ul&gt;</pre>
<p>This concludes this first part of the tutorial. We&#8217;ll keep coming back to this one as it will be the basis to many modifications.</p>
<p><em>In case you missed the other posts in this series, please go to:</p>
<ul>
<li><a href="http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-2/">How to integrate the calendar in WordPress (Part 2) &#8211; Integrating the TOC in a page</a></li>
<li><a href="http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-3/"><em>How to integrate the calendar in WordPress (Part 3) &#8211; Redirecting the sidebar calendar to the TOC page</em></a></li>
</ul>
<p></em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-1/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Custom Module: RSS Feed for your events</title>
		<link>http://www.epctutorials.com/modules/custom-module-rss-feed-for-your-events/</link>
		<comments>http://www.epctutorials.com/modules/custom-module-rss-feed-for-your-events/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 16:22:00 +0000</pubDate>
		<dc:creator>ve9gra</dc:creator>
				<category><![CDATA[Modules]]></category>

		<guid isPermaLink="false">http://www.epctutorials.com/?p=75</guid>
		<description><![CDATA[Creating an RSS Feed of the calendar events was always a difficult task. The first solution that came out required a direct connection to the database and wasn&#8217;t able to handle any type of recurrence. The second solution worked slightly better, but wouldn&#8217;t validate and the time format wasn&#8217;t accepted by most feed readers. Some [...]]]></description>
			<content:encoded><![CDATA[<p><img class="float-left size-full wp-image-76" style="border: 0pt none;" title="RSS Feed" src="http://www.epctutorials.com/wp-content/uploads/2008/10/f-unknown2.jpg" alt="" width="116" height="115" />Creating an RSS Feed of the calendar events was always a difficult task. The first solution that came out required a direct connection to the database and wasn&#8217;t able to handle any type of recurrence. The second solution worked slightly better, but wouldn&#8217;t validate and the time format wasn&#8217;t accepted by most feed readers.</p>
<p>Some time last year, I was tasked by a client to create a feed that actually worked. I managed to create something that was simple, yet worked very well. Then I forgot all about it.</p>
<p>This week, I was contacted by another client, as he too was disappointed by what was available for feeds. I dug through my piles of code and found this gem. It was too good to let it go forgotten again, so I decided to expose it to the rest of the world.</p>
<p>It has been created with ease of customization in mind. It will fit for all situations where you need a feed. You can add it as a site feed so that the feed icon shows up in the address bar, or you can provide a feed link for each of your categories, all from a single install. Basically, if you use the List module to display your events, you can provide a feed that will show that exact list to your visitors. Keep your visitors and clients up to date with no effort!</p>
<p>This module follows the regular pricing as previously outlined, and comes with a detailed ReadMe file explaining how to integrate it into your own site. Please contact me before sending any payment so that I can confirm that I have a valid contact email to send the code to.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.epctutorials.com/modules/custom-module-rss-feed-for-your-events/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Adding more content online</title>
		<link>http://www.epctutorials.com/featured/adding-more-content-online/</link>
		<comments>http://www.epctutorials.com/featured/adding-more-content-online/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 12:30:17 +0000</pubDate>
		<dc:creator>ve9gra</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.epctutorials.com/?p=83</guid>
		<description><![CDATA[In an effort to provide more information to my [potential] clients, I will be making available online much more content. Instead of relying on the forum to expose my plugins and modules, they will each get a post here explaining their function and how to implement them. There will also be some free content posted [...]]]></description>
			<content:encoded><![CDATA[<p>In an effort to provide more information to my [potential] clients, I will be making available online much more content. Instead of relying on the forum to expose my plugins and modules, they will each get a post here explaining their function and how to implement them. There will also be some free content posted for recurring topics that appear on the forums, or one-of&#8217;s solutions that just might be helpful to you.</p>
<p>Each post will include the plugin/module&#8217;s price which should make it easier for you to decide if you want to implement it on your website. The general formula that will be applied for pricing will be $15 for plugins, $25 for modules, and $40 with the code-and-tweak packages. &#8220;Code-and-Tweak&#8221; is the plugin/module that you want, along with one hour of coding that you can use towards installation, or tweaking to ensure perfect integration on your website. Essentially, you are getting the plugin/module for free as my regular rate is $40/h. As always, it is recommended that you contact me first before sending payment, so that I can confirm that I am sending the correct package to the correct client.</p>
<p>You can expect the first one to be posted very shortly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.epctutorials.com/featured/adding-more-content-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Give me some ideas</title>
		<link>http://www.epctutorials.com/featured/give-me-some-ideas/</link>
		<comments>http://www.epctutorials.com/featured/give-me-some-ideas/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 13:51:09 +0000</pubDate>
		<dc:creator>ve9gra</dc:creator>
				<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.epctutorials.com/?p=73</guid>
		<description><![CDATA[I would like to invite you to send me some ideas for upcoming tutorials. I haven&#8217;t exactly run out of ideas, but if I get requests from clients, I could provide you with relevant content faster. Please use either the comment function under this post, or use the Contact me form if you don&#8217;t want [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to invite you to send me some ideas for upcoming tutorials. I haven&#8217;t exactly run out of ideas, but if I get requests from clients, I could provide you with relevant content faster.</p>
<p>Please use either the comment function under this post, or use the <a href="http://www.epctutorials.com/contact/">Contact me</a> form if you don&#8217;t want your comments to be visible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.epctutorials.com/featured/give-me-some-ideas/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Create your own navigation table</title>
		<link>http://www.epctutorials.com/tutorials/create-your-own-navigation-table/</link>
		<comments>http://www.epctutorials.com/tutorials/create-your-own-navigation-table/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 00:55:39 +0000</pubDate>
		<dc:creator>ve9gra</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Integration]]></category>

		<guid isPermaLink="false">http://www.epctutorials.com/?p=58</guid>
		<description><![CDATA[This is one of the recurring topics on the forum: &#8220;How do I modify/move the navigation table&#8221;. The answer is almost always either a reference to another post, or bits of code strewn about a few posts. This will become the reference on how to create your own navigation table with the whole code explained [...]]]></description>
			<content:encoded><![CDATA[<p>This is one of the recurring topics on the forum: &#8220;How do I modify/move the navigation table&#8221;. The answer is almost always either a reference to another post, or bits of code strewn about a few posts. This will become the reference on how to create your own navigation table with the whole code explained and in one spot. It will cover situations like these, and more :</p>
<ul>
<li>Putting the table above the calendar, instead of below</li>
<li>Adding navigation to the List mode (when not using another mode)</li>
<li>Changing the number of months jumped when using the Multi-Calendar Generator</li>
</ul>
<p><span id="more-58"></span><br />
If you are using either the regular mode, or the Multi-Calendar Generator plugin, you see that you already have a navigation table. So the first thing we want to do is stop that one from showing up. You have two options for disabling it.</p>
<p>The first one is through the Setup Manager, under the Navigation section. Simply set the &#8220;Show Navigation Table:&#8221; to &#8220;No&#8221;. The downside to this way is that it disables the navigation table everywhere. This is not viable if you have calendars on other pages. We need a more flexible option.</p>
<p>The answer to that one is to use one of the command line variables. The aptly named &#8220;$noNav&#8221;. Simply add that variable above the require() that shows the calendar (or multi-calendar). If you have other calendars on the rest of the page where you want the navigation table to show up, use unset() to destroy the variable $noNav. Here&#8217;s the code that shows how it would look.</p>
<pre class="brush: php;">$noNav=1;
require(&quot;calendar.php&quot;);
// You can remove the following line if you have no other calendars on your page
unset($noNav);</pre>
<p>So now, we&#8217;ve disabled the table we didn&#8217;t want, here&#8217;s how we add our own. First, we&#8217;ll need to initialize some variables. What the code does is checks if the $mo and $yr variables had been set already, and then assigns the values for the &#8216;back&#8217; and &#8216;forward&#8217; arrows.</p>
<p>Most people using the Multi-Calendar Generator plugin that want to modify the navigation, want to move month by month, but should you want to tweak how many months before and after you jump to, change the value on the lines as indicated.</p>
<p>The last bit of the code is there to handle if you are passing other arguments in your URL</p>
<pre class="brush: php;">&lt;?php
// check for $mo and $yr from the URL
(!isset($_REQUEST['mo'])?$mo=date('m'):$mo=$_REQUEST['mo']);
(!isset($_REQUEST['yr'])?$yr=date('Y'):$yr=$_REQUEST['yr']);

// setting the variables for the table
$yb=$yr;
$yf=$yr;
$mb=$mo-1; // &lt;-- change this one for month before, don't exceed 12
if ($mb&lt;1) {$mb+=12; $yb=$yr-1;}
$mf=$mo+1; // &lt;-- change this one for month after, don't exceed 12
if ($mf&gt;12) {$mf-=12; $yf=$yr+1;}

$cmo = date(&quot;m&quot;);
$cyr = date(&quot;Y&quot;);

// check to make sure not to wipe other arguments
$returnString = &quot;&quot;;
if ($_SERVER['QUERY_STRING']) {
$queryString = explode(&quot;&amp;&quot;,$_SERVER['QUERY_STRING']);
for ($i=0;$i&lt;count($queryString);$i++) {
$v = explode(&quot;=&quot;,$queryString[$i]);
if (($v[0] != &quot;mo&quot;) &amp;&amp; ($v[0] != &quot;yr&quot;)) {
$returnString .= (($returnString==&quot;&quot;) ? ($queryString[$i]) : (&quot;&amp;amp;&quot;.$queryString[$i])); }
}
}
?&gt;</pre>
<p>This next section can be put directly after the section we just passed, or can be separated if you want to keep your code clean. This is what actually creates the table. It takes all the values that were set before it and generates your navigation table.</p>
<pre class="brush: xml;">&lt;table class=&quot;navTable&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;
&lt;tr&gt;
&lt;td align=&quot;left&quot; width=&quot;33%&quot;&gt;&lt;a href=&quot;&lt;?php echo &quot;$thisFile?&quot;.$returnString.($returnString==&quot;&quot;?&quot;&quot;:&quot;&amp;amp;&quot;).&quot;mo=$mb&amp;amp;yr=$yb$anchorTag&quot;.$returnString2; ?&gt;&quot; class=&quot;navTableText&quot;&gt;&lt;?php echo $navLeft; ?&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td align=&quot;center&quot; width=&quot;34%&quot;&gt;&lt;a href=&quot;&lt;?php echo &quot;$thisFile?&quot;.$returnString.($returnString==&quot;&quot;?&quot;&quot;:&quot;&amp;amp;&quot;).&quot;mo=$cmo&amp;amp;yr=$cyr$anchorTag&quot;.$returnString2; ?&gt;&quot; class=&quot;navTableText&quot;&gt;&lt;?php echo $navMiddle ?&gt;&lt;/a&gt;&lt;/td&gt;
&lt;td align=&quot;right&quot; width=&quot;33%&quot;&gt;&lt;a href=&quot;&lt;?php echo &quot;$thisFile?&quot;.$returnString.($returnString==&quot;&quot;?&quot;&quot;:&quot;&amp;amp;&quot;).&quot;mo=$mf&amp;amp;yr=$yf$anchorTag&quot;.$returnString2; ?&gt;&quot; class=&quot;navTableText&quot;&gt;&lt;?php echo $navRight; ?&gt;&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</pre>
<p>I think everything has been covered. Should you find anything that doesn&#8217;t work as expected, please either leave a comment, contact me using the link at the top, or post in the forums.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.epctutorials.com/tutorials/create-your-own-navigation-table/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Welcome to the new design</title>
		<link>http://www.epctutorials.com/featured/welcome-to-the-new-design/</link>
		<comments>http://www.epctutorials.com/featured/welcome-to-the-new-design/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 21:27:27 +0000</pubDate>
		<dc:creator>ve9gra</dc:creator>
				<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.epctutorials.com/?p=51</guid>
		<description><![CDATA[After close to two years with no change &#8211; and a very cluttered layout &#8211; it was time to clean house. Let&#8217;s call it &#8220;spring cleaning&#8221; for the website. I moved the platform from Joomla to WordPress. With this change, which makes posting content so much more efficient, I am hoping to be able to [...]]]></description>
			<content:encoded><![CDATA[<p>After close to two years with no change &#8211; and a very cluttered layout &#8211; it was time to clean house. Let&#8217;s call it &#8220;spring cleaning&#8221; for the website. I moved the platform from Joomla to WordPress. With this change, which makes posting content so much more efficient, I am hoping to be able to post more often and grow the site.</p>
<p>As always, you are welcome to contact me using the <strong><a href="/contact/">Contact Me</a></strong> form, but now you have the option of posting comments too! So, please provide feedback on the new layout, or what new tutorial you would like to see.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.epctutorials.com/featured/welcome-to-the-new-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PayPal donations now available</title>
		<link>http://www.epctutorials.com/featured/paypal-donations-now-available/</link>
		<comments>http://www.epctutorials.com/featured/paypal-donations-now-available/#comments</comments>
		<pubDate>Sat, 15 Sep 2007 20:10:02 +0000</pubDate>
		<dc:creator>ve9gra</dc:creator>
				<category><![CDATA[Featured]]></category>

		<guid isPermaLink="false">http://www.epctutorials.com/?p=46</guid>
		<description><![CDATA[In order to give a way for clients to be able to support further developments, I have added a PayPal donations button. Previously, a contact had to be established first, and information exchanged before a PayPal transaction could be completed. With the amount of tweaks and projects that are being worked on, that is no [...]]]></description>
			<content:encoded><![CDATA[<p>In order to give a way for clients to be able to support further developments, I have added a PayPal donations button. Previously, a contact had to be established first, and information exchanged before a PayPal transaction could be completed. <span id="more-46"></span></p>
<p>With the amount of tweaks and projects that are being worked on, that is no longer a viable process. Using the PayPal donations button should enable much faster and easier processing of donations.</p>
<p>Funds received will be put towards time spent on developing solutions that will be beneficial to the EasyPHPCalendar community. For example, I am currently working on a proper RSS feed as well as a database backup/export/import utility. People that will contribute funds for the various projects will receive an equivalent rebate on the purchase price of the solution once it is released.</p>
<p>Shortly, I will be posting more details about both these projects as well as other various little things I am working on.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.epctutorials.com/featured/paypal-donations-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple Calendars in Blog mode</title>
		<link>http://www.epctutorials.com/tutorials/multiple-calendars-in-blog-mode/</link>
		<comments>http://www.epctutorials.com/tutorials/multiple-calendars-in-blog-mode/#comments</comments>
		<pubDate>Fri, 22 Dec 2006 00:33:14 +0000</pubDate>
		<dc:creator>ve9gra</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Integration]]></category>

		<guid isPermaLink="false">http://www.epctutorials.com/?p=5</guid>
		<description><![CDATA[Have you ever wanted to display more than one little calendar in blog mode? Follow along as we make very few modifications to enable such a functionality. So you&#8217;ve been using the blog mode and you realize that most of your visitors want to see upcoming events. Would it be useful to them to display [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to display more than one little calendar in blog mode? Follow along as we make very few modifications to enable such a functionality.</p>
<p>So you&#8217;ve been using the blog mode and you realize that most of your visitors want to see upcoming events. Would it be useful to them to display the next month calendar so they could pick the day right from there?</p>
<p>I&#8217;m sure you could find other uses for this functionality, but here&#8217;s how you enable it. <span id="more-5"></span></p>
<p>First, you have to modify your /calendar/calendar.php file. As of the current version (v6.2.23) insert the following around line 126.</p>
<pre class="brush: php;">if ($MULTIBLOG==1) { $EPCBLOG=1; }</pre>
<p>After the modification, the section should look like this</p>
<pre class="brush: php;">// SHOW MULTIPLE CALENDARS
if ($MULTI==1) {
if (!file_exists($serverPath.&quot;config.inc.php&quot;)) die (&quot;&lt;font color=red&gt;Server Path Error.&lt;/font&gt;&lt;br /&gt;Please run the Setup Manager to correct this problem.&lt;br /&gt;&lt;br /&gt;&quot;);
if ($license==&quot;&quot; || !isset($license) || !isset($gmt) || $gmt==&quot;&quot;) {require ($serverPath.&quot;config.inc.php&quot;);}
if ($MULTIBLOG==1) { $EPCBLOG=1; }
require($serverPath.&quot;plugins/multiShow.php&quot;);
$MULTIX=1;
}</pre>
<p>Lastly, in the same file, you&#8217;ll want to add $MULTIBLOG to the unset on the last line.</p>
<pre class="brush: php;">unset ($CSS,$PCSS,$OL,$LIST,$TOC,$MULTI,$MULTIX,$MULTIBLOG);</pre>
<p>The modifications are now complete. We&#8217;ll move on to the implementation or how we&#8217;ll end up using those modifications.</p>
<p>Instead of using the $EPCBLOG=1; section as usual, we&#8217;ll combine the $MULTI command and our modifications. You can modify the output by using the same variables that the <a href="http://docs.easyphpcalendar.com/source/Plugins/MultiCalendarGenerator.htm">multi-calendar generator</a> uses. So here&#8217;s our example of a way to do it.</p>
<pre class="brush: php;">$MULTI=1;$MULTIBLOG=1;
$epcMultiWidth = &quot;205px&quot;;
$epcMultiPad = 10;
$epcMultiNav = &quot;200px&quot;;
$epcMultiCol = 1;
$epcMultiRow = 2;
require(&quot;calendar.php&quot;);</pre>
<p>Note that this doesn&#8217;t change anything as far as the listing part of the blog mode works. You still have to have the <a href="http://docs.easyphpcalendar.com/source/Integration/BlogMode.htm">$EPCBLOG=2; section</a> for the Blog mode to work properly.</p>
<p>Later on, I will post a link to a working example and some screenshots.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.epctutorials.com/tutorials/multiple-calendars-in-blog-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

