Riccardo
Forum Replies Created
-
Hey guys,
in the end I found this article from the forum and the suggestions worked.
Now the file to modify is Minify.php and not Plugin.php, but the trick pretty much did it.Great!
Riccardo
http://www.gurtip.itHi xnau,
good digging in the code!
I am actually having the same problem, but I would rather not use the manual mode, so I was wondering if you could share the patch.Frederick, amazing job with the plugin.
Is there any reason to put the the minified code at the top of the head? Would it be possible to make it configurable?thanks guys!
Riccardop.p.s. forgive the pssss… I just wanted to say that I get no errors when using the shortcode as well.. I only have problems when I call the function directly
p.s. the api call I am referring to is
MRP_get_related_postsForum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] [Plugin: Top 10] Filter for image linkCool, glad you found it useful.
Riccardo
Forum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] [Plugin: Top 10] Filter for image linkThat’s right, to the filter I am passing the link to the image and the size it will be visualized on the browser.
I use the filter to pre-process the image to the expected size, so that the resource sent to the user is smaller and there is no client-side resizing of the image.Riccardo
http://www.gurtip.itForum: Plugins
In reply to: [WebberZone Top 10 — Popular Posts] [Plugin: Top 10] Filter for image linkIn the settings for the plugin you can decide the size of the picture, but you then use the image from the post directly.
In my specific example, I use a library to resize the image on the fly so that it doesn’t have to happen in the browser. So, in my case, the filter looks like this:function scale_tp10_thumbs($postimage, $width, $height) { $new_pi = get_bloginfo("template_directory")."/img.php?src=$postimage&w=$width&h=$height"; return $new_pi; } add_filter('tp10_postimage', 'scale_tp10_thumbs', 10, 3);I couldn’t figure out another way to deliver the image in the right size.
I guess another a bit more invasive way (for me, for you it might actually be a better solution) is to let the user decide which image size to use.
Riccardo
http://www.gurtip.itI was having a similar issue, where a permalink would be created before the post was published (or scheduled).
Given that for some of my content the first title is just a draft, this was causing multiple bit.ly links to be created.To solve the problem I slightly modified the plugin, putting the following code right at the beginning of the yoast_bitly_shortlink function:
$mypost = get_page( $id ); if ( !in_array($mypost->post_status, array('future', 'publish')) ) { return "Post must be published to get a shortlink"; }I don’t know if there is any reason why you’d need a shortcode earlier than that time, maybe Joost can include this patch in the next release of the plugin.
Riccardo
[ Signature moderated. ]