<?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>WordPress and Wishlist Member plugin and theme &#187; How To</title>
	<atom:link href="http://hecode.com/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://hecode.com</link>
	<description>WordPress Professional Solutions - Wishlist Member advanced -  – SEO Consulting Services - Plugins and WP Theme</description>
	<lastBuildDate>Wed, 10 Aug 2011 04:05:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to downgrade WordPress? Or install older WordPress on new version by keeping same settings?</title>
		<link>http://hecode.com/how-to-downgrade-wordpress/</link>
		<comments>http://hecode.com/how-to-downgrade-wordpress/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 05:02:11 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[most wanted]]></category>

		<guid isPermaLink="false">http://hecode.com/?p=132</guid>
		<description><![CDATA[Although having latest WordPress is good idea, but sometime you may wish to back to earlier version of WordPress installation after upgrading your WordPress. This can happen when your plugins do not work with new version of  WordPress and your site is depend to that plugins. Good news is downgrading Latest Version of WordPress to [...]]]></description>
			<content:encoded><![CDATA[<p>Although having latest WordPress is good idea, but sometime you may wish to back to earlier version of WordPress installation after upgrading your WordPress. This can happen when your plugins do not work with new version of  WordPress and your site is depend to that plugins.</p>
<p>Good news is downgrading Latest Version of WordPress to a older version of WordPress  is very  easy task and that same as upgrading a WordPress to newer version but in reverse way.</p>
<p>Here I going to share my experience with you, how you can install older WordPress on newest version of WordPress. let say installing WordPress 3.0.0 on WordPress Version 3.2.1 without losing  current WordPress setting and data.  Save your time and avoid headache and enjoy reading this most wanted WordPress tip!<br />
<span id="more-132"></span></p>
<ol>
<li>First make full back up of your site.  Including your WordPress folders and database. You are reading this becase you missed to backup your WordPress before upgrade. Its good practice to backup your WordPress before upgrade or downgrade. You need to have access to your site control panel. Using a ftp program such as Filezilla you can make a copy of all files to your computer. By using a ftp program such as PhpMyAdmin you can  backup  your WordPress database. Also most control panel have a function that let you to backup everything just by one click.</li>
<li>Deactivate all active plugins.  Login to WordPress admin area and go to plugins section. Select active plugins and deactivate them. Pretty easy. First time I was afraid to lose my plugins and WordPress settings if I downgrade My WordPress . I write down  all settings of my plugins. It took almost 2 hours.  Good news is you can skip this part! don&#8217;t worry you have a full backup. right? ( I hope so!). then you have a option to restore your site to previews state and make a snapshot of setting of bad plugins if needed. Its safe to deactivate your plugin before downgrade. but it can be just fine if you do not do.</li>
<li>Delete wp-admin and wp-includes folder. ( make sure no plugin use this folders to save something).<br />
( update: I know its little scary to delete these folders. but you can always get these folders back from your backup or you can get a copy of it be extracting latest WordPress zip file. Also  I found another easy and faster way. Some Ftp software such as filezilla allow you to drag and drop folder to another location. Simply create a folder with name  _oldWP and select wp-admin and wp-includes and drag it to _oldWP folder. This is much faster than deleting these folders and same time it allow you to have them at _oldWP folder)</li>
<li>get the old version of wordpress that you need from<a href="http://wordpress.org/download/release-archive/"> wordpress.org release-archive</a><br />
at the writing time of this post, most people like to downgrade from wordpress Version 3.2.1 to wordpress Version 3.1.0! that is because most famous  plugin such as light box! are not ready to get power of latest WordPress yet.</li>
<li>unzip your desired version of WordPress and overwrite all files to your website by using ftp program. ( this will copy wp-admin and wp-includes to your ftp as well)</li>
<li>Go to your site admin area. This time you won&#8217;t see WordPress admin login page. Instead  you will notice a message that say wordpress need to upgrade current wordpress to new one!!. do not worry. It just shy to say it is actually downgrading but it know how to its job to downgrade your WordPress = )</li>
<li>login to admin area again (and activate all plugins you need).<br />
WordPress even tell you what plugin were active before downgrade, So you can activate all of them in one step.</li>
</ol>
<p>Everything will be fine and you can enjoy old WordPress installation on new on WordPress like you never did a upgrade.I tried to write as much as details I could.  Please share this post, If you found it useful.</p>
<p>If for any reason you are still afraid to do this scary task.  <a href="/contact">let me know to do it for you.</a> You will need to let me know what is your WordPress admin login details and your ftp login details. Please note this service is not free and it will cost you  50$ that you can pay after successful downgrade using PayPal. I will back up your site first and I take a movie of downgrading process that will show you how I downgrade your site. So next time you can do it your self.</p>
]]></content:encoded>
			<wfw:commentRss>http://hecode.com/how-to-downgrade-wordpress/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>How to add new membership levels by using WishList Member API?</title>
		<link>http://hecode.com/how-to-add-new-membership-levels-by-using-wishlist-member-api/</link>
		<comments>http://hecode.com/how-to-add-new-membership-levels-by-using-wishlist-member-api/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 11:41:21 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[WishList Member Tips]]></category>

		<guid isPermaLink="false">http://hecode.com/?p=533</guid>
		<description><![CDATA[WishList Member is a powerful WordPress plugin that allow to protect WordPress contents such as post or even files by adding levels to WordPress users.   It have friendly user interface and easy to us.  But you can go farther to do whatever you want using Wishlist member API.  Here I want to show you [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>WishList Member is a powerful WordPress plugin that allow to protect WordPress contents such as post or even files by adding levels to WordPress users.   It have friendly user interface and easy to us.  But you can go farther to do whatever you want using<a href="http://hecode.com/wlm"> Wishlist member API</a>.  Here I want to show you how easy you can add new levels directly from code.</p>
<p><span id="more-533"></span><br />
Example code:<br />
<pre class="brush: php">$my_user_id=2;

$mywlmapi= new WLMAPI();

echo &quot;&lt;h3&gt;1) we want to see user levels &lt;/h3&gt;&quot;;
echo &quot;&lt;pre&gt;&quot;;
$my_user_levels=$mywlmapi-&gt;GetUserLevels($my_user_id );
var_dump( $my_user_levels);
echo &quot;&lt;/pre&gt;&quot;;

echo &quot;&lt;h3&gt;2) we want see all levels details &lt;/h3&gt;&quot;;
echo &quot;&lt;pre&gt;&quot;;
$my_all_levels=$mywlmapi-&gt;GetLevels();
var_dump( $my_all_levels);
echo &quot;&lt;/pre&gt;&quot;;

echo &quot;&lt;h3&gt;3) we want to add a levels &lt;/h3&gt;&quot;;
echo &quot;&lt;br&gt;&lt;pre&gt;&quot;;
$AddUserLevelsresult=$mywlmapi-&gt;AddUserLevels($my_user_id, array('1288000851'));
var_dump( $AddUserLevelsresult);
echo &quot;&lt;/pre&gt;&quot;;

echo &quot;&lt;h3&gt;4) again we want to see user levels &lt;/h3&gt;&quot;;
echo &quot;&lt;pre&gt;&quot;;
$my_user_levels=$mywlmapi-&gt;GetUserLevels($my_user_id );
var_dump( $my_user_levels);
echo &quot;&lt;/pre&gt;&quot;; </pre></p>
<p>And here is example  output</p>
<pre class="brush: xml">1) we want to see user levels

array(1) {
[1288000826]=&gt;
string(6) &quot;silver&quot; &lt;-------- user with id=2 only have one level with level id= 1288000826 which is silver level
}

2) we want see all levels details

array(2) {
[1288000826]=&gt;
array(12) {
[&quot;name&quot;]=&gt;
string(6) &quot;silver&quot;
[&quot;url&quot;]=&gt;
string(6) &quot;Sdep89&quot;
[&quot;loginredirect&quot;]=&gt;
string(3) &quot;---&quot;
[&quot;afterregredirect&quot;]=&gt;
string(3) &quot;---&quot;
[&quot;noexpire&quot;]=&gt;
string(1) &quot;1&quot;
[&quot;upgradeTo&quot;]=&gt;
string(0) &quot;&quot;
[&quot;upgradeAfter&quot;]=&gt;
string(0) &quot;&quot;
[&quot;upgradeMethod&quot;]=&gt;
string(0) &quot;&quot;
[&quot;count&quot;]=&gt;
string(1) &quot;1&quot;
[&quot;role&quot;]=&gt;
string(10) &quot;subscriber&quot;
[&quot;levelOrder&quot;]=&gt;
string(0) &quot;&quot;
[&quot;ID&quot;]=&gt;
int(1288000826)
}
[1288000851]=&gt; &lt;----------- Golden level id that we want add it to user levels
array(10) {
[&quot;wpm_newid&quot;]=&gt;
string(10) &quot;1288000851&quot;
[&quot;name&quot;]=&gt;
string(6) &quot;golden&quot;
[&quot;url&quot;]=&gt;
string(6) &quot;NOWYj2&quot;
[&quot;loginredirect&quot;]=&gt;
string(3) &quot;---&quot;
[&quot;afterregredirect&quot;]=&gt;
string(3) &quot;---&quot;
[&quot;noexpire&quot;]=&gt;
string(1) &quot;1&quot;
[&quot;role&quot;]=&gt;
string(10) &quot;subscriber&quot;
[&quot;levelOrder&quot;]=&gt;
string(0) &quot;&quot;
[&quot;count&quot;]=&gt;
string(1) &quot;1&quot;
[&quot;ID&quot;]=&gt;
int(1288000851)
}
}

3) we want to add a levels

bool(true) &lt;--- level is added with no problem

4) again we want to see user levels

array(2) {
[1288000826]=&gt;
string(6) &quot;silver&quot;
[1288000851]=&gt;
string(6) &quot;golden&quot; &lt;-------- user now have two levels, silver and golden
}</pre>
<p><strong>Example Screenshots</strong><em>:</em></p>
<p>http://screencast.com/t/3YMSUOM4lxN</p>
<p>http://screencast.com/t/yWVDuhsxkF</p>
<p>http://screencast.com/t/w2jjp6Hcfg</p>
<p>http://screencast.com/t/2cXIgm15R</p>
<p>http://screencast.com/t/b3g2DzOGNEvH</p>
<p>Wonder what is<strong> Wishlist member wordpress plugin</strong> and what it can do?  <a href="http://hecode.com/wlm">check here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hecode.com/how-to-add-new-membership-levels-by-using-wishlist-member-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to move all wordpress posts from old author to another user without deleting old member?</title>
		<link>http://hecode.com/how-to-move-all-wordpress-posts-from-old-author-to-new-author/</link>
		<comments>http://hecode.com/how-to-move-all-wordpress-posts-from-old-author-to-new-author/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 20:24:53 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Wordpress Tips]]></category>

		<guid isPermaLink="false">http://hecode.com/?p=503</guid>
		<description><![CDATA[Most of us start to write posts by default admin user. Then  we may have more author. or maybe you have lots of posts under a author but now you wish to move them to another author without deleting the old author?  here is tips how you can do it. You can do this with [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>Most of us start to write posts by default admin user. Then  we may have more author. or maybe you have lots of posts under a author but now you wish to move them to another author without deleting the old author?  here is tips how you can do it.<span id="more-503"></span></p>
<p>You can do this with two way.</p>
<p>A) <strong>Moving post to new author by deleting old author:</strong></p>
<p>at user section of  WordPress admin area, find old author and Delete old author. then WordPress will ask you who you want to assign the posts that was belong to old author. Pretty simple, but you will lose old author user.</p>
<p>If you like keep old author user but move all post of old author to new one. then try following solution:</p>
<p>B)<strong> Moving post to new author without deleting old author:</strong></p>
<p>First we need find old author id. You find it by holding mouse on old author username at user section in WordPress admin area</p>
<p>You also can do it via phpmyadmin by using following sql</p>
<pre class="javascript" title="code"> SELECT ID  FROM wp_users where `display_name`='old_author_name'
</pre>
<p>same you can find ID of new author.</p>
<p>Now we  move all post from old author to new author . here is the sql code</p>
<pre class="javascript" title="code"> UPDATE wp_posts SET `post_author`='new_auhtor_id' WHERE
`post_author`='old_author_id'
</pre>
<p>There are no plugin to do above. If you enjoined it tweet it!</p>
]]></content:encoded>
			<wfw:commentRss>http://hecode.com/how-to-move-all-wordpress-posts-from-old-author-to-new-author/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wishlist Member FAQ</title>
		<link>http://hecode.com/wishlist-member-faq/</link>
		<comments>http://hecode.com/wishlist-member-faq/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 20:47:41 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[WishList Member Tips]]></category>

		<guid isPermaLink="false">http://hecode.com/?p=492</guid>
		<description><![CDATA[I created this page to answer your all kind of  questions about Wishlist Member WordPress plugin. Do you have any difficulty getting most of WishList member? Wonder how other site used Wishlist member and you wish to know that? Newbie and advanced  questions  are welcome. I answer all type of related question. Feel free to [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>I created this page to answer your all kind of  questions about <a title="Try wishlist list member plugin for wordpress" href="http://hecode.com/wlm">Wishlist Member WordPress plugin</a>. Do you have any difficulty getting most of WishList member? Wonder how other site used Wishlist member and you wish to know that? Newbie and advanced  questions  are welcome. I answer all type of related question. Feel free to ask you question via comment.</p>
<p>Thank you.</p>
<p>Andy</p>
]]></content:encoded>
			<wfw:commentRss>http://hecode.com/wishlist-member-faq/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>How to create a full WordPress backup and restore or sync it with local website</title>
		<link>http://hecode.com/how-to-create-a-full-wordpress-backup-and-restore-and-sync-them-with-localhost/</link>
		<comments>http://hecode.com/how-to-create-a-full-wordpress-backup-and-restore-and-sync-them-with-localhost/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 15:16:33 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[Best WordPress Plugins]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://hecode.com/?p=397</guid>
		<description><![CDATA[I backup my wordpress once a month. I recommend  you backup your wordpress  too. You won&#8217;t regret  having backup, instead  you will be happy when thing go wrong. There will be always a option to go back. for most having a backup and restore is scary task. but if you do it several time it [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>I backup my wordpress once a month. I recommend  you backup your wordpress  too. You won&#8217;t regret  having backup, instead  you will be happy when thing go wrong. There will be always a option to go back. for most having a backup and restore is scary task. but if you do it several time it become habit. I want to explain how you even can make it fun and enjoy having full WordPress backup!</p>
<p><span id="more-397"></span></p>
<p>Most important part of your wordpress to have a backup of them is wordpress database and wp-content folder.</p>
<p>you need to make sure you included above in your backup. other section are not much important becase you can always download wordpress core files from wordpress website. or regenerate wp-config and .htaccess  file.</p>
<p>However to mike life easy is best, we create one backup and include all files on server.</p>
<h2>Doing full backup of live website</h2>
<h3>Making backup of database:</h3>
<p>Make a database backup using <a href="http://wordpress.org/extend/plugins/wp-dbmanager/" target="_blank">wp-dbmanager wordpress plugin</a> &lt;&#8211; good for beginners</p>
<p>other good alternative are <a href="http://wordpress.org/extend/plugins/wp-phpmyadmin/" target="_blank">WP-phpMyAdmin</a> &lt;&#8211;  Good for professionals!</p>
<h3>Making  backup of files:</h3>
<p>Copy your wordpress files  by using a ftp program such as free ftp <a href="http://filezilla-project.org/download.php" target="_blank">filezilla</a></p>
<h2>Restoring from full backup to online website</h2>
<h3>Restore database from a backup</h3>
<p>by using phpmyadmin you can transfer your backup database to online database.</p>
<p>do not worry. there is nothing to lost. because you already have a backup. you may need remove database if you did not checked &#8220;ADD DROP TABLE / VIEW / PROCEDURE / FUNCTION&#8221; when you did database export.</p>
<h4>Restore files from backup to server</h4>
<p>This section is easy. again by using ftp program you can copy back or upload all files to your server.</p>
<hr />
<h3>Note:  You can restore your backup to another website too. This way your second website become exact clone of first website. To clone your WordPress to another Domain you need to</h3>
<ul>
<li>change wp-config file with new database name, user and password.</li>
<li>Change value of siteurl and home  of wp-option table in database to  new website URL ( using php my admin in new website. or using a text editor and replace the value inside sql file before restoring the database.</li>
</ul>
<hr />You can use above solution to make backup and restore of any wordpress website.</p>
<h2>How sync my online wordpress with local  wordpress?</h2>
<p>As coder the way I do is like this. I sync my online database to my local database. I zip my my online files and after transfer to local storage I extract them in local domain. zipped files are much smaller and copying one file from in much faster and safer  than copy all server files one by one.</p>
<p>To make life easier my local domain and database are same as online domain and database. so I no need change wp-config or database site and home value. So my online website will be 100% exact clone.</p>
<p>Working on exact clone at localhost is very fast and fun. It&#8217;s like you have tomorrow internet speed. I sync from server to local one time at end of the month. during month I work at local wordpress. If I were happy with result I transfer them to online wordpress site.</p>
<p>You may want to read my previous post on<a href="/simple-way-to-backup-clone-sync-online-wordpress-website-to-local-development-website-by-using-ssh/"> Simple way to backup your online wordpress website and clone or sync it to local development website by using SSH</a></p>
<p>Do you have better or easier solution? Please share it with rest of the world in comments.<br />
I hope you enjoyed. If  still you need my assistante , I&#8217;ll be <a href="/contact">happy to help you</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hecode.com/how-to-create-a-full-wordpress-backup-and-restore-and-sync-them-with-localhost/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Easy Contact form 7 Guide and Customization and most wanted tips</title>
		<link>http://hecode.com/easy-contact-form-7-guide-and-customization/</link>
		<comments>http://hecode.com/easy-contact-form-7-guide-and-customization/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 17:26:59 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://hecode.com/?p=360</guid>
		<description><![CDATA[Easy Contact form 7 Guide, Customization and most wanted tips.  Set replay to. change submit button style. Add multi recipients , BB or BCC.  Get all the sender info right inside email body. and give sender a copy too! &#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Mail section &#8212;&#8212;&#8212;&#8211; Example: http://screencast.com/t/YjEzYmI1NGEt To: field: The e-mail address that will receive the results.( enter [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>Easy Contact form 7 Guide, Customization and most wanted tips.  Set replay to. change submit button style. Add multi recipients , BB or BCC.  Get all the sender info right inside email body. and give sender a copy too!<br />
<span id="more-360"></span><br />
<strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Mail section &#8212;&#8212;&#8212;&#8211;</strong></p>
<p>Example: http://screencast.com/t/YjEzYmI1NGEt</p>
<ul>
<li><strong>To:</strong> field: The e-mail address that will receive the  results.( <strong>enter your email </strong>)Note: You can add multi recipients. separate them with commas:<br />
example: <code>Admin@example.com,log@example.com,me@example.com</code></p>
<p>you also can display a selection of receptions to select.<br />
<code>Example: <strong>[select recipient "CEO|ceo@example.com" "Sales|sales@example.com"  "Support|support@example.com"]</strong></code><strong> </strong></p>
<p><strong> </strong><code><br />
</code></li>
<li><strong>From:</strong> field: sender email. example<strong> [your-name] &lt;[your-email]&gt; </strong><strong> </strong></li>
<li><strong>Subject</strong>: field:  mail subject. example: <strong>[your-subject] </strong><strong> </strong></li>
<li><strong>Additional headers:</strong> type in <strong>Reply-To:  [your-email]</strong><br />
(Very important) This  will allow you to reply to the person directly when you are reading the email later.You also can add CC and BCC if you need.</p>
<p>Example:<br />
<strong>CC: mom@example.com<br />
BCC:dad@example.com</strong></li>
<li><strong>Message Body</strong> field: Type like following:( thenyou will see all info in one place in email body)<strong>[your-message]</strong>Subject:<strong>[your-subject]<br />
</strong>Name: <strong>[your-name]<br />
</strong>Email:<strong> [your-email]<br />
</strong>Website: <strong>[your-website]<br />
</strong>IP: <strong><code>[_remote_ip]</code></strong></li>
</ul>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<strong> Mail section 2</strong> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Its good to send another email to sender to let him know we recived his email.</p>
<p>See  example: http://screencast.com/t/ZTE0OTAyYT</p>
<p>If you like to see it in action, Try my <a href="/contact">contact</a> page and say thank you to me! You will get similar to above screen-shot immediately in your mail box!</p>
<p><strong>&#8212;&#8212;&#8212;&#8212;&#8212; Messages &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</strong></p>
<p>After  form is submitted the viewer is able to see the response  messages such as “Your message was sent successfully”, “Validation  errors occurred.” etc.</p>
<p>You can change all kind of message that may appear to the sender here.</p>
<p>Example: http://screencast.com/t/NTRlYWU2M</p>
<p><strong>&#8212;&#8212;&#8212;&#8212;- Additional Settings &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</strong></p>
<p>Good place to add your own JS script. for example if you want to nevigate to a thank you page after submitting a message you can write like this:</p>
<p><strong>on_sent_ok: &#8220;location.replace(&#8216;http://yourdomain.com/thank-you/&#8217;);&#8221;</strong></p>
<p><code>*How to auto fill a form input?</code></p>
<p>Add a id to that input.</p>
<p>use below javascript plus exct php plugin to run the code within your post:</p>
<pre class="javascript" title="code"><script type="text/javascript"><!--mce:0--></script>
</pre>
<p>* <strong>how to change style of submit bottom?</strong></p>
<p>Add a class to submit button :</p>
<p>example: <code>&lt;p align="left"&gt;[submit class:buttons_mainpage "  "]&lt;/p&gt;</code></p>
<p>then add the  style like this:</p>
<pre class="css" title="code">.buttons_mainpage {
	background-image: url("images/but_submit.png");
	background-repeat: no-repeat;
	margin: 0px 190px 0px 0px;
	padding: 0px;
	float: right;
	height: 26px;
	width: 69px;
	border: 0 none;
	cursor: pointer;
}
</pre>
<p>* How to erase fields on focus</p>
<p>No easy way! You need edit edited \modules\text.php and replace</p>
<pre class="html" title="code">$html = '
<input name="' . $name . '" type="text" value="' .  esc_attr( $value ) . '" />'</pre>
<p>with</p>
<pre class="html" title="code">$html = '&lt;input type="text" name="' . $name . '" value="' . esc_attr( $value ) . '"' . $atts . ' onfocus="if(this.value==\'';

$html = $html . esc_attr( $value ) . '\') this.value=\'\';" onblur="if(this.value==\'\') this.value=\'' . esc_attr( $value ) . '\';" /&gt;';
</pre>
<p><strong>* how to allow only admin edit the contact  form and prevent others?</strong></p>
<pre class="php" title="code">define( 'WPCF7_ADMIN_READ_CAPABILITY', 'manage_options' );
define( 'WPCF7_ADMIN_READ_WRITE_CAPABILITY', 'manage_options' );
</pre>
<p>read more about manage_options http://codex.wordpress.org/Glossary#Capabilities</p>
<p>* <strong>How to insert contact name and email in database after sucessfull submission?</strong></p>
<p>Contact Form 7 has many action/filter hooks in its code. So, if you  are familiar with WordPress plugin development, you can use them to save  data into DB.  best hook for it at <code>wpcf7_before_send_mail</code> in  includes/classes.php</p>
<p>Example:</p>
<p>add_action( &#8216;wpcf7_before_send_mail&#8217;, &#8216;my_conversion&#8217; );</p>
<pre class="php" title="code">function my_conversion( $cf7 )
{
$email = $cf7-&gt;posted_data["your-email"];
$name = $cf7-&gt;posted_data["your-name"];
insert_newsletter_subscriber($email, $name);
}
</pre>
<p>Note:  You need to write  your own insert_newsletter_subscriber()</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; <strong> Tip</strong> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>You can use folowingspecial mail tags  in main body too:</p>
<table>
<tbody>
<tr>
<td><code>[_remote_ip]</code></td>
<td>This tag will be replaced by the sender’s client IP address.</td>
</tr>
<tr>
<td><code>[_url]</code></td>
<td>This tag will be replaced by the URL of the contact form.</td>
</tr>
<tr>
<td><code>[_date]</code></td>
<td>This tag will be replaced by the date of the submission.</td>
</tr>
<tr>
<td><code>[_time]</code></td>
<td>This tag will be replaced by the time of the submission.</td>
</tr>
<tr>
<td><code>[_post_id]</code></td>
<td>This tag will be replaced by the ID of the post which contains the  contact form.</td>
</tr>
<tr>
<td><code>[_post_name]</code></td>
<td>This tag will be replaced by the name (slug) of the post which  contains the contact form.</td>
</tr>
<tr>
<td><code>[_post_title]</code></td>
<td>This tag will be replaced by the title of the post which contains  the contact form.</td>
</tr>
<tr>
<td><code>[_post_url]</code></td>
<td>This tag will be replaced by the permalink of the post which  contains the contact form.</td>
</tr>
<tr>
<td><code>[_post_author]</code></td>
<td>This tag will be replaced by the author name of the post which  contains the contact form.</td>
</tr>
<tr>
<td><code>[_post_author_email]</code></td>
<td>This tag will be replaced by the author email of the post which  contains the contact form.</td>
</tr>
</tbody>
</table>
<p>Note that the <code>[_post_*]</code> tag has value only when you put  the contact form into content of a post or a page. They are not  available if the contact form is put inside a sidebar widget.</p>
<p>The form of those special mail tags has been changed in Contact Form 7  2.2. Old form (<code>[wpcf7.*]</code>) are still supported and able to  work.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; <strong> Tip</strong> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>If you want to show a rest form button, add this:<br />
<code>&lt;input type="reset" /&gt;</code></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; <strong> Tip</strong> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>if you want to show post title in email body add this:<br />
<code>[wpcf7.post_title]</code></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; <strong> Tip</strong> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>By default, Contact Form 7 loads three JavaScript files —  contact-form-7.js, jquery.form.js and jquery.js — into the header of  each page. They are necessary for Ajax. If you want to disable such  loading of these files in all pages and control it to load in select  pages only, you can do that by first prevent their loading totally by  inserting the following line in the wp-config.php file.</p>
<p><code>define ('WPCF7_LOAD_JS', false );</code></p>
<p>Then you may call these files to load in a particular file by  inserting the following line in the relevant template ahead of the call  to wp_head():</p>
<p><code>wpcf7_enqueue_scripts();</code></p>
<p>Using this tip can improve your WordPress page loading and SEO!</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; <strong> Tip</strong> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>you can use tag  [response] anywhere you like. this tag is like place holder for displaying message. all message appear where you place a tag [response].</p>
<p>Do you know additional WordPress Contact Form 7 plugin tips? Please share it via commnets</p>
<p>Need Farther help and support? <a href="/contact">Contact me</a></p>
<p>Looking for different WordPress plugin? Try  <a href="/wlm">Wishlist member wordpress plugin</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hecode.com/easy-contact-form-7-guide-and-customization/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>How to fix World-writable config file /etc/my.cnf is ignored?</title>
		<link>http://hecode.com/how-to-fix-world-writable-config-file-etcmy-cnf-is-ignored/</link>
		<comments>http://hecode.com/how-to-fix-world-writable-config-file-etcmy-cnf-is-ignored/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 14:46:36 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://hecode.com/?p=336</guid>
		<description><![CDATA[You may get this error after trying to backup your mysql database using mysqldump command warning: World-writable config file /etc/my.cnf is ignored or sometime when yoy start  Xampp, you may see error like this: Starting XAMPP for Linux &#8230; XAMPP: Starting Apache with SSL (and PHP5)&#8230; XAMPP: Starting MySQL&#8230; XAMPP: Starting ProFTPD&#8230; warning: World-writable config [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>You may get this error after trying to backup your mysql database using mysqldump command</p>
<p><code>warning: World-writable config file /etc/my.cnf is ignored</code></p>
<p>or sometime when yoy start  Xampp, you may see error like this:</p>
<p>Starting XAMPP for Linux &#8230;<br />
XAMPP: Starting Apache with SSL (and PHP5)&#8230;<br />
XAMPP: Starting MySQL&#8230;<br />
XAMPP: Starting ProFTPD&#8230;<br />
warning: World-writable config file /etc/my.cnf is ignored<br />
warning: World-writable config file /etc/my.cnf is ignored<br />
warning: World-writable config file /etc/my.cnf is ignored<br />
XAMPP for Linux started.</p>
<p>This is  just a waring and can be ignored but here is the solution how to fix it<br />
<span id="more-336"></span></p>
<p>MySQL is deliberately ignoring your config file (my.cnf) as a safety  precaution because the file can be over-written by a malicious user.</p>
<p>To  see the file&#8217;s permissions, use the following command.To see the file&#8217;s permissions, use the following command.</p>
<p><code>ls -l  /etc/my.cnf</code><br />
in response, you will see:</p>
<p>-rw-r&#8211;r&#8211;  1  4998 Apr 2  2010 /etc/my.cnf</p>
<p>If the  first part of the line looks like &#8220;-rw-rw-rw-&#8221;  or &#8220;rwxrwxrwx&#8221;, the  file&#8217;s permissions are &#8220;World-writable&#8221;.</p>
<p>To fix this problem,  use the following command to change file&#8217;s permissions</p>
<p><code>chmod 644  /opt/lampp/etc/my.cnf</code></p>
<p>Note: if you looking for a way to backup your Mysql database via ssh and mysqldump, then please read my previous post about <a href="http://hecode.com/simple-way-to-backup-clone-sync-online-wordpress-website-to-local-development-website-by-using-ssh/">how to backup your online website and clone or sync it to local website</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hecode.com/how-to-fix-world-writable-config-file-etcmy-cnf-is-ignored/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Simple way to backup your online wordpress website and clone or sync it to local development website by using SSH</title>
		<link>http://hecode.com/simple-way-to-backup-clone-sync-online-wordpress-website-to-local-development-website-by-using-ssh/</link>
		<comments>http://hecode.com/simple-way-to-backup-clone-sync-online-wordpress-website-to-local-development-website-by-using-ssh/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 14:01:45 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Wordpress Tips]]></category>

		<guid isPermaLink="false">http://hecode.com/?p=326</guid>
		<description><![CDATA[I am sharing my simple SSH script to backup my online server. First it remove my last backup. I do not want to keep more than last backup in my server. It zip all file of my website ( except excluded directories )  into  mydomainbackup.zip at backup_path It zip a dump of mysql into mysqldump.zip [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>I am sharing my simple SSH script to backup my online server.</p>
<ul>
<li>First it remove my last backup. I do not want to keep more than last backup in my server.</li>
<li>It zip all file of my website ( except excluded directories )  into  mydomainbackup.zip at backup_path</li>
<li>It zip a dump of mysql into mysqldump.zip at backup path</li>
</ul>
<p>Now I have full backup of all files and database in my server.  Then I copy it into my local computer. If  needed I clone or sync  it in my local development website. Here is the SSH script:<span id="more-326"></span><br />
<code><br />
clear<br />
# delete old backup<br />
rm -rf /backup_path/</code></p>
<p># create new dir<br />
mkdir  /backup_path/<br />
zip -r -q -9  &#8220;/backup_path/mydomainbackup.zip&#8221; &#8221; /path_to_my_domain/&#8221;  -x */dl/* -x */stats/* -x */logs/*  -x */fg/*  -x */*.kde/*</p>
<p># backup mysql<br />
mysqldump -u username -p password databasename -c |zip -9 -q &gt; /backup_path/mysqldump.zip</p>
<p>clear<br />
# finished</p>
<p>The way I use is, copy pasting above code into SSH terminal! Above script can be much better. but currently It do the task I needed.</p>
<p>I do backup end of each month. durring month I transfer modified files from local website to online website.This way may online website and local development website will be sync together.  More details  about my working environment coming soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://hecode.com/simple-way-to-backup-clone-sync-online-wordpress-website-to-local-development-website-by-using-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>7  simple ways to make your wordpress faster</title>
		<link>http://hecode.com/simple-ways-to-make-your-wordpress-faster/</link>
		<comments>http://hecode.com/simple-ways-to-make-your-wordpress-faster/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 13:31:51 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Wordpress Tips]]></category>

		<guid isPermaLink="false">http://hecode.com/?p=313</guid>
		<description><![CDATA[Do you feel your WordPress is slow? What happen if  your WordPress  get more than 10,000 visitors a day?  Some hosting providers ban your site for using too many resources. Upgrading hardware such as memory and CPU is good but it is not necessary to purchase expensive hosting plans, when you can improve you WordPress [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>Do you feel your WordPress is slow? What happen if  your WordPress  get more than 10,000 visitors a day?  Some hosting providers ban your site for using too many resources. Upgrading hardware such as memory and CPU is good but it is not necessary to purchase expensive hosting plans, when you can improve you WordPress performance with simple ways.  learn how to make your WordPress faster by applying simple tips.<br />
<span id="more-313"></span></p>
<ol>
<li><strong>Modify post AutoSave Interval</strong> ( add this to wp-config.php)<br />
define(&#8216;AUTOSAVE_INTERVAL&#8217;, 160 );  // seconds</li>
<li><strong>Disable Post Revisions or Specify the Number of Post Revisions</strong>( add this to wp-config.php)<br />
Example: define(&#8216;WP_POST_REVISIONS&#8217;, false );<br />
Example: define(&#8216;WP_POST_REVISIONS&#8217;, 3);</li>
<li><strong>Faster administration area  by disabling Javascript Concatenation</strong>( add this to wp-config.php)<br />
define(&#8216;CONCATENATE_SCRIPTS&#8217;, false);</li>
<li> <strong>Increasing memory allocated to PHP</strong> ( add this to wp-config.php <a title="How to increase php wordpress memory limit" href="http://hecode.com/how-to-increase-php-wordpress-memory-limit/">read more way here</a>)<br />
Example:  define(&#8216;WP_MEMORY_LIMIT&#8217;, &#8217;96M&#8217;);</li>
<li> <strong>Empty Trash</strong> ( add this to wp-config.php wp29+ You will love this) the number of days before WordPress permanently deletes posts, pages,  attachments, and comments, from the trash bin.<br />
define(&#8216;EMPTY_TRASH_DAYS&#8217;, 0 );  // zero days<br />
define(&#8216;EMPTY_TRASH_DAYS&#8217;, 5 );  // 5 days</li>
<li> <strong>Automatic Database Optimizing</strong> (wp2.9  add this to wp-config.php)<br />
define(&#8216;WP_ALLOW_REPAIR&#8217;, true);</li>
<li> <strong>Enable  the WordPress Object Cache</strong> ( add this to wp-config.php)<br />
define(ENABLE_CACHE,  true);</li>
<li><strong>Disable unnecessary WordPress plugins </strong><br />
This really works. problem is not from your slow server or WordPress fault!.  Most plugin need DNS query to get some info from external sites. DNS respond are normally slow. and so many DNS requests at same time  from different unwanted plugin really makes your wordpress seem very slow!</li>
</ol>
<p><strong>Advanced ways to make your WordPress faster is coming soon</strong>. <a href="http://hecode.com/register/">be a member today and read it first</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hecode.com/simple-ways-to-make-your-wordpress-faster/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to translate  Wishlist member plugin to your own language?</title>
		<link>http://hecode.com/how-to-translate-wordpress-wishlist-member-to-your-own-language/</link>
		<comments>http://hecode.com/how-to-translate-wordpress-wishlist-member-to-your-own-language/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 23:12:56 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[WishList Member Tips]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[translate]]></category>
		<category><![CDATA[wlm]]></category>

		<guid isPermaLink="false">http://hecode.com/?p=283</guid>
		<description><![CDATA[Not everybody knows English.  Take advantage of your second language to enjoy more fresh members at your WordPress membership site.  Learn how to translate your WordPress and Wishlist member wordpress plugin to none English language. You can even translate your site to more than one language at same time. Here is how to do this. [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushPhp.js"></script>
            <script type="text/javascript" src="http://hecode.com/wp-content/plugins/wordpress-code-snippet/scripts/shBrushXml.js"></script>
<p>Not everybody knows English.  Take advantage of your second language to enjoy more fresh members at your WordPress membership site.  Learn how to translate your WordPress and <a href="/wlm" target="_blank">Wishlist member wordpress plugin</a> to none English language. You can even translate your site to more than one language at same time. Here is how to do this.<br />
<span id="more-283"></span></p>
<p>You have two option to translate your membership website. I explain both ways:</p>
<p><strong>How to translate Wishlist Member</strong><strong> when your site have only one none-english language?</strong></p>
<p><em>Step I. Creating the correct language file</em></p>
<p>1. Download poEdit at <a rel="nofollow" href="http://www.poedit.net/">www.poedit.net</a><br />
2. Open the file po file /plugins/wishlistmember/lang/wishlist-member-en_US.po<br />
3. Click File -&gt; Save As and change en_US to anything you want (i.e.  de for German) so that the filename becomes something like  wishlist-member-de.po<br />
4. Translate<br />
5. Click File -&gt; Save at same path</p>
<p>This now generates the correct .po and .mo files for your language.</p>
<p><em>Step II. Tell WordPress to use your language file</em></p>
<p>1. Edit wp-config.php<br />
2. Locate the line that says: define (&#8216;WPLANG&#8217;, &#8221;);<br />
3. Change it to: define (&#8216;WPLANG, &#8216;de&#8217;);<br />
(Note, use whatever language code you used when you made your  translation)<br />
4. Save wp-config.php</p>
<p>That&#8217;s all. enjoy your Membership website powered by WordPress and Wishlist member at your own language.</p>
<p><strong>Your site support more than one language at same time. </strong></p>
<p><em>Step I and II. Creating the correct language files</em></p>
<p>Same of above create po files for languages you need.</p>
<p>Step III. Writing same post/page at more than one language</p>
<p>You need to install the free<a href="http://wordpress.org/extend/plugins/qtranslate/  " target="_blank"> Q-Translate plugin</a> for WordPress. This plugin allow to write your post at more than one language. Simply you will have a multi  language membership website.</p>
]]></content:encoded>
			<wfw:commentRss>http://hecode.com/how-to-translate-wordpress-wishlist-member-to-your-own-language/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

