Simple Captcha is a plugin used to add captcha in contact form 7 but after updates it is not working I debugged this issue, and it’s turn out that the temp-files doesn’t have the correct rights for removal. On line 69 till 73 in wp-content/plugins/really-simple-captcha/really-simple-captcha.php the temperary files are set to closed permissions, so they can’t be…
Category: Code Examples
How to Find Backdoor in Hacked WordPress Site
Time and time again, we have helped users fix their hacked WordPress sites. Most of the time when they reach out to us, they have already cleaned up the site, and the hacker was able to get back in. This happens if you did not clean it up properly, or you did not know what…
The WordPress Menu Item Limit
Create an .htaccess files in root directory of your wordpress installation & paste below code lines in your .htacces file. php_value suhosin.post.max_vars 7000 php_value suhosin.request.max_vars 7000 The value of 7000 might not be enough for you, so you can change it to anything you want.
Change Magento Admin Path
Step 1 – Change Path First, open the local.xml configuration file in your favorite text editor, or use the Text Editor in the cPanel File Manager. The file is usually located in the app/etc/ directory under your Magento installation. Locate the following code segment: <admin> <routers> <adminhtml> <args> <frontName><![CDATA[admin]]></frontName> </args> </adminhtml> </routers> </admin> Now,…
How to remove decimal price in magento
Hello Everyone, Today I’m going to tell you how to remove decimal price in magento.In simple words, This tutorial will tell to change the price from Rs 121.00 to Rs 121 . For this, you need to edit code/core/Mage/Directory/Model/Currency.php Find the following :- public function format($price, $options=array(), $includeContainer = true, $addBrackets = false) { return $this->formatPrecision($price,…
Removing Pagination In Magento Seo Page
First go to ..app\code\core\Mage\Catalog\Block\Seo\Sitemap open Abstract.php file In it change array(50=>50) to somewhat larger value . public function bindPager($pagerName) { $pager = $this->getLayout()->getBlock($pagerName); /* @var $pager Mage_Page_Html_Pager */ if ($pager) { $pager->setAvailableLimit(array(50 => 00)); // Change to larger value $pager->setCollection($this->getCollection()); $pager->setShowPerPage(false); } } Rest do the css changes to align the page in columns.
Getting All Products on a Page in Magento
Here is the code to get all the products: $allproducts = Mage::getModel(‘catalog/product’)->getCollection() ->addAttributeToSelect(‘*’); foreach ($allproducts as $product) { echo $product->getName() . ” “; }
Add fields to contact form in Magento
http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/contacts/add_fields_to_contact_form
Custom Template Layout in Magento template – CMS page template
There are some default template page in Magento linke 1column.phtml, 2column-right.phtml etc… If you want to such add cms page template follow the steps. 1. Design your html template 2. Rename your html template with .phtml exertion 3. Add Magento codes to your template … let your html tpl is… your content area Adding…
FUTURE OF FIREFOX DEVTOOLS
10 days ago, I asked in various channels about what web developers would like to see in the Firefox DevTools. I was impressed by the amount of answers we got (especially from HackerNews and Twitter). We computed and prioritized all these inputs. Then the DevTools team met, and spent a week hacking on these different…