Welcome To Snipplr
Everyone's Recent PHP Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This will remove all non-ascii characters / special characters from a string.
1
1266
posted 13 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
449
posted 13 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
558
posted 13 years ago by iloveitaly
run this from plugins/emotions and copy/paste the output to emotions.htm
0
723
posted 13 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
611
posted 13 years ago by baires
Prevents WordPress from loading Contact Form 7 on page templates other than the one defined.
0
799
posted 13 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
548
posted 13 years ago by sdxxx
Drupal 5.
Simply print <code>$uc\_cart\_shopping\_block</code> where ever you want.
0
485
posted 13 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
667
posted 13 years ago by iloveitaly
Example of using http://code.google.com/p/gapi-google-analytics-php-interface/ to graph google analytics data.
1
658
posted 13 years ago by dtbaker
Enables you to add a custom panel in the admin post section for a custom field input
1
524
posted 13 years ago by Yahosh
This method is easy to write, but not very efficient, as you can imagine.
2
1107
posted 13 years ago by dyteq