Welcome To Snipplr


Everyone's Recent Snippets



1 ... 394 395 396 397 398 ... 553
Drupal FiveStar change any of the settings as necessary to create a completely customized widget, regardless of the node type settings.
1 1313 posted 16 years ago by humanoid
Quick function to send out decent-looking (but simple) html emails.
2 1649 posted 16 years ago by fuzzylogic
Manipulates XML nodes using PHP's Dom library. Includes XPath navigation, child manipulation, and deletion of current document.
0 1270 posted 16 years ago by mikeevans
Returns only the directory path to the current file — no host or filename, just URI directory structure.
1 1511 posted 16 years ago by radarseven
In Magento administration, go to System > Configuration. After choice Developer at the bottom of the page. In Prototype Deprecation Log switch to no.
0 1064 posted 16 years ago by nico65
Include file that contains the array of areacodes and states. **This file is needed for the Areacode Script to work. Script here: http://snipplr.com/view/17339/area-code-lookup-script/
2 1233 posted 16 years ago by arnoldb
This simple script will return what state an areacode belongs to. Be sure to get the include file that contains the array here: http://snipplr.com/view/17340/area-code-lookup-script--include-file/
1 1375 posted 16 years ago by arnoldb
returns URL that's an I'm feeling lucky search on wikipedia. Handy when paired with a database of names of things.
2 1226 posted 16 years ago by mocha0range
0 1229 posted 16 years ago by jpsirois
0 1116 posted 16 years ago by sixmedia
0 1145 posted 16 years ago by sixmedia
This snippet is useful if you want to extract the relevant parts out of an Date header field of an email message. It was created according to the [RFC 5322 rules](http://tools.ietf.org/html/rfc5322#page-15 "RFC 5322, Page 15"). It supports named capt...
1 1828 posted 16 years ago by dreadwarrior
Runtime Object Evaluator; search for string object properties that start with !! and eval the content. Very useful if you want to load JSON from file and evaluate its fields on effective usage or access global variables at runtime. [Follow me on T...
1 1130 posted 16 years ago by straps
function as jquery plugin to test if selector is found on the current page. Sample use: if ( $("#myID").onpage() ) { $("#myID img").click(function(){ //do this..here.. });
0 1409 posted 16 years ago by pixelhandler
A few days ago i was looking for a script witch one will help me to unzip a file using PHP . There is 2 different ways to do it.One just execute a commend to unzip the file in the shell using PHP and another one is using library functions
2 1642 posted 16 years ago by fackz
Save this file as a .php somewhere on your webserver - NOT A WEB ACCESSIBLE LOCATION! Edit the lines in the top portion to suit your needs and call the file from bash like this: $> php cpanel-backup.php You can use a cronjob to make this run autom...
1 1609 posted 16 years ago by arnoldb
This assumes HTML that looks like this: <pre><code> &lt;div id=&quot;containing_div&quot;&gt; &lt;div id=&quot;div_1&quot; style=&quot;background-color:red&quot; class=&quot;visible_div&quot;&gt; &lt;p&gt;Test Content 1&lt;/p&...
2 1192 posted 16 years ago by chippper
0 1151 posted 16 years ago by endorfin
0 1328 posted 16 years ago by jpsirois
Neat CSS fixed background image scrolling 'trick'
3 1640 posted 16 years ago by myrebel420
1 ... 394 395 396 397 398 ... 553