aleks12
Forum Replies Created
-
Forum: Plugins
In reply to: [Manual Image Crop] {"status":"error","message":"wrong attachement"}Since The Author gave up on this good plugin,
I offer a solution:edit file \lib\ManualImageCrop.php
find this
$content .= '<a id="micCropFeatureImage" class="thickbox mic-link" rel="crop" title="' . __('Manual Image Crop','microp') . '" href="' . admin_url( 'admin-ajax.php' ) . '?action=mic_editor_window&postId=' . get_post_thumbnail_id($post) . '">' . __('Crop featured image','microp') . '</a>and replace it with this:
$thumb=get_post_thumbnail_id($post); if (empty($thumb)) $thumb=$_POST['thumbnail_id']; $content .= '<a id="micCropFeatureImage" class="thickbox mic-link" rel="crop" title="' . __('Manual Image Crop','microp') . '" href="' . admin_url( 'admin-ajax.php' ) . '?action=mic_editor_window&postId=' . $thumb . '">' . __('Crop featured image','microp') . '</a>It should work with all versions of the WP, including 4.6.1, but not sure if it will work with all future versions.
- This reply was modified 9 years, 8 months ago by aleks12.
Forum: Plugins
In reply to: [Manual Image Crop] {"status":"error","message":"wrong attachement"}I have the same error on several websites after WP 4.6 update.
Don’t know the reason, but it’ll work after you save the post (publish or save draft). You can use this workaround until the author fixes the plugin. It has something to do with the attachment data not being seen after the image is uploaded on a fresh post…- This reply was modified 9 years, 9 months ago by aleks12.
I have tried to override the hook – disable old and enable new witohut editor capabilities, but that didn’t work.
I have edited the file and commented the editor part and it works. But it would be nice to just override the defaults.Thanks for the effort.
Edit:
Is there some kind of hook that would prevent the deletion of old posts, so I could modify it myself until you guys post the update of the plugin?
Ok,
if I set the limit to 0 or blank, will I get the wanted behaviour (no old posts deleted)?Forum: Plugins
In reply to: [EWWW Image Optimizer] database disk full problem on scheduled opt.Ok, that would do the trick then. I will try it.
thanks!
Forum: Plugins
In reply to: [EWWW Image Optimizer] database disk full problem on scheduled opt.Thanks for the reply, nosilver4u,
if I turn off all cron/scheduled tasks, and leave the opt. on image upload only, will it still check that option?
I have images problem on front page, so I really don’t have to do the opt. of older images. In a few weeks, I would have about 500 posts with opt. images, so the category pages will have opt images for the first 10 pages or so, and that’s fine.I like the tool and want to make it friendly to the db, with the least queries possible.
Forum: Plugins
In reply to: [Youtube Channel Gallery] getting no longer supported video from YouTubeProposed solutions are not a fix, since Youtube api v3.0 is deployed.
I have managed to make it work for users, there is a new feed for api 3.0 and new namespaces in feed.
However, i did not manage to query specific number of items (argument max-results won’t work), and the number is limited to 15 items.
The fixes:the rss url:
line 531:
$youtube_feed_url = 'https://www.youtube.com/feeds/videos.xml';
line 536:
$ytchag_rss_url = $youtube_feed_url.'?user='. $ytchag_user;the xml parsing:
line 614 – You collect the namaspaces, why not using ’em?
line 622:
$media = $entry->children($namespaces["media"] );
line 628:
$yt = $entry->children( $namespaces["yt"] );
line 629:
$youtubeid = $yt->videoId;At the last line the difference is in the caps of the property.
That’s it, it shoud work. If anyone could query the number of items on line 536, that would solve the problem completely.
EDIT: I guess the code for playlists and channels needs refreshing too, so maybe that’s the reason why the author didn’t post the update of the plugin.
Forum: Plugins
In reply to: [Quick Page/Post Redirect Plugin] Performance issueHi Don, great news,
It’s a great plugin and if you speed it up like you say you will, it will be awsome πForum: Plugins
In reply to: [WP Popular Posts] [Plugin: WordPress Popular Posts] WPP TimThumb 2.0 ?ok, thanx for a quick reply, I hope you will wolk it out soon…