frostmob
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Blocksy] Conflict with TutorLMS course filterHey, I couldn’t see this earlier but I want to say thanks for the timely fix! Everything seems to be in order.
Forum: Themes and Templates
In reply to: [Blocksy] Conflict with TutorLMS course filterAwesome, thanks Eduard.
Forum: Themes and Templates
In reply to: [Blocksy] Conflict with TutorLMS course filterHi Eduard,
Appreciate the speedy response! It’s the course filter that’s built in with tutorLMS. I think it comes disabled by default so you’ll have to activate it in the settings page (tutor lms > settings > design > enable course filter). Then go to the courses archive page /courses/.
- This reply was modified 3 years, 8 months ago by frostmob.
I can’t share the site I’m working on because it contains personal information but the problem is extremely easy to reproduce, download and activate blocksy theme > enable course filter > go to /courses/ page and try the filter.
I’ll forward this to the support e-mail as well, thanks.
Actually, it appears TutorLMS does list Blocksy as a supported theme
https://docs.themeum.com/tutor-lms/basic/compatible-themes/Please unflag this as resolved because this problem has not been solved. May I suggest looking into this or remove Blocksy from the supported theme list, because it is misleading when a key feature does not work in the theme.
That’s disappointing considering blocksy is one of the most popular themes.
Do you plan to increase support for it or have a workaround for a course filter?I tried the snippet for the article you mentioned and can confirm it doesn’t work for my theme. It works on most others such as Kadence, Generatepress and Twenty twenty-one but a few themes don’t support it.
It took a few days but I managed to find a solution to make sure ‘wp_get_attachment_image_src’ does not replace non-thumbnails. I also switched the condition to whether they have memberships, to avoid issues with plugins not supporting custom fields and leaking the image. It’s a bit of extra work, manually creating the preview image but it works for me.
Forum: Themes and Templates
In reply to: [Blocksy] Navigate posts within same categoryThanks for the quick response!
I appreciate you describing the development process and your honesty. I hope it isn’t too difficult to implement and I’ll certainly be keeping tabs on an update!
Cheers
Hey Andrew, I can’t access the post because I’m not a plus member, but since it uses ‘post_thumbnail_html’ I’m not sure if it’ll work for my site since they use ‘get_post_thumbnail_id’. I’ve successfully hooked it with themes that use it such as Kadence though. I’ll try fiddling with it and maybe learning about theme customization. I hope you guys find a neat solution to this problem in the future.
After some fiddling and searching I found out I can hook to wp_get_attachment_image_src instead. There’s still problems though, the site logo gets replaced with the custom thumbnail of the first post in archives, and next/prev post thumbnails get overrode on single posts or show the original thumbnails on unprotected posts.
function custom_preview_thumb($image, $attachment_id, $size, $icon) { if ( function_exists( 'pmpro_has_membership_access' ) ) { // Check if the user has access to the post. $hasaccess = pmpro_has_membership_access(); // No access if ( empty( $hasaccess ) ) { // Show preview image $preview = get_field('preview_image'); // if no preview img, return default thumbnail if ( empty( $preview ) ) { return $image; } // else, return custom PV image else { $image[0] = $preview; return $image; } } return $image; } } add_filter('wp_get_attachment_image_src', 'custom_preview_thumb', 10, 4);Thanks Andrew for the prompt reply and guidance!
I’ve tried hooking with ‘post_thumbnail_html’ and custom image fields with little success unfortunately. The theme and plugins I used don’t seem to use ‘post_thumbnail_html’ but ‘get_post_thumbnail_id’ instead. I’m not very tech-savvy so I have no idea how to hook to this. Any pointers would be greatly appreciated.
It’s good to hear you’re already working on featured images. I look forward to the improvements to this aspect in the future and the plugin becoming a solid alternative to patreon for creatives!
May I kindly suggest this be implemented into the base plugin as without this feature it makes paid subscription groups rather confusing and unfeasible. Thanks for the offer however, I’ll weigh my options and consider it in the future 🙂
Hey thanks for the reply.
Is there any way to change it so that private group posts members belong to can show up on the main feed? I have membership integration with groups and having these hidden will cause unnecessary confusion and make it hard to communicate with subscribers (private group posts do not show up on the personal activity feed either). I see buddyboss already has this considered along with other features, but I like your designs better.
Any assistance would be greatly appreciated!