Dan Rossiter
Forum Replies Created
-
Forum: Plugins
In reply to: [Document Gallery] Pagination jumps page to topAh! I see what’s going on. There is indeed a bug in DG. It looks like when we pull a new page in the pagination it’s always returned as if it were the first gallery on a page. So if you have only one gallery, it will work correctly. But with more than one where pagination is used on the second or later gallery it will break.
Now that I see what’s happening, this should be a pretty quick fix. I’ll try to find time to get a fix out this weekend.
Feel free to remove the debug line from your wp-config now and thanks for your help narrowing this down!
-Dan
Forum: Plugins
In reply to: [Document Gallery] Pagination jumps page to topInteresting. Looking at the JavaScript console, the logic to find the top of the gallery is failing.
In your wp-config.php, could you please add the following:
define( 'SCRIPT_DEBUG', true );? This will allow me to see what exactly is breaking.-Dan
Forum: Plugins
In reply to: [Document Gallery] exec() is not accessibleNo problem! 🙂
Forum: Plugins
In reply to: [Document Gallery] Just Display Thumbnail – No TextHi rdsherwood,
If you are feeling adventurous, this could be achieved with some bits of PHP code hooking into the filters provided by DG, but currently this isn’t supported out of the box.
-Dan
Forum: Plugins
In reply to: [Document Gallery] pass parameters from menuHi bacasdev,
I’m not sure I quite understand what you want to do, however I believe your best bet with what you’re trying to do is to tie into some of the logic in
gallery.js. If you look atretrieveGallery, that’s where the meat of the pagination logic is implemented, which involves retrieving galleries.You could pass the shortcode parameters that would have been in your shortcode dynamically after getting the right value from your dropdown.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Default IconsHi ccrawford13,
Yes, this has been on the TODO list for a while now. I just haven’t gotten around to it :/
The original issue is here: https://github.com/thenadz/document-gallery/issues/15
-Dan
- This reply was modified 8 years, 10 months ago by Dan Rossiter.
Forum: Plugins
In reply to: [Document Gallery] How to set up Document GalleryHi worsman,
Please watch the video on the plugin home page. It should answer all of your questions.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Pagination jumps page to topHmmm… The intent of that feature was for it to not move the page up if the whole gallery was already visible on the page. In other words, if I can see the top of the gallery when I paginate it *shouldn’t* move your scroll location. It sounds like this is not happening for either of you?
What browsers are y’all using? I’ll investigate.
-Dan
Forum: Plugins
In reply to: [Document Gallery] Live demoHi picturgency,
A live demo is a good idea. I’ll add it to the list 🙂
It’s opening a link either to the attachment page or to the file itself depending on which option you chose. If you have DG configured to open the file itself, it’s up to the user’s browser to decide what that does. For example, most browsers will open PDFs directly, but a Word document in most browsers would trigger a download.
-Dan
Hi Jake,
Thanks for providing the log info! I went to take a look but it looks like there is no gallery on the linked page.
-Dan
Forum: Plugins
In reply to: [Document Gallery] HTML ListsHi Martin,
If you aren’t scared off by a bit of code then it is possible. If you check here there is an example converting DG output into a table. The approach for getting a list would be very similar.
-Dan
Forum: Plugins
In reply to: [Document Gallery] white margin on thumbnailsHi hakonzen,
Huh… Interesting. I’m thinking your symptoms may be related to this report from a while back.
I’ve not found time to work on the enhancement request from there, but it’s on my TODO list.
-Dan
Forum: Plugins
In reply to: [Document Gallery] exec() is not accessibleHey Bjarne,
If they have the IMagick PHP plugin enabled on the host then that can work in place of Ghostscript (the thumbnail generator that required
execsupport). If they do not, you probably need a new host.-Dan
Forum: Plugins
In reply to: [Document Gallery] Zip filesdebraholder,
This is almost certainly unrelated with DG. Can you browse to the zip file location (just from the media manager)? It sounds like permissions for your upload directory aren’t configured correctly on your server.
For reference, DG just uses the URL that WordPress already has record of to link to the attachments in your gallery. If those URLs aren’t functional, there’s not much DG can do about that.
-Dan
Forum: Plugins
In reply to: [Document Gallery] How to get thumbnails to use HTTPS URLmjpg,
DG doesn’t store full URLs for icons, only a relative path which is combined with the configured site URL. So if the WordPress site URL is not using HTTPS then DG won’t either, even if your server is configured to support HTTPS.
Can you provide an example of where both HTTP & HTTPS URLs exist for icons? I would have said that wasn’t possible… Only thing I can think of is that there’s a plugin on your site changing the baseurl back and forth between HTTP and HTTPS, but that seems unlikely.
Looking forward to getting more details on your problem!
-Dan