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
994
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
967
posted 13 years ago by dburgess
This will detect the Home Page of Joomla and perfom whatever code you tell it to
0
911
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
1103
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
1031
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
1552
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
1062
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
1149
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
1660
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
915
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
668
posted 13 years ago by alexsancho
This snippet shows a dynamic way to enable extra default include paths.
0
660
posted 13 years ago by tomcottrill
This snippet presents how the java library to ubuntu unity launcher could look like.
0
920
posted 13 years ago by kdaniel
3. zadatak: simulacija reda lijeÄniÄke ordinacije, strukture podataka.
0
708
posted 13 years ago by davucina