Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged c



1 ... 78 79 80 81 82 ... 147
This PHP code snippet searches a value in an array. Depending on use, one or all matching values and their belonged keys are removed.
3 1842 posted 15 years ago by DADU
Returns the page object of the parent of the current page.
0 1784 posted 15 years ago by levinet
Returns the post or page id using the name/slug of a page.
2 4529 posted 15 years ago by levinet
Code snippet that allows the user to be automatically logged in on account creation, this works with s2Member since they allow the user to create their own password.
1 1412 posted 15 years ago by oriontimbers
Removes all but the text widget, look them up: /wp-includes/default-widgets.php.
0 1578 posted 15 years ago by vagrantradio
Dump it in your functions file and stare at the amazing blank page when you log in!
0 1556 posted 15 years ago by vagrantradio
0 1475 posted 15 years ago by sandrews_06
0 1180 posted 15 years ago by wireplay
0 1648 posted 15 years ago by wireplay
2 1604 posted 15 years ago by wireplay
0 2607 posted 15 years ago by wireplay
I don't want to write function empty() again and again.
0 1776 posted 15 years ago by jamepaul
The code is not particularly pretty but it does the job. If you call this file css.php you can call it like this: css.php?files=reset,style,iefix&minify=yes
1 1907 posted 15 years ago by Sverri
Display any rss feed as html in wordpress
0 1387 posted 15 years ago by richerimage
0 996 posted 15 years ago by neverdark
In a Project i had to save serialized arrays in a MYSQL Database, when i used that i got a Error Message for no reason (Error at offset XX of XX bytes in...). I wrote this little functions to fix that issue. (I dont recommend to save serialized Arra...
0 1746 posted 15 years ago by FreaKzero
0 1333 posted 15 years ago by miniake
Embed the "Who's online" block from within a template file.
1 1897 posted 15 years ago by daipratt
Customises the \"who\'s online\" block to show what role type the user has + the links now point to private message instead of profiles.
1 1748 posted 15 years ago by daipratt
Used this on the vox site to find a custom post type and then assign a variable to get different classes for the output.
0 2455 posted 15 years ago by dallasbpeters
Tumblr API: http://www.tumblr.com/docs/de/api
0 1319 posted 15 years ago by ichnoweb
This snippet can be called in every controller, all you need to do is to specify the form name, the model name and the data.
1 1551 posted 15 years ago by stolkchris
0 2671 posted 15 years ago by iloveitaly
If you need to add some content to your pages without having that content in your database you can use Wikipedia API. You can, for example, need to add automatically a simple description to a city name, or to a band name. Or you could need to add the...
1 1990 posted 15 years ago by ginoplusio
1 ... 78 79 80 81 82 ... 147