Welcome To Snipplr


Everyone's Recent Snippets Tagged c



1 ... 234 235 236 237 238 ... 552
Just include **global $user;** and **$user->uid != 1** into the function
0 1978 posted 16 years ago by resting
0 1855 posted 16 years ago by studioevoque
I should've wrote this function a LONGGG time ago. foreach($myArray, function($k, $v){ console.log($k + " :: " + $v); });
3 2457 posted 16 years ago by mattkenefick
How to enable Custom Navigation Menus in WordPress 3.0 Like the custom background, header image, and post thumbnails, the custom navigation menus also needs to be enabled through your theme’s functions.php file.
0 2104 posted 16 years ago by johnnyrokkit
Method for setting maximum on JQuery tools rangeinput slider. Add this method to RangeInput $.extend with the other get/set methods.
1 1623 posted 16 years ago by dmertl
0 2288 posted 16 years ago by insanedreamer
0 1351 posted 16 years ago by JohnnyGamba
Function (algorithm) that returns all prime numbers up to n.
0 1433 posted 16 years ago by Doctor_Who
This code was re-purposed from Pamela Fox's MapIconMaker v1.1 to work with Google Maps API v3.
1 2041 posted 16 years ago by sandrews_06
<a href="http://nettuts.s3.amazonaws.com/837_shadow/shadow/index.html">View a demo</a>
17 11941 posted 16 years ago by Nettuts
The total number of search results can be added in a hook_preprocess_search_results() function from the following variable:
0 1839 posted 16 years ago by jonathanpglick
When injecting via jQuery HTML content which contains script tags referencing external scripts, which are then referenced via scripting elsewhere in the injected HTML, some browsers (Chrome) will not wait for the external scripts to load causing the...
2 2845 posted 16 years ago by harikaram
This will find the first image in post and return it as a thumbnail if it exists
0 2559 posted 16 years ago by howardpanton
Simple function to store an array in a cookie. Uses JSON. To pull data out of cookie use 'json_decode()'. It can then be looped etc.
1 2746 posted 16 years ago by liamchapman
This strips out any html tags (like paragraph tags) from the excerpt in WordPress.
0 1632 posted 16 years ago by nonsalant
0 1818 posted 16 years ago by G470
This jQuery code should make all external links from the #content div open in a new window.
1 2143 posted 16 years ago by nonsalant
put this code above the loop
0 1389 posted 16 years ago by Token
Quick and simple script to make clean urls. Works in combination with Apache mod_rewrites :-)
1 1735 posted 16 years ago by liamchapman
Here is the HTML Source to compliment the jQuery snippet.
0 1904 posted 16 years ago by chrislorenz
This is a simple little content fader I created using jQuery. It is very simple and not browser intensive. It utilizes callback functions on the fadeOut to execute the fadeIn of the next content block. To reference the HTML src that goes a long with...
2 1699 posted 16 years ago by chrislorenz
Modify the StandardTheme.lib file
0 1676 posted 16 years ago by bnotess
0 1940 posted 16 years ago by jschlick
0 1837 posted 16 years ago by jschlick
Enables to create a generic list with anonymous types. Very useful for me :).
1 1850 posted 16 years ago by wallybh
1 ... 234 235 236 237 238 ... 552