In-site Search Options and Comparison (Part II)

This is a continuation of In-site Search Options and Comparison (Part I)
Option C: Build Your Own Custom Search Solution
You can write code to index all content to your database and build your own search feature.
Pros: You have complete control of not only the look and feel of the search results page, but also how […]

Read the rest of In-site Search Options and Comparison (Part II)

In-site Search Options and Comparison (Part I)

Everyone talks about Search Engine Optimization to drive traffic to your site via search results. But have you thought of adding an in-site search feature to help people find what they need once they are on your site? If you have a website that contains over 20 pages and you don’t have in-site search yet, […]

Read the rest of In-site Search Options and Comparison (Part I)

(3rd-party) Cookie Issues With Frameset and IE6

I had an application that requires login and sessions. When the app was loaded to a frame on a website with a different domain name, I found that cookies could not be set in IE6.
The problem is that these cookies were 3rd party cookies, meaning that they were written with a domain name different […]

Read the rest of (3rd-party) Cookie Issues With Frameset and IE6

Compose HTML emails in Gmail

When you compose a new email in Gmail, you have two options: plain text and rich text. But you can’t really write native HTML code there.
If you want to send out a HTML email, you can do as follows:

Build the html page in Dreamweaver, Frontpage or any of your favorite editor
Upload to a web server […]

Read the rest of Compose HTML emails in Gmail

Add a New Field to Products in Joomla! VirtueMart

Out of box, VirtueMart products have many “fields”, product name, sku, price, etc. If you need an additional field or two for your own business needs, you can do that by changing data model as well as some php code. It’s a bit of work … hope this post can help save you some time […]

Read the rest of Add a New Field to Products in Joomla! VirtueMart

Get mosimage show up on Joomla Page

I was custom developing a new feature for a Joomla! site and encountered a problem. I had piggy-backed the new feature on Joomla! content so I don’t have to code all administration aspect from scratch. But the display page I was custom coding to fit my client’s need.
The problem I had was that {mosimage} was […]

Read the rest of Get mosimage show up on Joomla Page

Flash Fade In and Fade Out Effect

It pays for a programmer to learn some photoshop/flash skills … not only you will be more detail-oriented when coding the css layout (hence less chance to drive a designer crazy or be driven crazy by those anal designer comments), but also you can make some quick changes (like cropping off 2 pixels of extra […]

Read the rest of Flash Fade In and Fade Out Effect

Edit the Windows Vista Hosts File

I had been trying to edit the hosts file on vista but always receives a message saying no privilege. I didn’t even recall setting up an admin user during vista installation.
Finally found a solution on the Internet:
http://www.maximumpcguides.com/edit-the-windows-vista-hosts-file/

Open Notepad with Administrative privileges by clicking Start, All Programs, Accessories, and then right-click Notepad and select to open […]

Read the rest of Edit the Windows Vista Hosts File

Print Labels - Mail Merge

I prepared a list of customers to send holiday card to then needed to print them out. Spent some time figure out things since this is the first time I used Mail Merge. Here are the steps that worked for me:

Exported customer’s list from Quickbooks into an Excel file
Cleaned up Excel file to removed duplicates, […]

Read the rest of Print Labels - Mail Merge

PHP Date Format Cheat Sheet

Please consult the original documentation for examples and more information.
Usage Example:
$format = “‘l M j, y \a\t g:iA’”;
date($format, strtotime($date_str)

Result: “Thursday Nov 29, 07 at 2:09PM”

Format Character
Description
Example returned values

Hour

H
24-hour format of an hour with leading zeros
00 through 23

G
24-hour format of an hour without leading zeros
0 through 23

h
12-hour format of an hour with leading zeros
01 through 12

g
12-hour […]

Read the rest of PHP Date Format Cheat Sheet