<?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>Open Script Solution&#187; remove</title>
	<atom:link href="http://www.openscriptsolution.com/tag/remove/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:22:52 +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 Remove CMS ID from URL of PrestaShop version 1.2.5</title>
		<link>http://www.openscriptsolution.com/2010/05/05/how-to-remove-cms-id-from-url-of-prestashop-version-1-2-5/</link>
		<comments>http://www.openscriptsolution.com/2010/05/05/how-to-remove-cms-id-from-url-of-prestashop-version-1-2-5/#comments</comments>
		<pubDate>Wed, 05 May 2010 02:32:28 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[PrestaShop]]></category>
		<category><![CDATA[CMS ID]]></category>
		<category><![CDATA[menghapus]]></category>
		<category><![CDATA[ramah URL]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[SEO Friendly]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1190</guid>
		<description><![CDATA[After implementing the similar modification about how to remove the category and product id from URL of PrestaShop in my last two articles before this current one, now let&#8217;s try to remove also the CMS ID from URL of your PrestaShop. For instance, by default PrestaShop uses the URL for displaying CMS page like: /content/1-delivery [...]]]></description>
			<content:encoded><![CDATA[<p>After implementing the similar modification about how to remove the category and product id from URL of PrestaShop in my last two articles before this current one, now let&#8217;s try to remove also the CMS ID from URL of your PrestaShop. For instance, by default PrestaShop uses the URL for displaying CMS page like: <strong>/content/1-delivery</strong> instead of <strong>/content/delivery</strong>. I have successfully implemented the modification into PrestaShop version 1.2.5. It is recommended that you have also implemented the two similar modification about <a href="http://www.openscriptsolution.com/2010/05/03/how-to-remove-category-id-from-url-of-prestashop-version-1-2-5/" target="_blank">how to remove category id</a> and <a href="http://www.openscriptsolution.com/2010/05/04/how-to-remove-product-id-from-url-of-prestashop-version-1-2-5/" target="_blank">how to remove product id</a> from the URL of your PrestaShop. <span id="more-1190"></span></p>
<ol>
<li>
Make sure that you have already had the .htaccess file in your PrestaShop’s root directory, which has the content like the following:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums
&nbsp;
# URL rewriting module activation
RewriteEngine on
&nbsp;
# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /prestashop1250/img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /prestashop1250/img/c/$1$2.jpg [L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop1250/product.php?id_product=$3&amp;isolang=$1$5 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop1250/product.php?id_product=$2&amp;isolang=$1$4 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop1250/category.php?id_category=$2&amp;isolang=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop1250/product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop1250/product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop1250/category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop1250/cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /prestashop1250/supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /prestashop1250/manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/(.*)$ /prestashop1250/$2?isolang=$1 [QSA,L,E]
&nbsp;
# Catch 404 errors
ErrorDocument 404 /prestashop1250/404.php
&nbsp;
# Remove Category ID from URL. You have to modify also the /classes/Link.php file! Modified by Masino Sinaga, May 3, 2010
RewriteRule ^accessories-ipod$ /prestashop1250/category.php?id_category=3 [QSA,L,E]
RewriteRule ^music-ipods$ /prestashop1250/category.php?id_category=2 [QSA,L,E]
RewriteRule ^laptops$ /prestashop1250/category.php?id_category=1 [QSA,L,E]
&nbsp;
# Remove Product ID from URL. You have to modify also the /classes/Link.php file! Modified by Masino Sinaga, May 4, 2010
RewriteRule ^music-ipods/ipod-nano\.html(.*)$ product.php?id_product=1$1 [QSA,L,E]
RewriteRule ^music-ipods/ipod-shuffle\.html(.*)$ product.php?id_product=2$1 [QSA,L,E]
RewriteRule ^laptops/macbook-air\.html(.*)$ product.php?id_product=5$1 [QSA,L,E]
RewriteRule ^laptops/macbook\.html(.*)$ product.php?id_product=6$1 [QSA,L,E]
RewriteRule ^music-ipods/ipod-touch\.html(.*)$ product.php?id_product=7$1 [QSA,L,E]
RewriteRule ^accessories-ipod/housse-portefeuille-en-cuir-belkin-pour-ipod-nano-noir-chocolat\.html(.*)$ product.php?id_product=8$1 [QSA,L,E]
RewriteRule ^accessories-ipod/ecouteurs-a-isolation-sonore-shure-se210-blanc\.html(.*)$ product.php?id_product=9$1 [QSA,L,E]</pre></div></div>

<p>Actually, those content of .htaccess we get from the previous two modification from the two links above. You can generate this .htaccess file from admin panel at <strong>Tools</strong> tab, then choose <strong>Generators</strong> sub-tab, and follow the instructions carefully there. In this example above, I use <strong>prestashop1250</strong> for the domain name. Please adjust it with yours.
</li>
<li>
Add this following code after the last line of that code above:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># Remove CMS ID from URL. You have to modify also the /classes/Link.php file! Modified by Masino Sinaga, May 5, 2010
RewriteRule ^content/delivery$ cms.php?id_cms=1$1 [QSA,L,E]
RewriteRule ^content/legal-notice$ cms.php?id_cms=2$1 [QSA,L,E]
RewriteRule ^content/terms-and-conditions-of-use$ cms.php?id_cms=3$1 [QSA,L,E]
RewriteRule ^content/about-us$ cms.php?id_cms=4$1 [QSA,L,E]
RewriteRule ^content/secure-payment$ cms.php?id_cms=5$1 [QSA,L,E]</pre></div></div>

<p>It meant that we will adjust the URL for 5 CMS pages: delivery, legal-notice, terms-and-conditions-of-use, about-us, and secure-payment. In other words, if you have more than 5 CMS pages, you have to define or add again your own CMS one by one into the .htaccess file.
</li>
<li>
Open your <strong>/classes/Link.php</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>61
62
63
64
65
66
67
68
69
70
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getCMSLink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$cms</span><span style="color: #339933;">,</span> <span style="color: #000088;">$alias</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cms</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'content/'</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cms</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$cms</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">link_rewrite</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
			<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'cms.php?id_cms='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cms</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$alias</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'content/'</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cms</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$alias</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
			<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'cms.php?id_cms='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cms</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">return</span> _PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'cms.php?id_cms='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cms</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>61
62
63
64
65
66
67
68
69
70
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getCMSLink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$cms</span><span style="color: #339933;">,</span> <span style="color: #000088;">$alias</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cms</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'content/'</span><span style="color: #666666; font-style: italic;">/*.intval($cms-&gt;id).'-'*/</span><span style="color: #339933;">.</span><span style="color: #000088;">$cms</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">link_rewrite</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
			<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'cms.php?id_cms='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cms</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$alias</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'content/'</span><span style="color: #666666; font-style: italic;">/*.intval($cms).'-'*/</span><span style="color: #339933;">.</span><span style="color: #000088;">$alias</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
			<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'cms.php?id_cms='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cms</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">return</span> _PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'cms.php?id_cms='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cms</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

</li>
</ol>
<p>Now you should have the URL without CMS ID in it.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2010%2F05%2F05%2Fhow-to-remove-cms-id-from-url-of-prestashop-version-1-2-5%2F&amp;title=How%20to%20Remove%20CMS%20ID%20from%20URL%20of%20PrestaShop%20version%201.2.5" id="wpa2a_2"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2010/05/05/how-to-remove-cms-id-from-url-of-prestashop-version-1-2-5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Remove Product ID from URL of PrestaShop version 1.2.5</title>
		<link>http://www.openscriptsolution.com/2010/05/04/how-to-remove-product-id-from-url-of-prestashop-version-1-2-5/</link>
		<comments>http://www.openscriptsolution.com/2010/05/04/how-to-remove-product-id-from-url-of-prestashop-version-1-2-5/#comments</comments>
		<pubDate>Tue, 04 May 2010 03:38:46 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[PrestaShop]]></category>
		<category><![CDATA[category id]]></category>
		<category><![CDATA[hapus]]></category>
		<category><![CDATA[product id]]></category>
		<category><![CDATA[ramah URL]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[SEO in PrestaShop]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[URL Friendly]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1186</guid>
		<description><![CDATA[Have you ever wanted to remove the product id from the URL of your PrestaShop? For instance, by default, PrestaShop uses this URL to display the certain product named ipod-touch: /7-ipod-touch.html instead of /ipod-touch.html. Well, here is the solution how you can make it comes true. I have successfully implemented it into PrestaShop version 1.2.5. [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever wanted to remove the product id from the URL of your PrestaShop? For instance, by default, PrestaShop uses this URL to display the certain product named ipod-touch: <strong>/7-ipod-touch.html</strong> instead of <strong>/ipod-touch.html</strong>. Well, here is the solution how you can make it comes true. I have successfully implemented it into PrestaShop version 1.2.5. Please note that before you implement this modification, make sure you have already implemented the similar modification that will <a href="http://www.openscriptsolution.com/2010/05/03/how-to-remove-category-id-from-url-of-prestashop-version-1-2-5/" target="_blank">remove category id</a> from the URL. <span id="more-1186"></span></p>
<ol>
<li>
Make sure that you have already had the <strong>.htaccess</strong> file in your PrestaShop&#8217;s root directory, which has the content like the following:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums
&nbsp;
# URL rewriting module activation
RewriteEngine on
&nbsp;
# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /prestashop1250/img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /prestashop1250/img/c/$1$2.jpg [L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop1250/product.php?id_product=$3&amp;isolang=$1$5 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop1250/product.php?id_product=$2&amp;isolang=$1$4 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop1250/category.php?id_category=$2&amp;isolang=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop1250/product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop1250/product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop1250/category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop1250/cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /prestashop1250/supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /prestashop1250/manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/(.*)$ /prestashop1250/$2?isolang=$1 [QSA,L,E]
&nbsp;
# Catch 404 errors
ErrorDocument 404 /prestashop1250/404.php
&nbsp;
# Remove Category ID from URL. You have to modify also the /classes/Link.php file! Modified by Masino Sinaga, May 3, 2010
RewriteRule ^accessories-ipod$ /prestashop1250/category.php?id_category=3 [QSA,L,E]
RewriteRule ^music-ipods$ /prestashop1250/category.php?id_category=2 [QSA,L,E]
RewriteRule ^laptops$ /prestashop1250/category.php?id_category=1 [QSA,L,E]</pre></div></div>

<p>That <strong>.htaccess</strong> file is generated from the link I mentioned above about. You can generate this .htaccess file from admin panel at <strong>Tools</strong> tab, then choose <strong>Generators</strong> sub-tab, and follow the instructions carefully there. In this example above, I use <strong>prestashop1250</strong> for the domain name. Please adjust it with yours.
</li>
<li>
Add this following code after the last line of that code above:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># Remove Product ID from URL. You have to modify also the /classes/Link.php file! Modified by Masino Sinaga, May 4, 2010
RewriteRule ^music-ipods/ipod-nano\.html(.*)$ product.php?id_product=1$1 [QSA,L,E]
RewriteRule ^music-ipods/ipod-shuffle\.html(.*)$ product.php?id_product=2$1 [QSA,L,E]
RewriteRule ^laptops/macbook-air\.html(.*)$ product.php?id_product=5$1 [QSA,L,E]
RewriteRule ^laptops/macbook\.html(.*)$ product.php?id_product=6$1 [QSA,L,E]
RewriteRule ^music-ipods/ipod-touch\.html(.*)$ product.php?id_product=7$1 [QSA,L,E]
RewriteRule ^accessories-ipod/housse-portefeuille-en-cuir-belkin-pour-ipod-nano-noir-chocolat\.html(.*)$ product.php?id_product=8$1 [QSA,L,E]
RewriteRule ^accessories-ipod/ecouteurs-a-isolation-sonore-shure-se210-blanc\.html(.*)$ product.php?id_product=9$1 [QSA,L,E]</pre></div></div>

<p>It meant that we will adjust the 7 products name: ipod-nano, ipod-shuffle, macbook-air, macbook, ipod-touch, housse-portefeuille-en-cuir-belkin-pour-ipod-nano-noir-chocolat, and ecouteurs-a-isolation-sonore-shure-se210-blanc. In other words, if you have more than 7 products above, you have to define or add your own product one by one into the .htaccess file.
</li>
<li>
Open your <strong>/classes/Link.php</strong> file, find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>37
38
39
40
41
42
43
44
45
46
47
48
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getProductLink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">,</span> <span style="color: #000088;">$alias</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span> <span style="color: #000088;">$category</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ean13</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
	 	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>?<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">category</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'home'</span> AND <span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">category</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">category</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">link_rewrite</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ean13</span> ? <span style="color: #0000ff;">'-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ean13</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.html'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
			<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'product.php?id_product='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$alias</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>?<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$category</span> AND <span style="color: #000088;">$category</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900;">&#40;</span><span style="color: #000088;">$category</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$alias</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ean13</span> ? <span style="color: #0000ff;">'-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$ean13</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.html'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
			<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'product.php?id_product='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">else</span>
			<span style="color: #b1b100;">return</span> _PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'product.php?id_product='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>37
38
39
40
41
42
43
44
45
46
47
48
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getProductLink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">,</span> <span style="color: #000088;">$alias</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span> <span style="color: #000088;">$category</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ean13</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
	 	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>?<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">category</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'home'</span> AND <span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">category</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">category</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #666666; font-style: italic;">/*intval($id_product-&gt;id).'-'.*/</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">link_rewrite</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ean13</span> ? <span style="color: #0000ff;">'-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ean13</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.html'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
			<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'product.php?id_product='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$alias</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span>?<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$category</span> AND <span style="color: #000088;">$category</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900;">&#40;</span><span style="color: #000088;">$category</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #666666; font-style: italic;">/*intval($id_product).'-'.*/</span><span style="color: #000088;">$alias</span><span style="color: #339933;">.</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ean13</span> ? <span style="color: #0000ff;">'-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$ean13</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'.html'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
			<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'product.php?id_product='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">else</span>
			<span style="color: #b1b100;">return</span> _PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'product.php?id_product='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_product</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

</li>
</ol>
<p>Now you should have the URL without the category and product id in it.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2010%2F05%2F04%2Fhow-to-remove-product-id-from-url-of-prestashop-version-1-2-5%2F&amp;title=How%20to%20Remove%20Product%20ID%20from%20URL%20of%20PrestaShop%20version%201.2.5" id="wpa2a_4"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2010/05/04/how-to-remove-product-id-from-url-of-prestashop-version-1-2-5/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to Remove Category ID from URL of PrestaShop version 1.2.5</title>
		<link>http://www.openscriptsolution.com/2010/05/03/how-to-remove-category-id-from-url-of-prestashop-version-1-2-5/</link>
		<comments>http://www.openscriptsolution.com/2010/05/03/how-to-remove-category-id-from-url-of-prestashop-version-1-2-5/#comments</comments>
		<pubDate>Mon, 03 May 2010 10:10:27 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[PrestaShop]]></category>
		<category><![CDATA[category id]]></category>
		<category><![CDATA[id kategori]]></category>
		<category><![CDATA[menghapus]]></category>
		<category><![CDATA[ramah URL]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[SEO in PrestaShop]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[URL Friendly]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1183</guid>
		<description><![CDATA[This following modification will remove the category id from the URL of your PrestaShop. As we know, by default, PrestaShop uses the URL for category such as: /3-accessories-ipod instead of accessories-ipod. Please note that you have to enable the URL Friendly feature that you can set it up from the Preferences tab in admin panel [...]]]></description>
			<content:encoded><![CDATA[<p>This following modification will remove the category id from the URL of your PrestaShop. As we know, by default, PrestaShop uses the URL for category such as: <strong>/3-accessories-ipod</strong> instead of <strong>accessories-ipod</strong>. Please note that you have to enable the <strong>URL Friendly</strong> feature that you can set it up from the <strong>Preferences</strong> tab in admin panel by choosing the <strong>Yes</strong> option in order to implement this modification. I have successfully applied this modification into PrestaShop version 1.2.5 (the stable version until I wrote this current article). <span id="more-1183"></span></p>
<ol>
<li>
Make sure that you have already had the <strong>.htaccess</strong> file in your PrestaShop&#8217;s root directory, which has the content like the following:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums
&nbsp;
# URL rewriting module activation
RewriteEngine on
&nbsp;
# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /prestashop1250/img/p/$1-$2$3.jpg [L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /prestashop1250/img/c/$1$2.jpg [L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop1250/product.php?id_product=$3&amp;isolang=$1$5 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop1250/product.php?id_product=$2&amp;isolang=$1$4 [L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop1250/category.php?id_category=$2&amp;isolang=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop1250/product.php?id_product=$2$4 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /prestashop1250/product.php?id_product=$1$3 [L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop1250/category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /prestashop1250/cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /prestashop1250/supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /prestashop1250/manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/(.*)$ /prestashop1250/$2?isolang=$1 [QSA,L,E]
&nbsp;
# Catch 404 errors
ErrorDocument 404 /prestashop1250/404.php</pre></div></div>

<p>You can generate this <strong>.htaccess</strong> file from admin panel at <strong>Tools</strong> tab, then choose <strong>Generators</strong> sub-tab, and follow the instructions carefully there. In this example above, I use <strong>prestashop1250</strong> for the domain name. Please adjust it with yours.
</li>
<li>
Add this following code after the last line of that code above:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"># Remove Category ID from URL. You have to modify also the /classes/Link.php file! Modified by Masino Sinaga, May 3, 2010
RewriteRule ^accessories-ipod$ /prestashop1250/category.php?id_category=3 [QSA,L,E]
RewriteRule ^music-ipods$ /prestashop1250/category.php?id_category=2 [QSA,L,E]
RewriteRule ^laptops$ /prestashop1250/category.php?id_category=1 [QSA,L,E]</pre></div></div>

<p>It meant that we will adjust the 3 categories name: accessories-ipod, music-ipods, and laptops. In other words, if you have more than 3 categories above, you have to define or add your own category one by one into the .htaccess file.
</li>
<li>
Open your <strong>/classes/Link.php</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>50
51
52
53
54
55
56
57
58
59
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getCategoryLink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_category</span><span style="color: #339933;">,</span> <span style="color: #000088;">$alias</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_category</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$id_category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">link_rewrite</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
			<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'category.php?id_category='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$alias</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_category</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$alias</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
			<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'category.php?id_category='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_category</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">return</span> _PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'category.php?id_category='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_category</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>50
51
52
53
54
55
56
57
58
59
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getCategoryLink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_category</span><span style="color: #339933;">,</span> <span style="color: #000088;">$alias</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">NULL</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_category</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #666666; font-style: italic;">/*intval($id_category-&gt;id).'-'.*/</span><span style="color: #000088;">$id_category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">link_rewrite</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> 
			<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'category.php?id_category='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_category</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$alias</span><span style="color: #009900;">&#41;</span>
			<span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">allow</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #666666; font-style: italic;">/*intval($id_category).'-'.*/</span><span style="color: #000088;">$alias</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
			<span style="color: #009900;">&#40;</span>_PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'category.php?id_category='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_category</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">return</span> _PS_BASE_URL_<span style="color: #339933;">.</span>__PS_BASE_URI__<span style="color: #339933;">.</span><span style="color: #0000ff;">'category.php?id_category='</span><span style="color: #339933;">.</span><span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$id_category</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

</li>
</ol>
<p>Now you should have the URL without the category id. In the next article I will try to modify for the others (cms id, product id, etc).</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2010%2F05%2F03%2Fhow-to-remove-category-id-from-url-of-prestashop-version-1-2-5%2F&amp;title=How%20to%20Remove%20Category%20ID%20from%20URL%20of%20PrestaShop%20version%201.2.5" id="wpa2a_6"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2010/05/03/how-to-remove-category-id-from-url-of-prestashop-version-1-2-5/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>How to Remove Unordered List Bullet in Output of Custom Field Template Plugin of WordPress</title>
		<link>http://www.openscriptsolution.com/2010/01/30/how-to-remove-unordered-list-bullet-in-output-of-custom-field-template-plugin-of-wordpress/</link>
		<comments>http://www.openscriptsolution.com/2010/01/30/how-to-remove-unordered-list-bullet-in-output-of-custom-field-template-plugin-of-wordpress/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 04:50:36 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[bullet]]></category>
		<category><![CDATA[Custom Field Template]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[remove]]></category>
		<category><![CDATA[unordered list]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=1103</guid>
		<description><![CDATA[A few days ago, I used Custom Field Template plugin in my another website that I created by using WordPress. This plugin is useful if you want to define the custom field in your posts or pages, especially if you want to use the frequently templates which have the fixed data field entry. Unfortunately, when [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago, I used <a href="http://wordpress.org/extend/plugins/custom-field-template/" target="_blank">Custom Field Template plugin</a> in my another website that I created by using <a href="http://wordpress.org" target="_blank">WordPress</a>. This plugin is useful if you want to define the custom field in your posts or pages, especially if you want to use the frequently templates which have the fixed data field entry. Unfortunately, when the related template is being displayed, you will see the unordered list bullet in the leftside of each item inside the html table. So I made modification in order to remove this unordered list bullet. Also, this modification will add the ability for user to move to the next field while entering data in edit/add mode by using Tab from the keyboard. <span id="more-1103"></span></p>
<ol>
<li>Open your <strong>/wp-content/plugins/custom-field-template/custom-field-template.php</strong> file, and find this code:

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2611
2612
2613
2614
2615
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;ul&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$metavalue</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$val</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
	<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;li&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$val</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;/ul&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2611
2612
2613
2614
2615
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$metavalue</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$val</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
	<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">''</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$val</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">''</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$output</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">''</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>
Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2758
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$replace</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$rkey</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$rval</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2758
2759
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$replace</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$rkey</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$rval</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span></pre></td></tr></table></div>

</li>
<li>
Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2767
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;input type=&quot;text&quot; name=&quot;cftsearch['</span> <span style="color: #339933;">.</span> <span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">']['</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$rkey</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'][]&quot; value=&quot;'</span> <span style="color: #339933;">.</span> attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cftsearch'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' /&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then replace with this following code (this code will have the ability to define the tabindex in each field in order to make you easier while inputing the data entry):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2767
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;input type=&quot;text&quot; name=&quot;cftsearch['</span> <span style="color: #339933;">.</span> <span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">']['</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$rkey</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'][]&quot; value=&quot;'</span> <span style="color: #339933;">.</span> attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cftsearch'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' tabindex=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$x</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>
Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2782
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;ul'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2783
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>
Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;li&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;cftsearch['</span> <span style="color: #339933;">.</span> <span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">']['</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$rkey</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'][]&quot; value=&quot;'</span> <span style="color: #339933;">.</span> attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #000088;">$metavalue</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$checked</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'  /&gt; '</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$valueLabel</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$j</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">stripcslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$valueLabel</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$j</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">else</span> <span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">stripcslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$metavalue</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;/label&gt;&lt;/li&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$j</span><span style="color: #339933;">++;</span>
<span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;/ul&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cftsearch'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
<span style="color: #000088;">$checked</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">' checked=&quot;checked&quot;'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;cftsearch['</span> <span style="color: #339933;">.</span> <span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">']['</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$rkey</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'][]&quot; value=&quot;'</span> <span style="color: #339933;">.</span> attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$checked</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' /&gt; '</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;cftsearch['</span> <span style="color: #339933;">.</span> <span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">']['</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$rkey</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'][]&quot; value=&quot;'</span> <span style="color: #339933;">.</span> attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #000088;">$metavalue</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$checked</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' tabindex=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$x</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt; '</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$valueLabel</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$j</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">stripcslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$valueLabel</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$j</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">else</span> <span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">stripcslashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$metavalue</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;/label&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$j</span><span style="color: #339933;">++;</span>
<span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cftsearch'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
<span style="color: #000088;">$checked</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">' checked=&quot;checked&quot;'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;cftsearch['</span> <span style="color: #339933;">.</span> <span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">']['</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$rkey</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'][]&quot; value=&quot;'</span> <span style="color: #339933;">.</span> attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$checked</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' tabindex=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$x</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt; '</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>
Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2835
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;li&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;cftsearch['</span> <span style="color: #339933;">.</span> <span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">']['</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$rkey</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'][]&quot; value=&quot;'</span> <span style="color: #339933;">.</span> attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #000088;">$metavalue</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$checked</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' /&gt; '</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2835
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;li&gt;&lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;cftsearch['</span> <span style="color: #339933;">.</span> <span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">']['</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$rkey</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'][]&quot; value=&quot;'</span> <span style="color: #339933;">.</span> attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #000088;">$metavalue</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$checked</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' tabindex=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$x</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt; '</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>
Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2845
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;cftsearch['</span> <span style="color: #339933;">.</span> <span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'][]&quot; value=&quot;'</span> <span style="color: #339933;">.</span> attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$checked</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' /&gt; '</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2845
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;label&gt;&lt;input type=&quot;radio&quot; name=&quot;cftsearch['</span> <span style="color: #339933;">.</span> <span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'][]&quot; value=&quot;'</span> <span style="color: #339933;">.</span> attribute_escape<span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$checked</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' tabindex=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$x</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; /&gt; '</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>
Find again this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2861
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;select name=&quot;cftsearch['</span> <span style="color: #339933;">.</span> <span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">']['</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$rkey</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'][]&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2861
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$replace_val</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$rkey</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;select name=&quot;cftsearch['</span> <span style="color: #339933;">.</span> <span style="color: #990000;">rawurlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">']['</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$rkey</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'][]&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$class</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' tabindex=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$x</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
<li>
Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2881
2882
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #b1b100;">endswitch</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2881
2882
2883
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #b1b100;">endswitch</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$x</span><span style="color: #339933;">++;</span>
<span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

</li>
</ol>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2010%2F01%2F30%2Fhow-to-remove-unordered-list-bullet-in-output-of-custom-field-template-plugin-of-wordpress%2F&amp;title=How%20to%20Remove%20Unordered%20List%20Bullet%20in%20Output%20of%20Custom%20Field%20Template%20Plugin%20of%20WordPress" id="wpa2a_8"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2010/01/30/how-to-remove-unordered-list-bullet-in-output-of-custom-field-template-plugin-of-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
