WordPress.org

Ready to get started?Download WordPress

Forums

Google Doc Embedder
Using with localhost (3 posts)

  1. guerillamarketing
    Member
    Posted 3 years ago #

    Will I be able to test this plug-in locally using the following code:
    [gview file=”http://www.localhost/site/wordpress/wp-content/uploads/2011/02/filename.ai”]

    or do I have to upload it to my server first for it to work?
    Thanks for the help.

  2. oem
    Member
    Posted 3 years ago #

    If your server is on the net should work as stated by the plugin developper.

    but if your localhost is on an intranet (not public not on the web) it won't work…

    I'm desesperatly looking for that to use on an INTRANET too.

    any plugin that uses google API needs the file to be public (at least on the web)
    this is too much big brother for me.

    Google doesn't allow this.

    we're stuck.
    http://code.google.com/apis/chart/interactive/faq.html#localdownload

    Can I use charts offline?
    No; your computer must have live access to http://www.google.com/jsapi in order to use charts. This is because the visualization libraries that your page requires are loaded dynamically before you use them. The code for loading the appropriate library is part of the included jsapi script, and is called when you invoke the google.load() method. Our terms of service do not allow you to download the google.load or google.visualization code to use offline.
    Can I download and host the chart code locally, or on an intranet?
    Sorry; our terms of service do not allow you to download and save or host the google.load or google.visualization code.

  3. k3davis
    Member
    Plugin Author

    Posted 3 years ago #

    As oem stated, Google needs access to the docs in order to load them into the viewer. You can have the pages on an intranet, but the docs themselves must be publicly accessible. There are some mitigating options built into the plugin - such as masking URLs for PDF files - and you can put the files in a public directory on your web site that disallows directory indexing and search engine access using an .htaccess file - but these aren't impossible to bypass. For documents that have a true security or personal concern, Google's viewer (and therefore my plugin, which embeds it) is not a good solution for you.

    Kevin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic