Welcome To Snipplr


You searched for: http

Everyone's Recent PHP Snippets



1 2 3 4 5 6 7 ... 10
Our basic WP navigation menu setup. See [this page](http://codex.wordpress.org/Function_Reference/wp_nav_menu) for more documentation.
0 1214 posted 15 years ago by mindshare
While working on the iteration of a blog with russian contents we had to change the slugs from cyrillic to transliterated russian. [RusToLat](http://mywordpress.ru/plugins/rustolat/) is a great plugin that does just that, but unfortunately it onl...
0 1548 posted 15 years ago by gryzzly
**Important: this snipplet has moved to Github.** - [Programmatically change the active theme in Drupal 6](https://gist.github.com/1973197) - [Programmatically change the active theme in Drupal 7](https://gist.github.com/1973201)
2 3344 posted 15 years ago by wildpeaks
Most of this code is by: http://www.wprecipes.com/get-tags-specific-to-a-particular-category-on-your-wordpress-blog I simply added the Tag Cloud
0 1375 posted 15 years ago by daif
Embed a video via PHP without using `the_content` filter in WordPress. From luckykind at http://wordpress.org/support/topic/call-function-called-by-embed-shortcode-direct
0 1200 posted 15 years ago by jevets
Ported to PHP from here: http://snipplr.com/view/48067/ (original: http://paulirish.com/2009/random-hex-color-code-snippets/)
2 2740 posted 15 years ago by ozke
Snippet from http://www.luscarpa.com/
0 1613 posted 15 years ago by theriddlebrothers
Pertenece al tutorial publicado por COLORATE --> http://www.colordeu.es/BLOG/registros-de-usuario-en-php-y-mysql-con-validacion-de-campos-y-activacion-por-mail
0 2391 posted 15 years ago by danideu
Pertenece al tutorial publicado por COLORATE --> http://www.colordeu.es/BLOG/registros-de-usuario-en-php-y-mysql-con-validacion-de-campos-y-activacion-por-mail
0 2134 posted 15 years ago by danideu
Pertenece al tutorial publicado por COLORATE --> http://www.colordeu.es/BLOG/registros-de-usuario-en-php-y-mysql-con-validacion-de-campos-y-activacion-por-mail
0 2168 posted 15 years ago by danideu
I have to migrate from my old Drupal 5 site, that had multiple authors assigned to one node, and this is the solution for __Drupal 7__. First of all you will need to download [__References__](http://drupal.org/project/references) module and ena...
1 1547 posted 15 years ago by Turek
Custom sorting for events based on a custom field needs to be added to navigation-links.php requires plugin: http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/
0 1577 posted 15 years ago by hussong
I got the answer to this question on WordPress Stack Exchange website: http://wordpress.stackexchange.com/questions/6931/is-there-a-wordpress-function-that-i-can-use-to-retrieve-the-current-page-that-is
0 3114 posted 15 years ago by racl101
Check if a string it's json encoded using regular expressions Thanks to Jens Anders Bakke for his mootools code published in webfreak.no http://webfreak.no/wp/2007/09/07/jsontest-for-mootools/
0 1771 posted 15 years ago by jatubio
This fixes the way Magento imports data as it just keeps adding ‘straight join’ to the array which uses a lot of memory if your importing a lot of products and will kill the import. Replace this function in /lib/Varien/Db/Select.php This h...
0 1235 posted 15 years ago by TheJasonParker
Feel free to use this class however you'd like
0 1651 posted 15 years ago by jschilling
Refer here for a full overview: http://net.tutsplus.com/tutorials/php/quick-tip-email-error-logs-to-yourself-with-php/
9 2900 posted 15 years ago by Nettuts
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 1464 posted 15 years ago by simnor
Useful when used with the google map directions function http://snipplr.com/view/15530/php-create-google-map-directions-link/
0 1643 posted 15 years ago by iloveitaly
Example of using http://code.google.com/p/gapi-google-analytics-php-interface/ to graph google analytics data.
1 1632 posted 15 years ago by dtbaker
Originally from: http://wordpress.mfields.org/2010/selective-page-hierarchy-for-wp_list_pages/
0 1415 posted 15 years ago by lawlesscreation
A sample wrapper class around Zend_File_Transfer_Adapter_Http
0 1340 posted 15 years ago by nikefido
Add custom logo to the login and dashboard of wordpress. More customization functions at: http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/
1 1281 posted 15 years ago by rliverman
Code for the wordpress functions file to add a custom post type. Full doc at: http://codex.wordpress.org/Function_Reference/register_post_type http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress
0 3580 posted 15 years ago by rliverman
Donwloads weren't working with https + ie6/ie7. This line solves the problem (order is important, **no-store** must be first).
0 2290 posted 15 years ago by ashsa
This script parses the entered text and it gets all URLs from the text. It will then shorten those URLs and replace the long URLs with shortened ones in the text. If you need only the Shortener Services script, take a look at this snippet <a href="h...
1 1882 posted 15 years ago by stamba
**Important: this snipplet has moved to Github.** - [Force the admin theme on additional non-admin paths in Drupal 6](https://gist.github.com/1973090)
3 1661 posted 15 years ago by wildpeaks
**Important: this snipplet has moved to Github.** - [Programmatically log out the user in Drupal](https://gist.github.com/1973079)
0 1356 posted 15 years ago by wildpeaks
To be placed in template.php preprocess_page function.\\r\\n\\r\\nBreaks stylesheets into 2 style tags with limit of 30 @imports each. IE has a limitation of 31 @imports or 31 style tags. (source: [http://john.albin.net/ie-css-limits/single-style-tes...
1 1358 posted 15 years ago by resting
1 2 3 4 5 6 7 ... 10