sewpafly
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Thumbnail Editor] Incompatible with externally hosted images?Not currently. Someone would need to look at both plugins and see if there was a way to hook them together. It’s probably do-able, but it would take some time. File a bug on github and if there is some interest, I can look into it when I have the time.
Forum: Plugins
In reply to: [Post Thumbnail Editor] Lost cropped imagesI’ve never heard of a similar issue. As long as the wp-content/files and database structures stay the same, there shouldn’t have been any issue with upgrading php5. If you changed to a multisite or used some database cleaning plugin or rebuild thumbnails plugin, then yes, that would probably cause an issue.
Prevention would entail backing up your database, and saving the wp-content/files directory.
I’ll see what I can do. Track this issue here: https://github.com/sewpafly/post-thumbnail-editor/issues/118
Forum: Plugins
In reply to: [Post Thumbnail Editor] NOT WORKING!This is probably a conflict with another plugin. Try disabling other plugins to find the one that you are conflicted with.
See this thread: https://www.ads-software.com/support/topic/image-not-loaded-in-editor-image-cant-be-displayed?replies=5#post-6273199
If that doesn’t fix your problem, check your debug logs for errors, and run the javascript console when you load the editor and report any error messages.
Good luck trying to do that with stock wordpress :), but yes you can do that with this plugin.
FYI, some post-thumbnails set the “crop” attribute which means that the image needs to have either a specific width, specific height or both. (Thumbnails defined with a width or height of 0 can be any size).
To do this with PTE you select the post-thumbnail that you want to crop, go to the options button and then unset the aspect ratio. You can then select the part of the image you want to crop and in the options you can choose the color of the bars that would appear on the top or bottom.
WordPress has a feature called post-thumbnails.
When you try to display a picture that you have uploaded to wordpress, generally your theme will use a feature called post-thumbnails. This feature resizes your image into the appropriate dimensions needed for your theme. Sometimes, wordpress’ resizing crops either the sides or the bottom depending on how the post-thumbnail is defined (it always crops to the middle). This plugin specifically sets the crop at any size for any given image.
Hope that helps.
Forum: Plugins
In reply to: [Post Thumbnail Editor] Can this be used on the frontend?It’s possible, but you would probably have to do some coding and get your hands a little dirty…
Example… I haven’t tested this
In PTE code you’ll see this:
/** * Perform the capability check * * @param $id References the post that the user needs to have permission to edit * @returns boolean true if the current user has permission else false */ function pte_check_id( $id ) { if ( !$post = get_post( $id ) ) { return false; } if ( current_user_can( 'edit_post', $id ) || current_user_can( 'pte-edit', $id ) ) { return apply_filters( 'pte-capability-check', true, $id ); } return apply_filters( 'pte-capability-check', false, $id ); }
If you want to give a user permission to use PTE, you have to give them the link to PTE (
pte_url(<image_id>, true);
Returns a url to an iframe with the PTE editor), and do your own user check:function check_user($current, $image_id) { $user = get_current_user(); // change the isGood() check to your own logic return ( $user->isGood() ) ? true : false; } add_filter('pte-capability-check', 'check_user', 10, 2); // the 10 is only important as a placeholder, the 2 is needed so you get your image_id in the check_user function
Forum: Reviews
In reply to: [Post Thumbnail Extras] Please Update to latest VersionStrange, when I checked the sidebar on www.ads-software.com it showed really old statistics initially (compatible to 4.0.x, last updated 12/2013 or something like that) but when I went back to copy/paste them it showed the up to date statistics:
Requires: 4.1 or higher Compatible up to: 4.2.x Last Updated: 2015-6-18 Active Installs: 40,000+
Thanks for beta testing. I will add to the next version.
oh sorry, it’s in
post-thumbnail-editor.php
Forum: Plugins
In reply to: [Post Thumbnail Editor] Cropping and saving optimized images jpg formatCan you output the debug logs for me?
I’ll monitor the thread on the drag/drop plugin page as well.
Forum: Plugins
In reply to: [Post Thumbnail Editor] Human readable display namesSounds like something easy to implement… I’ll add it to my backlog and fix it when I can find some time.
See https://github.com/sewpafly/post-thumbnail-editor/issues/115 for future updates.
I think it would probably require a jsonp handler to get around this, which wouldn’t be prohibitive to do, but would take some time…
Is there some documentation on this yahoo “functionality”, it seems really strange that there isn’t a way to disable this via headers or something… Maybe if we set output headers correctly it would work.
case "get-thumbnail-info": $id = (int) $_GET['id']; // Add this (line 289) header('Content-type: application/json'); if ( pte_check_id( $id ) ) print( json_encode( pte_get_all_alternate_size_information( $id ) ) ); break;
Forum: Plugins
In reply to: [Post Thumbnail Editor] NetworkError: 502 Bad GatewayThanks for updating!