Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Sometimes a legacy database will have HTML entities stored in it.
This function converts them. Note that this function assumes you have a database abstraction layer, and may need to be modified to connect to YOUR database.
0
2243
posted 13 years ago by f6design
This is a JavaScript powered dropdown (flyout) menu. HTML and CSS included.
0
905
posted 13 years ago by zvineyard
Working on an ecommerce site I found out from our Japanese distrubutors that they don't have a decimal for the currency since yen doesn't deal in change. 1 yen is a fraction of a cent anyway!
This code looks for the Yen since within a <span></span...
0
737
posted 13 years ago by cpres
Assumes that you have got a #mainnav around your menu. Works nicely with wp_nav_menu inside.
0
782
posted 13 years ago by telltec
In this blog, we will see how to add custom fields to magento onepage checkout steps.
This method can be used to add custom field to any step in the checkout page, although in the current blog i have demonstrated how to add it to the billing step. T...
0
697
posted 13 years ago by etechblog
From time to time I need a Ajax function to not cashe the template it load. I only have notest this problem in IE.
1
870
posted 13 years ago by Tyde
Because our server is a virtual machine inside a virtual machine (it's like inception), we can't transfer file using FTP. You need using SVN repository as a bridge to do so.
Follow [Exercise 3](http://www.cs.sfu.ca/cc/470/ggbaker/exer/3 "Exercise...
0
852
posted 13 years ago by Xixian
Add the following line to code to your theme's functions.php file
0
668
posted 13 years ago by priyankvira