Dan Rossiter
Forum Replies Created
-
Forum: Plugins
In reply to: [Document Gallery] Some thumbnails not appearingSounds good! Let us know if you end up still needing some help.
-Dan
Forum: Plugins
In reply to: [Document Gallery] External (hosted) PDF filesHi ihaider,
This could be done, but since external PDFs can’t be WordPress attachments, you would need to put together some custom code to integrate with DG.
If this is something you or your team is interested in pursuing I can give you some more detailed pointers.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Grid layoutHi sdifabio69,
It sounds like you have descriptions enabled. Those are not compatible with having multiple columns. If you disable descriptions, you can have as many columns in your grid as you want.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Pagination questionsHi tosok,
Yes, the pagination changed following that video to use WordPress’ built-in pagination logic. Using some custom CSS (entered at
Dashboard -> Settings -> Document Gallery -> Custom CSSyou can get close to the original look:.document-gallery > .paginate > .page-numbers { display: none } .document-gallery > .paginate > .prev, .document-gallery > .paginate > .next { display: inline }-Dan
Forum: Plugins
In reply to: [Document Gallery] Page NOT Found when clicking on documentHi Joyce,
Did disabling plugins reveal what was causing your issues?
-Dan
Forum: Plugins
In reply to: [Document Gallery] Page NOT Found when clicking on documentHi Joyce,
Could you do me a favor and temporarily disable all plugins (minus Document Gallery) and switch to a default WP theme? Once done, let’s see if the issue goes away. If it does, re-enable plugins & theme one-by-one until the issue comes back and you’ll know what’s causing the issue.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Document Icons appear 1 in each rowMy pleasure! π
PS: If you could take a moment to rate the plugin it would be appreciated!
Forum: Plugins
In reply to: [Document Gallery] Document Icons appear 1 in each rowHi themezz,
It sounds like you’ve got descriptions enabled. Assuming that’s the case, you’ll want to disable those to get multiple documents per row.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Adding Print button next to each PDFHi Vipworks,
This certainly can be done π The approach would be similar to what was discussed here: https://wordpress.org/support/topic/creating-document-gallery-button-beside-add-media-button/
You would add a button to each document’s output that opened the file in a new window and printed that window (see here: https://developer.mozilla.org/en-US/docs/Web/API/Window/print).
-Dan
Forum: Plugins
In reply to: [Document Gallery] Document Gallery didn’t loadHi bws999,
Unfortunately I can’t provide a definitive answer as to what went wrong. The best guess I can give is something got cached and the uninstall/reinstall purged the cache that had the wrong content.
If it stops working again, it would be interesting to know whether the DG shortcode is completely missing in what’s being shown or or if it is just not matching any documents (which would result in an empty space where the gallery should be. If it’s the latter, there would be an HTML comment when you viewed the source code.
But, saying all of that, there’s nothing I can think of to determine what’s happening until it happens again. Not the most helpful answer, I know :/
-Dan
Forum: Plugins
In reply to: [Document Gallery] Display DWG filesHi bmsa1,
DWG files are not currently supported, but there is the potential that support be added to https://thumber.co if interest is shown for such a feature.
-Dan
Forum: Plugins
In reply to: [Document Gallery] change href to onclickHi architecb33,
You can definitely change the output of DG the way you describe with a little bit of PHP. You’ll want to setup a filter like the following (untested since I’m not at my dev computer right now, but should be close):
add_filter('dg_icon_template', 'dg_href_to_onclick'); function dg_href_to_onclick($icon, $use_descriptions, $id) { return preg_replace('<a [^>]*>', "<a onclick=\"window.open('%link%', '_system')\">", $icon); }-Dan
Forum: Plugins
In reply to: [Document Gallery] PDF Thumbs generated, but not appearing in listHi rmelgar,
Can you provide a link to a gallery where this is occurring? This symptom is often the cause of a JavaScript problem where a theme/plugin is breaking DG.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Using dg with Avada themeMmm… yes, that could definitely cause your problems!
Glad you got it sorted!
-Dan
Forum: Plugins
In reply to: [Document Gallery] Using dg with Avada themeHey paisleyhomedesign,
I’m sorry you’re having so many issues getting your site up and running π
Given the symptoms I’m seeing on that page, I believe the shortcode is not being executed at all. It doesn’t looks like thumbnail generation is relevant since it’s not even getting to a point where it could try to generate any.
The next question would be, if you put some other shortcode in place of
[dg], does that work? This should be a non-WP core shortcode (in other words, a shortcode added by a third party plugin).-Dan