Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A little function used to set cookies as arrays of values instead of single combinations key->value. Note that it saves values as a stack.
        
        
        
            1 
        
        
            1113 
        
                    posted 14 years ago by claudiowebdesign
            Original custom fields code based on Wefunction's code here: http://wefunction.com/2008/10/tutorial-creating-custom-write-panels-in-wordpress/ enhanced to add support for uploading images.
        
        
        
            1 
        
        
            1195 
        
                    posted 14 years ago by simnor
            There seems to be many scan directory systems but I could not find one that works the way I needed. I added in functionality for a search filter and an ignore list. The search filter and ignore list can ignore by extension, file (case-sensitive file...
        
        
        
            1 
        
        
            1661 
        
                    posted 14 years ago by SoN9ne
            <pre><code>* Use the proper DOCTYPE.
* The opening <html> tag should include language_attributes().
* The "content-type" meta element should be placed before everything else, including the title element.
* Use bloginfo() to fetch the title and des...
        
        
        
            2 
        
        
            1410 
        
                    posted 14 years ago by blueocto
            This will remove all non-ascii characters / special characters from a string.
        
        
        
            1 
        
        
            2257 
        
                    posted 14 years ago by daipratt
            Add two new shortcodes to create Shopp product/category links in an easy way.
**USAGE:** 
The following shortcodes will now be available along your posts, pages and text widgets
[productlink id='' text=''] (Text is optional, if omitted the p...
        
        
        
            0 
        
        
            895 
        
                    posted 14 years ago by zreedeecom
            I'm not well versed in international address formatting, but this seems to work for most cases. Critiques are welcome!
        
        
        
            0 
        
        
            1147 
        
                    posted 14 years ago by iloveitaly
            run this from plugins/emotions and copy/paste the output to emotions.htm
        
        
        
            0 
        
        
            1531 
        
                    posted 14 years ago by hamsterbacke82
            A blank search in wordpress returns all the posts, which could be taken as duplicate content if that got indexed.
        
        
        
            0 
        
        
            1133 
        
                    posted 14 years ago by baires
            Prevents WordPress from loading Contact Form 7 on page templates other than the one defined.
        
        
        
            0 
        
        
            1463 
        
                    posted 14 years ago by vagrantradio
            Say you wanted to create a shortcode like this: [youtube id="991WcoEPwb8"]
And instead of manually creating the HTML yourself, you wanted to use YouTube’s oEmbed provider to get the HTML. While that’s easy to do using WordPress’ existing fun...
        
        
        
            3 
        
        
            1072 
        
                    posted 14 years ago by sdxxx
            Drupal 5.  
Simply print <code>$uc\_cart\_shopping\_block</code> where ever you want.
        
        
        
            0 
        
        
            958 
        
                    posted 14 years ago by resting
            Useful when used with the google map directions function http://snipplr.com/view/15530/php-create-google-map-directions-link/
        
        
        
            0 
        
        
            1371 
        
                    posted 14 years ago by iloveitaly
            Example of using http://code.google.com/p/gapi-google-analytics-php-interface/ to graph google analytics data.
        
        
        
            1 
        
        
            1374 
        
                    posted 14 years ago by dtbaker
            
