Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 35 36 37 38 39 ... 147
declare all custom fields first
0 468 posted 12 years ago by mesh606
Thanks to followgram.me you can read a public feed with your photos. Use this code to retrieve your Instagr.am photos and use them on your web.
0 973 posted 12 years ago by ginoplusio
Questa piccola funzione riceve come argomento uno unix timestamp e ritorna una stringa contenente la "descrizione verbosa" della differenza di tempo. Ad esempio, usando il timestamp relativo a 5 minuti e mezzo fa, ritornerà la stringa "5 minuti e 30...
0 502 posted 12 years ago by claudiowebdesign
Useful when using user-submitted URLs
0 511 posted 12 years ago by Entherman
I was working on a site that pulled in and republished a bunch of RSS feeds. Some contained duff images such as blank gifs that I needed to block so I wrote this function to compare the url of an image against a blacklist
0 665 posted 12 years ago by paulo72
Instead of requiring the loop.php file in your custom themes you can use there two functions, placed in your functions.php file to not only automatically include it, but make a dead simple to filter sections out on a page by page basis negating the n...
0 539 posted 12 years ago by FatFolderDesigner
if don't like `@import` in stylesheet
0 439 posted 12 years ago by hasssan
0 752 posted 12 years ago by kbrown
1 514 posted 12 years ago by rahijain
0 537 posted 12 years ago by rahijain
0 467 posted 12 years ago by lucaborace
0 504 posted 12 years ago by tcelestino
0 953 posted 12 years ago by stur
0 442 posted 12 years ago by stur
0 575 posted 12 years ago by mafhh14
Simple call imageExists('http://example.com/image.jpg'); true if it exists else false.
0 762 posted 12 years ago by MichaelM
En algunos escenarios es posible que ante ciertas acciones o resultados, debamos modificar algún valor que se encuentra en la configuración general de Magento. Para modificar un valor de la configuración general de forma programática (si, suen...
0 496 posted 12 years ago by necode
Quick fix to tweak output for WordPress wp_list_pages()
0 605 posted 12 years ago by digitalclubb
used as so <style> .logo { background: url("<?php>") no-repeat right 5px; } </style> or <img src="<?php>"/>
0 678 posted 12 years ago by alyssonweb
Switches 'dd mm yyyy' to 'yyyy-mm-dd'
0 597 posted 12 years ago by nebojsac
WordPress allows you to embed videos so easily using oEmbed. You can easily add videos to your post just pasting their URL to your post. WordPress handles all the object and embed HTML for you. But this code is missing wmode parameter which is necess...
0 633 posted 12 years ago by paulgrenwood
Basic sample courtesy of John Martin @ www.bigspring.co.uk/
0 686 posted 12 years ago by beneberle
1 ... 35 36 37 38 39 ... 147