Dan Rossiter
Forum Replies Created
-
Forum: Plugins
In reply to: [Document Gallery] Getting StartedHi,
The first thing I would like to do is determine whether another plugin/theme is misbehaving resulting in DG being unable to function correctly. To test this, you’ll need to do the following:
1. Disable all plugins except for DG.
2. Switch to a default theme for your WP install.
3. Try to create a Document Gallery again.
4. If three, succeeds, then enable plugins and switch back to your theme one-by-one, each time re-trying #3. When 3 fails for the first time, you know what is causing problems.If 3 does not succeed at any point, then it likely is an issue specifically with DG and I can investigate further.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Can't Create document Gallery from Front-end EditorHi AMO2012,
We very intentionally do not load the Media Library JavaScript necessary for that functionality on the front end. In most cases, it would be unnecessary and slow down page loads for your users.
This question comes up occasionally, and unfortunately there is no straightforward solution. We’re aware of this issue, but have no short term plans to do anything about it since we won’t sacrifice performance for the few people using front end editors (as compared to the majority that use the admin-side editors).
-Dan
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] insert Document GalleryAs the developer of Document Gallery, I can confirm that we only load the Media Library JS when on a page where it will be used. Currently that only includes the post/page edit page.
I’m happy to talk offline about ways to improve our plugins to play nicely. I can be reached here: http://danrossiter.org/contact.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Manual ThumbnailsIf an image editor can’t be found then yes, uploads will fail since we resize at upload time to your configured thumb size. You need either DG or IMagick to be configured. This is a standard WP requirement and you’re going to have a number of more general issues if you don’t have that minimum requirement met.
-Dan
Forum: Plugins
In reply to: [Document Gallery] RESPONSIVE ???That requires limiting the number of columns, which we very intentionally did not do. Also, the
!importantis generally not a result of the small portion of dynamic code generated by DG, but rather the fact that the DG style file is loaded after the manual user code. That order is an artifact of how WP behaves in older versions. There is a way in newer versions (as in, earlier this year) that would allow us to fix that ordering, but it’s not at the top of our list given there is a reasonable workaround.-Dan
Forum: Plugins
In reply to: [Document Gallery] RESPONSIVE ???bheadrick,
How exactly do you propose doing that with custom styles configured by users? The native DG styles are in a css file.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Manual ThumbnailsYou can do exactly that. Just go to Dashboard -> Settings -> Document Gallery -> Thumbnail Management and set your icons. Or you can do it from the attachment edit dialog.
Forum: Plugins
In reply to: [Document Gallery] PDF Thumbnails replaced by PDF iconDoncullen,
It’s not as simple as that. It becomes a performance issue if every time a thumbnail generation method fails we run a shell script to check where the executable moved or if it’s now available where it was not previously.
Now, a solution that would potentially work is periodically re-checking the GS location, say once a day, but implementing that would require that the plugin track thumbnail generation failures and also that it know when a GS path had been detected vs. manually entered by the user. If it’s the latter, then DG shouldn’t ever overwrite the value. We trust the user’s input more than us hoping we can find the exe.
The general view on this has been that if GS is present on the box, it’s going to generally stay in the same place. If it moves, then we provide a method for updating the path, but the overhead associated with automatically updating the path on system changes is not worth the limited benefit.
I hope that clarifies things π
-Dan
Forum: Plugins
In reply to: [Document Gallery] Some PDFs download, while most open in browserI’m glad you resolved the issue, but the plugin is simply injecting a hyperlink to your attachment wrapped around and image. Any varying behavior is going to either be browser specific or the result of something plugin/theme monkeying with the DG output after it’s generated.
-Dan
Forum: Plugins
In reply to: [Document Gallery] PDF Thumbnails replaced by PDF iconHi Doncullen,
DG first performs a
whichcall, then falls back to an explicit check for/usr/bin/gs. If/usr/bin/gswas not detected then it meanswhichis returning something for gs other than the correct location.Glad you got it sorted!
-Dan
Interesting. Good luck!
-Dan
Forum: Plugins
In reply to: [Document Gallery] Feature request: link thumbnail to "none"Hmm… Interesting idea. Shouldn’t be too difficult to implement.
I’ll add it to the list π
-Dan
Forum: Plugins
In reply to: [Document Gallery] is DC compatible with visual composer?VC? Not sure I understand what you’re asking.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Shortcode only shows one document per categoryHi Erwin,
If you update your shortcode to
[dg id=-1 category=folders], does that resolve the issue?The
id=-1attribute is required if the attachments you wish to include are not attached to the page/post where the shortcode is being used.-Dan
Forum: Plugins
In reply to: [Document Gallery] 8 bit PNG or compression plugin integration?Hi Bjarne,
This is a good idea and one we are now investigating. I’ll update once we have more information.
-Dan