Tuesday, January 25, 2011

Picasa 3.8 hangs

This is due to new feature in the Picasa 3.8 you just need to follow these step to avoid any crash problem

1. As soon as you open the Picasa, go to Tools -> Options -> Name Tags
2. Uncheck all check boxes and click OK.

Hope this helps :)

Friday, January 21, 2011

Zend Framework Check statusId with username and password

I think you can do that by using the getDbSelect instance of Zend_Auth

// get select object (by reference)
$select = $adapter->getDbSelect();
$select->where('active = "TRUE"');

Monday, January 17, 2011

How to close colorbox

Just use this function to close your colorbox within iFrame.

parent.$.fn.colorbox.close();

Hope this Help :)

Friday, January 7, 2011

Magento Custom Module with Custom Database Table

All that you need is to install the Module Creator.

I found two interesting blog, hope you all like these.
1) Click Here for more information
2) Click Here for more information 

Not able to login into magento admin panel

go to the following file:
app/code/core/Mage/Core/Model/Session/Abstract/Varien.php 

On Line no: 78 

     // session cookie params
        
$cookieParams = array(
            
'lifetime' => $cookie->getLifetime(),
            
'path'     => $cookie->getPath(),
            
'domain'   => $cookie->getConfigDomain(),
            
'secure'   => $cookie->isSecure(),
            
'httponly' => $cookie->getHttponly()
        );

        if (!
$cookieParams['httponly']{
            
unset($cookieParams['httponly']);
            if (!
$cookieParams['secure']{
                
unset($cookieParams['secure']);
                if (!
$cookieParams['domain']{
                    
unset($cookieParams['domain']);
                
}
            }
        }

        
if (isset($cookieParams['domain'])) {
            $cookieParams[
'domain'$cookie->getDomain();
        
}

Replace it to: 
 
    // session cookie params
        $cookieParams = array(
            
'lifetime' => $cookie->getLifetime(),
            
'path'     => $cookie->getPath()/*,
            'domain'   => $cookie->getConfigDomain(),
            'secure'   => $cookie->isSecure(),
            'httponly' => $cookie->getHttponly()*/
        
);

        
/*if (!$cookieParams['httponly']) {
            unset($cookieParams['httponly']);
            if (!$cookieParams['secure']) {
                unset($cookieParams['secure']);
                if (!$cookieParams['domain']) {
                    unset($cookieParams['domain']);
                }
            }
        }

        if (isset($cookieParams['domain'])) {
            $cookieParams['domain'] = $cookie->getDomain();
        }*/