zookatron
Forum Replies Created
-
An update to users interested in this topic:
We are currently working with WPML to try to improve compatibility with the plugin. It is unknown when we will be able to ensure full compatibility.
~Tim
Unfortunately I can’t delete this post myself, but I have marked it as resolved.
Users should refer to the canonical support post here: https://wordpress.org/support/topic/suggestions-for-shortcode-options
Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] suggestions for shortcode optionsThanks for your feedback. It’s great to see users doing unique things with MyBookTable.
Unfortunately your particular use case differs enough from our core functionality that it’s not something that we would actively support out of the box in the plugin. As you say, you don’t need a “full-fledged bookstore”, but our primary goal is making a good full-fledged bookstore. Unfortunately we don’t have unlimited development time so we have to prioritize things that directly serve our primary goals.
That said, I might be able to give you some tips to get you where you want to go.
Unfortunately there is no way around needing to use PHP to get the image URL from the WordPress image ID. That’s just how WordPress works; It wants you to reference your image by ID, and then transform it into an actual image URL when you are ready to display it, which allows you to display different image sizes (which will have different urls) in different places (such as a small thumbnail on the archive page and a full sized image on the post itself) and to support responsive image sizing.
However, you could cache a specific image URL for use with your Views template, which looks like it can only pull from preset post meta fields. You can do this by adding a hook to your theme that detects whenever a MyBookTable book is updated and caches the image URL into a new meta field. You would want to add something like the following snippet to your theme’s functions.php file:
add_action('save_post', 'mytheme_cache_mbt_image', 20); function mytheme_cache_mbt_image($post_id) { if((defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) or get_post_type($post_id) != "mbt_book") { return; } $image_url = ''; // get the image id from the book's post meta $image_id = get_post_meta($post_id, 'mbt_book_image_id', true); // wp_get_attachment_image_src returns an array of image url, width, and height, if the image id exists $image_data = wp_get_attachment_image_src($image_id, 'mbt_book_image'); // extract the image url from the data array, if the data was found if($image_data) { $image_url = $image_data[0]; } // create our custom post meta that contains the cached url update_post_meta($post_id, 'mytheme_cached_mbt_image', $image_url); }In order to get this work initially you will need to go in and re-save your MBT books in order to get this hook to run for each of them.
~Tim
Hi @christianready,
Could you post the ISBNS/ASINS you are trying to import? We will try them out and see if we can replicate the error you are experiencing.
Forum: Plugins
In reply to: [MyBookProgress by Stormhill Media] Update BrokenHi @ciaraballintyne,
We have not been able to reproduce this on any of our test sites and have no other reports of these issues from our other users, so this seems like it must be some sort of incompatibility with your site configuration. The “{{= this.model.get(‘name’) ? this.model.get(‘name’) : ‘(no name)’ }}” text is a Javascript template used to generate the name of the phase, but for some reason it is not being interpreted on your site, and is simply being displayed by itself. It’s not clear what could cause this, and unfortunately it is impossible to diagnose exactly what the source of your problem is without being able to log into the site and run diagnostics on the admin pages in question.
~Tim
Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] Book cover images not showingNo problem, thank you for your patience and assistance in tracking this down!
~Tim
Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] Book cover images not showingExcellent, we will push out an update that fixes this (hopefully) once and for all then.
The issue is a function (one of the new ones in 4.4 that relate to responsive images) that should never return null that is for some reason returning null in certain cases. We can’t reproduce any situation where it will return null on any of our test sites, but apparently there is an edge case somewhere that causes it to do so, like it is on your site. The bug is fixed just by handling this possibility and performing a fallback in this case.
~Tim
Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] Book cover images not showingWe’ve come up with an experimental version of MyBookTable with some changes that may fix this issue, if it is caused by what we are guessing it is. We have no way of testing this out since we don’t have access to any sites that are exhibiting this behavior, you should be able to let us know if it works for you. Simply deactivate your current MyBookTable install and install and activate this one: http://api.authormedia.com/wp-content/uploads/amapi_updates/mybooktable/mybooktable.bugfix.zip. Your books, settings, and other data will not be affected.
Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] Book cover images not showingYou developer add-on version is correct, the version number between the Add-on and the main plugin are not intended to be the same.
We have been continuing to investigate this and we have not been able to reproduce this issue on any sites that have MyBookTable 2.2.1 and WordPress 4.4.1. If you are sure these are the versions you are running, could you send me links to your site so that I can investigate further?
~Tim
Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] Book cover images not showingWe just released an update that fixes this bug. The issue is an incompatibility with old versions of WordPress, so you can also update your WordPress to address the issue.
~Tim
Forum: Plugins
In reply to: [MyBookProgress by Stormhill Media] OopsThanks for reporting this, this issue has been fixed in the most recent version of MyBookProgress.
~Tim
Forum: Plugins
In reply to: [MyBookProgress by Stormhill Media] What I FoundThanks for reporting this, this issue has been fixed in the most recent version of MyBookProgress.
~Tim
Forum: Plugins
In reply to: [MyBookProgress by Stormhill Media] Didn't WorkThanks for reporting this, this issue has been fixed in the most recent version of MyBookProgress.
~Tim
Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] Grid ViewYou can purchase it here: http://www.authormedia.com/all-products/mybooktable/upgrades/
If you are only interested in the Grid view you only need the Professional Upgrade.
~Tim
Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] Grid ViewYou can enable grid view using the following steps:
1. Go to the Settings for MyBookTable from the WordPress Admin Menu
2. Select the “Style” tab on the Settings Page
3. Scroll down until you see the “Book Listing Styles” section on the Styles tab
4. Check the “Enable Grid View for Book Listings” option.Note that you need the MyBookTable Professional or Developer Upgrade version 2.0 or greater to enable this option.
~Tim