Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 178 179 180 181 182 ... 552
2 1997 posted 15 years ago by zvineyard
I did not created this, a friend provided it to me, and it seems really usefull so i thought i should share. Usage: Paste that code in your functions .php and in your theme you put <?php> where 20 is the number of words you want
0 1536 posted 15 years ago by johnsardine
0 1666 posted 15 years ago by Shamaoke
0 1430 posted 15 years ago by nmyers
Simple force download crossbrowser
0 3224 posted 15 years ago by Mosaic
$('#contentbox').keyup(function(){} - contentbox is the ID of the textbox. Using $(this).val() getting the textbox value. bar is the div ID of the count meter $('#bar').animate() increasing the width.
0 3146 posted 15 years ago by atik
Can use JUri to get the page handle
0 1866 posted 15 years ago by anagaiyahoocom
0 2141 posted 15 years ago by BoNzO
HTML5 replacements for the doctype, etc. for WorPress themes. Add this code to your header.php file and you site will use HTML5. Be sure to double check the rest of your theme files for validation errors.
1 1593 posted 15 years ago by mindshare
Here are a couple of snippets for removing the CSS, JS, and Dashboard widget created by the WP Geo plugin. I love this plugin but often only use it as a simple way to embed geo data on posts and don't actually need it to generate maps.
0 2229 posted 15 years ago by mindshare
Most of spservices function can be ignored -- not specifically relevant to templating. Important code in that block is the array push.
0 1670 posted 15 years ago by rumremix
A simple PHP function to obfuscate an email address. Usage: <?=> <?php>
1 1685 posted 15 years ago by ajbatac
Place this code in your themes `functions.php` file.
0 1837 posted 15 years ago by mindshare
A couple of snippets useful for file management. I use these to make sure I understand how many files I'm about to modify, and then rename them.
0 2042 posted 15 years ago by alassiter
A very simple quick way to count the number of files in a directory.
0 2123 posted 15 years ago by alassiter
use this if you want to make a binary use an older version of a dependent binery
1 1600 posted 15 years ago by samwa
0 1939 posted 15 years ago by rahijain
Example of how to display HTTP error code and message on ajax response
0 1717 posted 15 years ago by anagaiyahoocom
0 1537 posted 15 years ago by ericmuyser
This will extract page handle between last slash and .html
0 1694 posted 15 years ago by anagaiyahoocom
This is far from ground breaking but I forget it all the time so thought this might be a useful place to keep a reference of it
0 2078 posted 15 years ago by AndewAllison
1 ... 178 179 180 181 182 ... 552