Forum Replies Created

Viewing 15 replies - 691 through 705 (of 1,016 total)
  • Plugin Author Dan Rossiter

    (@danrossiter)

    It sounds like the localpost option is false. You can either go to Dashboard -> Settings -> Document Gallery and set localpost to false (this is the default so if you haven’t changed it this may already be set). Also ensure you’re not including “localpost=false” in your shortcode (eg: [dg localpost=false]).

    Please let me know if this does not resolve the issue.
    -Dan

    Plugin Author Dan Rossiter

    (@danrossiter)

    Fantastic! So glad to hear it πŸ™‚

    Plugin Author Dan Rossiter

    (@danrossiter)

    Sorry, I lied about 2 parameters. It’s actually 3. The first is the default icon template, the second is the attachment ID, and the third is the boolean value you’re looking for.

    For the other two filters, it is just the 3.

    -Dan

    Plugin Author Dan Rossiter

    (@danrossiter)

    Ok. In order to test this theory, what I’d like you to do is disable all of your plugins except for Document Gallery and switch to a default theme (Twenty Thirteen, for example). Once you’ve done that, if the bad behavior you’re seeing stops (gallery links start working), then you know it was one of the things you just disabled. If that turns out to be the case, the next step is to re-enable the plugins you just disabled one-by-one, each time checking to see if the gallery links are broken, then finally switch back to your current theme.

    If that doesn’t turn up a culprit, the next thing I would like to see is the URL being pointed to by the gallery icon (ie: where does clicking the icon take you when you click it).

    -Dan

    PS: If you’ve found this plugin useful, please take a moment to rate it. Thanks! πŸ™‚

    Plugin Author Dan Rossiter

    (@danrossiter)

    Hi Magsvejr,

    Let me see if I understand correctly: You are getting a thumbnail in your gallery, but clicking the icon takes you to a server error page (“could not find what you are looking for”). Is that correct?

    Can you show me a URL to the page where you’re seeing this? It sounds like another plugin may be playing with attachment paths, but looking at where this issue is may help me narrow down where the issue is coming from.

    Thanks!
    -Dan

    Plugin Author Dan Rossiter

    (@danrossiter)

    Hi ycdigital,

    Can you clarify what is being duplicated? I took a quick look and didn’t see any duplicates.

    Also, can you paste the exact shortcode (ie: [dg...]) you are using for each of the the 3 galleries on that page?

    -Dan

    PS: If you’ve found this plugin useful, please take a moment to rate it. Thanks! πŸ™‚

    Plugin Author Dan Rossiter

    (@danrossiter)

    Glad that tweak for the descriptions worked! I’ll have it in the next official release sometime soon πŸ™‚

    With the filtering function, you’ll want to accept two parameters. The first value will be, as you discovered, the gallery as it is generated (the value being filtered). The second parameter will receive the boolean you are looking for.

    Let me know if that works for you!
    -Dan

    Plugin Author Dan Rossiter

    (@danrossiter)

    Hi Wendy,

    Let’s see if we can figure out how to remove that “almost”! πŸ™‚

    It sounds like you “inserted” the attachments into the post in addition to just attaching them to the post. You should just have [dg ...] where you want your gallery — nothing else other than the actual text for your post.

    Does that look like it’s what’s happening?

    -Dan

    Plugin Author Dan Rossiter

    (@danrossiter)

    Hi karidemi,

    I don’t have time to test this solution this minute, but if you you want to try replacing toString() in inc/class-document.php with the following, I *think* it will give you what you want.

    -Dan

    public function __toString() {
          static $find = null;
          if (is_null($find)) {
             $find = array("%link%", "%img%", "%title_attribute%", "%title%", "%description%");
          }
    
          $thumb = $this->gallery->useFancyThumbs()
              ? DG_Thumber::getThumbnail($this->ID)
              : DG_Thumber::getDefaultThumbnail($this->ID);
    
          $repl = array($this->link, $thumb, $this->title_attribute, $this->title, $this->description);
    
          $doc_icon = apply_filters(
             'dg_icon_template',
             '   <div class="document-icon">' . PHP_EOL .
             '      <a href="%link%"><img src="%img%" title="%title_attribute%" alt="%title_attribute%" /><br>%title%</a>' . PHP_EOL .
             ($this->gallery->useDescriptions() ? "   <p>%description%</p>" . PHP_EOL : '') .
             '   </div>' . PHP_EOL,
             $this->gallery->useDescriptions(),
             $this->ID);
    
          $core = str_replace($find, $repl, $doc_icon);
    
          // users may filter icon here
          return apply_filters('dg_doc_icon', $core, $this->ID, $this->gallery->useDescriptions());
       }
    Plugin Author Dan Rossiter

    (@danrossiter)

    Rats! You’re absolutely right. I did not think about that.

    I’ll work on getting a patch out to address that issue either late today or tomorrow.

    Thanks for pointing that out!
    -Dan

    Plugin Author Dan Rossiter

    (@danrossiter)

    Thanks so much for reporting and I apologize for the inconvenience.

    We were using some functionality in PHP that is not compatible with older PHP installs.

    I’ve just pushed out version 2.2.1 which should resolve the issues. If you encounter any further issues, please don’t hesitate to report them.

    Thanks!
    -Dan

    Plugin Author Dan Rossiter

    (@danrossiter)

    Eustis,

    The uploading following clicking the “add media” button on the target page is how DG knows to include those documents in the gallery in the simplest usages. “Inserting” has absolutely no baring on what DG does and will result in default WordPress behavior, in this case plain text links in the page.

    If you wish to include an attachment in a gallery besides the page where it was uploaded, you will need to use a combination of “localpost=false” plus other attributes to retrieve the attachments you wish to include or explicitly include individual documents with the “ids” attribute. You can find documentation for both of these approaches on the installation page.

    Please let me know if you have any further questions πŸ™‚

    -Dan

    Plugin Author Dan Rossiter

    (@danrossiter)

    Hi gregvpruitt,

    Both of the options you described are now available πŸ™‚

    If you go to Dashboard -> Settings -> Document Gallery, the changing sizes option is in the General tab and the Thumbnail Management has the thumbnail deletion functionality (after deleting, the thumbnail will be regenerated next time a gallery including the attachment is deleted.

    -Dan

    Plugin Author Dan Rossiter

    (@danrossiter)

    Hi Mark,

    We’ve just released version 2.2 which includes some new features designed to prevent saving invalid options like what you were experiencing.

    After installing the new version, if you navigate to Dashboard -> Settings -> Document Gallery -> Advanced tab and check the validate options checkbox your system will no longer be able to save an invalid option structure. Please let me know if this helps at all with the issues you’ve been experiencing.

    -Dan

    Plugin Author Dan Rossiter

    (@danrossiter)

    Just an update regarding the description of logging above:

    Logging no longer requires an external plugin or messing with WP_DEBUG. Just navigate to Dashboard -> Settings -> Document Gallery -> Advanced tab and check the enable logging box.

    -Dan

Viewing 15 replies - 691 through 705 (of 1,016 total)