<?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"
	>

<channel>
	<title>Nói nhảm</title>
	<atom:link href="http://www.noinham.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.noinham.info</link>
	<description>Nhảm mà không nhảm</description>
	<pubDate>Sat, 16 Aug 2008 10:24:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Trang web học tiếng Anh</title>
		<link>http://www.noinham.info/hoc-tap/trang-web-hoc-tieng-anh/</link>
		<comments>http://www.noinham.info/hoc-tap/trang-web-hoc-tieng-anh/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 05:03:34 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[Học tập]]></category>

		<guid isPermaLink="false">http://www.noinham.info/?p=150</guid>
		<description><![CDATA[Bạn muốn học giỏi tiếng Anh, hiển  nhiên rồi. Đã có rất nhiều trang web học tiếng Anh mà bạn có thể lựa chọn dưới  đây.
Hầu hết các trang web tập trung vào nhiều kỹ năng tổng hợp. Những trang  web dạy chuyên sâu một kỹ năng đã được chúng tôi chú [...]<p><a href="http://sharethis.com/item?&#038;wp=2.6.1&#38;publisher=1af4b8ad-e3fb-442f-9e11-a6839b05b8f6&#38;title=Trang+web+h%E1%BB%8Dc+ti%E1%BA%BFng+Anh&#38;url=http%3A%2F%2Fwww.noinham.info%2Fhoc-tap%2Ftrang-web-hoc-tieng-anh%2F">ShareThis</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong><span>Bạn muốn học giỏi tiếng Anh, hiển  nhiên rồi. Đã có rất nhiều trang web học tiếng Anh mà bạn có thể lựa chọn dưới  đây.</span></strong><br />
Hầu hết các trang web tập trung vào nhiều kỹ năng tổng hợp. Những trang  web dạy chuyên sâu một kỹ năng đã được chúng tôi chú thích bên cạnh. Đặc biệt,  những website hữu ích này không chỉ đưa bạn đến với &#8220;mớ&#8221; tiếng Anh khô khan kiểu  ngữ pháp, bài tập, từ vựng&#8230; mà còn hấp dẫn với những trò chơi hay bài hát  tiếng Anh, thú vị và hiệu quả cao.</p>
<p>www.1-language.com</p>
<p>www.a4esl.org</p>
<p>http://AD.Walker.org/listening.htm</p>
<p>www.antimoon.com (môn nghe hiểu)</p>
<p>www.askoxford.com</p>
<p>www.better-english.com/exerciselist.html</p>
<p>www.churchillhouse.com/english</p>
<p>www.easyenglish.com</p>
<p>http://elc.polyu.edu.hk/cill/default4.htm</p>
<p>www.english2u.com</p>
<p>www.netsurflearning.com</p>
<p>www.english-at-home.com</p>
<p>www.englishclub.net</p>
<p>www.englishforum.com/00</p>
<p>www.englishlearner.com</p>
<p>www.english-zone.com/index.php</p>
<p>www.esl.about.com</p>
<p>www.eslbee.com (môn viết)</p>
<p>www.esl-lab.com (môn nghe hiểu)</p>
<p>www.eslus.com/eslcenter.htm</p>
<p>www.idiomsite.com</p>
<p>www.iei.uiuc.edu/free.html</p>
<p>www.international.ouc.bc.ca/pronunciation</p>
<p>www.manythings.org</p>
<p>owl.english.purdue.edu (môn viết)</p>
<p>www.phrases.org.uk</p>
<p>www.readingmatrix.com</p>
<p>repeatafterus.com (môn nghe hiểu và phát âm)</p>
<p>www.soundsofenglish.org (môn phát âm)</p>
<p>www.the-bus-stop.net (bài hát cho trẻ em bằng tiếng Anh)</p>
<p>www.teflgames.com (trò chơi bằng tiếng Anh)</p>
<p>www.tolearnenglish.com</p>
<p>www.ucl.ac.uk/internet-grammar</p>
<p>www.vocabulary.com</p>
<p>http://webs.wichita.edu/ielc-lab/wnr (môn nghe hiểu)</p>
<p>www.wordsmith.org/awad/index.html</p>
<p>www.wordwizard.com</p>
<p>http://world.englishclub.com/vietnam.index.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noinham.info/hoc-tap/trang-web-hoc-tieng-anh/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nhung Firefox plug-in huu ich cho Web Design</title>
		<link>http://www.noinham.info/e-commerce/nhung-firefox-plug-in-huu-ich-cho-web-design/</link>
		<comments>http://www.noinham.info/e-commerce/nhung-firefox-plug-in-huu-ich-cho-web-design/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 14:22:39 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[Thương mại điện tử]]></category>

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

		<guid isPermaLink="false">http://www.noinham.info/e-commerce/nhung-firefox-plug-in-huu-ich-cho-web-design/</guid>
		<description><![CDATA[This is more or less a “Top Firefox Addons” post, but pretty much our entire selection of Firefox extensions are geared towards web design/development, so that’s what I’m calling it. I couldn’t really do what I do without Firefox, or at least it would be considerably more difficult. While I have much respect for browsers [...]<p><a href="http://sharethis.com/item?&#038;wp=2.6.1&#38;publisher=1af4b8ad-e3fb-442f-9e11-a6839b05b8f6&#38;title=Nhung+Firefox+plug-in+huu+ich+cho+Web+Design&#38;url=http%3A%2F%2Fwww.noinham.info%2Fe-commerce%2Fnhung-firefox-plug-in-huu-ich-cho-web-design%2F">ShareThis</a></p>]]></description>
			<content:encoded><![CDATA[<p>This is more or less a “Top <a href="https://addons.mozilla.org/firefox/extensions/" title="Firefox Addons">Firefox Addons</a>” post, but pretty much our entire selection of <a href="http://www.mozilla.com/firefox/" title="Firefox - Rediscover the Web">Firefox</a> extensions are geared towards web design/development, so that’s what I’m calling it. I couldn’t really do what I do without Firefox, or at least it would be considerably more difficult. While I have much respect for browsers like <a href="http://www.opera.com/" title="Opera web browser: Homepage">Opera</a> and <a href="http://www.mozilla.org/" title="Mozilla.org - Home of the Mozilla Project">Mozilla</a>, the extensions available for Firefox are what really make it my browser of choice.</p>
<p><span id="more-143"></span></p>
<p>I firmly believe that websites should be designed first for a <a href="http://www.webstandards.org/" title="The Web Standards Project">standards compliant</a> browser like Firefox, and then made to work with a more popular (but lower quality) browser like <a href="http://whyiesucks.blogspot.com/" title="Internet Explorer">Internet Explorer</a>. When I get a site to work well in Firefox, I know that the code is working properly, rather than being a proprietary mess, ala <a href="http://www.microsoft.com/frontpage/" title="Microsoft">Frontpage</a>.  And that’s important to us at Circle Six, as we believe more and more in not polluting the web any further with bad code.</p>
<p>So without further ado, I bring you the list of essential extensions for Firefox, the tools that make my life easier and my design/development process more efficient. Please add on to the list anything I leave out!</p>
<p><span id="more-267"></span></p>
<p><a href="https://addons.mozilla.org/firefox/60/" title="Web Developer">Web Developer</a></p>
<p>This is absolutely the most essential extension I have. I can’t even begin to describe everything it can do in this post. Some of the features I use on a daily basis are the ability to disable javascript, disable CSS, outline block level elements, resize the window and view response headers. For me, the greatest use of this extension is to accomplish backwards compatibility and accessibility in my pages, but to say that’s all it does with be selling it very short.</p>
<p><a href="https://addons.mozilla.org/firefox/179/" title="EditCSS">EditCSS</a></p>
<p>This extension is an excellent way to get immediate feedback on changes to your CSS. If you’re struggling with a strange CSS bug, this is a great way to start finding the solution. You can load it in the sidebar and begin tweaking your code, and watch the changes in realtime. It’s especially good for structural code and positioning elements. If only it worked for Internet Explorer!</p>
<p><a href="https://addons.mozilla.org/firefox/1843/" title="Firebug">Firebug</a></p>
<p>Honestly, I could never write Javascript without this extension. It provides a console that lets you debug your javascript right in the browser. You can track variables and put breakpoints in the code. And it’s especially good for AJAX development, with a DOM inspector and XMLHttp request viewer. I can see my requests and their responses as they happen, and figure out exactly what went wrong. Without that feedback, even the simplest AJAX app can be extremely frustrating to debug.</p>
<p><a href="https://addons.mozilla.org/firefox/2076/" title="JSView">JSView</a></p>
<p>A great timesaver. It gives you quick feedback on what CSS and Javascript files are loaded in a page. It also lets you jump immediately to each external file’s source code. This is especially handy on dynamic sites that use javascript extensions that load unobtrusively: you can quickly check to see if a extension has loaded on a given page without viewing the source code. It’s also great for learning from other people’s work, taking a quick look at a CSS file to see how they got that text effect, or whether they’re using CSS-P or not.</p>
<p><a href="https://addons.mozilla.org/firefox/697/" title="View Formatted Source">View Formatted Source</a></p>
<p>This one has a few close runners-up:  <a href="https://addons.mozilla.org/firefox/655/" title="View Source Chart">View Source Chart</a> and <a href="https://addons.mozilla.org/firefox/1802/" title="X-Ray">X-Ray</a>. They help make sense of the source code for a page, and make it a lot easier to find what you’re looking for. Especially if you’re debugging someone else’s page (because YOUR code, of course, is properly formatted to begin with). What sets View Formatted Source apart for me is that it has both a chart mode and an inline mode that displays outlines and labels directly on the page that you can click to see just that segment of the source code. The chart mode has the ability to fold sections based on tags.</p>
<p>My other favorite extensions:</p>
<p><a href="https://addons.mozilla.org/firefox/115/" title="ReloadEvery">ReloadEvery</a>:  This lets you refresh at a given interval.  Good for seeing changes in (almost) realtime.<br />
<a href="https://addons.mozilla.org/firefox/2410/" title="Foxmarks Bookmark Synchronizer">Foxmarks Bookmark Synchronizer</a>: syncs bookmarks between multiple FF installations.<br />
<a href="https://addons.mozilla.org/firefox/1146/" title="Screen grab!">Screen grab!</a>:  Takes screenshots using java, and can auto scroll the page to get a full shot.<br />
<a href="https://addons.mozilla.org/firefox/570/" title="SEOpen">SEOpen</a>: Nice tools for Search Engine Optimization.<br />
<a href="https://addons.mozilla.org/firefox/967/" title="Modify Headers">Modify Headers</a>: Add, modify and filter http request headers.<br />
<a href="https://addons.mozilla.org/firefox/1122/" title="Tab Mix Plus">Tab Mix Plus</a>: Extend the tab functionality of FF.<br />
<a href="http://mozex.mozdev.org/" title="mozdev.org - mozex: index">Mozex</a>: Integrate external apps like TextMate.<br />
<a href="https://addons.mozilla.org/firefox/2354/" title="del.icio.us Complete">del.icio.us Complete</a>: Extend the <a href="http://del.icio.us/" title="del.icio.us">del.icio.us</a> extension.<br />
<a href="https://addons.mozilla.org/firefox/2676/" title="murl">murl</a>: Automatically shorten url’s using <a href="http://murl.com/" title="Murl.com - The Online Bookmark Manager">murl</a> and copy them to your clipboard.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noinham.info/e-commerce/nhung-firefox-plug-in-huu-ich-cho-web-design/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Phat trien wordpress theme</title>
		<link>http://www.noinham.info/e-commerce/phat-trien-wordpress-theme/</link>
		<comments>http://www.noinham.info/e-commerce/phat-trien-wordpress-theme/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 14:10:39 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[Thương mại điện tử]]></category>

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

		<guid isPermaLink="false">http://www.noinham.info/e-commerce/phat-trien-wordpress-theme/</guid>
		<description><![CDATA[Having spit out several Wordpress custom sites in the last few days, I thought I’d detail my current workflow on my Macintosh OSX platform for posterity. It’s changed a little since the last time I wrote about it, and I feel like it’s at a point where, with some minor tweaking and a few more [...]<p><a href="http://sharethis.com/item?&#038;wp=2.6.1&#38;publisher=1af4b8ad-e3fb-442f-9e11-a6839b05b8f6&#38;title=Phat+trien+wordpress+theme&#38;url=http%3A%2F%2Fwww.noinham.info%2Fe-commerce%2Fphat-trien-wordpress-theme%2F">ShareThis</a></p>]]></description>
			<content:encoded><![CDATA[<p>Having spit out several Wordpress custom sites in the last few days, I thought I’d detail my current workflow on my Macintosh OSX platform for posterity. It’s changed a little since the last time I wrote about it, and I feel like it’s at a point where, with some minor tweaking and a few more TextMate commands, it could be an ideal production environment for individuals and small groups.</p>
<p><span id="more-142"></span></p>
<p>A brief summary to begin with.  I’m not going to detail the work that I do to turn <a href="http://wordpress.org/" title="WordPress › Blog Tool and Weblog Platform">Wordpress</a> into a <a href="http://en.wikipedia.org/wiki/CMS" title="Wikipedia Entry: CMS">CMS</a>, or why I choose to go that direction. This post will confine itself to the tools required to create a custom theme for Wordpress without hacking the core code. However, all of the tools that are mentioned are powerful enough to handle such tasks and I don’t use any additional tools to do my core hacking. So the overview goes like this:</p>
<ul>
<li>set up a local install of the Wordpress site (mirroring any current installation)</li>
<li>create a local workflow to edit XHTML and CSS</li>
<li>tweak and test on local platform</li>
<li>deploy</li>
<li>test on multiple platforms/browsers</li>
<li>tweak to perfection</li>
</ul>
<p>Now for the details.<br />
<span id="more-354"></span></p>
<h2>Preparation:</h2>
<p><a href="http://www.colorschemer.com/" title="Color Schemer | Create matching color schemes at the click of a button"><canvas width="128" height="128" style="height: 128px; width: 128px" class="setleft transparent"></canvas></a>I usually start out the process with a color palette, using <a href="http://www.colorschemer.com/" title="Color Schemer | Create matching color schemes at the click of a button">Color Schemer Studio</a>. The beauty of this program for me is that it allows me to generate a color palette from a photo, screen grabs, or color picker using a simple color wheel with harmony presets. I can build a favorites palette and automatically convert colors to their nearest websafe equivalent. The palettes can be exported for Photoshop, Illustrator, HTML, CSS and I can even drag colors right into some programs, including TextMate.</p>
<p>A general layout is also a good idea, and the Grey Boxes technique laid out in <a href="http://www.transcendingcss.com/" title="Transcending CSS: The Fine Art of Web Design by Andy Clarke">Transcending CSS</a> is a great method for getting a general feel and giving yourself some flexibility down the line. You can use different outlining programs to create a layout, but I generally just end up making a sketch on paper and then doing a guide layer in Photoshop.</p>
<h2>Graphics</h2>
<p><a href="http://www.adobe.com/products/photoshop/" title="Professional photo editing software - the digital imaging software standard by Adobe"><canvas width="128" height="128" style="height: 128px; width: 128px" class="setleft transparent"></canvas></a>Graphics are essential to any decent CSS layout.  My tool of choice is, of course, <a href="http://www.adobe.com/products/photoshop/" title="Professional photo editing software - the digital imaging software standard by Adobe">Photoshop</a>.  I create an entire layout, using many layers and <a href="http://www.adobe.com/products/photoshop/pop_smart.html" title="Adobe Photoshop - Smart Objects">smart objects</a>, and then export my files using Save for Web.  For smaller graphics needs I use the tools available from <a href="http://www.yellowmug.com/" title="Yellow Mug Software - Quality Shareware and Freeware Exclusively for Mac OS X">Yellow Mug Software</a>.  They’re small, lightweight and extremely useful.</p>
<h2>Local Install</h2>
<p>Once I’m ready to begin development I create a local <a href="http://wordpress.org/" title="WordPress › Blog Tool and Weblog Platform">Wordpress</a> installation using the latest version. If I’m updating a website that already has a working theme, I download all of the necessary files from the existing site and export the database. I then import the database into my <a href="http://en.wikipedia.org/wiki/MySQL" title="Wikipedia Entry: MySQL">mySQL</a> installation locally and point the Wordpress install to that. This way I can work around all of the plugins and other potential pitfalls that will need to be accounted for in the theme.</p>
<p><a href="http://www.mamp.info/en/home/" title="MAMP"><canvas width="128" height="128" style="height: 128px; width: 128px" class="setleft transparent"></canvas></a>For the purposes of running Apache and MySQL on my Mac, I use <a href="http://www.mamp.info/en/home/" title="MAMP">MAMP</a>.  It’s easy to set up and, despite having a relatively large memory footprint, it doesn’t interfere much with my workflow.</p>
<p><a href="http://headdress.twinsparc.com/" title="Headdress for OS X"><img src="http://blog.circlesixdesign.com/wp-content/uploads/headdress_icon.png" alt="Headdress Icon" class="setright transparent" height="128" width="128" /></a><a href="http://headdress.twinsparc.com/" title="Headdress for OS X">Headdress for OSX</a> works wonderfully in combination with MAMP. It allows easy editing of the necessary files to create local addresses for accessing your local sites. Shaun Inman wrote a great article about integrating <a href="http://www.shauninman.com/post/heap/2006/12/04/mamp_headdress_and_quicksilver" title="MAMP, Headdress and Quicksilver // ShaunInman.com/post">MAMP, Quicksilver and Headdress</a>, which speeds things up a lot if you’re working on a lot of sites.</p>
<h2>Development</h2>
<p><a href="http://macromates.com/" title="TextMate â€” The Missing Editor for Mac OS X"><canvas width="128" height="128" style="height: 128px; width: 128px" class="setleft transparent"></canvas></a>A solid theme will always start with good XHTML. The very first thing I do is create the homepage with no dynamic data, just a plain XHTML page with dummy text and all of my layout and graphics. This gives me a chance to define the styles I’ll use for headlines, paragraphs, branding, etc., prior to worrying about any kind of PHP code. I use <a href="http://macromates.com/" title="TextMate â€” The Missing Editor for Mac OS X">TextMate</a> to create all of the XHTML that goes into the site. Be sure to create a CSS file and add a link to it.</p>
<p><a href="http://macrabbit.com/cssedit/" title="MacRabbit - CSSEdit - Web 2.0 in Style"><canvas width="128" height="128" style="height: 128px; width: 128px" class="setleft transparent"></canvas></a>Once I’ve got the semantic XHTML code in place (and it’s not a bad idea to validate as you go, it will help solve problems later), it’s time to start styling it. I love TextMate, but the live preview and milestone options in <a href="http://macrabbit.com/cssedit/" title="MacRabbit - CSSEdit - Web 2.0 in Style">CSSEdit</a> make it my tool of choice for CSS editing. Load up the local address to your dummy file in the preview window and start styling the page!</p>
<p>When I first start the project, I’ll copy a theme that I want to work off of, either one of my own or the default theme from Wordpress to use as a base. I’ll give it a new name, and edit the information found in the style.css file to change the way it shows up in Wordpress and help distinguish it from the others until I get a screenshot made. Then I’ll select the directory and open it as a project in TextMate. I’ll save the project with the name of my theme and use that as a base for editing the local theme. Right clicking a CSS file in the project allows me to open it in CSSEdit.</p>
<p>I tend to use the default theme as a starting point and copy out the Wordpress template tags that I need to create my basic layout. <a href="http://binarybonsai.com/wordpress/k2/" title="K2 at  Binary Bonsai">K2 from Binary Bonsai</a> does some interesting things with the Loop, and can provide a more streamlined way of creating a site if you know what you’re looking at. I also use <a href="http://warpspire.com/journal/personal/hemingway-012/" title="Hemingway: 0.12 - Warpspire">Hemingway from Warpspire</a> as a reference for below-the-fold layouts. For most purposes, I prefer manually creating the necessary files, and often need to create my own <a href="http://codex.wordpress.org/Pages" title="Pages « WordPress Codex">page templates</a> anyway.  As I develop, I constantly consult the extensive <a href="http://codex.wordpress.org/" title="Main Page « WordPress Codex">Wordpress Codex</a> for assistance with template tags and parameters.</p>
<h2>Testing</h2>
<p><a href="http://www.mozilla.com/en-US/firefox/" title="Firefox - Rediscover the Web"><canvas width="128" height="128" style="height: 128px; width: 128px" class="setleft transparent"></canvas></a>Testing takes place the entire time, and most heavily as the local site nears completion.  I always build first for <a href="http://www.mozilla.com/en-US/firefox/" title="Firefox - Rediscover the Web">Firefox</a> and do my best to maintain valid code as I go. Internet Explorer 6 for Windows is the last browser on my list and, while the biggest pain, is not as important to me in the long run. It will eventually die and I’d rather have my code right than working in IE6. That being said, once I get to deployment, I take every measure to make sure that the poor bastards using IE6 can still get a usable website out of anything I develop, and be none the wiser.</p>
<p>Once a local site is looking good in Firefox, I test it in Safari, Omniweb, Opera, Camino and Firefox 1.5. I don’t run parallels, so testing on other platforms has to wait until I’ve deployed the new site.</p>
<h2>Deploy</h2>
<p><a href="http://www.yummysoftware.com/" title="Yummy Software"><canvas width="128" height="128" style="height: 128px; width: 128px" class="setleft transparent"></canvas></a><a href="http://www.yummysoftware.com/" title="Yummy Software">Yummy FTP</a> has become my tool of choice for all remote work. In combination with CSSEdit and TextMate, it provides remote editing, synchronization, FTP Folder Watching and all of the other goodies that you need, plus a stable and very fast interface. And it’s cheap compared to some of the others. Not as cheap as <a href="http://cyberduck.ch/" title="Cyberduck | FTP for Mac OS X.">Cyberduck</a>, but far more powerful.</p>
<p>I will, on occasion, put a site in a subdirectory and deal with the hassles of changing it’s location in the database so that I can test it before it goes live. Generally my sites are finished enough at the deployment stage that I can make minor tweaks quickly enough that it won’t affect site traffic by going live with a few quirks.</p>
<p>Generally, however, I only need to upload the new theme to the themes folder of the site I’m working on and change the site’s presentation options to point to it. If anything goes wrong, I can always revert to the previous theme.</p>
<h2>Tweak</h2>
<p>If I bookmark the theme directory in Yummy FTP, I’m a couple of clicks away from editing any relevant file. Double clicking a CSS file will load it up in my CSS editor (you need to edit the extension definitions to make this happen), and php files will load up in TextMate. Saving the file will automatically upload and overwrite the previous version. The downside to this is that you don’t have a version control system and doing so takes a little extra effort. I can detail some of my solutions in another post.</p>
<h2>Finishing</h2>
<p>And then it’s time for all of the cross-platform, cross-browser testing that needs to be done. Have fun with that, especially when you’re smoking along and then get to Internet Explorer 6 (or worse yet, 5.5). I highly recommend using <a href="http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp" title="About Conditional Comments">Conditional Comments</a> and avoiding CSS hacks, especially now that version 7 is out. Make sure to back up your theme when you’re done. Take snapshots of your previous theme for posterity, and crop one and add it to your new theme as screenshot.png so that it looks nice in the Wordpress back end.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noinham.info/e-commerce/phat-trien-wordpress-theme/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Xây dựng menu cho Wordpress</title>
		<link>http://www.noinham.info/blog/xay-dung-menu-cho-wordpress/</link>
		<comments>http://www.noinham.info/blog/xay-dung-menu-cho-wordpress/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 13:33:06 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[Blog]]></category>

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

		<guid isPermaLink="false">http://www.noinham.info/e-commerce/xay-dung-menu-cho-wordpress/</guid>
		<description><![CDATA[More and more people are using WordPress as a Content Management System (CMS), and for good reason. It’s well supported, produces good mark-up, and it’s flexible. But when using it as a CMS it suddenly becomes very important to optimize the support of WordPress “Pages.” Unlike post, archive, and category links, a web site’s “Pages” [...]<p><a href="http://sharethis.com/item?&#038;wp=2.6.1&#38;publisher=1af4b8ad-e3fb-442f-9e11-a6839b05b8f6&#38;title=X%C3%A2y+d%E1%BB%B1ng+menu+cho+Wordpress&#38;url=http%3A%2F%2Fwww.noinham.info%2Fblog%2Fxay-dung-menu-cho-wordpress%2F">ShareThis</a></p>]]></description>
			<content:encoded><![CDATA[<p>More and more people are using <a href="http://wordpress.org/">WordPress</a> as a Content Management System (<abbr>CMS</abbr>), and for good reason. It’s well supported, produces good mark-up, and it’s flexible. But when using it as a <abbr>CMS</abbr> it suddenly becomes very important to optimize the support of WordPress “Pages.” Unlike post, archive, and category links, a <em>web site’s</em> “Pages” have the utmost importance. This article will teach you how to produce a dynamic WordPress “Pages” navigation menu that looks good and behaves as a main navigation menu should.</p>
<p><span id="more-141"></span></p>
<h3>To Begin With…</h3>
<p>The first thing to consider is placement. For a vertical menu  I would suggest placing the code I will supply in the <em>sidebar.php</em> file under the “sidebar” <code>div</code> if you have one. And if you’re going for a horizontally-displayed navigation menu I suggest adding the code in the <em>header.php</em> file underneath your main <code>&lt;h1&gt;</code> heading.</p>
<h3>The Markup</h3>
<p>Here’s the mark-up you will want to place in your file of choice.</p>
<pre> <small id="code1">&lt;!--<a href="http://green-beast.com/blog/?p=157#note1">See Note 1</a>--&gt;</small>
 &lt;ul id="nav"&gt;
 <small id="code2">&lt;!--<a href="http://green-beast.com/blog/?p=157#note2">See Note 2</a>--&gt;</small>
  &lt;?php if(is_home() &amp;&amp; !is_paged()){ ?&gt;
   &lt;li class="current_page_item"&gt;
    &lt;a href="&lt;?php echo get_settings('home'); ?&gt;" title="You are Home"&gt;Blog Navigation&lt;/a&gt;
   &lt;/li&gt;
 &lt;?php } else { ?&gt;
  &lt;li&gt;
   &lt;a href="&lt;?php echo get_settings('home'); ?&gt;" title="Click for Home"&gt;Blog Home&lt;/a&gt;
  &lt;/li&gt;
 &lt;?php } ?&gt;
 <small id="code3">&lt;!--<a href="http://green-beast.com/blog/?p=157#note3">See Note 3</a>--&gt;</small>
 &lt;?php  wp_list_pages('sort_column=menu_order&amp;title_li='); ?&gt;
 <small id="code4">&lt;!--<a href="http://green-beast.com/blog/?p=157#note4">See Note 4</a>--&gt;</small>
  &lt;li&gt;
   &lt;a class="rss" rel="alternate" href="&lt;?php bloginfo('rss2_url'); ?&gt;" title="Really Simply Syndication"&gt;RSS Feed&lt;/a&gt;
  &lt;/li&gt;
 &lt;/ul&gt;</pre>
<h4>Markup Notes</h4>
<p>Now to explain what’s what in the script above.</p>
<dl>
<dt id="note1">Note 1</dt>
<dd>I first identify the menu with a “nav” ID. This isn’t needed for styling since WordPress generates the list-item classes in its core, but I’m using it anyway as it serves two purposes. The “page_item” class doesn’t really need to be there. Go with it; editing core files isn’t advisable as it’ll impede upgrading WordPress. The main reason I offer this is to use <code>#nav</code> as a fragment identifier so as to use it as a bookmark link target for a “Jump to Navigation” link: <code>&lt;a href="#nav"&gt;Jump to Navigation&lt;/a&gt;</code> <small>(<a href="http://green-beast.com/blog/?p=157#code1">Code 1</a>)</small></dd>
<dt id="note2">Note 2</dt>
<dd>This is a bit of page negotiation since I want the menu to have a home page link — something not provided on the page list by default. When you’re on the index this will say “Blog Navigation” and be styled as a current page link, but if you’re on any other page, including a “paged” home (when you view older posts via a page turner link), the link will say “Blog Home” instead and will look clickable instead of like the “current page” style. <small>(<a href="http://green-beast.com/blog/?p=157#code2">Code 2</a>)</small></dd>
<dt id="note3">Note 3</dt>
<dd>This is the meat and potatoes so to speak. This is the code for the dynamic menu produced by the WordPress core. This will produce page links in list item tags: <code>&lt;li&gt;</code>. Each will bear the “page_item” class except the current page where it’ll also bear the “current_page_item” class. I use only the latter. This conditional tag has two parameters in the function:</p>
<ol>
<li><code>sort_column=menu_order</code> — This allows you to use the page ordering feature built into WordPress. This ensures you can put your page links in an order you deem logical.</li>
<li><code>title_li=</code> — This parameter can contain data such as <code>&lt;h2&gt;Heading&lt;/h2&gt;</code>. If it is removed, the word “Pages” will display between the dynamic links and the home page link. If the <code>&lt;h2&gt;</code> heading elements are left blank the word “Pages” will display in the same spot. This would be okay if there was no home page link but that’s not the case, so I give the whole parameter a null value. I could give it a “0” (zero) I suppose. <small>(<a href="http://green-beast.com/blog/?p=157#code3">Code 3</a>)</small></li>
</ol>
</dd>
<dt id="note4">Note 4</dt>
<dd>This last link is optional. Use it if your want a prominent link to your Really Simple Syndication or RSS feed. I give this link a special “rss” class so I can give it a unique background image in the style sheet. I add it to the “<code>ul#nav</code>” selector in the style sheet so the same attributes and properties are applied. I then give it a background image in a new <abbr>CSS</abbr> block — I’ll show you what I mean next. <small>(<a href="http://green-beast.com/blog/?p=157#code4">Code 4</a>)</small></dd>
</dl>
<h3>Styling the List</h3>
<p>What follows are some styles for your Cascading Style Sheet (<abbr>CSS</abbr>). These styles will produce block-level links in the vertical format. You can modify these styles to get your desired look, add backgrounds, change colors, anything you wish. To make it a horizontal menu you’ll want to float it left (right reverses the order so you’ll have to modify the scripting and markup) and list items will need the display property, “inline.” You can also give the unordered list a width and center it with margin-auto. You will also want to center-align the text, probably…</p>
<p>Nonetheless, this will offer you a simple copy and paste beginning. (All of this should be put in a container div of 200 pixels with 10 pixels of padding unless you decide to modify dimension and/or units, or you’re doing the horizontal thing.)</p>
<pre> <small>/* This styles the unordered list element to remove bullets and align the text */</small>
 ul#nav {
   list-style-type : none;
   text-align : right;
 }

 <small>/*
  This styles the links. It’s a block-level link and the text is positioned
  with padding. Other styles are defined: width, colors, text attributes, etc.
 */</small>
 ul#nav a, ul#nav a.rss {
   background-color : #d3d3a7;
   padding : 15px 5px 2px 10px;
   margin-bottom : 10px;
   width : 180px;
   height : auto;
   color : #333;
   font-weight : bold;
   font-style : normal;
   display : block;
   text-decoration : none;
 }

 <small>/* This gives the “rss” class link a background image */</small>
 ul#nav a.rss {
   background : #d3d3a7 url(images/rss.jpg) no-repeat 2px 2px;
 }

 <small>/* This is only necessary for IE6 else the link margins will collapse on hover */</small>
 ul#nav li {
   margin-bottom : 10px;
 }

 <small>/* This removes the default left margin (indentation) */</small>
 ul#nav li {
   margin-left : 0;
 }

 <small>/*
  Now to offer some hover and focus styles. <a href="http://green-beast.com/blog/?p=93" title="Focus on Focus article">Further specification of focus/active styles</a>
  could be added but I didn’t do it in this example. I didn’t feel it was needed
 */</small>
 ul#nav a:hover, ul#nav a:focus, ul#nav a:active {
   background-color : #669900;
   color : #fff;
 }

 <small>/* This offers up a hover/focus state image for the “rss” class link */</small>
 ul#nav a.rss:hover, ul#nav a.rss:focus {
   background : #669900 url(images/rss_on.jpg) no-repeat 2px 2px;
 }

 <small>/*
  This style the single state of the “current_page_item” class link. Not needed for
  the “rss” class link since that target page won’t display the menu
 */</small>
 ul#nav li.current_page_item a, ul#nav li.current_page_item a:hover,
 ul#nav li.current_page_item a:focus, ul#nav li.current_page_item a:active {
   background-color : #9e9e55;
   color : #fff;
   cursor : default;
   text-align : left;
 }</pre>
<h3>Miscellaneous</h3>
<p>Here’s some general info.</p>
<ul>
<li>You could add to the style info above to support child pages, or sub-pages, but the <abbr>CSS</abbr> I provided doesn’t support that link type in a special way — the subpage links <em>and</em> the current page link will both be marked the same way.</li>
<li>You could also modify the script part of this menu if you had a static home page. Please note, however, that I’m not <em>sure</em> if a modification is needed to tell the truth. I haven’t tried it in such an application. You tell me.</li>
<li>What I have on this site is custom made because I currently have several non-WordPress pages. Thus, if you want to see an example of this menu, please check out the sidebar on my <a href="http://green-beast.com/beastblog/">BeastBlog v.2.0 theme support blog</a>, but please know that it is slightly different than what I’m offering here. I added a “btn” class in addition to the “nav” ID. Doing it this way allows advanced theme users — since the theme is publically available — the ability to easily give additional menus the same styling via the “btn” class (because IDs must be unique on any given page while classes can be used repeatedly).</li>
<li>In my example, when on the home page, I offer a link. This doesn’t have to be the case. A heading in a list item could be styled, plain text could be offered, what ever you want. I chose to do this instead. Laziness.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.noinham.info/blog/xay-dung-menu-cho-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Nâng cấp Wordpress trong 3 bước</title>
		<link>http://www.noinham.info/blog/nang-cap-wordpress-trong-3-buoc/</link>
		<comments>http://www.noinham.info/blog/nang-cap-wordpress-trong-3-buoc/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 12:44:50 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
		<category><![CDATA[Blog]]></category>

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

		<guid isPermaLink="false">http://www.noinham.info/blog/nang-c%e1%ba%a5p-wordpress-trong-3-b%c6%b0%e1%bb%9bc/</guid>
		<description><![CDATA[These are the short instructions, if you want more check out the extended upgrade instructions.
For these instructions, it is assumed that your blog&#8217;s URL is http://example.com/wordpress/. Note that during the upgrade process access to your blog may not work for your visitors. You may consider a plugin like Maintenance Mode.
Step 0: Before You Get Started
* [...]<p><a href="http://sharethis.com/item?&#038;wp=2.6.1&#38;publisher=1af4b8ad-e3fb-442f-9e11-a6839b05b8f6&#38;title=N%C3%A2ng+c%E1%BA%A5p+Wordpress+trong+3+b%C6%B0%E1%BB%9Bc&#38;url=http%3A%2F%2Fwww.noinham.info%2Fblog%2Fnang-cap-wordpress-trong-3-buoc%2F">ShareThis</a></p>]]></description>
			<content:encoded><![CDATA[<p>These are the short instructions, if you want more check out the extended upgrade instructions.</p>
<p>For these instructions, it is assumed that your blog&#8217;s URL is http://example.com/wordpress/. Note that during the upgrade process access to your blog may not work for your visitors. You may consider a plugin like Maintenance Mode.<br />
<strong>Step 0: Before You Get Started</strong></p>
<p>* Just in case something goes wrong, make sure you have a backup. WordPress_Backups is a comprehensive guide.<br />
* Deactivate your plugins. A plugin might not be compatible with the new version, so it&#8217;s nice to check for new versions of them and deactivate any that may cause problems. You can reactivate plugins one-by-one after the upgrade.</p>
<p><span id="more-140"></span><br />
<strong>Step 1: Replace WordPress files</strong></p>
<p>1. Get the latest WordPress. Either download and extract it to your computer or download it directly to the server.<br />
2. Copy the new files to your server, overwriting old files. You may use FTP or shell commands to do so.</p>
<p>NOTE   The wp-content folder requires special handling, as do the plugins and themes folders. You must copy over the contents of these folders, not the entire folder. Copying the entire folder overwrites all your customizations and added content.</p>
<p>Also take care to preserve the wp-config.php file in the root directory, as it contains your database sign-in information. Do note though that usually this will not be a problem since in a new installation the config file will be named wp-config-sample.php.<br />
<strong>Step 2: Upgrade your installation</strong></p>
<p>1. Visit the upgrade page. It will be at a URL like http://example.com/wordpress/wp-admin/upgrade.php. This updates your database to be compatible with the latest code, and before you do this your blog might look funny.</p>
<p><strong>Step 3: Do something nice for yourself</strong></p>
<p>If you have caching enabled, your changes will appear to users more immediately if you clear the cache at this point (and if you don&#8217;t, you may get confused when you see the old version number in page footers when you check to see if the upgrade worked).</p>
<p>Your WordPress installation is successfully upgraded. That&#8217;s as simple as we can make it without Updating WordPress Using Subversion.</p>
<p>Consider rewarding yourself with a blog post about the upgrade, reading that book or article you&#8217;ve been putting off, or simply sitting back for a few moments and let the world pass you by.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.noinham.info/blog/nang-cap-wordpress-trong-3-buoc/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
