You are here |
12oy.wordpress.com | ||
| | | |
kaspars.net
|
|
| | | | [caption id="attachment_3686" align="aligncenter" width="500"] Display a warning to editors when the number of characters or words exceeds a certain limit[/caption] Sometimes you want to limit the number of words that your editors or clients can enter into a post (usually of a custom post type). Here is a simple snippet of PHP and javascript that... | |
| | | |
kaspars.net
|
|
| | | | Update: Ryan has made this into a plugin -- Code Comments. Add this to your theme's functions.php to allow readers post fragments of code in their comments (wrapped in ...) which are automatically encoded (think of < and <) add_filter('pre_comment_content', 'encode_code_in_comment'); function encode_code_in_comment($source) { $encoded = preg_replace_callback('/(.*?)<\/code>/ims', create_function( '$matches', '$matches[1] = preg_replace( array("/^[\r|\n]+/i", "/[\r|\n]+$/i"), "",... | |
| | | |
marlongrech.wordpress.com
|
|
| | | | The INotifyPropertyChanged is what tells the WPF/SL binding that a property changed and that the binding should be updated. For this purpose its quite good. But what many times we end up doing is; handling the PropertyChanged in code so that we get notified that a property changed. An example is a ViewModel that need... | |
| | | |
johannesbrodwall.com
|
|
| |