开发者 |
levertechadmin
lionsher nathansingh chrisakelley dimensionmedia |
---|---|
更新时间 | 2023年3月30日 23:25 |
PHP版本: | 5.0 及以上 |
WordPress版本: | 6.2.0 |
版权: | GPLv3 |
版权网址: | 版权信息 |
googledriveembedder
directory and contents to the /wp-content/plugins/
directory,
or upload the ZIP file directly in the Plugins section of your Wordpress admingoogleappslogin
directory and contents to the /wp-content/plugins/
directory,
or upload the ZIP file directly in the Plugins section of your Wordpress adminFull support is available if you purchase the premium or enterprise license from the author via: https://wp-glogin.com/drive/ The paid plugins also support more file types (such as embedded Videos and Drive Folders) and allows you to browse your Google Calendars to embed in your posts/pages. Please feel free to email support@wp-glogin.com with any questions (specifying Drive in the subject), as we may be able to help, but you may be required to purchase a support license if the problem is specific to your installation or requirements. We may occasionally be able to respond to support queries posted on the 'Support' forum here on the wordpress.org plugin page, but we recommend sending us an email instead if possible.
You will need to purchase either the premium or enterprise version of Embedder For Google Drive from our website. The Premium version will allow you to embed folders in a basic 'iframe' format. For advanced 'interactive' folders, where users can preview files and drill-down into subfolders all without leaving your site, please take a look at the Enterprise version. The Enterprise version of Embedder For Google Drive integrates Drive much more closely with your WordPress intranet, essentially allowing each page or post on your intranet to host its own file attachments, completely backed by Drive. This means you no longer need to manage Drive and your Intranet as two completely separate document sharing systems! Find out more.
Download isn't normally enabled for native Google file types. Embed should be enabled for many non-native file types (e.g. PDF, Word DOC). If not, you may need to increase sharing settings within Google Drive to 'anyone with the link may view', or higher. If that still doesn't work, your file type may not be supported. Please get in touch (send your file or share with us if possible), and we will see if it can be supported - email contact@wp-glogin.com. To embed Google Drive Folders or image file types, you will require the premium or enterprise version of the plugin. You will be notified if that is the case for your selected file.
Embedder For Google Drive will show different behavior depending on your document's type and its sharing settings within Google Drive. Generally, we recommend setting files' Sharing settings to at least 'anyone with the link can view', in order for them to be visible to all visitors. This setting is essential for third-party file types such as Word and PDF (otherwise all visitors will see unintelligible content). You can use lower sharing settings for Google documents (e.g. share only within the organization, or with specific users), but in that case you will need your users to be logged in to a Google account that is authorized to view the content (otherwise, they will be told they do not have permission). When using 'anyone with the link can view', you must understand that any visitors to your WordPress site will be able to obtain that document's link and potentially open the document outside of your WordPress site.
Specifically, you see something starting: <!DOCTYPE html> <html... <head... Most likely, you need to increase sharing settings for the file. In your Google Drive, find the file and click 'Share'. Click 'Change', and then on 'Anyone with the link can view'. Click 'Done'. You also need to make sure you have not chosen to 'Prevent viewers from downloading'. To check this, find the file in your Google Drive list, and see if 'Allow viewers to download' is available from the right-click menu. If so, click it to turn it off! If you reload your published page or post in WordPress, it should now display properly, or at least give a message saying that the document type is unsupported. Please get in touch if not!
Google Apps' user and permissions systems are complex, and there are many ways you could forbid your users from using the Drive API. You could have disabled API access completely, so take a look in your GA admin panel and look for anything obvious. One reason a lot have people have seen 'forbidden' in the past is because they have the following setting unchecked: go to Google Apps -> Drive, and then General Settings -> Allow users to install Google Drive apps. After changing settings, you should logout of WordPress and Google, then refresh and try all over again.
Google Doc Embedder only allows you to embed other files such as PDF, Word etc in your site. It has nothing much to do with Google, other than the fact it uses an online Google service to render documents. By contrast, our plugin (Embedder For Google Drive) allows you to browse your Google Drive files and easily embed those directly into your site - both native Google formats and other file types PDF, Word, ZIP etc.
This Google Drive plugin extends the Google Apps Login plugin, making use of that plugin's settings rather than insisting that you register a new whole new application with Google for each plugin separately. For those of your users who choose to Login via Google to connect to your WordPress site, they only need to authenticate once to be able to browse their Google Drive through the Google Drive plugin, rather than having to click a second time to allow Drive access. Because of this, the Google Drive plugin itself requires no configuration at all - it is delegated to Google Apps Login. For Multisite Network, this means that admins can set up Google Apps Login network-wide, but safely defer the choice of activating any further plugins (which extend Google Apps Login) to individual site administrators.
Are you sure you have upgraded to the latest version - must be 2.0 or higher? Have you also configured the plugin? Under Settings -> Google Apps Login, you will need to follow the instructions to obtain a Client ID and Client Secret from Google Cloud Console, and enter them into that settings page.
You can purchase a license here: http://wp-glogin.com/drive/