HenryBag
Forum Replies Created
-
Forum: Plugins
In reply to: [Responsive Lightbox & Gallery] Use custom image size instead of "full" sizeHi, I’m interested in finding out the solution to this as well. I’ve tried the above using 100 in the filter but that didn’t work.
Does anyone else have any ideas – it does seem strange to load the full-size image rather than large as clients are often unaware of the importance of file size.
This is the code I’ve used
function oikos_get_attachment_link_filter( $content, $post_id, $size, $permalink ) { // Only do this if we're getting the file URL if (! $permalink) { // This returns an array of (url, width, height) $image = wp_get_attachment_image_src( $post_id, 'large' ); $new_content = preg_replace('/href=\'(.*?)\'/', 'href=\'' . $image[0] . '\'', $content ); return $new_content; } else { return $content; } } add_filter('wp_get_attachment_link', 'oikos_get_attachment_link_filter', 100, 4);Forum: Plugins
In reply to: [Cool Video Gallery] [Plugin: Cool Video Gallery] File upload sizeHi
I’m trying to use this plug-in on my site but I’m still having issues with the file size. I’ve edited my php.ini and added
upload_max_filesize = 20M.On the plug-in overview page this does change to the 20m, but on the actual upload video section it says Maximum file upload size: 8MB.
I’ve tried the method described in one of the above posts by putting the code below into my wp-config file but to no avail.
ini_set("post_max_size", "30M"); ini_set("upload_max_filesize", "30M");Thanks in advance
Henry