<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<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/"
	>

<channel>
	<title>Playing with WordPress</title>
	<link>http://www.transycan.net/blogtest</link>
	<description>Themes, design, testing and tips</description>
	<pubDate>Wed, 07 May 2008 19:39:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Cannot update to 2.5</title>
		<link>http://www.transycan.net/blogtest/2008/04/07/cannot-update-to-25/</link>
		<comments>http://www.transycan.net/blogtest/2008/04/07/cannot-update-to-25/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 05:10:05 +0000</pubDate>
		<dc:creator>mover</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.transycan.net/blogtest/2008/04/07/cannot-update-to-25/</guid>
		<description><![CDATA[One of the most important plugins on this blog is helping to post code snippets in the various tutorials I publish.
Unfortunately, it doesn&#8217;t work with the latest WordPress 2.5 version. Since Matt was one of the developers of the plugin&#8230; we can just hope that soon there will be an updated version of the syntaxhighlighter [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most important plugins on this blog is helping to post code snippets in the various tutorials I publish.<br />
Unfortunately, it doesn&#8217;t work with the latest WordPress 2.5 version. Since Matt was one of the developers of the plugin&#8230; we can just hope that soon there will be an updated version of the <a href="http://wordpress.org/extend/plugins/syntaxhighlighter/">syntaxhighlighter</a> plugin.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transycan.net/blogtest/2008/04/07/cannot-update-to-25/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WordPress 2.5 is coming&#8230;</title>
		<link>http://www.transycan.net/blogtest/2008/03/26/wordpress-25-is-coming/</link>
		<comments>http://www.transycan.net/blogtest/2008/03/26/wordpress-25-is-coming/#comments</comments>
		<pubDate>Wed, 26 Mar 2008 14:44:55 +0000</pubDate>
		<dc:creator>mover</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[2.5]]></category>

		<category><![CDATA[gallery]]></category>

		<category><![CDATA[new dashboard]]></category>

		<category><![CDATA[new features]]></category>

		<guid isPermaLink="false">http://www.transycan.net/blogtest/2008/03/26/wordpress-25-is-coming/</guid>
		<description><![CDATA[Everybody is talking about the coming WP 2.5 (version 2.4 is skipped). A few weeks ago I started to take a closer look at the nightly builds.
The biggest change (at least on the surface) happened in the admin panel which has been completely reorganized. At the time of the transition from 1.5 to 2.x the [...]]]></description>
			<content:encoded><![CDATA[<p>Everybody is talking about the coming WP 2.5 (version 2.4 is skipped). A few weeks ago I started to take a closer look at the nightly builds.</p>
<p>The biggest change (at least on the surface) happened in the admin panel which has been completely reorganized. At the time of the transition from 1.5 to 2.x the basic layout of the dashboard and admin panels didn&#8217;t change radically; it was more about getting colours and some &#8220;ajaxification&#8221;.</p>
<p>This time the changes are big. And I don&#8217;t refer to the colours (which you can restore anyway, if the dark blue makes you happier!). It is about the organizing principle behind it and how it translates into buttons, panels and subpanels. I don&#8217;t understand why some users are complaining about it. It is cleaner, more logical and easy to use. Yes, you will have to spend a few minutes to learn the new layout and/or the name of the new buttons (new name of some buttons?) - but it&#8217;s worth.</p>
<p>Just minutes ago I checked the SVN and the current version WP 2.5-RC2 (release candidate 2). Which means we are getting closer and closer to the final. And Matt just posted a <a href="http://wordpress.org/development/2008/03/wordpress-25-rc2/">screencast</a> about some new features in the WP dev blog.<br />
 <a href="http://www.transycan.net/blogtest/2008/03/26/wordpress-25-is-coming/#more-172" class="more-link">(more&#8230;)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.transycan.net/blogtest/2008/03/26/wordpress-25-is-coming/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Site not working properly</title>
		<link>http://www.transycan.net/blogtest/2008/03/12/site-not-working-properly/</link>
		<comments>http://www.transycan.net/blogtest/2008/03/12/site-not-working-properly/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 16:37:50 +0000</pubDate>
		<dc:creator>mover</dc:creator>
		
		<category><![CDATA[Blog stuff]]></category>

		<guid isPermaLink="false">http://www.transycan.net/blogtest/2008/03/12/site-not-working-properly/</guid>
		<description><![CDATA[Since last night suddenly the ig-syntax-hilite plugin stopped working properly on this blog. If activated a lot of pages (in the wp-admin and on the frontend as well) go blank&#8230;
I don&#8217;t have the time right now to troubleshoot, so I had to disable it, which means the tutorials showing code snippets will not work. The [...]]]></description>
			<content:encoded><![CDATA[<p>Since last night suddenly the ig-syntax-hilite plugin stopped working properly on this blog. If activated a lot of pages (in the wp-admin and on the frontend as well) go blank&#8230;</p>
<p>I don&#8217;t have the time right now to troubleshoot, so I had to disable it, which means the tutorials showing code snippets will not work. The description is still there but the code is unreadable.</p>
<p>Sorry for the inconvenience &#8212; I&#8217;ll try to fix it later tonight or tomorrow.</p>
<p><strong>UPDATE.</strong><br />
I managed to replace the plugin with <a href="http://wordpress.org/extend/plugins/syntaxhighlighter/">another one</a>, and with a quick <a href="http://wordpress.org/extend/plugins/search-and-replace/">Search and Replace</a> changed the &#8220;wrapping&#8221; around the code portionsincluded in posts. It should work now. Please, let me know if you find posts containing code that don&#8217;t work.</p>
<p>Thank you for your patience!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transycan.net/blogtest/2008/03/12/site-not-working-properly/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Do I need a comment policy?</title>
		<link>http://www.transycan.net/blogtest/2008/02/15/do-i-need-a-comment-policy/</link>
		<comments>http://www.transycan.net/blogtest/2008/02/15/do-i-need-a-comment-policy/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 03:25:51 +0000</pubDate>
		<dc:creator>mover</dc:creator>
		
		<category><![CDATA[Blog stuff]]></category>

		<category><![CDATA[comments]]></category>

		<category><![CDATA[common sense]]></category>

		<category><![CDATA[policy]]></category>

		<guid isPermaLink="false">http://www.transycan.net/blogtest/2008/02/15/do-i-need-a-comment-policy/</guid>
		<description><![CDATA[As you can see this is not a big site. I don&#8217;t post regularly (unfortunate but true&#8230;). My visitors mainly ask additional questions regarding my tutorials, eventually, request more help. Till recently I have never had any bad, offensive comment made intentionally. Of course, there alwasy is the normal level of spam comments and trackbacks, [...]]]></description>
			<content:encoded><![CDATA[<p>As you can see this is not a big site. I don&#8217;t post regularly (unfortunate but true&#8230;). My visitors mainly ask additional questions regarding my tutorials, eventually, request more help. Till recently I have never had any bad, offensive comment made intentionally. Of course, there alwasy is the normal level of spam comments and trackbacks, but thanks to the nice folks who author anti-spam plugins, that is taken care of automatically.</p>
<p>Now, a few days ago I was forced to think whether I need a &#8220;commenting policy&#8221; or not.</p>
<p>As many of my readers know I was born and lived for a long time in a place where the freedom of speech was just a distant dream. You could end up in jail not only for trying to speak up, but even just telling a good (political) joke to the wrong person. With such a background it might be understandable that I don&#8217;t feel like censoring people&#8217;s comments. So, when I started this blog &#8212; and many others &#8212; I thought the common sense sould be enough for &#8220;policy&#8221;. I am offering here free tutorials and tips for using WordPress, and I don&#8217;t debate and discuss controversial political issues that might incite high passions. I was sure I don&#8217;t need any rules for the commenters.</p>
<p>Unfortunately, a distinguished professor of mine was right telling me that the <em>common sense</em> is the least common.</p>
<p>If somebody comes here from another site (following a link) just to post comments that contain personal attacks and offensive remarks, my tolerance suddenly starts shrinking. Really, do I have to tolerate comments that are not related to the topic of the post, just giving me lectures or offending me? Should I let them appear in the name of the free speech&#8230; on my own site?<br />
Well, I won&#8217;t. Period. I don&#8217;t want to fight and argue with anybody. And, definitely, I will not argue with idiots.</p>
<p>P.S. To all the WP users that come here to find some ideas or help: please, don&#8217;t hesitate for a moment and do comment, ask questions, give suggestions! The rant above is not about you&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transycan.net/blogtest/2008/02/15/do-i-need-a-comment-policy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The famous 5 minutes trap of WordPress</title>
		<link>http://www.transycan.net/blogtest/2008/02/06/the-famous-5-minutes-trap-of-wordpress/</link>
		<comments>http://www.transycan.net/blogtest/2008/02/06/the-famous-5-minutes-trap-of-wordpress/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 17:50:29 +0000</pubDate>
		<dc:creator>mover</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[5 minutes]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[design]]></category>

		<category><![CDATA[installation]]></category>

		<category><![CDATA[trap]]></category>

		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.transycan.net/blogtest/2008/02/06/the-famous-5-minutes-trap-of-wordpress/</guid>
		<description><![CDATA[Hey, you, the newest WordPress user! Did you also fall in the 5 minutes trap and now desperately seeking help?
The famous 5 minutes install has almost become the trademark of WordPress. Actually, despite the many failed installations, it is true! If you are not doing anything stupid, WP can be installed in five minutes or [...]]]></description>
			<content:encoded><![CDATA[<p>Hey, you, the newest WordPress user! Did you also fall in the 5 minutes trap and now desperately seeking help?</p>
<p>The <a href="http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install">famous 5 minutes install</a> has almost become the trademark of WordPress. Actually, despite the many failed installations, it is true! If you are not doing anything stupid, WP can be installed in five minutes or less. The longest &#8220;action&#8221; is waiting until the files upload using a FTP client.</p>
<p>And with this - all the five minutes things are over. Forever. And the user should be warned about it. And this is missing from the sales &#8220;pitch&#8221;.</p>
<p>Unfortunately, this very easy installation process creates very bad, false expectations. That&#8217;s what I call the &#8220;5 minutes trap&#8221;. It is a <strong>trap</strong> because the unsuspecting new user thinks that everything should (or would) be such an easy five minutes job. Most often s/he wants the theme customization to be an &#8220;easy, simple&#8221; one-click thing. Something that can be done in &#8220;five minutes&#8221;. After learning that modifying a theme usually requires a lot of learning (XHTML and CSS basics, at least) &#8212; there goes the big disappointment. Nobody wants to hear that the best theme designers out there have spent years learning their profession.</p>
<p>The reality about a WordPress blog is this: it is easy to install and it is equally easy to get a free downloadable theme to change the default &#8220;blue&#8221; look if it. However, if you don&#8217;t know anything about HTML and/or CSS - stop even thinking about doing anything else besides blogging. Go and write and post your articles and be thankful for the script and for the theme that you got for free.</p>
<p>Do not expect that you can learn to customize a theme in 5 minutes. Not even in 5 hours. I don&#8217;t want to discourage you from learning how to manage and customize your website. Just don&#8217;t expect any five-minutes-solutions. Being the webmaster (and occasional designer) of your own website&#8230; has nothing in common with instant gratification. </p>
<p>If you don&#8217;t believe me, just ask around how long did it take for your favourite web/theme designer to get to the level of knowledge where they are now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transycan.net/blogtest/2008/02/06/the-famous-5-minutes-trap-of-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New theme and upgrade</title>
		<link>http://www.transycan.net/blogtest/2008/02/05/new-theme-and-upgrade/</link>
		<comments>http://www.transycan.net/blogtest/2008/02/05/new-theme-and-upgrade/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 20:58:35 +0000</pubDate>
		<dc:creator>mover</dc:creator>
		
		<category><![CDATA[Blog stuff]]></category>

		<category><![CDATA[new]]></category>

		<category><![CDATA[plugins]]></category>

		<category><![CDATA[theme]]></category>

		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.transycan.net/blogtest/2008/02/05/new-theme-and-upgrade/</guid>
		<description><![CDATA[I had to upgrade this blog anyway - so I decided to create a new theme for it. Till recently this blog was running on the 2.0.x &#8220;legacy&#8221; branch of WordPress but I wanted to use some of the new features of the other branch. While I was working on updating the deprecated template tags [...]]]></description>
			<content:encoded><![CDATA[<p>I had to upgrade this blog anyway - so I decided to create a new theme for it. Till recently this blog was running on the 2.0.x &#8220;legacy&#8221; branch of WordPress but I wanted to use some of the new features of the other branch. While I was working on updating the deprecated template tags in my old theme, I figured I could even make a fresh theme. So, here it is: the blue-and-green&#8230;</p>
<p>Now that I went with this latest version, I had the opportunity to check out a lot of new plugins; some of them even made it into the final version of this updated playground. E.g. Meta tags, Clean Archives Reloaded, Feature me, Syntax Highliter, SEO Title tag, Latest posts from the same category etc. (One day I should make a Page where I give credit to all the plugin authors whose code is used on this site - added to the TODO list.)</p>
<p>The biggest challenge ahead will be adding tags to all the older posts. Before that I&#8217;ll need a plugin that will stop WP from <strong>pinging</strong> the update services just because I edit the posts. There is one&#8230; you just have to register to get it, and I hate doing that.</p>
<p>I am especially curious how the different plugins/scripts that show either posts recommended by myself or posts related by category (when visiting a single post) will help the new visitors to find cool older tutorials which sometimes get buried in the archives.</p>
<p>As always: nothing is completely done, it is a permanent &#8220;work in progress&#8221;, so let me know if you notice any bug or malfunction.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transycan.net/blogtest/2008/02/05/new-theme-and-upgrade/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A successful upgrade</title>
		<link>http://www.transycan.net/blogtest/2007/12/11/a-successful-upgrade/</link>
		<comments>http://www.transycan.net/blogtest/2007/12/11/a-successful-upgrade/#comments</comments>
		<pubDate>Tue, 11 Dec 2007 16:36:06 +0000</pubDate>
		<dc:creator>Moshu</dc:creator>
		
		<category><![CDATA[Blog stuff]]></category>

		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.transycan.net/blogtest/2007/12/11/a-successful-upgrade/</guid>
		<description><![CDATA[Last night I did an upgrade for an old client of mine. I have to praise the WordPress developers: the whole process went on very smoothly and almost without a glitch.
I know, doing an upgrade shouldn&#8217;t be something worth to mention but in this case even I was a little bit worried&#8230; The blog has [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I did an upgrade for an old client of mine. I have to praise the WordPress developers: the whole process went on very smoothly and almost without a glitch.<br />
I know, doing an upgrade shouldn&#8217;t be something worth to mention but in this case even I was a little bit worried&#8230; The blog has over 15,000 posts and more than 100 categories (link and post categories together). The old blog was a pre-2.1. version so it had the good old classic post-categories and link-categories in separate tables, which now were brought &#8220;under the same roof&#8221;.</p>
<p>The only hickup happened when the upgrade script notified that there were two (old) link categories with the same name, and during the upgrade one of them was lost. Other than that - everything seems to be working well.</p>
<p>Seeing so many desperate posts in the forum about failed upgrades I almost began to think there must be something wrong in the script. Now, again, I am convinced if you prepare your upgrade as you should (and your host is not one of those weird companies&#8230;) the upgrade should be a walk in the park.</p>
<p>By preparing I mean you do you homework <strong>before</strong> the upgrade: first of all, read the documentation. I did, even though I know it by heart. Then, I installed the old theme on a 2.3.1 test blog and replaced all the deprecated template tags with the new ones. When the theme worked, I copied over all the plugins from the existing installation and checked if they work with WP 2.3.1. Some of them did, others had to be replaced. So, I searched the plugins repository and the net until I found new, compatible plugins with the same or similar functions. I tested them on my test installation with the updated theme. And only when I was sure that after the WP upgrade I can quickly replace the plugins to re-instate the familiar functions&#8230; only then did I proceed.</p>
<p>Yes, it meant some plus work and time spent before the upgrade itself. But if you are a responsible webmaster this is the minimum you should do for your blog. I prefer the additional work vs. running to the forum to post &#8220;OMG, I upgraded and my blog died&#8230;&#8221;<br />
How about you?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transycan.net/blogtest/2007/12/11/a-successful-upgrade/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My posts are stolen</title>
		<link>http://www.transycan.net/blogtest/2007/11/23/my-posts-are-stolen/</link>
		<comments>http://www.transycan.net/blogtest/2007/11/23/my-posts-are-stolen/#comments</comments>
		<pubDate>Sat, 24 Nov 2007 04:44:42 +0000</pubDate>
		<dc:creator>Moshu</dc:creator>
		
		<category><![CDATA[Blog stuff]]></category>

		<guid isPermaLink="false">http://www.transycan.net/blogtest/2007/11/23/my-posts-are-stolen/</guid>
		<description><![CDATA[I just published my previous posts earlier, and after doing it I went to check my mail. Suddenly in my inbox there were three fresh messages - all telling me about new Pingbacks on my new post (Two level menus Part 2).
The post was so fresh that barely anybody could write anything about it to [...]]]></description>
			<content:encoded><![CDATA[<p>I just published my previous posts earlier, and after doing it I went to check my mail. Suddenly in my inbox there were three fresh messages - all telling me about new Pingbacks on my new post (Two level menus Part 2).</p>
<p>The post was so fresh that barely anybody could write anything about it to get a pingback. So I went to visit the ping-senders. Actually, they are feed-stealers, or simply <strong>thiefs</strong>. From the dictionary: THIEF = <em>a criminal who takes property belonging to someone else with the intention of keeping it or selling it</em>. That&#8217;s what they do, exactly.<br />
Here is the list of these sites:<br />
1. http://www.jogos-pc.info/?p=14515<br />
2. http://www.music-mp3-albums.info/?p=13764<br />
3. http://www.jogos-wii-ps3.info/?p=4986</p>
<p>Now I will take a look at their hosts and see if I can get them banned for Copyright infringement&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transycan.net/blogtest/2007/11/23/my-posts-are-stolen/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Creating a two level menu with Pages - part 2</title>
		<link>http://www.transycan.net/blogtest/2007/11/23/creating-a-two-level-menu-with-pages-part-2/</link>
		<comments>http://www.transycan.net/blogtest/2007/11/23/creating-a-two-level-menu-with-pages-part-2/#comments</comments>
		<pubDate>Sat, 24 Nov 2007 01:53:34 +0000</pubDate>
		<dc:creator>Moshu</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[menu]]></category>

		<category><![CDATA[Pages]]></category>

		<category><![CDATA[two level]]></category>

		<guid isPermaLink="false">http://www.transycan.net/blogtest/2007/11/23/creating-a-two-level-menu-with-pages-part-2/</guid>
		<description><![CDATA[A while back I promised to write the second part of the Two level menus article. Today Susan reminded me about it, so here we go: Part 2 - styling and highlighting the two level menu.
In the examples I will refer to the same demo installation as I did in Part 1. (You can right [...]]]></description>
			<content:encoded><![CDATA[<p>A while back <a href="http://www.transycan.net/blogtest/2007/07/25/creating-a-two-level-menu-with-pages-part-1/">I promised</a> to write the second part of the Two level menus article. Today Susan <a href="http://www.transycan.net/blogtest/2007/07/25/creating-a-two-level-menu-with-pages-part-1/#comment-13328">reminded</a> me about it, so here we go: <strong>Part 2 - styling and highlighting the two level menu</strong>.</p>
<p>In the examples I will refer to the same <a href="http://www.transycan.net/demo">demo installation</a> as I did in Part 1. (You can right click the link and open it in another tab to be able to follow the explanation.</p>
<p>You remember, we created a top horizontal menu using the Fold Page plugin and using this code:</p>
<pre name="code" class="php">
&lt;?php wswwpx_fold_page_list ('depth=1&amp;sort_column=menu_order&amp;title_li='); ?&gt;
</pre>
<p>Eventually, on the Demo site I modified this to include a &#8220;Home&#8221; link and to have one of the categories also included (as explained in another post about <a href="http://www.transycan.net/blogtest/2007/07/26/pages-and-categories/">Pages and Categories</a>).<br />
This is the modified code used on the demo:</p>
<pre name="code" class="php">
&lt;ul&gt;
&lt;li id=&quot;one&quot;&gt;&lt;a href=&quot;&lt;?php bloginfo('home'); ?&gt;&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;?php wswwpx_fold_page_list ('depth=1&amp;sort_column=menu_order&amp;title_li='); ?&gt;
&lt;li id=&quot;five&quot;&gt;&lt;a href=&quot;&lt;?php bloginfo('url'); ?&gt;/?cat=18&quot;&gt;Hidden&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</pre>
<p>You can notice I have added ids to the first and last li items. Let me explain it but before that comes the disclaimer: since I am not a real coder my solution is not perfect and is not really <em>dynamic</em>; more knowledgeable coders, probably, could come up with a more elegant solution. However, it worked for me. The explanation:<br />
I have five items in my horizontal menu: Home, About, Archives, Contact, Hidden. I know it will not change, so I can put this code in the <code>head </code> section of the header file:</p>
<pre name="code" class="php">
&lt;?php
if ( is_home() ) { $current = 'one'; }
elseif ( is_page('2') ) { $current = 'two'; } //id of the About page
elseif ( is_page('6') ) { $current = 'three'; } //id of the Archive page
elseif ( is_page('16') ) { $current = 'four'; } //id of the Contact page
elseif(get_the_title($post-&gt;post_parent) != the_title(' ' , ' ',false)) { $current = 'post_parent'; }
elseif ( is_category('18') ) { $current = 'five'; }//my hidden cat
?&gt;
</pre>
<p>Now we are prepared to style our menu. The code above will set the &#8220;current&#8221; class depending on which page/Page we are on. For the styling we also have to remember that the Fold Page plugin adds a special class to the parent Page when we are on the children Pages. You can check the source code on the demo: when we are on the sub-Pages of About the li item around this parent will get the &#8220;current_page_ancestor&#8221; class (pretty much self-explanatory&#8230;).</p>
<p>Now will add a bit of CSS into our <code>head</code> section:</p>
<pre name="code" class="css">
&lt;style type=&quot;text/css&quot;&gt;
#&lt;?php echo $current; ?&gt; {
background-color: #ff0000;
padding: 0 16px;
}
#nav .current_page_item {
background-color: #6eaae9;
padding: 3px 8px 2px 8px;
}
.current_page_item, .current_page_ancestor {
background-color: #ff0000;
padding: 0 16px;
}
&lt;/style&gt;
</pre>
<p>A few quick notes to this: lines #2-5 set the background colour for the &#8220;current&#8221; page/Page.<br />
Lines #6-9 set the background for the sub-Pages in the sidebar - my sidebar is in a div id=&#8221;nav&#8221;!<br />
And, finally, the last lines will set the colour for the &#8220;ancestor Page (in the case of the Demo - About) and for the current page items in the top menu.<br />
Of course, you can use all your colours and style elements that fit into your theme and make it part of your design.</p>
<p>In case you want to see the whole header.php used in demo - <a href="http://www.transycan.net/abc/demo-header.phps">here is the whole code</a>.</p>
<p>Basically, that&#8217;s all. As I said, it&#8217;s more like a hack than elegant code but it works well with a horizontal menu that is not going to change too much in the future. When I needed a quick fix for a blog with a similar menu system, I found the components for this solution in the <a href="http://codex.wordpress.org/Main_Page">Codex</a> and in the WP support forums&#8230; I just put them together.<br />
If you have suggestions to improve it, to make it more dynamic, feel free to take it and make it better. And if you just need a quick fix - enjoy it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transycan.net/blogtest/2007/11/23/creating-a-two-level-menu-with-pages-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Pictures in posts with CSS Zoom</title>
		<link>http://www.transycan.net/blogtest/2007/11/13/pictures-in-posts-with-css-zoom/</link>
		<comments>http://www.transycan.net/blogtest/2007/11/13/pictures-in-posts-with-css-zoom/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 21:54:08 +0000</pubDate>
		<dc:creator>Moshu</dc:creator>
		
		<category><![CDATA[Blog stuff]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[images]]></category>

		<category><![CDATA[quicktags]]></category>

		<category><![CDATA[scott]]></category>

		<category><![CDATA[zoom]]></category>

		<guid isPermaLink="false">http://www.transycan.net/blogtest/2007/11/13/pictures-in-posts-with-css-zoom/</guid>
		<description><![CDATA[A while ago there was a thread in the WP forum about something called CSS Zoom and how to apply it to WordPress blogs. It works like you can see on my demo blog.
I have to admit I have never heard about the CSS Zoom before and don&#8217;t remember ever visiting that site of a [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago there was a <a href="http://wordpress.org/support/topic/138378?replies=5">thread in the WP forum</a> about something called CSS Zoom and how to apply it to WordPress blogs. It works like you can see on my <a href="http://www.transycan.net/demo/">demo blog</a>.</p>
<p>I have to admit I have never heard about the CSS Zoom before and don&#8217;t remember ever visiting that site of a <a href="http://randsco.com/">fellow Canadian</a>, Scott Kimler. You can go directly to the <a href="http://randsco.com/_miscPgs/cssZoomPZ3.html">description of the technique PZ3</a>  (PhotoZoom v. 3) and you will find there all you need to copy/paste into your style.css. Of course, you can adapt the colours to fit in the colour scheme of your own theme.</p>
<p>You can also just copy and paste the HTML code from the site above into your posts or Pages. Warning: read further only if you don&#8217;t use the wysiwyg/visual editor monster of WP. It is not installed on my blogs and I don&#8217;t know if it works with that terrible thing&#8230;</p>
<p>As you can easily see the HTML code has 3 parts:<br />
- before the image code</p>
<pre name="code" class="html">
&lt;div class=&quot;PZ3zoom PZ3-r Bdr Cap Lnk&quot; style=&quot;width:210px; height:137px;&quot;&gt;&lt;a href=&quot;http://randsco.com/blank.html&quot; onclick=&quot;return false&quot;&gt;
</pre>
<p>In this one you set the size of the thumbs you want to show.</p>
<p>- the image code itself (as img src etc.)<br />
This one you should insert simply using the Upload > Browse > Send to editor routin in your Write subpanel. Note: Use the &#8220;not linked&#8221; and &#8220;using original&#8221; options!</p>
<p>- after the image code</p>
<pre name="code" class="html">
&lt;span class=&quot;PZ31cap&quot; style=&quot;width:479px;&quot;&gt;&lt;span class=&quot;PZ3inr&quot;&gt;&lt;strong&gt;Afternoon Light: &lt;/strong&gt;The same Pioneer Basin view, looking toward 3&lt;sup&gt;rd&lt;/sup&gt; &amp; 4&lt;sup&gt;th&lt;/sup&gt; Recess, later in the day.  &lt;em&gt;&lt;span style=&quot;color:#ccf; background:inherit;&quot;&gt;Photo by Brian Ernst&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
</pre>
<p>In this code snippet the only important part is the 479px in this example taken from Scott&#8217;s code. That should be exactly the width of your picture(s).</p>
<p>This is all fine till now but if you are as lazy to type code as I am&#8230; then you start thinking whether you want this or not. Well, I am lazy and don&#8217;t like to type long code lines, so here is what I did. As I mentioned above I never use the wysiwyg thing, so all I see in my Write panel is Quicktags. And you can always add new quicktags to that JS file. The quicktags.js file is located in your wp-includes/js/ directory.</p>
<p>Open the file and add the following between any two buttons you want to place your PZ3 quicktags:</p>
<pre name="code" class="js">
edButtons[edButtons.length] =
new edButton('ed_pzr'
,'PZ3'
,'&lt;div class=&quot;PZ3zoom PZ3-l Bdr Cap Lnk clearer&quot; style=&quot;width:145px; height:100px&quot;&gt;&lt;a href=&quot;http://www.transycan.net/blog/blank.html&quot; onclick=&quot;return false&quot;&gt;'
,'&lt;span class=&quot;PZ31cap&quot; style=&quot;width:640px;&quot;&gt;&lt;span class=&quot;PZ3inr&quot;&gt;&lt;strong&gt;TITLE&lt;/strong&gt; - DESCRIPTION - &lt;em&gt;&lt;span style=&quot;color:#4d5663; background:inherit;&quot;&gt; (photo &amp;copy;Moshu)&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;'
,'PZ3'
);
</pre>
<p>I have put it at the very beginning of my Quicktags. What it does: on the first click it inserts the HTML code needed <strong>before</strong> the image. Then you go and insert the image code with the &#8220;send to editor&#8221;. (If needed, edit the alt text and such.)<br />
Then click again on your PZ3 quicktag to &#8220;close&#8221; the whole thing. It will add the second part of the code. Done. Write or finish your post.</p>
<p>Some notes about the usage of the quicktag. As you can see my width for images and the caption width is set to 640px. That&#8217;s because it fits in my blog where I am using it and also because for me it is easy to get that size: my camera takes pictures of 1280px and in my image editor I just re-size it to 50%, so all my images will be of the same size. You should set your own width in your quicktag. Next, I remind myself to write a TITLE and a DESCRIPTION to appear in the caption part of the full-size view.</p>
<p>That&#8217;s it, folks. All the <a href="http://randsco.com/index.php/2006/04/10/photo_caption_zoom_version_3">credits for the PhotoZoom code should go to Scott</a>! I just tried to make my life easy using this really light script because I didn&#8217;t like the options offered by WP. I didn&#8217;t want to make the images as attachments (no need for comments); I didn&#8217;t like the thumb linked to the image option either because you have to click back and forth&#8230; and I found all the &#8220;light&#8221; box solutions slow and complicated.</p>
<p>This one works excellent. Check out the <a href="http://www.transycan.net/demo/2007/11/13/pz3-demo/">demo blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.transycan.net/blogtest/2007/11/13/pictures-in-posts-with-css-zoom/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
