Dan Rossiter
Forum Replies Created
-
Forum: Plugins
In reply to: [Document Gallery] Searching document by nameGlad you got it working!
-Dan
Forum: Plugins
In reply to: [Document Gallery] Searching document by nameForum: Plugins
In reply to: [Document Gallery] Safe to use with WordPress 4.7?Bjarne,
Just to close the loop on this topic, changes in 4.3.1 incorporate new functionality from 4.7.
-Dan
Forum: Reviews
In reply to: [Document Gallery] Made a tedious job easyThrilled to hear DG made your life easier! π
Forum: Plugins
In reply to: [Document Gallery] Safe to use with WordPress 4.7?Thanks so much for doing a full test of the functionality. I’m seeing the same results on my end.
From a code perspective, I looked as what changed in WP 4.7 and there are some things that could be cleaned up on DG’s side to use the new functionality, but that is by no means urgent and the world should keep spinning until I get to those changes.
Thanks again!
-Dan
Forum: Plugins
In reply to: [Document Gallery] Thumbnails / Using own iconsHi Matthew,
Hosting locally should be fine unless you are trying to use Thumber.co, which relies on a public URL.
If you go to
Dashboard -> Settings -> Document Gallery, at the bottom of that page there is a list of thumbnail generation methods. What do you see there? My guess is that both IMagick and Ghostscript are both not available on your machine, which would make thumbnail generation impossible.And yes, manual thumbnails are possible. You can either configure those on the attachment page for the documents you add or through the Thumbnail Management tab.
-Dan
Forum: Plugins
In reply to: [Document Gallery] columnsscboy,
Document Gallery has not been officially tested with WooCommerce so there may be some quirks when working with any kind of custom editors. Based on what you described, my recommendation would be to switch from the visual to the text version of the main editor (where the gallery is incorrectly being inserted), copy the shortcode (it will look like this:
[dg ...]) from the text in the editor and then paste it into the WooCommerce custom tab.-Dan
Forum: Plugins
In reply to: [Document Gallery] Unable to Add to Existing…Marsha,
What browser are you using? The shortcode value seems to be valid and parses OK on my system, so I’m wondering if you have an unsupported browser.
-Dan
Forum: Plugins
In reply to: [Document Gallery] How to give the editor role access to Document GalleryHi luc.vangerrevink,
Yes. The permissions would be the same as required to allow editing posts/pages (edit_posts & edit_pages).
-Dan
Forum: Plugins
In reply to: [Document Gallery] Safe to use with WordPress 4.7?Hi Bjarne,
I have been swamped with grad school for the past few months so I have not tested yet. I will try to find time this weekend to do a formal test and rev the compatible to version.
-Dan
Forum: Plugins
In reply to: [Document Gallery] columnsHi scboy,
It sounds like you’ve run into one of our long-standing enhancement requests. Do you have descriptions enabled? We don’t yet support configurations with descriptions and multiple columns. If you disable descriptions, it should work.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Unable to Add to Existing…Thanks, Marsha! That helps.
Ok, I’m going to need you to make a quick change to the Document Gallery code in order to get a better idea of what exactly is going on.
In the same place where you updated the WP config, edit this file
wp-content/plugins/document-gallery/assets/js/gallery.jsaddingconsole.log('shortcode: ' + decodeURIComponent($(this).data('shortcode')));to line 48. That block should now look like this:/** * Handles necessary logic for when we're rendering gallery preview within visual editor. */ function handleVisualEditor() { if (is_editor) { tinymce.PluginManager.add('dg', function (editor, url) { editor.on('LoadContent update.dg undo', function (e) { $(e.target.contentDocument).find('[data-wpview-type="dg"] [data-shortcode]').each(function () { console.log('shortcode: ' + decodeURIComponent($(this).data('shortcode'))); retrieveGallery($.parseJSON(decodeURIComponent($(this).data('shortcode'))), $(this)); }); }); }); } }Once that’s done, I’ll be interested to know what shows up in the console directly before the error you posted. It should start with “shortcode: “.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Unable to Add to Existing…Hi Marsha,
Can you please add
define( 'SCRIPT_DEBUG', true );to yourwp-config.phpfile as described here, then re-post the error you posted above?-Dan
- This reply was modified 9 years, 8 months ago by Dan Rossiter.
Forum: Plugins
In reply to: [Document Gallery] Any plans for WordPress 4.7 thumbnail integration?Hi Bjarne,
The short answer is yes.
The long answer is, DG was already using WP to do thumbnail generation and has been pretty much since inception π This change to WP core likely means we’ll be able to remove the extension of
WP_Image_Editor_Imagickwe were using to handle deficiencies in core implementation some time in the future, though likely not in the short term to continue supporting backward compatibility.-Dan
Forum: Plugins
In reply to: [Document Gallery] Thumbnails manager doesn't see my documentsnicovideo,
I apologize for disappearing from this thread! With the WordPress.org forum migration, threads I’d subscribed to lost the subscription so I never got an update when you posted.
I’m thrilled you found a solution to your problem. That’s an interesting one… The one thing you’ll need to be careful of is that you re-make that change to gallery.min.js whenever you install a DG update, but given how much work you put into figuring this one out, I bet you won’t forget π
FYI, if you’re running in production, you will probably only need to change gallery.min.js — gallery.js will never be loaded.
-Dan
EDIT: I almost forgot to mention, plugin ratings, especially of the 5-star variety, are greatly appreciated! π
- This reply was modified 9 years, 8 months ago by Dan Rossiter.