Dan's Viewer for Google Drive

plugin banner

A custom Google Drive Viewer w/ Folder Transversal and File Export

Author:Dan Dulaney (profile at wordpress.org)
WordPress version required:4.0.1
WordPress version tested:5.2.20
Plugin version:1.2
Added to WordPress repository:25-10-2016
Last updated:05-06-2019
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:90
Rated by:10
Plugin URI:https://dandulaney.com
Total downloads:5 134
Active installs:200+
plugin download
Click to start download

Dan’s Viewer for Google Drive was created when I was looking for a way to share files via Google Drive on my sites, in a way that allowed downloading, viewing, exporting, and hardest to find, the ability drill down into subfolders without leaving the site. I couldn’t find anything within my price range that fit what I needed, so I decided to create my own.

Dan’s Viewer for Google Drive displays files in a way that is mobile friendly, customizable via shortcode, and easy to style. No need to import files or manage them directly in WordPress. All you need is a public Google Drive Folder (or multiple!) and a free, easy to get API key.

Features

  • Displays public drive document listings in a mobile friendly format

  • Offers both View and Download Options, where appropriate

  • Offers Export Option for Google Docs / Sheets / Presentations

  • All options are configured via shortcode

  • Allows drill down / up within folders without leaving the page

  • Ability to store and use unlimited Google Drive Folders

Shortcodes:

  • Default Display [dandrive] (defaults to 1st drive)

  • Optional Attributes Ex:[dandrive drive=1 divid=mydrive height=400 width=300 rbutton=no]

  • drive= (number of the drive you want, defaults to 1 if not entered)

  • divid= (id of the div your calendar is stored in, for custom theming. Defaults to random string to allow multiple per page)

  • height= (maximum height in pixels, defaults to auto. If this is set, a scroll bar will appear if your div overflows. Enter a number only).

  • width = (maximum width in pixels, defaults to 400. Enter a number only)

  • rbutton = (no means don’t display return to initial folder button. Omit to display (default behaviour))

For help creating an API key to use with this plugin, either check out the settings page in plugin, or the FAQ tab here.

To see other plugins like this, or tips on how these are built, check out my site.

Thanks to Mike @ WP Bullet Guides for the banner and icon.

Dependencies and Liscencing

Depends on Google Drive’s JavaScript API v4


Screenshots
FAQ
ChangeLog