Subscribe: Comments for soderlind.no
http://www.soderlind.no/comments/feed/
Preview: Comments for soderlind.no

Comments for Per Søderlind



I code for fun



Last Build Date: Sat, 11 Feb 2017 08:14:57 +0000

 



Comment on WordPress plugin: Remove “Comments are closed” by Axel

Sat, 11 Feb 2017 08:14:57 +0000

You have to find out what Text is in the .po file !!!! Search für "Comment Off" or whatever appears on your website as "Comment Off" text! Then the PlugIn works fine. I promise :) It looked like this in my language.po file: "Comments Off on %s" Thanx 4 the PlugIn! Regards, Axel



Comment on Date and Time Picker field for Advanced Custom Fields by Per Søderlind

Wed, 01 Feb 2017 23:31:30 +0000

By export, what do you mean ?



Comment on Date and Time Picker field for Advanced Custom Fields by johnny

Wed, 01 Feb 2017 14:52:09 +0000

The date/time displays correctly in wordpress but when I try to export the data i get the following: 1970-01-01 00:00:00 How do I export the correct data?



Comment on Date and Time Picker field for Advanced Custom Fields by Per Søderlind

Thu, 26 Jan 2017 20:57:36 +0000

Sure, but you need to do the coding your self.



Comment on Date and Time Picker field for Advanced Custom Fields by Rikhil Jain

Wed, 25 Jan 2017 04:51:21 +0000

Can the task be auto-deleted/disappear if the task date has been passed?



Comment on Date and Time Picker field for Advanced Custom Fields by Jeremy Kurrain

Tue, 03 Jan 2017 12:18:25 +0000

Is there any way i can use the date time picker to show currently open stores ?



Comment on An SVG logo Custom Control for the WordPress Customizer by Per Søderlind

Sun, 20 Nov 2016 12:47:05 +0000

Sure, you can do what you want with it as long as you keep the license and copyright.



Comment on An SVG logo Custom Control for the WordPress Customizer by acil kredi

Sat, 19 Nov 2016 22:22:00 +0000

Hello can i ask smth? We can make it like a plugin?



Comment on DropzoneJS & WordPress AJAX API by Per Søderlind

Fri, 11 Nov 2016 00:46:59 +0000

sorry, been a while since I looked at this, using the upload_dir filter, you can do the following: [php] // borrowed code from http://wordpress.stackexchange.com/a/50805/14546 add_filter( 'upload_dir', 'dropzonejs_change_upload_dir' ); function dropzonejs_change_upload_dir( $path ) { $extension = substr( strrchr( $_POST['name'],'.' ),1 ); if ( ! empty( $path['error'] ) || $extension != 'pdf' ) { return $path; } //error or other filetype; do nothing. $customdir = '/pdf'; $path['path'] = str_replace( $path['subdir'], '', $path['path'] ); //remove default subdir (year/month) $path['url'] = str_replace( $path['subdir'], '', $path['url'] ); $path['subdir'] = $customdir; $path['path'] .= $customdir; $path['url'] .= $customdir; return $path; } [/php]



Comment on DropzoneJS & WordPress AJAX API by Per Søderlind

Fri, 11 Nov 2016 00:22:07 +0000

You can trigger the wp_handle_upload filter at the end of wp_upload_bits and do something like this: [php] add_filter( 'wp_handle_upload', 'dropzonejs_move_file' ); function dropzonejs_move_file( $fileinfo ) { // $fileinfo = array( 'file' => $new_file, 'url' => $url, 'type' => $wp_filetype['type'], 'error' => false ) $destination_folder = WP_CONTENT_DIR . '/pdffiles/'; $file_name = basename( $fileinfo['file'] ); // if $destination_folder doesn't exist, create it wp_mkdir_p( $destination_folder ); $move_new_file = @ copy( $fileinfo['file'], $destination_folder . $file_name ); if ( false !== $move_new_file ) { unlink( $fileinfo['file'] ); $fileinfo['file'] = $destination_folder . $file_name; $fileinfo['url'] = WP_CONTENT_URL . '/pdffiles/' . $file_name; } return $fileinfo; } [/php]