Dan Rossiter
Forum Replies Created
-
Forum: Plugins
In reply to: [Document Gallery] Manual Thumbnails not workingYou have the
ps(PostScript) delegate, so you should be able to do PDFs, but even if that were not working, that shouldn’t have any baring on manual thumbnails. DG will use IMagick for as many or as few filetypes as it supports (IMagick reports what is supports and DG will use it for those types).There is an important distinction, however, between ImageMagick and IMagick. They are not the same and one is not necessarily going to support the same things as the other. Can you show me what comes out of
phpinfo?Also, did you run the resize test mentioned above. That will give a better idea of how broken your system is. If that fails, then DG *should* fail to process your manual thumbnail since DG can’t resize it to proper dimensions. If, however, the resize test above passes then DG is failing when it shouldn’t.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Permission error accessing documentsHi Rob,
The below is a quote from the Memphis Document Library page:
When you uninstall the documents library make sure you export all your important files. All data will be removed on completion of uninstall, this includes files, directories, posts, and media.
I believe you will need to re upload the files in order to get them to function with Document Gallery as it sounds like the files will have been removed. Also, the directory containing the files is likely not intended for direct access.
Re uploading shouldn’t be too painful using something like Add From Server.
-Dan
Hi Raphael,
Interesting request. Are you thinking a plain text field for people to modify all arguments or just a few specific options for how the command line is generated (such as whether to use
dPDFFitPageordUseCropBox? I could see arguments for either, but the former option is probably too daunting for about 99.999% of DG users.-Dan
Forum: Plugins
In reply to: [Document Gallery] SPACE BETWEEN ROWSHi dayson88,
To increase the space under each row you can use some custom CSS like this (you can change the 3 to whatever you like). This can be entered at
Settings -> Document Gallery -> Custom CSS:
.document-gallery .document-icon-row { margin-bottom: 3em }Regarding the row width, I took a look at your page and it appears to be filling the whole width of the post body. Can you show me (maybe with a screenshot) where you are expecting the row to extend to?
-Dan
Forum: Plugins
In reply to: [Document Gallery] Description below titleGlad you got it sorted! 🙂
-Dan
Forum: Plugins
In reply to: [Document Gallery] PDF READER ONLINE NOT TO BE DOWNLOADEDHi dayson88,
The closest that Document Gallery supports is setting
attachment_pgto true.Unfortunately it is outside of the scope of DG to support embedding files in the browser. This is quite a complex feature and really belongs in its own plugin. I started work on such a plugin a while ago, but that plugin has not been worked on in some time and is likely incompatible with current versions of WordPress. The ideal implementation of a viewer for attachments would embed the viewer in the attachment page, making it work with Document Gallery out of the box. If you can find such a plugin then you will have a solution.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Why does dg code give error code unfitSCalertMy pleasure, David! 🙂
-Dan
Forum: Plugins
In reply to: [Document Gallery] Why does dg code give error code unfitSCalertTo clarify, you’re wanting to use the visual editor to modify your gallery and the error you are getting is that you can’t use the editor for the gallery?
There are some settings supported by the
[dg]shortcode that are not supported by the editor. I would assume that if you are getting this error you manually entered the shortcode at some point?If you switch to plain text mode and copy/paste the
[dg ...]shortcode from there I’ll have a better idea what exactly is going on, but this is unlikely to be related to being multi-site.-Dan
Forum: Plugins
In reply to: [Document Gallery] Manual Thumbnails not workingHey there, just checking in on this. Any luck getting things working?
-Dan
Forum: Plugins
In reply to: [Document Gallery] Can I display the caption from the media library?Hi Ron,
Since this thread was last active, the approach I’m recommending has changed slightly. There is a WordPress plugin (Code Snippets) that allows you to put bits of PHP code in without having to mess with any of the normal complications that might be involved.
With Code Snippets installed, you would want to add a snippet that looks something like this:
function dg_icon_template($icon, $use_descriptions, $id) { if ( $use_descriptions ) { $attachment = get_post( $id ); $icon = str_replace( '%description%', $attachment->post_excerpt, $icon ); } return $icon; } add_filter( 'dg_icon_template', 'dg_icon_template', 10, 3 );-Dan
Forum: Plugins
In reply to: [Document Gallery] Displaying only names and dates in a table formatMax,
Using the code snippets plugin negates the need for a child theme and use of functions.php. If you prefer that route, just don’t install code snippets and the code from above can be dropped into functions.php instead.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Displaying only names and dates in a table formatHi zman8,
I’m so sorry. I definitely typed a response to you days ago to tell you it was going to take a bit longer since it’s actually a more involved solution than I initially thought, but apparently I didn’t submit what I typed…
Anyway, I have a solution for you now. As I mentioned above, the solution is a bit more complicated than I initially thought. You’re actually going to need to use a bit of PHP rather than CSS to get the result you’re looking for.
First, you’ll want to install Code Snippets which is a plugin that allows you to easily add bits of PHP to your WordPress site. Once that’s installed, you’ll add a snippet with the following code:
function dg_gallery_template($gallery, $use_descriptions) { if ( ! $use_descriptions ) { $gallery = '<table id="%id%" class="%class%" %data%>%rows%</table>'; } return $gallery; } add_filter( 'dg_gallery_template', 'dg_gallery_template', 10, 2 ); function dg_row_template($row, $use_descriptions) { if ( ! $use_descriptions ) { $row = '<tr class="%class%">%icons%</tr>'; } return $row; } add_filter( 'dg_row_template', 'dg_row_template', 10, 2 ); function dg_icon_template($icon, $use_descriptions, $id) { if ( ! $use_descriptions ) { $icon = '<td>%date%</td><td><a href="%link%" target="%target%"><span class="title">%title%</title></td>'; } return $icon; } add_filter( 'dg_icon_template', 'dg_icon_template', 10, 3 );Once this is done, your galleries should all be in tabular format. Be sure when you create your galleries you only have 1 column in order to match the output you’re looking for and ensure that descriptions are not enabled.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Manual Thumbnails not workingHappy to find another nerd here! 🙂 I’m actually doing primarily Windows work these days myself — small world! Lots of C#.
Anyway, regarding your problem, I believe based on your symptoms that you may be running into an issue with your PHP image processing lib. For WordPress, this can be either GD or (preferably) IMagick. Based on your logs, IMagick is installed, but I’m thinking it’s configured incorrectly. To verify this, can you determine whether if you upload an image to a test page, then try to include a size smaller than the original size into your page that you don’t get a resized image? I’m not sure what exactly will happen without a working image processing lib… it may crash at upload time or you may just not be given options to include intermediary sizes when you try to add it to the page. Assuming this fails, you’ll want to get IMagick working and that should make DG happy. There are some annoying issues w/ IIS + PHP + IMagick… They’re the first google results and a few years ago a DG user ran into those, so might try the fixes listed on those posts, though not sure your symptoms quite match up.
Forum: Plugins
In reply to: [Document Gallery] Trouble with Visual EditorHey there,
I’m sorry you’re having issues with DG and the visual editor!
Can you first tell me, what version of DG and WP do you have installed? What browser are you using?
Thanks,
DanForum: Plugins
In reply to: [Document Gallery] Hide Document URL / PathHi whitejackdaw,
I apologize for not replying to your question sooner! I could have sworn I typed a response to this… Maybe I just didn’t click submit after typing…
Anyway, unfortunately there is nothing that DG can do to prevent unauthenticated access to your attachments. There are some plugins I’ve seen in the past that supported private attachments, but none of the ones I remember seem to have been updated in years.
-Dan