Dan Rossiter
Forum Replies Created
-
Forum: Plugins
In reply to: [Document Gallery] Get rid of titles in 4.1Hi Derek,
I’m sorry your filtering started causing you issues. The magic you are looking for is in
gallery.jsinresetPendingIcons().You’ll want to be sure you don’t strip any
data-*attributes and keep your class/id values when filtering in order for the front-end logic to continue working. All of these values are exposed through the same markup you’re using in your existing filter. Specifically, it looks like your %data% is missing, so the following should work (untested):function remove_dg_titles($info){ return ' <div class="document-icon">' . PHP_EOL . ' <a href="%link%"><img src="%img%" title="%title_attribute%" alt="%title_attribute%" %data% /><br></a>' . PHP_EOL . ' </div>%description%'; }Forum: Plugins
In reply to: [Document Gallery] Make documents (descriptions) searchableHi hansguido,
It’s actually funny you bring this up because I am in the early stages of developing a plugin that would enable exactly this. Unfortunately, there is no such option with core WP functionality and this functionality is way outside the scope of Document Gallery.
Such a plugin would need to parse the files and find the text. With plain text files that wouldn’t be too hard, but think about trying to get the text out of a PDF or a Word document. The plugin would need intimate knowledge about how that file is encoded and how to pull out text which could then be searched. Definitely not an easy thing to do π
Anyway, sorry for the rambling. Short answer is, there is no such functionality in WP core or any existing plugin that I know of. This (paid) plugin does appear to support searching some PDFs, though looks like only PDFs that aren’t the result of scanning in a document.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Thumbnail list vanishedRegarding your thumbnails disappearing, that is definitely a bit concerning. Would you mind enabling logging and attempting to reproduce that issue? If you can make it happen intentionally then that gives us somewhere to start in resolving the issue.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Thumbnail list vanishedHi Steve,
The
Thumbnail Managementtab is lazily generated as DGs are rendered. The first time any DG references that attachment, it’s populated. If you need to add a thumbnail to an attachment that does not yet exist in that list you can do that by way of the edit dialog for that attachment (there’s a meta box at the bottom that will allow the same manual setting of thumbnails).-Dan
Forum: Reviews
In reply to: [Document Gallery] Useful plugin for displaying publicationsThanks for the positive review and for the suggestions!
#1 on your list is definitely in the works. We’ve been fighting the limitations of the on-site WP.org documentation options in trying to provide extensive documentation on all of the ever-growing features within DG, while also providing quick overviews of the various features. That said, there are definitely things we could do with the limitations we have, but that we have just not done so we’re planning to work on that in the coming months.
#2 is an interesting idea. A bit tricky, as you noted. I’ll keep it in the back of my head.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Cannot activate or deleteHi Jaredam,
I am sorry for the inconvenience. Let me help you get things working again.
Can you confirm that the error is the same as what DrCassoff is reporting? Also, have you tried uninstalling and doing a clean install?
EDIT: To clarify, uninstalling DG, not all of WordPress, then cleanly installing DG 4.1.4.
-Dan
Forum: Plugins
In reply to: [Document Gallery] After 4.1.x update PDF images now generic iconsKevin,
My pleasure! π
Sorry the update did not resolve the issue — I was afraid it might not given the JS issues going on.
If you get the JS error resolved and you still have DG issues, please don’t hesitate to let me know. However, based on what I’m seeing, I’m assuming that the other errors are the issue so I’ll go ahead and close this ticket for now, but feel free to re-open if needed.
-Dan
Forum: Plugins
In reply to: [Document Gallery] After 4.1.x update PDF images now generic iconsHi Kevin,
I’ve just pushed out version
4.1.4which *may* address your issue. I was not able to find any issues in PDF thumbnail generation, however, there was an issue in some logic above that that could potentially have resulted in thumbnail generation failing for PDFs.If you don’t mind installing the new version, purging any failed thumbnails (under
Dashboard -> Settings -> Document Gallery -> Thumbnail Management), then re-visiting the gallery where you were seeing problems, we can see if things look any better. If they do not, we can try some other things.As a side note, I took a quick look at the page you linked and there is some very unhappy JavaScript (outside of anything related to Document Gallery) that may be causing you problems. If you open that page with your console open (strike F12 on your keyboard) you’ll see an number of errors, which could be preventing the browser from even getting to DG’s JavaScript which retrieves the thumbnails after the gallery is loaded.
-Dan
Forum: Plugins
In reply to: [Document Gallery] After 4.1.x update PDF images now generic iconsHi Kevin,
PDF generation should definitely still work with either Ghostscript or IMagick in the
4.1release. Thumber.co is simply intended to augment already-supported filetypes, not take anything away that was already supported πI’m looking into this right now and there’s definitely something not quite right. Let me get back with you once I’ve had a chance to figure out what’s going on.
-Dan
Forum: Plugins
In reply to: [Document Gallery] NOTICE: Google Drive Viewer Not WorkingFollowing up on this topic, Document Gallery now (as of version
4.1) has a solution for MS Office filetypes (including Word, PowerPoint, Publisher, and Visio) as well as many other filetypes by way of the Thumber.co service. There is a small fee for use of the service, but it also comes with a 7-day trial period for the basic plan allowing you to kick the tires before investing any money in the service.-Dan
Forum: Plugins
In reply to: [Document Gallery] Fatal error: Class 'DG_AudioVideoThumber' not foundHi Mia,
We’ve just pushed out
4.1.3which should be a much more stable product. Please don’t hesitate to followup here if anything seems out of place after upgrading.-Dan
Forum: Plugins
In reply to: [Document Gallery] Call to a member function isSuccess() on a non-objectHi Steve,
We’ve just pushed out
4.1.3, which should be a much more stable product. If you run into any issues, please don’t hesitate to followup here.-Dan
Forum: Plugins
In reply to: [Document Gallery] Cannot activate or deleteHi DrKassoff,
We’ve now put out version
4.1.3which should be a much more stable product. That said, if anything seems out of place please don’t hesitate to followup here and I can take a look. Thanks for your patience while we got this issue resolved.-Dan
Forum: Plugins
In reply to: [Document Gallery] Call to a member function isSuccess() on a non-objectGlad to hear it! That being broken is the one thing that would have been out of my control and a real pain to diagnose.
And yes, definitely able to reproduce the isSuccess issue on my end. That’s what I get for trying to get the release out before I went to bed at 2am π
-Dan
Forum: Plugins
In reply to: [Document Gallery] Fatal error: Class 'DG_AudioVideoThumber' not foundVery glad to hear it! Sorry again for the inconvenience. We should have an actual working 4.1.x out some time later today.
-Dan