k3davis
Forum Replies Created
-
Forum: Plugins
In reply to: [Google Doc Embedder] Plugin is not getting activatedHi Asmeet,
Sorry for the trouble. There is a syntax error on the file and line noted in your error message that is fixed in the latest dev build. It only affects those installs where it fails to retrieve an API key. This fix will be included in the next release but if you want to patch it in the meantime it’s quite straightforward with a text editor/FTP or using the plugin editor in WordPress:
Open the file in question (google-document-embedder\libs\lib-setup.php) and go to line 323 and change this line:
$error = $result->get_error_message();to
$error = $response->get_error_message();If you’d prefer I email you a patched version of the plugin directly, you can contact me via the email address in the GPL statement near the top of gviewer.php.
Forum: Plugins
In reply to: [Google Doc Embedder] Front-end uploadsThanks, I understand what you mean better now. Something like this could certainly be done, but it isn’t the way the plugin is designed to work at this point. Profiles are just collections of viewer settings, intended to make every aspect of the viewer configurable while keeping the shortcodes actually short. There’s no sense of user management in the plugin.
There may be another plugin that does uploads in a similar manner (you mentioned Nextgen, as an example). The code to both plugins is open source and freely available, so with a little work you could roll your own. I probably wouldn’t do this with GDE as that’s not really its purpose, unless there was a real demand for it.
Sorry to disappoint, but thanks for helping me understand what you’re looking for.
Kevin
There is no plugin setting specific to RTL. You have to set that style in an external CSS file and load that CSS file into the “Custom CSS File” setting in your profile.
Forum: Plugins
In reply to: [Google Doc Embedder] Front-end uploadsI’m not 100% sure I understand what you’re asking for, but it sounds like maybe you want to be able to insert a shortcode from the media library and select a specific profile? This is supported in WP 3.4.x but not in 3.5, which will only insert the basic shortcode from the media library (because of the extensive and so far rather undocumented changes going on in media management in 3.5).
The shortcode does let you choose a profile, but it won’t be inserted automatically based on the type of file or where/how you upload it. You have to upload it and either insert the shortcode from the media library or use the visual editor button to select it.
Please use the support tab in GDE Settings or find my email address in the GPL statement at the top of the gviewer.php file in the plugin. Thanks.
Hi yair,
You can do #2 by specifying your own CSS file. Find the div where the toolbar is located and set it in CSS to float to the right. If you need specific help with this, please send me a message via email or the support form.
#1 is still not possible at this time. I am “cheating” by loading the full Google Drive version of the viewer in the full screen view, and stripping out other parts of the page. If I do this on the embedded view, the document sizing is badly messed up. The print feature is experimental until I can come up with a better solution.
Thanks,
Kevin
Forum: Plugins
In reply to: [Google Doc Embedder] Plugin not working suddenlyKelly, I answered your email prior to your post here. Hopefully you got it. If not, post back and I’ll resend. The issue Tim was having is local to him, but your issue is not the same. I assume your two instances are on different servers? The problem you’re running into is probably server related because of the error you’re getting from the WP HTTP API. You can disable error checking on the Advanced tab of GDE Settings to get around this until a better solution is available.
Forum: Plugins
In reply to: [Google Doc Embedder] Plugin not working suddenlyHi there,
I’ve tried that page on Firefox, Chrome, and IE9 (I’m on a PC…) and it works normally in all of them. Thanks for emptying cache; that’s the right place to start. Be sure that you’re also clearing cache for sessions and apps. These settings vary depending on the browser and I don’t have a comprehensive list. Clearing cache is unfortunately not as straightforward as it once was, with all the options now available.
You may also want to make sure you’ve completely logged in or completely logged out of any Google account in the browser. A Google account isn’t necessary, but a “stale” login may interfere.
Hope that helps.
Kevin
Don’t worry, I’ll roll this fix into the next release, but if you do get a chance to confirm it first that would be helpful (apply the above patch to functions.php and turn error checking back on).
Forum: Plugins
In reply to: [Google Doc Embedder] Bad qualityThanks for your kind comments. π
The document conversion is handled by Google Docs Viewer (hence the plugin’s name). If you’re not satisfied with the quality, your only recourse at present is to use something else.
Forum: Plugins
In reply to: [Google Doc Embedder] GDE bandwidth limit reachedHi Dave,
Not sure about this one, it seems from a Google search that it’s a problem with Google Docs falsely triggering a bandwidth error. There are bandwidth limitations with Google accounts but under normal circumstances these wouldn’t be reached, nor is a Google account required by the plugin.
I know it’s not happening anymore but my only suggestion in this case would be if the problem recurs, ensure that the affected user is logged out of their Google account in the browser they’re using. Hopefully that would make them sufficiently “anonymous” not to trigger the warning. Otherwise, bandwidth limits for Google Apps are reset daily, so they could wait 24 hours.
Hope this helps somewhat.
Kevin
Forum: Plugins
In reply to: [Google Doc Embedder] PDF's aren't displaying in Chrome.Great, glad it worked out.
Forum: Plugins
In reply to: [Google Doc Embedder] PDF's aren't displaying in Chrome.Please clear your browser cache. This is almost certainly an issue on your machine that isn’t affecting others browsing your pages in Chrome. See docs for details:
Here’s a suggestion, dcraggs, if you are OK using the plugin editor in WordPress (or manually editing one of the plugin files via FTP, etc.):
Open the
functions.phpfile in the root directory of the plugin, usually at wp-content/plugins/google-document-embedder.Find this line of code in the
gde_validate_filefunction (on line 128 of the current release version):if ( isset( $result['code'] ) && $result['code'] !== 200 ) {and change it to read
if ( isset( $result['code'] ) && $result['code'] != 200 ) {Notice only the comparison operator changed. It seems some servers return an integer and some a string for the HTTP status code, so my check there may be too precise.
If you don’t want to do this, you can always just do what the message suggests… turn off error checking (“check for errors before loading viewer” on the Advanced tab).
Thanks.
Forum: Plugins
In reply to: [Google Doc Embedder] GDE disable URL validation?Indeed, the location of the plugin isn’t an issue, but the location of the files is. Google must be able to fetch the contents for conversion. GDE 2.5.x does have a “secure documents” feature that helps prevent most downloading, but it’s not 100% secure in all cases as the files do need to reside in a public directory (even if that location isn’t published). More details about that feature are here, if interested (and you haven’t read that already).