Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 93 94 95 96 97 ... 147
0 1573 posted 16 years ago by jonniespratley
0 1244 posted 16 years ago by peterbelsky
Placed in the functions.php file.
1 1689 posted 16 years ago by jink
0 1594 posted 16 years ago by errkk
You have to add this code in your Bootstrap
1 1510 posted 16 years ago by asterfr
this could be expanded to the billions place, but c'mon really people? it's got to call it quits somewhere
1 2099 posted 16 years ago by adkatrit
Will strip off the decimals of a number (price) unless they are necessary.
0 1478 posted 16 years ago by jmiller
This is the beginning of my retrieval of twitter status class...just something im playing with right now. It retrieves the xml, saves it on your server, then you can either use javascript or php to traverse the xml tree.
0 1728 posted 16 years ago by alvincrespo
1 1457 posted 16 years ago by atma
i could put a demo of this in action if you want
0 2027 posted 16 years ago by abbey
Just a beginning, hoping to refine this ASAP.
0 1942 posted 16 years ago by alvincrespo
0 1821 posted 16 years ago by humanoid
1 1799 posted 16 years ago by humanoid
A handy, generic form processor which validates presence of fields marked in a hidden value, like: <input>. Easy to override and customize as needed. Adapted from a script found in PHP 5 Unleashed.
1 2199 posted 16 years ago by nate63179
Had many people ask me how I display all posts in a category when they click on the category link in the header @<a href="http://www.vagrantradio.com">http://www.vagrantradio.com</a>. There's a lot more involved, but here's the quick and dirty;
0 2049 posted 16 years ago by vagrantradio
By using hook_form_alter, you can add your own callback functions to any Drupal form. These functions will be called when Drupal validates the form and when Drupal submits it. In example below, a module called 'simple_checkout' adds its own hand...
1 2007 posted 16 years ago by berkes
Aimed at designers who want to sprinkle in a little PHP to make development easier. If building/prototyping a site with HTML/PHP, this can save time by constructing the navigation list on the fly, based on re-usable navigation settings. Usage: Ass...
0 1400 posted 16 years ago by rareyman
This will create a bookmark link to send a Wordpress post to your Evernote Account similar to the send to Google reader feature on the Evernote blog.
0 1710 posted 16 years ago by vagrantradio
Gives you the option to select a custom gravatar in the Wordpress discussion setting in admin dashboard
1 1507 posted 16 years ago by vagrantradio
Uses ajax upload from http://valums.com/ajax-upload/. Complete working script with front and back end validation. Enjoy.
1 2100 posted 16 years ago by vagrantradio
Creates a tiny url for posting on twitter etc.
1 2434 posted 16 years ago by vagrantradio
0 1326 posted 16 years ago by connectr
Thanks to Jennifer Zelazny You can see complete post in http://www.sandboxdev.com/blog/wordpress/178/remove-private-from-wordpress-titles/comment-page-2/#comment-16447 Add the following code into functions.php file (within theme directory)
0 1850 posted 16 years ago by vigoncas
Not tested yet on drupal 6
1 1257 posted 16 years ago by mbria
1 ... 93 94 95 96 97 ... 147