Krolyn Studios
Forum Replies Created
-
@ultimatemembersupport Will the above issues be addressed please? Thank you.
There’s also an image issue with CAPS on the file extension. If the uploaded file has a .JPG (uppercase) file extension, the thumbnails are still created in .jpg (lowercase). And there again, the thumbnails are bypassed in favour of the default uploaded image.
It’s easily fixed by adding the following code to the above –
$ext = strtolower( $ext );
Thank you
Jon- This reply was modified 6 years, 3 months ago by Krolyn Studios.
We now have another issue occurring whereby the {$height} variable ascertained from the ratio calculation is different from the uploaded filename.
e.g. uploaded filename is cover_photo-1000×371.jpg, however the ratio calculation results in a search for filename cover_photo-1000×370.jpg, hence it pulls in the native image cover_photo.jpg as the default because the names don’t match.
Here is my temporary fix, but terribly crude;-
//* Fix for pulling in cover photos add_filter( 'um_user_cover_photo_uri__filter', 'um_user_cover_photo_uri__filter', 10, 3 ); function um_user_cover_photo_uri__filter( $cover_uri, $is_default, $attrs ) { if( ! $is_default ) { $ext = '.' . pathinfo( um_profile( 'cover_photo' ), PATHINFO_EXTENSION ); $ratio = str_replace(':1','',UM()->options()->get('profile_cover_ratio') ); $height = round( $attrs / $ratio ) + 1; if( file_exists( UM()->uploader()->get_upload_base_dir() . um_user( 'ID' ) . DIRECTORY_SEPARATOR . "cover_photo-{$attrs}x{$height}{$ext}" ) ) { $cover_uri = UM()->uploader()->get_upload_base_url() . um_user( 'ID' ) . "/cover_photo-{$attrs}x{$height}{$ext}?" . current_time( 'timestamp' ); } } return $cover_uri; }
Yes, Dmitriy. I agree. More work needs to be done in the thumbnails space. And there definitely needs to be a mechanism to regenerate thumbnails. I’ve developed some coding which works on regenerating thumbnails for both cover and profile photos, plus the default 300 and 1000 widths required for profiles.
I am currently using this code as a temporary fix. Just add it to your functions.php file –
//* Fix for pulling in cover photos add_filter( 'um_user_cover_photo_uri__filter', 'um_user_cover_photo_uri__filter', 10, 3 ); function um_user_cover_photo_uri__filter( $cover_uri, $is_default, $attrs ) { if( ! $is_default ) { $ext = '.' . pathinfo( um_profile( 'cover_photo' ), PATHINFO_EXTENSION ); $ratio = str_replace(':1','',UM()->options()->get('profile_cover_ratio') ); $height = round( $attrs / $ratio ); if( file_exists( UM()->uploader()->get_upload_base_dir() . um_user( 'ID' ) . DIRECTORY_SEPARATOR . "cover_photo-{$attrs}x{$height}{$ext}" ) ) { $cover_uri = UM()->uploader()->get_upload_base_url() . um_user( 'ID' ) . "/cover_photo-{$attrs}x{$height}{$ext}?" . current_time( 'timestamp' ); } } return $cover_uri; }
@ilincazh The issue continues unfortunately.
Same problem. It times out and says it can’t connect with reSmushit
I hope so. It’s not a difficult fix.
Can UM please attend to this issue? What if you prefer to send out plain text emails?
Forum: Plugins
In reply to: [StatCounter - Free Real Time Visitor Stats] Loading delay – resolving host.Resolved now, thank you.
Forum: Plugins
In reply to: [Yoast SEO] Wrong og:image used for homepageSame problem here too.
So, what if you prefer to send out plain text emails without all the HTML code? Do you simply overwrite all the HTML in the email template with plain text?
@helloqro Okay. Glad you’re back online and it’s working. Feel free to contact me through the WP Clips website contact form and send through the web address. I’d be happy to take a look at the source code for you.
@helloqro Also try disabling your cache plugin by temporarily renaming its folder.
- This reply was modified 6 years, 9 months ago by Krolyn Studios.
@helloqro – can you access your backend via file manager or FTP? Just go into the WP Clips plugin’s /precoded/ folder and delete the unwanted Clip (1.0.0). This shouldn’t happen. I believe you might have had a cache plugin installed that is creating the problem. But, this solution should resolve it. Let me know. I’m here to help.