Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 164 165 166 167 168 ... 552
Don't forget to include jQuery validation plugin before this snippet. You can find it here: http://bassistance.de/jquery-plugins/jquery-plugin-validation/
0 3020 posted 15 years ago by racl101
0 3130 posted 15 years ago by pacifists
0 1515 posted 15 years ago by poldaker
This snippet will add a linear-gradient atop a background image. With this you'll be able to assign tiling and non-tiling backgrounds with a top-down gradient. The linear-gradient syntax includes the newer, standard -webkit- syntax as well as the old...
0 1744 posted 15 years ago by dtigraphics
0 1950 posted 15 years ago by focal55
drop_tables_like(pattern, db)
0 1865 posted 15 years ago by abstraktor
Der folgende Aufruf führt einen PUTrequest durch und zeigt (nur!!) den antwort-header an. Damit es funktioniert muss in app/controllers/application_controller.rb die zeile protect_from_forgery auskommentiert werden.
0 1679 posted 15 years ago by abstraktor
Returns all of the custom fields (meta data) from a page / post and assigns them all to a single session array for compactness
1 2056 posted 15 years ago by prwhitehead
Cache the results of your wordpress database queries for faster page generation
0 3117 posted 15 years ago by prwhitehead
Dynamically get the guid of your a post from its post title (with wordpress caching)
0 1992 posted 15 years ago by prwhitehead
Make sure your URL $_GET variables don't get repeated / duplicated when you are creating links / URLs dynamically.
0 2872 posted 15 years ago by prwhitehead
If your page has already sent headers to the browser you cant redirect with headers('Location:' . $url); But you can use the following:
0 1629 posted 15 years ago by prwhitehead
Add a login form to your wordpress themes frontend.
0 2287 posted 15 years ago by prwhitehead
This goes in your template.php file
1 3091 posted 15 years ago by focal55
Place directly below 'RewriteEngine On' to ensure that no other redirects interfere with it.
0 1809 posted 15 years ago by batfan
0 1440 posted 15 years ago by cadnet
Create your own wordpress hooks easily and simply. Just rename the function to whatever you like.
0 1791 posted 15 years ago by prwhitehead
Create custom database tables within wordpress. Just replace 'stats' with the name of your table, and then the $sql variable with your create table sql.
0 2376 posted 15 years ago by prwhitehead
Remove menu items from the wordpress admin
0 1889 posted 15 years ago by prwhitehead
To remove some of the lesser used edit post / page meta boxes:
0 2066 posted 15 years ago by prwhitehead
Create a sitemap in wordpress, including posts, categories and pages just use the [sitemap] shortcode within the post content and wordpress / the function does the rest.
0 2240 posted 15 years ago by prwhitehead
Based upon http://csswizardry.com/2010/01/iphone-css-tips-for-building-iphone-websites/
0 2149 posted 15 years ago by withinmedianl
Create excerpts from text block from your wordpress content and add links page / post from the guid.
0 2125 posted 15 years ago by prwhitehead
works in all the major browsers that support adding to bookmarks, FF, IE, Opera. Safari and Chrome dont support this, so for them, a nice message :)
1 2265 posted 15 years ago by prwhitehead
1 ... 164 165 166 167 168 ... 552