<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to Create a Dynamic Menu on a Static Site Using PHP Includes</title>
	<atom:link href="http://www.webologist.co.uk/2008/10/how-to-create-a-dynamic-menu-on-a-static-site-using-server-side-includes-ssi.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.webologist.co.uk/2008/10/how-to-create-a-dynamic-menu-on-a-static-site-using-server-side-includes-ssi.html</link>
	<description>Internet News, Web Design, Development, Hosting and Optimisation</description>
	<lastBuildDate>Thu, 29 Jul 2010 19:39:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=6176</generator>
	<item>
		<title>By: Webologist</title>
		<link>http://www.webologist.co.uk/2008/10/how-to-create-a-dynamic-menu-on-a-static-site-using-server-side-includes-ssi.html/comment-page-1#comment-258</link>
		<dc:creator>Webologist</dc:creator>
		<pubDate>Wed, 05 Nov 2008 01:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.webologist.co.uk/?p=100#comment-258</guid>
		<description>Hi Dhanu,

Please explain what you are looking to do. Do you mean an index page? My php is not good enough unfortunately for me to quickly knock up some code. There are some excellent resources and forums available elsewhere though, try some of these:

&lt;a href=&quot;http://www.webologist.co.uk/webologist-search-engine?cx=010327228820395684095%3Ajnshh8riyyu&amp;cof=FORID%3A11&amp;ie=UTF-8&amp;q=php+scripts&amp;sa=Search#1362&quot; rel=&quot;nofollow&quot;&gt;PHP Scripts&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi Dhanu,</p>
<p>Please explain what you are looking to do. Do you mean an index page? My php is not good enough unfortunately for me to quickly knock up some code. There are some excellent resources and forums available elsewhere though, try some of these:</p>
<p><a href="http://www.webologist.co.uk/webologist-search-engine?cx=010327228820395684095%3Ajnshh8riyyu&#038;cof=FORID%3A11&#038;ie=UTF-8&#038;q=php+scripts&#038;sa=Search#1362" rel="nofollow">PHP Scripts</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhanu</title>
		<link>http://www.webologist.co.uk/2008/10/how-to-create-a-dynamic-menu-on-a-static-site-using-server-side-includes-ssi.html/comment-page-1#comment-254</link>
		<dc:creator>dhanu</dc:creator>
		<pubDate>Tue, 04 Nov 2008 17:38:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.webologist.co.uk/?p=100#comment-254</guid>
		<description>may i know how to create a inbox page using php?</description>
		<content:encoded><![CDATA[<p>may i know how to create a inbox page using php?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Webologist</title>
		<link>http://www.webologist.co.uk/2008/10/how-to-create-a-dynamic-menu-on-a-static-site-using-server-side-includes-ssi.html/comment-page-1#comment-62</link>
		<dc:creator>Webologist</dc:creator>
		<pubDate>Mon, 13 Oct 2008 19:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.webologist.co.uk/?p=100#comment-62</guid>
		<description>Hi NKOTB,

1. Yes, the menu code I posted is abbreviated, I should have made that clearer! Sorry. 
2. the .htaccess requires some code that got lost in the posting of this article - I am adding it now!
3. The includes part are not SSI, I think that I may have confused things there - although they probably could work SSI. Really there are two parts: 
    1. the menu code itself, which should be a file, like menu.inc, which is then called up (this could be SSI)
    2. the php includes within the menu, which call up the class=\”current\” or default to class=\”select\”

Just to be extra helpful, I may zip up all the files required and put them on here for download. That would make life easier. Will do that asap.</description>
		<content:encoded><![CDATA[<p>Hi NKOTB,</p>
<p>1. Yes, the menu code I posted is abbreviated, I should have made that clearer! Sorry.<br />
2. the .htaccess requires some code that got lost in the posting of this article &#8211; I am adding it now!<br />
3. The includes part are not SSI, I think that I may have confused things there &#8211; although they probably could work SSI. Really there are two parts:<br />
    1. the menu code itself, which should be a file, like menu.inc, which is then called up (this could be SSI)<br />
    2. the php includes within the menu, which call up the class=\”current\” or default to class=\”select\”</p>
<p>Just to be extra helpful, I may zip up all the files required and put them on here for download. That would make life easier. Will do that asap.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NKOTB</title>
		<link>http://www.webologist.co.uk/2008/10/how-to-create-a-dynamic-menu-on-a-static-site-using-server-side-includes-ssi.html/comment-page-1#comment-58</link>
		<dc:creator>NKOTB</dc:creator>
		<pubDate>Mon, 13 Oct 2008 15:16:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.webologist.co.uk/?p=100#comment-58</guid>
		<description>Oh yeah..actually, I already have the navigation menu in place and all (I did start out with a free template..changed it around a ton, but I still kept the navigation). The html code for the navigation is rather simple, though:

The html looks something like this:





&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Home&lt;/a&gt; 
...
&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Advice&lt;/a&gt; 

 

 &lt;!-- navigation --&gt;

and the CSS for it looks a little bit like this:



/* Navigation */


#navigation {
...
}

#navigation li {
...
}

#navigation li a {
...
}

#navigation .selected, #navigation a:hover {
...
}



I&#039;m hoping that for my site it would be a bit easier to implement (I dont understand anything in the code above LOL :( ), because I understand that code, and it probably is a bit easier, because all the menu I have on my site, does is highlight the section of the site (not showing subsections as on motleyhealth).

Now that you see the code (or well, most of it: I left out all the color:...  background-color:.... display:block.... text-decoration:none... stuff), would this be easily doable with this menu? Or would it be as complicated as the code you posted above? (at least to me it does look really complicated, still!)


thanks!</description>
		<content:encoded><![CDATA[<p>Oh yeah..actually, I already have the navigation menu in place and all (I did start out with a free template..changed it around a ton, but I still kept the navigation). The html code for the navigation is rather simple, though:</p>
<p>The html looks something like this:</p>
<p><a href="#" rel="nofollow">Home</a><br />
&#8230;<br />
<a href="#" rel="nofollow">Advice</a> </p>
<p> <!-- navigation --></p>
<p>and the CSS for it looks a little bit like this:</p>
<p>/* Navigation */</p>
<p>#navigation {<br />
&#8230;<br />
}</p>
<p>#navigation li {<br />
&#8230;<br />
}</p>
<p>#navigation li a {<br />
&#8230;<br />
}</p>
<p>#navigation .selected, #navigation a:hover {<br />
&#8230;<br />
}</p>
<p>I&#8217;m hoping that for my site it would be a bit easier to implement (I dont understand anything in the code above LOL <img src='http://www.webologist.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  ), because I understand that code, and it probably is a bit easier, because all the menu I have on my site, does is highlight the section of the site (not showing subsections as on motleyhealth).</p>
<p>Now that you see the code (or well, most of it: I left out all the color:&#8230;  background-color:&#8230;. display:block&#8230;. text-decoration:none&#8230; stuff), would this be easily doable with this menu? Or would it be as complicated as the code you posted above? (at least to me it does look really complicated, still!)</p>
<p>thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NKOTB</title>
		<link>http://www.webologist.co.uk/2008/10/how-to-create-a-dynamic-menu-on-a-static-site-using-server-side-includes-ssi.html/comment-page-1#comment-57</link>
		<dc:creator>NKOTB</dc:creator>
		<pubDate>Mon, 13 Oct 2008 15:10:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.webologist.co.uk/?p=100#comment-57</guid>
		<description>Hey Jon,

I&#039;m a bit confused. If I understand it correctly I need to put this somewhere at the top of every page (probably between ):



so the browser understands which site it is.

And then I need a separate file where I put the html-code for my navigation, right?

A few things (or well a lot) are still confusing to me:

1. Did you post only a small part of the code of the menublock (the one where the &quot;home&quot; section is highlighted in the navigation), but in reality need this piece of code for every section in the navigation?

Im wondering this, because I only see this

if ($thisPage==”home”)

but not if ($thisPage==&quot;someothersectionofmotleyhealth&quot;)

?

2) Are there a few hacks for different versions of internet explorer in the code? Are those for the html code of your menu (where I will have some other code - my own html)..or for the php?


3) What did you say about the .htaccess? Does this code belong in the htaccess? Which of it?

4)Are those &quot;php&quot;-includes...not...server side includes? Does it not work with SSI, but just with php includes?

..thanks!</description>
		<content:encoded><![CDATA[<p>Hey Jon,</p>
<p>I&#8217;m a bit confused. If I understand it correctly I need to put this somewhere at the top of every page (probably between ):</p>
<p>so the browser understands which site it is.</p>
<p>And then I need a separate file where I put the html-code for my navigation, right?</p>
<p>A few things (or well a lot) are still confusing to me:</p>
<p>1. Did you post only a small part of the code of the menublock (the one where the &#8220;home&#8221; section is highlighted in the navigation), but in reality need this piece of code for every section in the navigation?</p>
<p>Im wondering this, because I only see this</p>
<p>if ($thisPage==”home”)</p>
<p>but not if ($thisPage==&#8221;someothersectionofmotleyhealth&#8221;)</p>
<p>?</p>
<p>2) Are there a few hacks for different versions of internet explorer in the code? Are those for the html code of your menu (where I will have some other code &#8211; my own html)..or for the php?</p>
<p>3) What did you say about the .htaccess? Does this code belong in the htaccess? Which of it?</p>
<p>4)Are those &#8220;php&#8221;-includes&#8230;not&#8230;server side includes? Does it not work with SSI, but just with php includes?</p>
<p>..thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
