<?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>King Php</title>
	<atom:link href="http://kingphp.com/feed" rel="self" type="application/rss+xml" />
	<link>http://kingphp.com</link>
	<description></description>
	<lastBuildDate>Fri, 13 Jan 2012 11:01:29 +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>Show Latest Testimonals at Zen-Cart Homepage</title>
		<link>http://kingphp.com/217.html</link>
		<comments>http://kingphp.com/217.html#comments</comments>
		<pubDate>Fri, 13 Jan 2012 11:01:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Zen Cart]]></category>

		<guid isPermaLink="false">http://kingphp.com/?p=217</guid>
		<description><![CDATA[Sometimes we like to show several latest customers testimonals at zen-cart based shopping cart homepage. How to do then? Here are my method, let me share the code with you. Go go to includes/modules, and open left_column.php, add the following code: &#60;code&#62;&#60;? $sql = &#8220;select  * from pres_testimonials where status = 1 order by id [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes we like to show several latest customers testimonals at zen-cart based shopping cart homepage. How to do then? Here are my method, let me share the code with you.</p>
<p>Go go to includes/modules, and open left_column.php, add the following code: &lt;code&gt;&lt;? $sql = &#8220;select  * from pres_testimonials where status = 1 order by id DESC limit 3&#8243;; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { echo &#8220;&lt;strong&gt;&#8221;.$row[name].&#8221;&lt;/strong&gt;&#8221;; echo $row[detail];<span id="more-217"></span></p>
<p>} ?&gt; &lt;/code&gt;</p>
<p>If you like to show not more than 110 words per testimonal, you can use the folliwing code: &lt;code&gt;&lt;? $sql = &#8220;select  * from pres_testimonials where status = 1 order by id DESC limit 3&#8243;; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { echo &#8220;&lt;strong&gt;&#8221;.$row[name].&#8221;&lt;/strong&gt;&#8221;;</p>
<p>$pos = strpos($row[detail],&#8221; &#8220;,110); $txt1 = substr($row[detail],0,$pos);</p>
<p>echo $txt1.&#8221;&lt;br&gt;&lt;/br&gt;&#8221;;</p>
<p>} ?&gt;&lt;/code&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/217.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add Extra Text at X-cart Product Name?</title>
		<link>http://kingphp.com/213.html</link>
		<comments>http://kingphp.com/213.html#comments</comments>
		<pubDate>Sat, 24 Dec 2011 11:45:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[X-Cart]]></category>

		<guid isPermaLink="false">http://kingphp.com/?p=213</guid>
		<description><![CDATA[There are several places need to modify to add extra text at X-cart Product Name. 1. For Products at X-cart Homepage and Detailed Category Page: Go to /2-columns/customer/main/products_t.tpl, and change {$current_category.category} {$product.product&#124;amp} to: {if $main eq "catalog" &#038;&#038; $current_category.category eq ""} Cheap Eyeglasses {$product.product&#124;amp} {elseif $main eq "catalog" &#038;&#038; $current_category.category ne ""} {$current_category.category} {$product.product&#124;amp} {/if} [...]]]></description>
			<content:encoded><![CDATA[<p>There are several places need to modify to add extra text at X-cart Product Name.</p>
<p>1. For Products at X-cart Homepage and Detailed Category Page:<br />
Go to /2-columns/customer/main/products_t.tpl, and change<br />
<code><a href="{$product.alt_url|default:$product.page_url|amp}" class="product-title">{$current_category.category}  {$product.product|amp}</a></code><br />
to:<br />
<code>{if $main eq "catalog" &#038;&#038; $current_category.category eq ""}<br />
<a href="{$product.alt_url|default:$product.page_url|amp}" class="product-title">Cheap Eyeglasses {$product.product|amp}</a><br />
{elseif $main eq "catalog" &#038;&#038; $current_category.category ne ""}<br />
<a href="{$product.alt_url|default:$product.page_url|amp}" class="product-title">{$current_category.category} {$product.product|amp}</a><br />
{/if}</code><br />
<span id="more-213"></span></p>
<p>2. For Product Names at Detailed Product Page, go to /common_files/customer/main/product.tpl<br />
Change:<br />
<code><br />
<h1>{$product.producttitle|amp}</h1>
<p> </code><br />
to:<br />
<code><br />
<h1>Prescription Eyeglasses {$product.producttitle|amp}</h1>
<p> </code><br />
Here just add &#8220;Prescription Eyeglasses&#8221; as what we need to add.</p>
<p>3. Product Names within Customer Also Bought ( at the end of Detaild Product Page), go to /common_files/customer/simple_products_list.tpl, and change<br />
<!--more--><a href="product.php?productid={$product.productid}" class="product-title"{if $open_new_window eq 'Y'} target="_blank"{/if}>{$product.product|amp}</a><!--more--><br />
to:<br />
<code><a href="product.php?productid={$product.productid}" class="product-title"{if $open_new_window eq 'Y'} target="_blank"{/if}>Discount Eyeglasses {$product.product|amp}</a></code><br />
Here we add &#8220;Discount Eyeglasses&#8221; as extra text.</p>
<p>4. Product Name with Bestsellers<br />
Go to /common_files/modules/Bestsellers/menu_bestsellers.tpl, and change:<br />
<code><a href="product.php?productid={$b.productid}&amp;cat={$cat}&amp;bestseller=Y">{$b.product|amp}</a></code><a href="product.php?productid={$b.productid}&amp;cat={$cat}&amp;bestseller=Y">{$b.product|amp}</a><br />
to:<br />
<code><a href="product.php?productid={$b.productid}&amp;cat={$cat}&amp;bestseller=Y">Eyeglasses {$b.product|amp}</a></code><br />
Here we add &#8220;Eyeglasses&#8221; as extra text.</p>
<p>5. Product name within Recently Viewed, go to /common_files/modules/Recently_Viewed/content.tpl, and change:<br />
<code><a href="{$url}" class="product-title">{$rviewed_products[i].product|amp}</a></code><br />
to:<br />
<code><a href="{$url}" class="product-title">Eyeglasses {$rviewed_products[i].product|amp}</a></code><br />
Here we also add &#8220;Eyeglasses&#8221; as extra text.</p>
<p>The above method has been tested successfully at X-cart Gold V4.4.4</p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/213.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Remove the Website Field of WordPress From the Comment Form?</title>
		<link>http://kingphp.com/210.html</link>
		<comments>http://kingphp.com/210.html#comments</comments>
		<pubDate>Wed, 30 Nov 2011 01:53:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://kingphp.com/?p=210</guid>
		<description><![CDATA[We found so many spammers try to leave their url in the field of Website, and use Name as their keywords. How to prevent the spammers doing so then? For example, how to prevent them to leave thir url? Let me share my tips with you. Go to your blog root, open wp-comments-post.php and find [...]]]></description>
			<content:encoded><![CDATA[<p>We found so many spammers try to leave their url in the field of Website, and use Name as their keywords. How to prevent the spammers doing so then? For example, how to prevent them to leave thir url? Let me share my tips with you.<span id="more-210"></span></p>
<p>Go to your blog root, open wp-comments-post.php and find<br />
<code>$comment_author_url   = ( isset($_POST['url']) )     ? trim($_POST['url']) : null;</code><br />
You can add your own url here, for example, add http://kingphp.com, the code will be:<br />
<code>$comment_author_url   = "http://kingphp.com"; //( isset($_POST['url']) )     ? trim($_POST['url']) : null;</code></p>
<p>Done. I have tested the code successfully under wordpress  Version 3.2.1</p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/210.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable ajax to Deal with Time Out Issues</title>
		<link>http://kingphp.com/208.html</link>
		<comments>http://kingphp.com/208.html#comments</comments>
		<pubDate>Mon, 28 Nov 2011 02:14:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Link Directory]]></category>

		<guid isPermaLink="false">http://kingphp.com/?p=208</guid>
		<description><![CDATA[If you have thousands categories and you do not enable ajax, you will often meet time out issues, such as: Fatal error: Maximum execution time of 30 seconds exceeded in ****include/functions.php on line XXX How to deal with this then? Here let me share my tip with you. Log in you PHP Link Directory admin [...]]]></description>
			<content:encoded><![CDATA[<p>If you have thousands categories and you do not enable ajax, you will often meet time out issues, such as:<br />
Fatal error: Maximum execution time of 30 seconds exceeded in ****include/functions.php on line XXX</p>
<p>How to deal with this then? Here let me share my tip with you.<span id="more-208"></span></p>
<p>Log in you PHP Link Directory admin panel, Click &#8220;Settings&#8221;, and choose &#8220;Admin Area&#8221;, Under the new window of &#8220;Admin Area&#8221;,  did you see &#8220;Category selection method&#8221;? That&#8217;s it! </p>
<p>You should select &#8220;Live catgory selection with AJAX&#8221;, and save!<br />
Done! Easy?!</p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/208.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to change x-cart v4.4.4 Admin Title?</title>
		<link>http://kingphp.com/204.html</link>
		<comments>http://kingphp.com/204.html#comments</comments>
		<pubDate>Fri, 25 Nov 2011 13:05:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[X-Cart]]></category>

		<guid isPermaLink="false">http://kingphp.com/?p=204</guid>
		<description><![CDATA[When we visit our X-Cart shopping cart admin panel, the defaul words between is X-CART. Powerful PHP shopping cart software. How can we change these words to meet our needs then? There are 2 methods: First one, login you admin panel, go to content&#8211;>languages, select English under &#8220;Edit Language&#8221;, after that search &#8220;txt_site_title&#8221;, you can [...]]]></description>
			<content:encoded><![CDATA[<p>When we visit our X-Cart shopping cart admin panel, the defaul words between  is X-CART. Powerful PHP shopping cart software. How can we change these words to meet our needs then?</p>
<p>There are 2 methods:<span id="more-204"></span><br />
First one, login you admin panel, go to content&#8211;>languages, select English under &#8220;Edit Language&#8221;, after that search &#8220;txt_site_title&#8221;, you can edit the words as you like.</p>
<p>Another method is go to tools &#8211;> webmaster tool, and start webmaster mode, click &#8220;common_files/single/home.tpl&#8221;, you will find , just exchage {$lng.txt_site_title} to  the words you like. </p>
<p>Done, easy or not?@</p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/204.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chang X-cart Detailed Product Page Product Thumbnail Place</title>
		<link>http://kingphp.com/202.html</link>
		<comments>http://kingphp.com/202.html#comments</comments>
		<pubDate>Mon, 14 Nov 2011 00:21:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[X-Cart]]></category>

		<guid isPermaLink="false">http://kingphp.com/?p=202</guid>
		<description><![CDATA[As we know, at x-cart 2 colomns template, product thumbnail of detailed product page is at the left. How can we change the Product Thumbnai to center, and at the same time, remove the default left space? Remove the Detailed Product Page Product Thumbnail Place: 1. open skin/common_files/customer/main/product.tpl, delete the following code: {if $active_modules.Detailed_Product_Images and [...]]]></description>
			<content:encoded><![CDATA[<p>As we know, at x-cart 2 colomns template, product thumbnail of detailed product page is at the left.</p>
<p>How can we change the Product Thumbnai to center, and at the same time, remove the default left space?</p>
<p><strong>Remove the Detailed Product Page Product Thumbnail Place:</strong><br />
1. open skin/common_files/customer/main/product.tpl, delete the following code:<span id="more-202"></span><br />
<code><br />
<table>
<tr>
<td nowrap="nowrap">
<div class="image"{if $max_image_width gt 0} style="width: {$max_image_width}px;"{/if}>
<p>      {if $active_modules.Detailed_Product_Images and $config.Detailed_Product_Images.det_image_popup eq 'Y' and $images ne ''}</p>
<p>        {include file="modules/Detailed_Product_Images/widget.tpl"}</p>
<p>      {else}</p>
<div class="image-box">
          {include file="product_thumbnail.tpl" productid=$product.image_id image_x=$product.image_x image_y=$product.image_y product=$product.product tmbn_url=$product.image_url id="product_thumbnail" type=$product.image_type}
        </div>
<p>      {/if}</p>
<p>      {if $active_modules.Magnifier and $config.Magnifier.magnifier_image_popup eq 'Y' and $zoomer_images}<br />
        {include file="modules/Magnifier/popup_magnifier.tpl"}<br />
      {/if}</p></div>
</td>
</tr>
</table>
<p></code></p>
<p>2. open skin/2-columns/customer/main/product_details.tpl, and paste the above code under:<br />
<code>  {if $active_modules.Gift_Registry and $wishlistid}</p>
<input type="hidden" name="fwlitem" value="{$wishlistid}" />
<input type="hidden" name="eventid" value="{$eventid}" />
  {/if}<br />
</code></p>
<p><strong>Remove Default Left Space</strong><br />
Open skin/common_files/customer/main/product.tpl, find:<br />
<code>
<div class="product-details">
<div class="details"{if $max_image_width gt 0} style="margin-left: {$max_image_width}px;"{/if}>
</code><br />
and change it to:<br />
<code>
<div class="product-details">
<div>
</code></p>
<p>Done!</p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/202.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to move x-cart homepage welcome text?</title>
		<link>http://kingphp.com/197.html</link>
		<comments>http://kingphp.com/197.html#comments</comments>
		<pubDate>Sun, 16 Oct 2011 10:20:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[X-Cart]]></category>

		<guid isPermaLink="false">http://kingphp.com/?p=197</guid>
		<description><![CDATA[The default place of x-cart welcome test is at the top of homepage. If you like to remove the welcome text to other place, say just under featured products. How to do then? Very simple! Login your x-cart admin panel, click &#8220;Edit templates Files&#8221;, and go to &#8220;/customer/main/welcome.tpl&#8221;. Move {$lng.txt_welcome} just under {include file="customer/main/featured.tpl" f_products=$f_products} [...]]]></description>
			<content:encoded><![CDATA[<p>The default place of x-cart welcome test is at the top of homepage. If you like to remove the welcome text to other place, say just under featured products. How to do then? </p>
<p>Very simple! Login your x-cart admin panel, click &#8220;Edit templates Files&#8221;, and go to &#8220;/customer/main/welcome.tpl&#8221;.<span id="more-197"></span></p>
<p>Move<br />
<code><br />
{$lng.txt_welcome}<br />
<br />
</code><br />
just under<br />
<code><br />
<br />
{include file="customer/main/featured.tpl" f_products=$f_products}<br />
</code></p>
<p>and change<br />
<code><br />
{$lng.txt_welcome}<br />
<br />
</code><br />
to<br />
<code><br />
<br />
{$lng.txt_welcome}<br />
</code><br />
done! I have test the code successfully under x-cart pro v.4.1.9</p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/197.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vbulletin Version 4.1.2  Installation Errors</title>
		<link>http://kingphp.com/193.html</link>
		<comments>http://kingphp.com/193.html#comments</comments>
		<pubDate>Sun, 16 Oct 2011 00:14:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php Study]]></category>
		<category><![CDATA[Vbulletin]]></category>

		<guid isPermaLink="false">http://kingphp.com/?p=193</guid>
		<description><![CDATA[When I install Version 4.1.2, the following errors come out: Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/cpgtxos/public_html/forums.glassesadvisor.com/includes/class_core.php on line 414 Warning: Cannot modify header information &#8211; headers already sent by (output started at /home/cpgtxos/public_html/forums.glassesadvisor.com/includes/class_core.php:414) in /home/cpgtxos/public_html/forums.glassesadvisor.com/install/includes/class_upgrade_ajax.php on line 731 Warning: Cannot modify header information &#8211; headers already sent by (output [...]]]></description>
			<content:encoded><![CDATA[<p>When I install Version 4.1.2, the following errors come out:</p>
<p>Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/cpgtxos/public_html/forums.glassesadvisor.com/includes/class_core.php on line 414</p>
<p>Warning: Cannot modify header information &#8211; headers already sent by (output started at /home/cpgtxos/public_html/forums.glassesadvisor.com/includes/class_core.php:414) in /home/cpgtxos/public_html/forums.glassesadvisor.com/install/includes/class_upgrade_ajax.php on line 731<span id="more-193"></span></p>
<p>Warning: Cannot modify header information &#8211; headers already sent by (output started at /home/cpgtxos/public_html/forums.glassesadvisor.com/includes/class_core.php:414) in /home/cpgtxos/public_html/forums.glassesadvisor.com/install/includes/class_upgrade_ajax.php on line 732</p>
<p>How to resolve these errors then?<br />
To fix this, edit your config.php file and change &#8216;force_sql_mode&#8217; to &#8216;true&#8217;:<br />
$config['Database']['force_sql_mode'] = true;</p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/193.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 6.22 installation stuck at database configuration</title>
		<link>http://kingphp.com/190.html</link>
		<comments>http://kingphp.com/190.html#comments</comments>
		<pubDate>Sun, 04 Sep 2011 12:59:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://kingphp.com/?p=190</guid>
		<description><![CDATA[When we install a new drupal 6.22, after the first 2 steps: Choose language Verify requirements The third step &#8220;Set up database&#8221; may prevent you from installing successfully. There are not any error messages to show what the problem is either. How to do then? During the installation you may have renamed the file /sites/default/default.settings.php [...]]]></description>
			<content:encoded><![CDATA[<p>When we install a new drupal 6.22, after the first 2 steps:</p>
<ol>
<li>Choose language</li>
<li>Verify requirements</li>
</ol>
<p>The third step &#8220;Set up database&#8221; may prevent you from installing successfully. There are not any error messages to show what the problem is either. How to do then?</p>
<p>During the installation you may have renamed the file /sites/default/default.settings.php to /sites/default/settings.php.</p>
<p>However, Drupal expects you to make a copy if this file, not rename it! So you will know what to do now. Just copy default.settings and save it to /sites/default/.</p>
<p>Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/190.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to using PHP to delete wordpress coments?</title>
		<link>http://kingphp.com/185.html</link>
		<comments>http://kingphp.com/185.html#comments</comments>
		<pubDate>Wed, 03 Aug 2011 14:21:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Php Code]]></category>

		<guid isPermaLink="false">http://kingphp.com/?p=185</guid>
		<description><![CDATA[Sometimes there are thousands wordpresss comments there, it is too difficult to delete them. Any method to delete them one time without login phpmyadmin? The answer is yes, the follow code can help you. include(&#8216;wp-config.php&#8217;); mysql_query(&#8220;truncate table wp_comments;&#8221;); Copy the code to file delete_wp_comment.php, and put the file under your blog. Run it, all comments [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes there are thousands wordpresss comments there, it is too difficult to delete them. Any method to delete them one time without login phpmyadmin?</p>
<p>The answer is yes, the follow code can help you.</p>
<p>include(&#8216;wp-config.php&#8217;);<br />
mysql_query(&#8220;truncate table wp_comments;&#8221;);</p>
<p>Copy the code to file delete_wp_comment.php, and put the file under your blog. Run it, all comments will be deleted!</p>
<p>If you only want to delete spam or trash comments, please visit <a href="http://kingphp.com/160.html">http://kingphp.com/160.html</a> , and just change some code. Very simple!</p>
]]></content:encoded>
			<wfw:commentRss>http://kingphp.com/185.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.432 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-05 00:23:16 -->

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: kingphp.com @ 2012-02-05 00:23:16 -->
