Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 51 52 53 54 55 ... 147
place snippet in functions.php
0 1511 posted 14 years ago by alp
Place snippet in functions.php
0 1626 posted 14 years ago by alp
Place snippet in functions.php. Works with the Shylock Adsense plugin (http://planetozh.com/blog/my-projects/wordpress-plugin-who-sees-ads-control-adsense-display/)
0 1542 posted 14 years ago by alp
place code in functions.php
0 3733 posted 14 years ago by alp
A flexible way to get the file name without the extension
0 2221 posted 14 years ago by donkeykong
This simple function allows you to find a weeks position in the month based on a given date. For instance I needed to alert the user their date was the "Second Week Of January" during a given month. I may never use it again but it came in very hand...
0 4321 posted 14 years ago by aristoworks
1 1380 posted 14 years ago by redconservatory
0 1329 posted 14 years ago by rahijain
11 3224 posted 14 years ago by frederichoule
2 1635 posted 14 years ago by frederichoule
1 1978 posted 14 years ago by frederichoule
If a string exceeds x characters (defaults to 100), trims the string to the first x characters and appends a tail to the end of the truncated string (defaults to an ellipsis).
0 1397 posted 14 years ago by bluecap
Transforms string to it's possessive form and return it's original case form.
0 1061 posted 14 years ago by Arvi
Just save this as MY_Router.php and upload to application/core/ and now you'll be able to use us :alpha along with :num and :any in your routes to signify that you just want to match a-z.
0 1560 posted 14 years ago by Josh
This is a jquery full screen background image plugin for indexhibit using http://srobbin.com/jquery-plugins/jquery-backstretch/
0 1106 posted 14 years ago by orionrush
1 1662 posted 14 years ago by mb2o
1 1809 posted 14 years ago by mb2o
0 955 posted 14 years ago by dbugger
0 2568 posted 14 years ago by shodan_uk
Adapted from CakePHP
0 1388 posted 14 years ago by shodan_uk
Ruby uses created_at and updated_at. Here cake will do the same thing. based on http://book.cakephp.org/view/1015/created-and-modified
0 1590 posted 14 years ago by kendsnyder
0 1560 posted 14 years ago by mike_fowler
This adds the class "not-home" to your body_class in Wordpress. Handy if you want to reset CSS from the index page.
1 1215 posted 14 years ago by ethicka
0 1362 posted 14 years ago by jHulbert
This generates a simple insert statement for mysql based on all the variables in $_GET or $_POST using a simple page. It does not do the inserts although that is a simple addition - just builds and displays your insert statement.
1 2026 posted 14 years ago by kidmizere
1 1477 posted 14 years ago by stephcode
1 ... 51 52 53 54 55 ... 147