Latest Post

Code Igniter: Mixing segment-based URL with GET querystring

Working on a microsite running on Code Igniter, I faced a dilema of adding and extra query string in a page URL, which is already using segment based URL (eg. domain.com/controller_name/page/). Basically I’m trying to do this:  domain.com/controller_name/page/?param=myvalue. Unfortunately CI [...]

Re-brand & Customize WordPress Admin

Firstly, I recommend to add the following plugin: http://wordpress.org/extend/plugins/custom-admin-branding/ This will allow you to update the login screen, the header and the footer of the admin panel. Then I remove the upgrade options in: wp-admin/admin-footer.php line 25: <p id=”footer-upgrade”><?php //echo [...]

WordPress "file upload has failed to upload due to an error"

First you must assign permission and user:group to the folder: 1chown -R <user>:<group> folder or everything within a folder: 1chown -R <user>:<group> * -R is for recursive, which means all the sub files/directory will get the same ownership Then for [...]

Magento – Add "is in stock" column in Products Grid Manage in Backend

Here how to add new column to manage “in stock” and “out of stock” products edit this file: app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php around line 58 you find: 1234567891011$collection = Mage::getModel(’catalog/product’)->getCollection()             ->addAttributeToSelect(’sku’)             [...]