Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Note the special syntax:
* gt: greater than
* lte: less than or equal to
1
1555
posted 15 years ago by c4ptivate
Found this bit of code all over the place, except it missed out a very crucial part of the code which was to add a "-" in front of the ID you wish to exclude. Add this to functions.php in your theme folder.
0
1498
posted 15 years ago by creativelifeform
Starter barebones stylesheet that fixes many common browser differences and styles all common HTML elements. - Will be updated.
3
2932
posted 15 years ago by vagrantradio
script will now be treated as a PHP file. Similarly, x-httpd-cgi for CGI files, etc.
2
1311
posted 15 years ago by blpgirl
change the display of cck grouped terms to implode (commas, no divs) for a cerain field only
0
1108
posted 15 years ago by discipolo
Just go to your classes.php file line 1332 and replace this line
1
1988
posted 15 years ago by creativelifeform
This is useful when you need to add logic to static html page.
0
1274
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
2182
posted 15 years ago by rwczippy