Forums

[Plugin: NextGEN Gallery] NextGen gallery and amazon cloudspace/S3 (11 posts)

  1. rubendk
    Member
    Posted 2 years ago #

    I have recently joined amazon's cloudspace/S3 (Content Delivery Netwok)
    Is there a way to change a setting in NextGen so the new pictures upload to amazon instead of locally but that it still offers the same functionality?

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. BlakkJakk
    Member
    Posted 2 years ago #

    <bump>I'd like to know the answer to that as well.

  3. Frederick Townes
    Member
    Posted 2 years ago #

    For W3 Total Cache (http://wordpress.org/extend/plugins/w3-total-cache/) you could simply add /gallery/* (the default location anyway), to the Custom file list field of the CDN tab and then export your images to CDN. The next release will also auto-upload changed and newly found images.

  4. lonewolfdj
    Member
    Posted 2 years ago #

    I have a similar issue to the original poster.... When I upload new files after the initial CDN upload, it wants to upload all 15,000 or so files. It isn't uploading only added files. Is this how the tool should function or would that sound like something out of order?

  5. Alex Rabe
    Member
    Posted 2 years ago #

    Currently there is no support for CDN out of the box

  6. Frederick Townes
    Member
    Posted 2 years ago #

    You have to push all of your files to origin push content delivery networks in order to take advantage of them. That's the nature of the beast. Out of the box, the plugin will upload new files, but all old posts will not benefit from the CDN.

  7. lonewolfdj
    Member
    Posted 1 year ago #

    I think I figured it out - it is uploading images that were published via the page or post but not through plugins (maybe some but not wp-ecommerce)....

  8. Frederick Townes
    Member
    Posted 1 year ago #

    You always have to add paths for your plugins to custom file paths as I said before. W3TC does not "scan" your site and upload things that are not native to WordPress; such things must be specified.

  9. lonewolfdj
    Member
    Posted 1 year ago #

    I'm aware of that and did add those directories. I'm just saying that when I add files through that plugin, it doesn't push them to the CDN. It does with normal WP files.

  10. Frederick Townes
    Member
    Posted 1 year ago #

    I would have to look at your settings to understand what's going on there. You can submit a bug submission report from the support tab of the plugin.

  11. pointless6
    Member
    Posted 1 year ago #

    If anyone is still interested, I made a very simple tweak to make this work for me.

    <br />
    Head over to wp-content > plugins > nextgen-gallery > lib<br />

    Open up image.php in your favorite editor.

    Check around line 53 for this code:

    <br />
    $gallery = (object) $gallery;<br />

    Directly beneath it add this:

    <br />
    $cdnURL = "TYPE_YOUR_CDN_URL_HERE";<br />

    (being sure to replace TYPE_YOUR_CDN_URL_HERE with your external URL!!)
    Now scroll down to line 68 - 69. Look for this

    $this->imageURL	= siteurl() . '/' . $this->path . '/' . $this->filename;
    $this->thumbURL = siteurl() . '/' . $this->path . '/thumbs/thumbs_' . $this->filename;

    (This is off the top of my head so i may have mistyped that.)

    Then simply change both

    siteurl()

    to

    $cdnURL

    Hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Topic