Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 298 299 300 301 302 ... 554
This is useful when you need to add logic to static html page.
0 912 posted 15 years ago by Meander365
search for anything in-between two <TAG>'s and then replace the found string into the PHP if/else staement. $1 is wher TextMate stores the found string. (see http://screenflicker.com/mike/code/textmate-regex-replace/)
3 1433 posted 15 years ago by rwczippy
0 1056 posted 15 years ago by metoikos
0 1338 posted 15 years ago by jmiller
structure de base d'un document html5
0 1073 posted 15 years ago by dojob
This code separates out the Flash Player Platform, Major Version number and Minor Version numbers.
0 1239 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 1506 posted 15 years ago by adrianparr
0 986 posted 15 years ago by metoikos
0 962 posted 15 years ago by metoikos
Originally written by Dimox
4 1028 posted 15 years ago by creativelifeform
1 1105 posted 15 years ago by iloveitaly
replacing single quotes with its (double-escaped) entity, for use of a text within xsl.
2 1791 posted 15 years ago by iroybot
1 1125 posted 15 years ago by genseric
1 1074 posted 15 years ago by kossmoss
Takes one field and converts the string to a URL-friendly slug in a second field
1 1030 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 1276 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 1285 posted 15 years ago by blackf0rk
Source: http://www.websitedesignby.com/programming/wordpress-website-development-work-flow-wp-config-php/
0 1354 posted 15 years ago by chrisjlee
Separates an html list of words with a comma using CSS.
0 967 posted 15 years ago by hotdiggity
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 3948 posted 15 years ago by bdnnikki
A quick snippet of the PHP/Wordpress code behind my archive page, mainly for @andypoppins :D
0 870 posted 15 years ago by psdesignuk
Wrapping text around an image - HTML/CSS
0 1040 posted 15 years ago by MrBrettMunro
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 1232 posted 15 years ago by karlhorky
0 944 posted 15 years ago by cigraphics
1 ... 298 299 300 301 302 ... 554