Installation instructions for the creator of the Magento module:
1) Log in to the magento admin panel
2) Go to System-> Magento Connect-> Magento Connect Mmanager
3) Go to Settings-> Preferred state: β change stability to beta
4) Go to Extensions-> Install New Extensions-> use this key: - http://connect20.magentocommerce.com/community/Netz98_ModuleCreator- > click install-> click ready to install
5) After a successful installation, go to the favourate file manager go to the path: app / code / core / mage / captcha / model / observer.php
and change
public function checkUserLoginBackend($observer) { $formId = 'backend_login'; $captchaModel = Mage::helper('captcha')->getCaptcha($formId); $loginParams = Mage::app()->getRequest()->getPost('login'); $login = array_key_exists('username', $loginParams) ? $loginParams['username'] : null; if ($captchaModel->isRequired($login)) { if (!$captchaModel->isCorrect($this->_getCaptchaString(Mage::app()->getRequest(), $formId))) { $captchaModel->logAttempt($login); Mage::throwException(Mage::helper('captcha')->__('Incorrect CAPTCHA.')); } } $captchaModel->logAttempt($login); return $this; }
TO
public function checkUserLoginBackend($observer) { $formId = 'backend_login'; $captchaModel = Mage::helper('captcha')->getCaptcha($formId); $login = Mage::app()->getRequest()->getPost('username'); if ($captchaModel->isRequired($login)) { if (!$captchaModel->isCorrect($this->_getCaptchaString(Mage::app()->getRequest(), $formId))) { $captchaModel->logAttempt($login); Mage::throwException(Mage::helper('captcha')->__('Incorrect CAPTCHA.')); } } $captchaModel->logAttempt($login); return $this; }
6) If you are using linux / unix
Go to terminal-> go to project folder magento-> type chmod 777 -R / var / www / your-project-folder /
7) open the url in the browser and add / moduleCreator after it
8) Done. Now you can create a module.
Good luck.
Adarsh ββnahar
source share