Support » Plugin: TablePress » Possible to pull images from external source

  • Resolved meruth101

    (@meruth101)


    Hi Tobias,
    Using TablePress and have a table with a column “image” and have been using a small piece of code to pull images from within our Media Folder in WordPress. What I’d like to do is pull the image from outside WordPress Media Folder, the images reside in our Dropbox account. I thought all I needed to do was to replace the source of where the image comes from with the full URL of where to get the image, but it is not displaying. Is it possible to do this? Is there a different piece of code I should be using for this? Thank You in advance for any help.

    Best Regards,
    Ruth

    • This topic was modified 1 week, 6 days ago by meruth101.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    In principle, this is no problem. TablePress does not restrict how you embed the images. It’s usually no problem to use an external image URL.

    Now, in this case, with Dropbox, the questions are

    • whether you are really using the correct URL (it has to be one that directly returns the image, and not e.g. an image inside an HTML page)
    • whether the image has been publicly shared in Dropbox
    • whether Dropbox actually allows such a direct embed of the images.

    To find out more, can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter meruth101

    (@meruth101)

    Hi Tobias.
    I did a little more research and came across this tidbit. Instead of ?dl=0 at the end of the share link code they said to use ?raw=1 so I went into the table and switched it to the ?raw=1 and previewed and the image showed up! I don’t have the table live yet, but I am going to try this ?raw=1 suggestion for the rest of the images then make the table live and if I came across any other issue abit,t it I will reach back out.

    I just wanted to share what worked in my case. If there are other suggestions, please let us know.

    Best Regards,
    Ruth

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Ruth,

    perfect, nice find! Yes, this sounds like something might be needed here for Dropbox to properly send the image when embedded in an image tag (instead of offering it for download only).

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.