Posts

Showing posts with the label Tips and Tricks

[Magento] Create Contact Form with Dynamic Recipient

There are many ways of creating contact forms to email to multiple recipient. I'm going to describe a way that uses Javascript a the frontend to change the target recipient. Advantage of this method: Easy to add in new emails in the future. Disadvantage of this method: For those who are particularly concern email privacy, you might not want to use this method. You can modify the email checking to the backend (controller) instead. Okay enough talking, lets get started. Step 1: Set up HTML form fields I'm going to use an example of drop down select to change the email. Of course, this is fairly easy to modify with other forms as well. Open up app/design/frontend/default/<theme>/template/contacts/contacts.phtml Insert the following snippets anywhere between the <form>...</form> tag. <select name="interest" id="interest" title="<?php echo Mage::helper('contacts')->__('Please select department t...

[Excel] Formula to extract email from a cell

This is a useful formula to extract an email out from the string in a cell. =TRIM(MID(SUBSTITUTE(" "&$A1&" "," ",REPT(" ",40)),FIND(REPT("@",COLUMNS($A1:A1)),SUBSTITUTE(SUBSTITUTE(" "&$A1&" "," ",REPT(" ",40)),"@",REPT("@",COLUMNS($A1:A1)),COLUMNS($A1:A1)))-40,80)) :)

Gmail with iPad 2-panel layout in Chrome

Image
Gmail 2-panel Layout Ever wanted to use Gmail 2-panel layout for iPad on your desktop chrome? Now you can, just change your chrome properties target to the following. "C:\Users\stiucsib86\AppData\Local\Google\Chrome\Application\chrome.exe" --user-agent="Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10" Then login your gmail as per normal. Woahlah! Enjoy! :)

[Samsung I9000] Remove Singtel startup animation

Image
Was looking around for Froyo update for Samsung Galaxy S and stumbled upon this guide to remove Singtel startup animation at xda-developers , by changing the Sales Code of your CSC (Customer Specific Customization) version of your phone. Update : Thanks to Peng Sian for emailing me regarding the changes for changing CSC. For Android 2.2 Froyo : Make sure you've your data (files, sms, contacts, etc.) properly backed up. Open dialer and press  *#06# . Record down the 15 digit IMEI number. Open dialer and press *#272*XXXXXXXXXXXXXXX# (XXXX is your IMEI). Select XSP and click on the "Install" button. Your phone will reboot & do a wipe on itself. Enjoy your Galaxy S without SingTel's customizations. For Android 2.1 Eclair . Make sure you've your data (files, sms, contacts, etc.) properly backed up. Open dialer and press *#272*HHMM# (HHMM refers to the time on your device in 24hrs format when you entered this code). Select XSP and click on the ...

Joomla - Default login/logout page

Image
If you accidentally removed the component in your page. You can manually access the page via http://<your-site.com>/index.php?option=com_user&view=login As for the Logout link, http://<your-site.com>/index.php?option=com_user&task=logout I find that this is particularly useful when maintaining the site for client who does not want user registration functionality. Customising Login links to User-friendly link For those who are new to Joomla here are the steps to create a user-friendly link (or alias) for the login page. For example, user will be able to login via, http://<your-webpage>/login . Its pretty straight-forward, so I've screenshot the steps below. Customising the layout of the login page If you are looking for the layout of the login form, you can FTP to /components/com_user/views/login/tmpl/ folder to edit the files.