<?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>ZzSay.com</title>
	<atom:link href="http://www.zzsay.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zzsay.com</link>
	<description>WordPress,PHP,Javascript,HTML,CSS</description>
	<lastBuildDate>Thu, 19 Aug 2010 07:25:01 +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 View The User&#8217;s Capabilities in WordPress</title>
		<link>http://www.zzsay.com/blog/how-to-view-the-users-capabilities-in-wordpress</link>
		<comments>http://www.zzsay.com/blog/how-to-view-the-users-capabilities-in-wordpress#comments</comments>
		<pubDate>Thu, 19 Aug 2010 07:20:57 +0000</pubDate>
		<dc:creator>Wper</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.zzsay.com/?p=105</guid>
		<description><![CDATA[Different users may have different capabilities, in wordpress, there are five pre-defined roles: Administrator, Editor, Author, Contributor, Subscriber. The Capabilities of pre-defined roles in wordpress Administrator [level_0 - level_10] &#8211; All the administration capabilities, just super admin. Editor [level_0 - level_7] &#8211; Publish and manage posts and pages, including other users&#39; posts management, etc. Author [...]]]></description>
			<content:encoded><![CDATA[<p>Different users may have different capabilities, in wordpress, there are five pre-defined roles: Administrator, Editor, Author, Contributor, Subscriber.<span id="more-105"></span></p>
<h3>The Capabilities of pre-defined roles in wordpress</h3>
<ul>
<li>Administrator [level_0 - level_10] &#8211; All the administration capabilities, just super admin.</li>
<li>Editor [level_0 - level_7] &#8211; Publish and manage posts and pages, including other users&#39; posts management, etc.</li>
<li>Author [level_0 - level_4] &#8211; Publish and manage their own posts.</li>
<li>Contributor [level_0 - level_1] &#8211; Write and manage their posts, but can not publish them.</li>
<li>Subscriber [level_0] &#8211; Manage their profile only.</li>
</ul>
<p><em>Capability vs Role Table</em> refer to <a href="http://codex.wordpress.org/Roles_and_Capabilities">http://codex.wordpress.org/Roles_and_Capabilities</a></p>
<p>WordPress defines 11 levels to indentify the roles&#39;s capabilities. In the database design, wp_user_level is defined in table wp_usermeta.</p>
<p><img alt="" class="aligncenter size-full wp-image-106" height="327" src="http://www.zzsay.com/wp-content/uploads/2010/08/wp_user_level.jpg" title="wp_user_level" width="586" /></p>
<h3>How to view or judge the user&#39;s capabilities?</h3>
<p><strong>1. Judge a user&#39;s privilege in common blogs, categories, and pages.</strong></p>
<pre class="brush:php">&lt;?php
if(is_user_logged_in()) {
if(current_user_can(&#39;level_7&#39;)) {
//....
}
}
?&gt;
?&gt;</pre>
<p><strong>2. If you want to look up a group of roles.</strong></p>
<p>Here it is a example of look up Editor role in usermeta, all the matchs will be returned.</p>
<pre class="brush:php">&lt;?php
global $wpdb;
$roles_arr= $wpdb-&gt;get_col(&quot;SELECT user_id FROM $wpdb-&gt;usermeta WHERE meta_key = &#39;wp_user_level&#39; AND meta_value = 7&quot;);
foreach($roles_arr as $v){
//...$v is the user_id
}
?&gt;</pre>
<p>You can use get_the_author_meta to display some information about the roles.</p>
<p><strong>More Reading:</strong></p>
<p><a href="http://codex.wordpress.org/Function_Reference/the_author_meta">http://codex.wordpress.org/Function_Reference/the_author_meta</a></p>
<p><a href="http://codex.wordpress.org/Roles_and_Capabilities">http://codex.wordpress.org/Roles_and_Capabilities</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zzsay.com/blog/how-to-view-the-users-capabilities-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install a WordPress Theme</title>
		<link>http://www.zzsay.com/blog/how-to-install-a-wordpress-theme</link>
		<comments>http://www.zzsay.com/blog/how-to-install-a-wordpress-theme#comments</comments>
		<pubDate>Sun, 15 Aug 2010 08:21:57 +0000</pubDate>
		<dc:creator>Wper</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.zzsay.com/?p=100</guid>
		<description><![CDATA[This article introduce how to install wordpress themes, in fact we often need to install a theme from wordpress official site or our customized themes. Even it is very easy to install it, but I demonstrate it in detail for some wordpress starters. Install a wordpress theme from the official site. 1. Login your wordpress, [...]]]></description>
			<content:encoded><![CDATA[<p>This article introduce how to install wordpress themes, in fact we often need to install a theme from wordpress official site or our customized themes. Even it is very easy to install it, but I demonstrate it in detail for some wordpress starters.<span id="more-100"></span></p>
<h3>Install a wordpress theme from the official site.</h3>
<p>1. Login your wordpress, navigate to the menu <em>Appearance </em>and click <em>Themes</em>, Screenshot shown this:</p>
<p><img alt="" class="aligncenter size-full wp-image-101" height="264" src="http://www.zzsay.com/wp-content/uploads/2010/08/appearance-themes.jpg" title="appearance -themes" width="600" /></p>
<p>2. Here Twenty Ten is the default theme from wordpress version 3.0, if you do not like it, you may install another free themes by click <em>Install Themes</em>.</p>
<p>3. In <em>Install Themes</em> window, you can type your keywords with your preferred style, author and tags in the search box, and press Enter, you may find so many free themes shown. You can also customize your searching result based on some specific features, such as colors, columns, widht, etc. When you find a preferred theme, just a example like this.</p>
<p><img alt="" class="aligncenter size-full wp-image-102" height="502" src="http://www.zzsay.com/wp-content/uploads/2010/08/install-wordpress-themes.jpg" title="install-wordpress-themes" width="472" /></p>
<p>4. Click <em>Install</em> in the theme exhibition, Press <em>Install Now</em> icon in the pop window.</p>
<p>5. Now wordpress will downloading install package from the official site. When installed the theme successfully. you may find the tips like this.</p>
<p><img alt="" class="aligncenter size-full wp-image-103" height="196" src="http://www.zzsay.com/wp-content/uploads/2010/08/finished-theme-installation.jpg" title="finished-theme-installation" width="435" /></p>
<p>6. Click <em>Activate</em> link to activate the theme, yes it will be the current theme for your wordpress. Your wordpress theme will be changed as a new one.</p>
<p>7. If you change to another <em>Available Themes,</em> Just Activate it in the <em>Manage Themes</em> window. There two parts in it, one is the <em>Current Theme</em>, the other is <em>Available Themes</em>.</p>
<h3>Install a wordpress theme from your uploading</h3>
<p>Last method is from the official site, for so more people, they like to install a customized theme from themselves. That is just a simple thing.</p>
<p>1. Upload your theme&#39;s files to the \wp-content\themes using FTP software or other methods. The theme should be a directory with some template files or folders in it, please transfer these files in their original list mode, do not compress or change these files directory.</p>
<p>2. When you finished uploading. you must find the theme be in the \wp-content\themes directory.</p>
<p>3. Navigate to the <em>Appearance</em> menu in the wordpress manage panel, Click the <em>Themes</em> link in the sub menus.</p>
<p><img alt="" class="aligncenter size-full wp-image-104" height="493" src="http://www.zzsay.com/wp-content/uploads/2010/08/active-a-existed-theme.jpg" title="active-a-existed-theme" width="479" /></p>
<p>4. Just click the <em>Activate</em> link in the window. your theme will be replaced with the newer theme.</p>
<p><em><strong>Notes:</strong></em></p>
<ul>
<li>If you do not find the theme exhibition, please check if it has been sleeping under the \wp-content\themes directory. If so, this theme may have something wrong or compatible problems with the current wordpress version. You must fixed these bugs before reinstall it.</li>
<li>If you have some other questions with the theme installation, please let me know without any worry.&nbsp;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.zzsay.com/blog/how-to-install-a-wordpress-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Choose Proper WordPress Hosting for Beginners</title>
		<link>http://www.zzsay.com/blog/choose-proper-wordpress-hosting-for-beginners</link>
		<comments>http://www.zzsay.com/blog/choose-proper-wordpress-hosting-for-beginners#comments</comments>
		<pubDate>Mon, 09 Aug 2010 18:33:26 +0000</pubDate>
		<dc:creator>Wper</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://www.zzsay.com/?p=99</guid>
		<description><![CDATA[This is a wordpress hosting guide for beginners, many bloggers like wordpress, but there is often a annoy work before writing your articles, that is wordpress hosting selection. Usually your objective hosting should be a virtual hosting. that mean there are about 200 or more sites in one computer, but you should only take care [...]]]></description>
			<content:encoded><![CDATA[<p>This is a wordpress hosting guide for beginners, many bloggers like wordpress, but there is often a annoy work before writing your articles, that is wordpress hosting selection. Usually your objective hosting should be a virtual hosting. that mean there are about 200 or more sites in one computer, but you should only take care about some basic informations for your hosting. Now I list some basic requirements for wordpress hosting.</p>
<p><span id="more-99"></span><br />
<h3>Free space or a basic stater space</h3>
<p>There are much competition in hosting market, so many hosting provider promote many free hosting space for the beginners. but these free space may be put in some advertisement or great limitation. Yes this is free for everybody, do you like it?</p>
<p>In my opinion, if you are not sure for your blog&#39;s future or want to try it for some days, you can choose this free hosting. But if you have a clear location for your blog. Just looking for another paid hosting. that will give you more confidence.</p>
<h3>Requirements for wordpress hosting</h3>
<p>Whatever you choosed, some basic requirements for the hosting must be considered by you. For the last version of wordpress 3.0.1, these requirements are essential.</p>
<ul>
<li>Unix/Linux system is a good selection, even wordpress can working on windows server with some necessary plugins, but windows is trouble in usagge of apache/nginx.</li>
<li>PHP version 5.0 or greater, because wordpress will give up some support of PHP upper version, so the newer version of PHP is required. At least PHP version 4.3.</li>
<li>MySQL version 4.3 or greater, MySQL 5.0 is more better.</li>
<li>Apache mod_rewrite function, this is very useful for every blogger, even it is a optional requirement in wordpress official site. but for every bloggers, this should be essential for your optimization for SEO.</li>
</ul>
<h3>Some Attentions for wordpress hosting</h3>
<p>Disk space &#8211; disk space may be different for different hosting providers, it may be 600M, 1G, 2G, and or unlimited disk space. if you prepared writing some articles with few picture or music/files, that is enough.</p>
<p>Band width &#8211; this is a &quot;strange&quot; advertisement for some providers. even he claimed band width is not limited, but the total volume may be limited, for instance it may be 20G, 50G, 100G or a larger number. there are also some provider may limit computer &#39;s resource occupation instead of bandwidth or total volume in a month.</p>
<p>Administration Panel is another attention for beginners. If you are familiar with some special administration panel, please making sure they will provide. for example, C-Panel is a good panel, but many providers do not give it.</p>
<p>If you have some other puzzle with the wordpress hosting, just leave your comments.</p>
<p><strong>More Links: </strong></p>
<p><a href="http://codex.wordpress.org/Hosting_WordPress">http://codex.wordpress.org/Hosting_WordPress</a></p>
<p><a href="http://www.prelovac.com/vladimir/wordpress-server-requirements-experience">http://www.prelovac.com/vladimir/wordpress-server-requirements-experience</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zzsay.com/blog/choose-proper-wordpress-hosting-for-beginners/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change the Default Avatar in WordPress</title>
		<link>http://www.zzsay.com/blog/change-the-default-avatar-in-wordpress</link>
		<comments>http://www.zzsay.com/blog/change-the-default-avatar-in-wordpress#comments</comments>
		<pubDate>Sat, 07 Aug 2010 16:21:07 +0000</pubDate>
		<dc:creator>Wper</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.zzsay.com/?p=97</guid>
		<description><![CDATA[There are serveral default avators in wordpress, but many people don&#39;t like them, If you want to change this default avatars, just like this. Just choose a convenient method for yourself instead of both of them. Method 1: Change the default avatar directly Modify the default function named get_avatar(), usually you can it in your [...]]]></description>
			<content:encoded><![CDATA[<p>There are serveral default avators in wordpress, but many people don&#39;t like them, If you want to change this default avatars, just like this. Just choose a convenient method for yourself instead of both of them.</p>
<p><span id="more-97"></span>
<p style="text-align: center;"><img alt="" class="aligncenter size-full wp-image-98" height="500" src="http://www.zzsay.com/wp-content/uploads/2010/08/change-the-default-avatar.jpg" title="change-the-default-avatar" width="500" /></p>
<h3>Method 1: Change the default avatar directly</h3>
<p>Modify the default function named get_avatar(), usually you can it in your theme&#39;s files.</p>
<p>&lt;?php echo get_avatar( $id_or_email, $size, $default, $alt ); ?&gt;</p>
<p>Parameters:</p>
<ul>
<li>id_or_email &#8211; Author&#39;s user ID or an e-mail address.</li>
<li>size &#8211; The size of gravatar to return.</li>
<li>default &#8211; The default avatar.</li>
<li>alt &#8211; Alternate text for the avatar</li>
</ul>
<p>We can change the default avatar by changing <strong>default</strong> parameter in function. for example:</p>
<p>&lt;?php echo get_avatar( $id_or_email, $size,get_bloginfo(&#39;template_url&#39;). &#39;/images/new-avatar.jpg&#39;, $alt ); ?&gt;</p>
<p>OK, finished, you can accomplish this syntax in your theme&#39;s files, such as single.php and page.php, etc. Remember create a image named new-avatar.jpg and place it in your theme&#39;s directory <strong>images</strong>.</p>
<h3>Methe 2: Add filter to the avatar processing</h3>
<p>Just open your function.php in your theme, add this code:</p>
<p>add_filter( &#39;avatar_defaults&#39;, &#39;new_avatar&#39; );</p>
<p>function new_avatar ( $avatar_defaults ) {<br />
	$myavatar = get_bloginfo(&#39;template_url&#39;). &#39;/images/new-avatar.jpg&#39;;<br />
	$avatar_defaults[$myavatar] = &quot;Default Avatar&quot;;<br />
	return $avatar_defaults;<br />
	}</p>
<p>Okay, you can change the default avatar in your wordpress dashboard(Settings &#8211; Discussion), screenshot shown above. Surely a image called new-avatar.jpg should be placed in the images directory under the current theme as mentioned above.</p>
<p>More Link: <a href="http://codex.wordpress.org/Function_Reference/get_avatar">http://codex.wordpress.org/Function_Reference/get_avatar</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zzsay.com/blog/change-the-default-avatar-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Should Be Done Before WordPress Update</title>
		<link>http://www.zzsay.com/blog/what-should-be-done-before-wordpress-update</link>
		<comments>http://www.zzsay.com/blog/what-should-be-done-before-wordpress-update#comments</comments>
		<pubDate>Mon, 02 Aug 2010 06:48:04 +0000</pubDate>
		<dc:creator>Wper</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.zzsay.com/?p=96</guid>
		<description><![CDATA[WordPress Version 3.0.1 has Released for several days, this update has fixed so many bugs or potential problems, we should update it as quickly as possible, from the wordpress working panel or the official site. Commonly we should update wordpress to the last version, But before the updating, what should be done? 1. Check First [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress Version 3.0.1 has Released for several days, this update has fixed so many bugs or potential problems, we should update it as quickly as possible, from the wordpress working panel or the official site. Commonly we should update wordpress to the last version, But before the updating, what should be done?<span id="more-96"></span></p>
<h3>1. Check</h3>
<p>First of all, you should check back the new version&#39;s requirements, we know, every new version will has a good compatible with the older mysql and php&#39;s version earlier, but now, wordpress is becoming more and more complex, in paticular, more codes are wasted in compatible older systems. So there is very necessary to discard some redundant features.</p>
<p>So before your update, you should check the new version wordpress&#39;s requirements from:</p>
<p><a href="http://wordpress.org/about/requirements/">http://wordpress.org/about/requirements/</a></p>
<h3>2. Backup</h3>
<p>If you decide to update your wordpress right now, you should back up some contents listed here, Usually you should backup them all even if you know why you don&#39;t need. If you don&#39;t know more about the wordpress updating, I think you should backup all the files of your wordpress, or move the important to another safety directory.</p>
<ol>
<li>WordPress Database, all your posts, comments, almost all the settings, etc are in.</li>
<li>Some files which have been changed by you manually, excluding your current theme, uploading directory, which will be keep on without any changed for wordpress. Usually these files will be replaced by new version. You may need to check or modify these personal files to make sure they will work proper in the new version.</li>
<li>.htaccess files if you have change it manually.</li>
</ol>
<h3>3. Disable Plugins</h3>
<p>For every new version, wordpress can not test it for all plugins. This is a very common problems&nbsp; in wordpress update, some plugins can not work in new wordpress, you need waiting for a new version of the plugin. So disable plugins may avoid some extensive problems with the new version.</p>
<h3>4. Update</h3>
<p>For many wordpress users, automatic update is a good choose. But you can download the last version from the official site and update it manually. that has the same effect.</p>
<p><strong>More Links: </strong><a href="http://www.siteground.com/tutorials/wordpress/wordpress_upgrade.htm">How to update WordPress: Automatic update</a></p>
<h3>5. Test the update</h3>
<p>When you finished update, please do not enable your plugins right now, you should check the effect at first, if you find no problems, enable them then.</p>
<p>If you have some trouble with your wordpress update, you can look for helps from the official site or let me know without any worry.</p>
<p>More Links: <a href="http://codex.wordpress.org/Upgrading_WordPress">http://codex.wordpress.org/Upgrading_WordPress</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zzsay.com/blog/what-should-be-done-before-wordpress-update/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Google Custom Search Engine On WordPress</title>
		<link>http://www.zzsay.com/blog/using-google-custom-search-engine-on-wordpress</link>
		<comments>http://www.zzsay.com/blog/using-google-custom-search-engine-on-wordpress#comments</comments>
		<pubDate>Wed, 28 Jul 2010 16:26:53 +0000</pubDate>
		<dc:creator>Wper</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.zzsay.com/?p=83</guid>
		<description><![CDATA[Google Custom Search Engine is more powerful than the default search engine of WordPress. More and more webmasters like google custom search engine. Every one can use the standard edition freely. If you have a google adsense account, you can also associate your search engine with google adsense. Just do it right now. 1. Log [...]]]></description>
			<content:encoded><![CDATA[<p>Google Custom Search Engine is more powerful than the default search engine of WordPress. More and more webmasters like google custom search engine. Every one can use the standard edition freely. If you have a google adsense account, you can also associate your search engine with google adsense. Just do it right now.<br />
	<span id="more-83"></span></p>
<h3>1. Log in Google Custom Search</h3>
<p>Google Custom Search Address: <a href="http://www.google.com/cse/">http://www.google.com/cse/</a>, Screenshot shown this:</p>
<p><img alt="" class="aligncenter size-full wp-image-84" height="218" src="http://www.zzsay.com/wp-content/uploads/2010/07/google-custom-search-engine.jpg" title="google-custom-search-engine" width="356" /></p>
<h3>2. Enter Your Custom Search Engine Information</h3>
<p>Input information includes:</p>
<ul>
<li>Search engine name</li>
<li>Description</li>
<li>Search engine language</li>
<li>Site to Search</li>
<li>select a edition (the Standard Edition is free for every individual)</li>
<li>Accept the license and agreement</li>
</ul>
<p>Screen shot shown here:</p>
<p><img alt="" class="aligncenter size-full wp-image-85" height="661" src="http://www.zzsay.com/wp-content/uploads/2010/07/setup-search-engine.jpg" title="setup-search-engine" width="550" /></p>
<p>When finished settings, click Next.</p>
<h3>4. Custom Search Engine Management</h3>
<p>Choose a customized style and click Next:</p>
<p><img alt="" class="aligncenter size-full wp-image-86" height="422" src="http://www.zzsay.com/wp-content/uploads/2010/07/choose-style-for-search-engine.jpg" title="choose-style-for-search-engine" width="500" /></p>
<p>Here it is the search element code, but it is only the default search code, we do not use it commonly, we will get another customized search code from <em>Look and feel</em>. Just follow with the next description.</p>
<p><img alt="" class="aligncenter size-full wp-image-87" height="569" src="http://www.zzsay.com/wp-content/uploads/2010/07/get-the-custom-code.jpg" title="get-the-custom-code" width="492" /></p>
<h3>5. Indexing your sitemap</h3>
<p>Indexing your web site from a special sitemap. If you are using <a href="http://www.google.com/webmasters/tools">Webmaster tools</a>. You may choose the xml record for your web site here.</p>
<p><img alt="" class="aligncenter size-full wp-image-88" height="316" src="http://www.zzsay.com/wp-content/uploads/2010/07/index-your-URL.jpg" title="index-your-URL" width="471" /></p>
<h3>6. Make Money</h3>
<p>If you have no google Adsense account, You may ignore this step. Usually google will put some ADs in the search results, you can customized its layout from the panel. If you have a google adsense account, you can associate the custom search with it.</p>
<p>Select <em>I already have an Adsense account</em> and type some necessary information of your adsense.</p>
<p><em>Note: After setting here, you will get a email from goole, you still need to authorize it&#39;s access to your adsense from your email.&nbsp;</em></p>
<p><img alt="" class="aligncenter size-full wp-image-89" height="396" src="http://www.zzsay.com/wp-content/uploads/2010/07/make-money.jpg" title="make-money" width="516" /></p>
<p>&nbsp;</p>
<h3>7. Look and Feel</h3>
<p>Highlights:</p>
<ul>
<li>Search box and search results display not a single page</li>
<li>Need to modify Sidebar.php, or changes in the background Widge (if supported)</li>
<li>Need to manually create a Search Page</li>
</ul>
<p>Here it is a example of Iframe option. Click <em>Look and feel</em> in the left menus, select Iframe in <em>Choose a hosting option</em>. This is a common selection for most users. you can put your search box code and search results code in different pages. Screen shot as:</p>
<p><img alt="" class="aligncenter size-full wp-image-93" height="370" src="http://www.zzsay.com/wp-content/uploads/2010/07/customized-look-and-feel.jpg" title="customized-look-and-feel" width="397" /></p>
<p>When finished selections, click <em>Get Code</em>.</p>
<h3>8. Get Custom Search Code</h3>
<p>You may get this page like this. There are two partition code for us.(Note, if you choose <em>search element</em> in the selections, you may get only one code here.&nbsp;</p>
<p>Enter your address in the specified URL box for the search results displayed, such as http://www.zzsay.com/search, make sure your typed address can be normal access to.</p>
<p><img alt="" class="aligncenter size-full wp-image-94" height="535" src="http://www.zzsay.com/wp-content/uploads/2010/07/get-search-code.jpg" title="get-search-code" width="600" /></p>
<h3>9. Copy and Paste Search box code</h3>
<p>Usually search box code should be placed in your widge or top banner. They will work properly in both methods. Here it is a example of placing in widge(Sidebar. php file under your current theme). You can modify this file from the wordpress background or a professional editor.</p>
<p><img alt="" class="aligncenter size-full wp-image-91" height="212" src="http://www.zzsay.com/wp-content/uploads/2010/07/add-search-code-in-widge.jpg" title="add-search-code-in-widge" width="180" /></p>
<p>The search results code should be pasted in a single page usually. You can create a new page for search results, just like this screen shot. Paste the search results code in the source code of the new page. when finished, click <em>Publish</em> in your wordpress panel.<br />
	&nbsp;</p>
<p><img alt="" class="aligncenter size-full wp-image-92" height="366" src="http://www.zzsay.com/wp-content/uploads/2010/07/create-a-new-search-page.jpg" title="create-a-new-search-page" width="433" /></p>
<h3>
	<span class="medium_text">10. Congratulation!</span></h3>
<p>Okay, you can using your google custom search engine now, if you want to view the effect, just search something in my site from the side bar. If you get some errors or questions from this article, feel free to let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zzsay.com/blog/using-google-custom-search-engine-on-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Delete All Comment Spam Quickly</title>
		<link>http://www.zzsay.com/blog/how-to-delete-all-comment-spam-quickly</link>
		<comments>http://www.zzsay.com/blog/how-to-delete-all-comment-spam-quickly#comments</comments>
		<pubDate>Tue, 27 Jul 2010 09:46:54 +0000</pubDate>
		<dc:creator>Wper</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.zzsay.com/?p=81</guid>
		<description><![CDATA[For many wordpress users, there are so many comment spam everyday, if he does not use some plugins to due with them( such as Akismet, etc). He must be very angry about these spams. If you want to delete or manage these comment spam, refer to: How to Activate and Manage Akismet Plugin If you [...]]]></description>
			<content:encoded><![CDATA[<p>For many wordpress users, there are so many comment spam everyday, if he does not use some plugins to due with them( such as Akismet, etc). He must be very angry about these spams.<span id="more-81"></span></p>
<p>If you want to delete or manage these comment spam, refer to:</p>
<p><a href="http://www.zzsay.com/blog/how-to-activate-and-manage-akismet-plugin">How to Activate and Manage Akismet Plugin</a></p>
<p>If you want to delete these comment spam quickly, just follow this:</p>
<p>1. Log in MySQL by PHPMyadmin or another MySQL manager.</p>
<p>2. Locate the database of your wordpress, and click the table wp_comments. If you have another prefix, please change it.</p>
<p>3. Excute this syntax, you can choose one for your requirements:</p>
<p>DELETE * FROM&nbsp;&nbsp;wp_comments&nbsp;WHERE&nbsp;&nbsp;comment_approved&nbsp;=&nbsp;&#39;spam&#39;;</p>
<p>DELETE * FROM&nbsp;&nbsp;wp_comments&nbsp;WHERE&nbsp;&nbsp;comment_approved&nbsp;=&nbsp;&#39;0&#39;;</p>
<p>Note: the first syntax will delete all the comment spam quickly, the next will delete all the waiting-approved comments.</p>
<p>4. Okay, Finished, refresh your comments manager windows in WordPress panel, you will find all the spams disappeared.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zzsay.com/blog/how-to-delete-all-comment-spam-quickly/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch Modify the Post&#8217;s Author in WordPress</title>
		<link>http://www.zzsay.com/blog/batch-modify-the-posts-author-in-wordpress</link>
		<comments>http://www.zzsay.com/blog/batch-modify-the-posts-author-in-wordpress#comments</comments>
		<pubDate>Mon, 26 Jul 2010 05:36:43 +0000</pubDate>
		<dc:creator>Wper</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.zzsay.com/?p=82</guid>
		<description><![CDATA[If you want to remove some posts from one author to another, it is very annoy for anybody, if you know how to use PHPMyadmin or some other MYSQL managers, It will be more simple. Well, follow this. 1. Log in MYSQL by PHPMyadmin or another Mysql manager. 2. Locate the database of your wordpress, [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to remove some posts from one author to another, it is very annoy for anybody, if you know how to use PHPMyadmin or some other MYSQL managers, It will be more simple. Well, follow this.<span id="more-82"></span></p>
<p>1. Log in MYSQL by PHPMyadmin or another Mysql manager.</p>
<p>2. Locate the database of your wordpress, Click the table wp_users. If you have another prefix, please change it Correspondly.</p>
<p>3. Look up the ID value of the original author(i.e, AuthorA) using:</p>
<p>SELECT&nbsp;ID FROM `wp_users` WHERE&nbsp; display_name=&#39;AuthorA&#39;;</p>
<p>Remember the author ID(Remembered as AuthorA_ID) from the search result, usually there should be only one record, if you get nothing or more than one records, please check your syntax or look up the author ID by user_login or user_nicename, Just like this:</p>
<p>SELECT&nbsp;ID FROM `wp_users` WHERE&nbsp; user_login=&#39;AuthorA&#39;;</p>
<p>SELECT&nbsp;ID FROM `wp_users` WHERE&nbsp; user_nicename=&#39;AuthorA&#39;;</p>
<p>4. Look up the ID value of the destination author(ie, AuthorB) using the same method as Step 3, Remembered as AuthorB_ID.</p>
<p>5. Batch modify the post&#39;s author to another other() using this syntax:</p>
<p>UPDATE `wp_posts` SET&nbsp;post_author&nbsp;=&nbsp;&#39;AuthorB_ID&#39; WHERE&nbsp;post_author&nbsp;=&nbsp;&#39;AuthorA_ID&#39;;</p>
<p>6. Finished.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zzsay.com/blog/batch-modify-the-posts-author-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add Google Analytics for WordPress</title>
		<link>http://www.zzsay.com/blog/how-to-add-google-analytics-for-wordpress</link>
		<comments>http://www.zzsay.com/blog/how-to-add-google-analytics-for-wordpress#comments</comments>
		<pubDate>Thu, 22 Jul 2010 14:08:10 +0000</pubDate>
		<dc:creator>Wper</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.zzsay.com/?p=75</guid>
		<description><![CDATA[This is a tutorial of adding google analytics for your wordpress, it is easy and free. every wordpress user can track his website under these steps. 1. Log in your Google account and open your access analytics services Log in your google account, and then click this URL: http://www.google.com/analytics/ Click Access Analytics, screen shot shown [...]]]></description>
			<content:encoded><![CDATA[<p>This is a tutorial of adding google analytics for your wordpress, it is easy and free. every wordpress user can track his website under these steps.</p>
<p><span id="more-75"></span><br />
<h3>1. Log in your Google account and open your access analytics services</h3>
<p>Log in your google account, and then click this URL:</p>
<p><a href="http://www.google.com/analytics/">http://www.google.com/analytics/</a></p>
<p>Click Access Analytics, screen shot shown this:</p>
<p style="text-align: center;"><img alt="" class="aligncenter size-full wp-image-76" height="122" src="http://www.zzsay.com/wp-content/uploads/2010/07/access-analytics.jpg" title="access-analytics" width="241" /></p>
<h3>2. Add a new domain profile or Select a existing domain</h3>
<p>Click the link of <em>Add Website Profile&raquo;</em> in the <em>Analytics Settings</em> panel. If you are using google adsense or other services relate with your websites. You can select <em>Add a profile for an existing domain</em>, if not, please select <em>Add a profile for a new domain</em>.</p>
<p style="text-align: center;"><img alt="" class="aligncenter size-full wp-image-77" height="429" src="http://www.zzsay.com/wp-content/uploads/2010/07/add-a-profile-for-newdomian.jpg" title="add-a-profile-for-newdomian" width="600" /></p>
<p>Type your domain in the input box, and select the time zone country or territory from the selection, If your domain has existed in google, you can select from the other selection easily, then press <em>Continue</em>.</p>
<h3>3. Get the tracking code</h3>
<p>The code that has a blue background is just the tracking code, copy it surely.</p>
<p style="text-align: center;"><img alt="" class="aligncenter size-full wp-image-78" height="355" src="http://www.zzsay.com/wp-content/uploads/2010/07/get-tracking-code.jpg" title="get-tracking-code" width="600" /></p>
<h3>4. Paste this code on your wordpress</h3>
<p>But where should I place this tracking code? Well, just follow this:</p>
<ol>
<li>Download Your theme that you are using currently, which should be in wp-content/themes/xxxxx, xxxxx is your theme&#39;s name.</li>
<li>Open the <em>header.php</em> file, and paste the tracking code before the closing &lt;/head&gt; tag, Screen shot like this.</li>
<li>Save <em>header.php</em>, and copy/paste or upload it to your website, and cover the original <em>header.php</em> file.</li>
<li>Okay, please wait for about 2-24 hours for data to appear in google analytics account.</li>
</ol>
<p style="text-align: center;"><img alt="" class="aligncenter size-full wp-image-79" height="267" src="http://www.zzsay.com/wp-content/uploads/2010/07/add-tracking-code.jpg" title="add-tracking-code" width="282" /></p>
<h3><strong>Addition 1:</strong><span style="font-weight: bold;"> </span>Tracking status introduction</h3>
<p>There may be these three status under the column status:</p>
<ol>
<li>Waiting for Data &#8211; The tracking code has been detected on your website, Please waiting for the data appeared.</li>
<li>Tracking Unknown or Not Verified &#8211; The tracking code has not been detected on the homepage of your website, please verify your code installed correctly.</li>
<li>Receiving Data &#8211; all are working properly.</li>
</ol>
<p>Website profiles screenshot shown this:</p>
<p style="text-align: center;"><img alt="" class="aligncenter size-full wp-image-80" height="236" src="http://www.zzsay.com/wp-content/uploads/2010/07/website-profiles.jpg" title="website-profiles" width="600" /></p>
<p>More Links: <a href="http://www.google.com/support/analytics/bin/answer.py?hl=en&amp;answer=174894">http://www.google.com/support/analytics/bin/answer.py?hl=en&amp;answer=174894</a></p>
<p>&nbsp;</p>
<h3>Addition 2: Why don&#39;t Google Analytics tracking my website?</h3>
<p>Refer to: <a href="http://www.google.com/support/analytics/bin/answer.py?answer=57053">http://www.google.com/support/analytics/bin/answer.py?answer=57053</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zzsay.com/blog/how-to-add-google-analytics-for-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Show WordPress Excerpts on Homepage</title>
		<link>http://www.zzsay.com/blog/how-to-show-wordpress-excerpts-on-homepage</link>
		<comments>http://www.zzsay.com/blog/how-to-show-wordpress-excerpts-on-homepage#comments</comments>
		<pubDate>Tue, 20 Jul 2010 14:14:21 +0000</pubDate>
		<dc:creator>Wper</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tricks]]></category>

		<guid isPermaLink="false">http://www.zzsay.com/?p=73</guid>
		<description><![CDATA[For many wordpress users, he(she) must encounter the excerpt problem of wordpress, wordpress will output the category or homepage in fulltext if he has not added a MORE tag in his article and type none in Excerpt box. Because more people are not accustomed to write any excerpt specially. I am too. I prefer wordpress [...]]]></description>
			<content:encoded><![CDATA[<p>For many wordpress users, he(she) must encounter the excerpt problem of wordpress, wordpress will output the category or homepage in fulltext if he has not added a MORE tag in his article and type none in Excerpt box. Because more people are not accustomed to write any excerpt specially. I am too. I prefer wordpress output all excerpts automatically. Here are some methods of displaying excerpts in wordpress.</p>
<p><span id="more-73"></span><br />
<h3>1. Add &lt;!&#8211;more&#8211;&gt; tag in your post article from the editor</h3>
<p>&lt;!&#8212;more-&gt; tag is a simple method for displaying a excerpt. Commonly, you can add &lt;!&#8212;more-&gt; tag from the editor toolbar, like this.</p>
<p style="text-align: center;"><img alt="" class="aligncenter size-full wp-image-74" height="68" src="http://www.zzsay.com/wp-content/uploads/2010/07/add-more-tag.jpg" title="add-more-tag" width="518" /></p>
<p>Or, you can add &quot;&lt;!&#8212;more-&gt;&quot;&nbsp; in the HTML mode, it will has a same effect. When you add <em>MORE</em> tag in your post article, wordpress will output excerpts from the beginning to the <em>MORE </em>tag.</p>
<h3>2. Write your personalized excerpt in the Excerpt edit box</h3>
<p>Write your personalized excerpt in the Excerpt box behind the post edit box. If you want make your article more friendly. You can try this method. You can copy some main abstract content from your post article to Excerpt box, and update the article synchronously. This method has a little trouble for more users, because you have to write or copy some excerpt for every posts.</p>
<h3>3. Using a Excerpt Plug-in</h3>
<p>Using Excerpt plugin is more easy to do. there are several famous plugin that can accomplish this. For instance,</p>
<p><a href="http://wordpress.org/extend/plugins/sem-fancy-excerpt/">Fancy Excerpt</a> &#8211; This plugin will replaces the default automatic excerpt generator with a sentence aware excerpt generator, and generate excerpts automatically.</p>
<p><a href="http://wordpress.org/extend/plugins/advanced-excerpt/">Advanced Excerpt</a> &#8211; This plugin will adds several improvements to WordPress&#39; default way of creating excerpts. You can customize the excerpt length and the ellipsis character.</p>
<p>There are also some other excerpt plug-in from the wordpress official website, you can find more from searching the keyword &quot;Excerpt&quot; from you manager panel -&gt; Plugins -&gt; Add New.</p>
<h3>4. By modifying the wordpress source files manually</h3>
<p>You can modify the wordpress source file of your themes. Usually there may be these files, <em>index.php</em>, etc.</p>
<p>Replace these codes in your index.php:</p>
<p>&lt;?php the_content(); ?&gt;</p>
<p>With:</p>
<p>&lt;?php the_excerpt(); ?&gt;</p>
<p><em>Notes: Function the_excerpt() will cut off your post&#39;s content with a maxlength 55 words. If you have some HTML tags or images in the front of content, they may be stripped. </em></p>
<p>the_excerpt() will display the excerpts with the end &quot;[...]&quot;, if you don&#39;t like it, please follow the next method to modify it.</p>
<p><strong>How to change the excerpt default length?</strong></p>
<p>If you want to change the default length(55 words) parameter. Please add these codes in your function.php of your theme:</p>
<pre class="brush:php">function my_excerpt_length($length) {
return 250;//change to your length.
}
add_filter(&#39;excerpt_length&#39;, &#39;my_excerpt_length&#39;);</pre>
<p><strong>How to change the default end of excerpts?</strong></p>
<p>Add this filter in your <em>function.php</em>.</p>
<pre class="brush:php">function my_excerpt_more($post) {
return &#39;&lt;a href=&quot;&#39;. get_permalink($post-&gt;ID) . &#39;&quot;&gt;&#39; . &#39;Click Me For More Details...&#39; . &#39;&lt;/a&gt;&#39;;//change to your name preferred.
}
add_filter(&#39;excerpt_more&#39;, &#39;my_excerpt_more&#39;);</pre>
<p>If you have any other questions, please let me know by your comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zzsay.com/blog/how-to-show-wordpress-excerpts-on-homepage/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
