Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Adding custom fields to the quick edit panel in Wordpress is easy using built-in hooks. However, the hook to add fields seems to be called multiple times, adding duplicate fields to the quick edit panel. Adding this code to the top of the function be...
0
960
posted 13 years ago by briteweb
This will let you execute certain scripts on the home page and other scripts on the other pages of the site.
0
948
posted 13 years ago by dburgess
This will detect the Home Page of Joomla and perfom whatever code you tell it to
0
892
posted 13 years ago by dburgess
jQuery
Cross Browser CSS sprites (for hovers, clicks, active state change via background position change)
Creating sprite buttons often had problems with different browsers.
This is a solution to get background positions in each browser for further manipulation.
1
1081
posted 13 years ago by bernhardb
Code snippet to create custom post type FAQ and custom taxonomy Topics in WordPress v. 2.9.2+
1
996
posted 13 years ago by mommygeekology
Most popular languages on the web table (in order of popularity).
Handy for auto complete fields and such.
0
1524
posted 13 years ago by Synnoid
Rewrites url to appear like the additional domain appears independently hosted, however, only appropriate for a temporary web page as other pages throw an error.
0
1043
posted 13 years ago by hotdiggity
If you’ve ever wanted to display your latest Twitter tweets on a website, here is method to do that using PHP.
0
1124
posted 13 years ago by i-am-andy
Retrieve remote image from an URL and store it locally.
Use this class for managing offline mode.
2
1629
posted 13 years ago by spawnrider
Converts textual dates like '1-3-1954' and '01-02-1963' to respectively '1954-3-1' and '1963-02-01'. MySQL is smart enough to understand the values without leading zeros when inserting into a DATE field.
0
891
posted 13 years ago by jpkunst
Helper to cheek if a given domain is available for registration. If tld is omitted the script uses a predefined tld array to check multiple domains.
To use copy the code to a standalone file, call it whatever you wants and make it executable (+x)
0
647
posted 13 years ago by alexsancho
This snippet shows a dynamic way to enable extra default include paths.
0
651
posted 13 years ago by tomcottrill
This snippet presents how the java library to ubuntu unity launcher could look like.
0
899
posted 13 years ago by kdaniel
3. zadatak: simulacija reda lijeÄniÄke ordinacije, strukture podataka.
0
688
posted 13 years ago by davucina