Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 19 20 21 22 23 ... 147
Add this snippet to the functions.php to render your twitter followers count. Replace 'planetabhi' with your twitter screen name
0 1572 posted 13 years ago by planetabhi
Add this snippet to the functions.php of your wordpress theme. This will add a select menu with an automatically generated list of your shortcodes for your pages and posts.
1 1186 posted 13 years ago by planetabhi
This is a base function to use with Joomla! to display the view using the Joomla cache system.
0 2425 posted 13 years ago by kevincam
Just paste the following snippet into your functions.php file and save it.
0 1424 posted 13 years ago by planetabhi
For when you really just need a short description field along with a title for your slideshows. Just drop this into the functions.php and meteor-slideshow.php in the theme folder.
0 1949 posted 13 years ago by crypticsoft
This snippet will enable you to add shortcode to a wordpress custom field. Normally wordpress does not run shortcodes that you put into a custom field. Just put this code into whatever page you are displaying the results of the shortcode, and change...
0 1475 posted 13 years ago by leeboyce
Here is a simple filter to automatically add a class attribute like widget-order-1 to all widgets within sidebars (from konstruktors.com)
0 1974 posted 13 years ago by lashon
Takes titles from a certain category and lists them in an unordered list.
0 1286 posted 13 years ago by thewickedchemist
This code allows the upload of files with extensions usually forbidden in wordpress
0 1146 posted 13 years ago by scienzedellevanghe
You can save this function in your common function file of config file, which must be included in the page which source code you want to see and simply add kode to the end of the URL and see the complete PHP code of that file on browser
0 1830 posted 13 years ago by xkeshav
For those cases where you want to code in PHP but need to deploy to ASP. It doesn't account for php logic but only converts the php include() statements into SSI includes. Could be useful for converting basic websites from php to asp, rare but it hap...
0 2624 posted 13 years ago by crypticsoft
Adding a file named "template-homepage.php" and adding this code inside it should essentially create a page template named "Scrolling Homepage" to your theme, which is useful in some customized landing page situations where you want another page as t...
0 1058 posted 13 years ago by Makedesign
Joomla SEF to work properly it is based on Joomla menus. In your own components for SEF to work and menus to appear your need to pass the Itemid to links. To do this you need to get the Itemid based on on the URL link. Here is how you get the Itemid...
1 1628 posted 13 years ago by kevincam
Random color hex
0 1417 posted 13 years ago by pruntrut
Remove specific words from a string
0 1594 posted 13 years ago by pruntrut
Converts phone numbers to the formatting standard
1 1355 posted 13 years ago by pruntrut
Debugging a quote in magento, get all it's data.
1 1365 posted 13 years ago by cpres
Change string first letter to uppercase
0 1280 posted 13 years ago by pruntrut
Remove/unset native meta boxes
0 956 posted 13 years ago by lolitaloco
List all files in a diretory with glob
0 1773 posted 13 years ago by pruntrut
Capture Web Screenshots easily with the [GrabzIt ](http://grabz.it/) PHP API You will need the free [GrabzIt Code Library](http://grabz.it/api/php/download.aspx) to get started.
2 1265 posted 13 years ago by Maximus1983
Connect to and query a db2 database using php.
0 1307 posted 13 years ago by zombree
test create new snippet
0 1556 posted 13 years ago by bindirtit
You can set this as a cron to automatically clean up unsubscribes after sending out a mass email.
0 1323 posted 13 years ago by squadsupply
Using array_map() on multidimensional arrays
0 1839 posted 13 years ago by pruntrut
1 ... 19 20 21 22 23 ... 147