Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This code separates out the Flash Player Platform, Major Version number and Minor Version numbers.
0
1584
posted 15 years ago by adrianparr
From the Big Spaceship Labs website.
This is a useful workaround for the following error message ...
SecurityError: Error #2142: Security sandbox violation: local SWF files cannot use the LoaderContext.securityDomain property.
7
1915
posted 15 years ago by adrianparr
replacing single quotes with its (double-escaped) entity, for use of a text within xsl.
2
4077
posted 15 years ago by iroybot
Takes one field and converts the string to a URL-friendly slug in a second field
1
1292
posted 15 years ago by jmiller
If you are using Simple Facebook Connect Wordpress plugin, it is better to add this code after changing the og:image value or deleting it. Using this code in your Wordpress Theme header will result in having more meaningful information shown in Faceb...
0
1614
posted 15 years ago by ala7lam
This code will take a start and end string and then search for them within the subject string. It returns what is between the start and end strings. As an example, if I had the following text...
Some test text string, with a start <tag> and an end...
0
1616
posted 15 years ago by blackf0rk
Source: http://www.websitedesignby.com/programming/wordpress-website-development-work-flow-wp-config-php/
0
1762
posted 15 years ago by chrisjlee
PHP
Activating the Post Thumbnail feature in Wordpress but not showing anything if there is no image to display
I looked everywhere trying to find some code that could show me how to display the post thumbnail if there is an image, but to display absolutely nothing if there isn't an image to display (most just either added an image or there was a broken image...
1
4810
posted 15 years ago by bdnnikki
A quick snippet of the PHP/Wordpress code behind my archive page, mainly for @andypoppins :D
0
1121
posted 15 years ago by psdesignuk
Bash
Bash (Command Line): Loop through directories in specified location, replacing directories in current directory (with backup)
This command line aims at moving directories from a target location to the present working directory (pwd), backing the pwd directories up as it encounters them.
The script works by:
1. Iterating through the contents of the target directory (us...
0
1727
posted 15 years ago by karlhorky
This is a bare-bones, centered Tumblr layout with no styling, and a right-aligned sidebar. It has blocks for every content type, so completing this with your custom styling should be quick and easy.
1
1213
posted 15 years ago by 67ideas
jQuery
Automatically create drop-down menu with links to the list items at the beginning of long lists
The name of the link should be in strong (or you may change this in the script)
0
2783
posted 15 years ago by certainlyakey