<?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>Fundaa.com &#187; Solved Issues</title>
	<atom:link href="http://fundaa.com/category/solved-issues/feed/" rel="self" type="application/rss+xml" />
	<link>http://fundaa.com</link>
	<description></description>
	<lastBuildDate>Wed, 16 May 2012 12:46:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>add new fields to customer registration and admin manage customer</title>
		<link>http://fundaa.com/solved-issues/add-new-fields-to-customer-registration-and-admin-manage-customer/</link>
		<comments>http://fundaa.com/solved-issues/add-new-fields-to-customer-registration-and-admin-manage-customer/#comments</comments>
		<pubDate>Sat, 21 Apr 2012 08:44:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Solved Issues]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[registration custom fields]]></category>

		<guid isPermaLink="false">http://fundaa.com/?p=311</guid>
		<description><![CDATA[<br/>Go through below code and rub sql queries that need to get executed.
INSERT INTO  `eav_attribute` (
`attribute_id` ,
`entity_type_id` ,
`attribute_code` ,
`attribute_model` ,
`backend_model` ,
`backend_type` ,
`backend_table` ,
`frontend_model` ,
`frontend_input` ,
`frontend_label` ,
`frontend_class` ,
`source_model` ,
`is_required` ,
`is_user_defined` ,
`default_value` ,
`is_unique` ,
`note`
)
VALUES (
NULL ,  &#8216;1&#8242;,  &#8216;karat10&#8242;, NULL , NULL ,  &#8216;varchar&#8217;, NULL , NULL ,  &#8216;text&#8217;,  &#8216;Karat 10 &#8216;, NULL ,  &#8221;,  &#8216;1&#8242;,  &#8216;0&#8242;,  &#8216;0&#8242;,  &#8216;0&#8242;,  &#8221;
);
After insert query, the attribute generated is my case is 154. Next this attribute needs to be associated to an attribute set, ...]]></description>
			<content:encoded><![CDATA[<br/><p>Go through below code and rub sql queries that need to get executed.</p>
<p>INSERT INTO  `eav_attribute` (<br />
`attribute_id` ,<br />
`entity_type_id` ,<br />
`attribute_code` ,<br />
`attribute_model` ,<br />
`backend_model` ,<br />
`backend_type` ,<br />
`backend_table` ,<br />
`frontend_model` ,<br />
`frontend_input` ,<br />
`frontend_label` ,<br />
`frontend_class` ,<br />
`source_model` ,<br />
`is_required` ,<br />
`is_user_defined` ,<br />
`default_value` ,<br />
`is_unique` ,<br />
`note`<br />
)<br />
VALUES (<br />
NULL ,  &#8216;1&#8242;,  &#8216;karat10&#8242;, NULL , NULL ,  &#8216;varchar&#8217;, NULL , NULL ,  &#8216;text&#8217;,  &#8216;Karat 10 &#8216;, NULL ,  &#8221;,  &#8216;1&#8242;,  &#8216;0&#8242;,  &#8216;0&#8242;,  &#8216;0&#8242;,  &#8221;<br />
);</p>
<p>After insert query, the attribute generated is my case is 154. Next this attribute needs to be associated to an attribute set, the sql for this is</p>
<p>INSERT INTO  `eav_entity_attribute` (<br />
`entity_attribute_id` ,<br />
`entity_type_id` ,<br />
`attribute_set_id` ,<br />
`attribute_group_id` ,<br />
`attribute_id` ,<br />
`sort_order`<br />
)<br />
VALUES (<br />
NULL ,  &#8216;1&#8242;,  &#8216;1&#8242;,  &#8216;1&#8242;,  &#8216;154&#8242;,  &#8216;2&#8242;<br />
);</p>
<p>INSERT INTO  `customer_eav_attribute` (<br />
`attribute_id` ,<br />
`is_visible` ,<br />
`input_filter` ,<br />
`multiline_count` ,<br />
`validate_rules` ,<br />
`is_system` ,<br />
`sort_order` ,<br />
`data_model`<br />
)<br />
VALUES (<br />
&#8216;154&#8242;,  &#8216;1&#8242;, NULL ,  &#8216;1&#8242;, NULL ,  &#8216;0&#8242;,  &#8216;0&#8242;, NULL<br />
);</p>
<p>INSERT INTO `customer_eav_attribute_website` (<br />
`attribute_id` ,<br />
`website_id` ,<br />
`is_visible` ,<br />
`is_required` ,<br />
`default_value` ,<br />
`multiline_count`<br />
)<br />
VALUES (<br />
&#8216;154&#8242;,  &#8216;0&#8242;,  &#8216;1&#8242;,  &#8216;0&#8242;, NULL , NULL<br />
);</p>
<p>INSERT INTO  `customer_form_attribute` (<br />
`form_code` ,<br />
`attribute_id`<br />
)<br />
VALUES (<br />
&#8216;adminhtml_customer&#8217;,  &#8216;154&#8242;<br />
), (<br />
&#8216;checkout_register&#8217;,  &#8216;154&#8242;<br />
), (<br />
&#8216;customer_account_create&#8217;,  &#8216;154&#8242;<br />
), (<br />
&#8216;customer_account_edit&#8217;,  &#8216;154&#8242;<br />
)<br />
;</p>
<p>now you can see newly added field in admin manage customer section.</p>
<p>now to add this in registration page add blow code in your registration.phtml where ever you want to display it.</p>
<p>              &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<li>
            	 	<?php<br />
            	 		$attribute = Mage::getModel('eav/config')->getAttribute(&#8216;customer&#8217;,'Karat 10&#8242;);<br />
            	 	?><br />
                    <label for="karat10" class="<?php if($attribute->getIsRequired() == true){?>required<?php } ?>&#8220;><?php if($attribute->getIsRequired() == true){?><em>*</em><?php } ?><?php echo $this->__(&#8216;Karat 10&#8242;) ?></label></p>
<div class="input-box">
<input type="text" name="karat10" id="karat10" value="<?php echo $this->htmlEscape($this->getFormData()->getKarat10()) ?>&#8221; title=&#8221;<?php echo $this->__(&#8216;Karat 10&#8242;) ?>&#8221; class=&#8221;<?php if($attribute->getIsRequired() == true){?>required-entry<?php } ?>&#8221; /></p></div>
</li>
<p>              &#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..</p>
<p>it is tested on magento 1.6. hope this will help&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://fundaa.com/solved-issues/add-new-fields-to-customer-registration-and-admin-manage-customer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using .htaccess to password protect entire site other than landing(index) page</title>
		<link>http://fundaa.com/solved-issues/using-htaccess-to-password-protect-entire-site-other-than-landingindex-page/</link>
		<comments>http://fundaa.com/solved-issues/using-htaccess-to-password-protect-entire-site-other-than-landingindex-page/#comments</comments>
		<pubDate>Thu, 12 Apr 2012 13:08:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Solved Issues]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Zen Cart]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[password protect]]></category>

		<guid isPermaLink="false">http://fundaa.com/?p=272</guid>
		<description><![CDATA[<br/>just add below code in your .htaccess and save your hrs&#8230;
AuthName &#8220;Restricted Area&#8221;
AuthType Basic
AuthUserFile &#8220;your htpasswd file path&#8221;
AuthGroupFile /dev/null
require valid-user
SetEnvIf Request_URI &#8220;\/$&#8221; allow
SetEnvIf Request_URI &#8220;\/css/(.*)$&#8221; allow
SetEnvIf Request_URI &#8220;\/js/(.*)$&#8221; allow
SetEnvIf Request_URI &#8220;\/images/(.*)$&#8221; allow
# write above line for all folder those need public access
Order allow,deny
Allow from env=allow
Satisfy any

  allow from all
  Satisfy any

]]></description>
			<content:encoded><![CDATA[<br/><p>just add below code in your .htaccess and save your hrs&#8230;</p>
<p>AuthName &#8220;Restricted Area&#8221;<br />
AuthType Basic<br />
AuthUserFile &#8220;your htpasswd file path&#8221;<br />
AuthGroupFile /dev/null<br />
require valid-user<br />
SetEnvIf Request_URI &#8220;\/$&#8221; allow<br />
SetEnvIf Request_URI &#8220;\/css/(.*)$&#8221; allow<br />
SetEnvIf Request_URI &#8220;\/js/(.*)$&#8221; allow<br />
SetEnvIf Request_URI &#8220;\/images/(.*)$&#8221; allow<br />
# write above line for all folder those need public access<br />
Order allow,deny<br />
Allow from env=allow<br />
Satisfy any<br />
<Files "index.html" ><br />
  allow from all<br />
  Satisfy any<br />
</Files></p>
]]></content:encoded>
			<wfw:commentRss>http://fundaa.com/solved-issues/using-htaccess-to-password-protect-entire-site-other-than-landingindex-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>script to remove extra white spaces from each and every fields of whole database table</title>
		<link>http://fundaa.com/solved-issues/script-to-remove-extra-white-spaces-from-each-and-every-fields-of-whole-database-table/</link>
		<comments>http://fundaa.com/solved-issues/script-to-remove-extra-white-spaces-from-each-and-every-fields-of-whole-database-table/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 13:28:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solved Issues]]></category>

		<guid isPermaLink="false">http://fundaa.com/?p=192</guid>
		<description><![CDATA[<br/>here is simple script to remove extra white spaces from each field of database table and get log record of how many fields age getting affected ! !]]></description>
			<content:encoded><![CDATA[<br/><p>here is simple script to remove extra white spaces from each field of database table and get log record of how many fields age getting affected ! !</p>
<pre class="brush: php;">
&lt;?php
mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;);
mysql_select_db(&quot;temp&quot;);
if(isset($_GET['table']))
{
define(&quot;TABLE_NAME&quot;,$_GET['table']);
$sql = &quot;select * from &quot;.TABLE_NAME.&quot; &quot;;
$rs = mysql_query($sql);
while($row = mysql_fetch_array($rs))
{
$flag = 0;
$i = 0;
foreach($row as $key =&gt; $value) {
if($flag == 0) {
$flag = 1;
} else {
$flag = 0;
$trimed = trim($value);
$temp = &quot;update &quot;.TABLE_NAME.&quot; set &quot;.$key.&quot; = '&quot;.$trimed.&quot;' where id = '&quot;.$row[0].&quot;' &quot;;
mysql_query($temp);
if(mysql_affected_rows() == &quot;1&quot;)
{
$i++;
echo &quot;field trimed at id = &quot;.$row[0].&quot; and field = &quot;.$key.&quot;&quot;;
}
} } }
if($i == &quot;0&quot;) {
echo &quot;no rows affected&quot;;
}
echo &quot;DATABASE table trimed successfully&quot;;
}
else {
echo &quot;no table defined&quot;;
}
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://fundaa.com/solved-issues/script-to-remove-extra-white-spaces-from-each-and-every-fields-of-whole-database-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tiny MCE Editor problem in CMS</title>
		<link>http://fundaa.com/solved-issues/tiny-mce-editor-problem-in-cms/</link>
		<comments>http://fundaa.com/solved-issues/tiny-mce-editor-problem-in-cms/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 11:42:32 +0000</pubDate>
		<dc:creator>nehalv</dc:creator>
				<category><![CDATA[Solved Issues]]></category>

		<guid isPermaLink="false">http://fundaa.com/?p=189</guid>
		<description><![CDATA[<br/>Often when one installs the CMS Made Simple  on an active server online; they face a problem with the Tiny MCE editor in the pages section and hence the content cannot be modified via the editor.
I have provided three known solutions to this problem:
 1) Change the permission on the modules directory to 755 if it already isn&#8217;t.
 2) Try uninstalling the Tiny MCE and reinstalling it.
 3) Try uninstalling the Tiny MCE and replacing it with an older version.
]]></description>
			<content:encoded><![CDATA[<br/><p>Often when one installs the CMS Made Simple  on an active server online; they face a problem with the Tiny MCE editor in the pages section and hence the content cannot be modified via the editor.</p>
<p>I have provided three known solutions to this problem:<br />
 1) Change the permission on the modules directory to 755 if it already isn&#8217;t.<br />
 2) Try uninstalling the Tiny MCE and reinstalling it.<br />
 3) Try uninstalling the Tiny MCE and replacing it with an older version.</p>
]]></content:encoded>
			<wfw:commentRss>http://fundaa.com/solved-issues/tiny-mce-editor-problem-in-cms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pluggable.php on line 868 wordpress issue &#8211; SOLVED</title>
		<link>http://fundaa.com/solved-issues/pluggable-php-on-line-868-wordpress-issue-solved/</link>
		<comments>http://fundaa.com/solved-issues/pluggable-php-on-line-868-wordpress-issue-solved/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 12:23:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solved Issues]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://fundaa.com/?p=153</guid>
		<description><![CDATA[<br/>Recently I have face strange issue on wordpress which is &#8220;public_html/wp-includes/pluggable.php on line 868 wordpress issue&#8221; error at the time of login on wordpress website. 
Issue: public_html/wp-includes/pluggable.php on line 868 
Solution: This kind of error is normal for wordpress. This can occur due to some spaces after ?> ( end of php code )  in your php code files. So, you need to check your last accessed files and removed spaces if there and try again accessing that page. Hope it helps for wordpress developers.
- Tejas 
]]></description>
			<content:encoded><![CDATA[<br/><p>Recently I have face strange issue on wordpress which is &#8220;public_html/wp-includes/pluggable.php on line 868 wordpress issue&#8221; error at the time of login on wordpress website. </p>
<p>Issue: public_html/wp-includes/pluggable.php on line 868 </p>
<p>Solution: This kind of error is normal for wordpress. This can occur due to some spaces after ?> ( end of php code )  in your php code files. So, you need to check your last accessed files and removed spaces if there and try again accessing that page. Hope it helps for wordpress developers.</p>
<p>- Tejas </p>
]]></content:encoded>
			<wfw:commentRss>http://fundaa.com/solved-issues/pluggable-php-on-line-868-wordpress-issue-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import MySQL Database Using Command Line &#8211; SOLVED</title>
		<link>http://fundaa.com/solved-issues/import-mysql-database-using-command-line-solved/</link>
		<comments>http://fundaa.com/solved-issues/import-mysql-database-using-command-line-solved/#comments</comments>
		<pubDate>Thu, 17 Jun 2010 07:51:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Solved Issues]]></category>

		<guid isPermaLink="false">http://fundaa.com/?p=150</guid>
		<description><![CDATA[<br/>Follow the below code to import mysql database using command line.

mysql -uUSERNAME -pDATABASE < DATABASE_FILE.SQL

Format: mysql -uroot -ppasword -hlocalhost database-name < sql_dump_file_name.sql

Correct Example:  mysql -uroot -palakmalak -hlocalhost oca < cerb4oca.sql
Note: Do not go to mysql console. Just go to the directory where your backup file resides. 
Note: Do not use -u space username like -u root ( this will not work ) use -uroot -ppassword -hlocalhost 

Wrong Example: mysql -u root -p abc123 localhost < mytest.sql

where root is USERNAME of MySQL, abc123 is DATABASE of MyQL and mytest.sql is ...]]></description>
			<content:encoded><![CDATA[<br/><p>Follow the below code to import mysql database using command line.</p>
<pre lang="PHP" line="2">
mysql -uUSERNAME -pDATABASE < DATABASE_FILE.SQL

Format: mysql -uroot -ppasword -hlocalhost database-name < sql_dump_file_name.sql

Correct Example:  mysql -uroot -palakmalak -hlocalhost oca < cerb4oca.sql
<strong>Note: Do not go to mysql console. Just go to the directory where your backup file resides. </strong>
<strong>Note: Do not use -u space username like -u root ( this will not work ) use -uroot -ppassword -hlocalhost </strong>

Wrong Example: mysql -u root -p abc123 localhost < mytest.sql
</pre>
<p>where root is USERNAME of MySQL, abc123 is DATABASE of MyQL and mytest.sql is a file you want to import in to selected database.</p>
]]></content:encoded>
			<wfw:commentRss>http://fundaa.com/solved-issues/import-mysql-database-using-command-line-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blank page problem in zencart [SOLVED]</title>
		<link>http://fundaa.com/solved-issues/blank-page-problem-in-zencart-solved/</link>
		<comments>http://fundaa.com/solved-issues/blank-page-problem-in-zencart-solved/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 06:54:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solved Issues]]></category>
		<category><![CDATA[Zen Cart]]></category>

		<guid isPermaLink="false">http://fundaa.com/?p=138</guid>
		<description><![CDATA[<br/>some has experienced that when clicked on some link blank page is displayed 
that problem is there because of add page process of zencart
to add page in zencart we have to create four pages
    *  A new directory, includes/modules/pages/myNewPage/, containing a file called header_php.php 
    * A new file in the directory includes/templates/template_default/templates called tpl_myNewPage_default.php 
    * A new file, includes/extra_datafiles/myNewPage.php, defining your new page&#8217;s filename for the Zen Cart™ system 
    * A new language file, ...]]></description>
			<content:encoded><![CDATA[<br/><p>some has experienced that when clicked on some link blank page is displayed </p>
<p>that problem is there because of add page process of zencart</p>
<p>to add page in zencart we have to create four pages</p>
<p>    *  A new directory, includes/modules/pages/myNewPage/, containing a file called header_php.php </p>
<p>    * A new file in the directory includes/templates/template_default/templates called tpl_myNewPage_default.php </p>
<p>    * A new file, includes/extra_datafiles/myNewPage.php, defining your new page&#8217;s filename for the Zen Cart™ system </p>
<p>    * A new language file, includes/languages/english/myNewPage.php </p>
<p>there is problem in  includes/extra_datafiles/myNewPage.php</p>
<p>so dont add file in that folder may your problem solved ! ! !</p>
]]></content:encoded>
			<wfw:commentRss>http://fundaa.com/solved-issues/blank-page-problem-in-zencart-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

