Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This extension allows Magento based store owners to give their visitors an advance feature of creating gift registry for their upcoming wedding, engagement or birthday party. The registry creator can share the link of the wish-list on its social netw...
        
        
        
            0 
        
        
            1297 
        
                    posted 12 years ago by simonwalker
            This extension has been developed by Fme for Magento store owners. This extension enables store owners to post FAQ in separate page as well as under each product page. The customers can post questions, rate, like or comment on existing questions. The...
        
        
        
            0 
        
        
            1542 
        
                    posted 12 years ago by simonwalker
            This function can be used to check if a file exists using the HTTP header response. Example use, when looping through cached JSON objects (instagram API, etc.)
        
        
        
            0 
        
        
            2500 
        
                    posted 12 years ago by rickygri
            This snippet is used to set some wordpress directories / paths directly to the server name.
        
        
        
            0 
        
        
            1370 
        
                    posted 12 years ago by mralexjuarez
            поиÑк Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð² многомерном маÑÑиве
        
        
        
            0 
        
        
            873 
        
                    posted 12 years ago by noganno
            I want to extract the numbers from a string that contains numbers and letters like
        
        
        
            0 
        
        
            2822 
        
                    posted 12 years ago by satie83
            This is a custom field handler for a Drupal view. Sometimes you have two or more fields in a content type and you want to do a test on them to see if both are empty or both full or exclusive and return that as a field.
There are probably ways to d...
        
        
        
            0 
        
        
            1258 
        
                    posted 12 years ago by brownrl
            You can use Curl to create a backup of your site easily. It is very effective method for those who complain that they lost site content.
        
        
        
            0 
        
        
            1499 
        
                    posted 12 years ago by codehero11
            How to put sidebars footer on twenty twelve theme again. Part 4: Insert a new function (retouched from twentyeleven) in the functions.php file.
        
        
        
            1 
        
        
            1156 
        
                    posted 12 years ago by almendro
            How to put sidebars footer on twenty twelve theme again. Part 3: Insert this register_sidebar at the end of the function twentytwelve_widgets_init() into functions.php
        
        
        
            1 
        
        
            1099 
        
                    posted 12 years ago by almendro
            How to put sidebars footer on twenty twelve theme again. Part 1:
Insert the call in the footer.php
        
        
        
            1 
        
        
            1226 
        
                    posted 12 years ago by almendro
            Takes one or two PHP timestamps, and returns a somewhat humanized string representing the date range
* Jun 7th, 2013
* Jun 7th-11th, 2013
* Jun 7th-Jul 3rd, 2013
* Jun 7th, 2013-Jan 1st, 2013
        
        
        
            0 
        
        
            2287 
        
                    posted 12 years ago by vodou
            Configure settings for all external links on your site.
Features:
* Open external links in new window or tab
* Add "nofollow"
* Set link title
* Set link icon
* Set classes (for your own styling)
* Set no-icon class
* SEO friendly
        
        
        
            0 
        
        
            2567 
        
                    posted 12 years ago by freelancephp
            Breaks up an address (in this case returned by Advanced Custom Fields Location plugin) into it's components. Additionally, sorts a multidimensional array of locations alphabetically by state. This works for basic addresses assuming that address is in...
        
        
        
            1 
        
        
            1729 
        
                    posted 12 years ago by devowhippit
            For this to work add class "[CPT]-menu-item" to your menu item.
        
        
        
            0 
        
        
            1821 
        
                    posted 12 years ago by ihatetomatoes
            Returns array with information like:
Input image
width 200
height 200
     print_r(ratioResize('path/to/image.ext' ,  100 , 50));
output:
     array(
         [ratio] => .5,
         [height] => 50,
         [width] => 50,...
        
        
        
            0 
        
        
            2328 
        
                    posted 12 years ago by ShawnG
            This allows you to create a custom page template in your plugin. Say your plugin creates a custom post type and you want to override the standard archives page template to display your custom post type in a special way. You could achieve this by crea...
        
        
        
            0 
        
        
            1497 
        
                    posted 12 years ago by bitsculptor
            PHP function to save an image from a remote source then download it to the local server that the script is on.
        
        
        
            0 
        
        
            1479 
        
                    posted 12 years ago by nshakin
            This is my simple image resizer on the fly thing. 
-- WARNING --
Resizing and showing images on the fly could potentially kill your server or make the website slow.
Ideally, this should save the resized image in a cache. However, more often th...
        
        
        
            0 
        
        
            2670 
        
                    posted 12 years ago by brownrl
            This is a simple script to go into your downloads directory ( mac ). Move everything to a .YYYY-MM-DD folder. Thus you Downloads directory gets cleaned up and anything that was there has been placed into a hidden folder for finding later.
My Downl...
        
        
        
            1 
        
        
            1362 
        
                    posted 12 years ago by brownrl
            Easy way to access request URI to WP in order to not repeat whole templates for minor changes
        
        
        
            0 
        
        
            1392 
        
                    posted 12 years ago by jefrancomix
            Follow me on twitter flexible user and message 
Add to post [twitter username='VeronicaDjeneva']Follow me Somebody[/twitter]
        
        
        
            0 
        
        
            1095 
        
                    posted 12 years ago by Scoldy
            Turns Wordpress custom menus into responsive-ready menu that comes with foundation framework. code goes into functions.php
        
        
        
            0 
        
        
            1577 
        
                    posted 12 years ago by zartgesotten
            
