Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: webgift on August 13, 2011, 12:57:14

Title: Google Docs Viewer
Post by: webgift on August 13, 2011, 12:57:14
Google Docs Viewer Bot
(http://www.webgift.gr/images/userfiles/62/bot_greader_logo.png)
Google Doc Viewer bot gives you the ability to quickly view documents online without leaving your browser using Google Docs Viewer technology. You can post a document file like pdf, doc, xls etc ( see the supported file types below) into a content item or an autonomous page or even at product's description area of your eshop website using Elxis CMS 2009.x.

Overview document features
There are 2 main modes that bot can display the registered documents. These are :
1. Button Mode. An image button will be displayed at the point of the article that we called the bot. You can read the document by clicking on that image. With the use of Highslide technology ,Document will be appeared in a popup window into your browser!
2. Review it within the article's area as is. Document will be displayed uncharged using iframe choice.
Switching mode can be determined by the parameters of Bot.

Upload document features
We can upload - set the document with 2 different ways each time. There are :
1. Using an FTP client program. We can upload the document via FTP server to our 'elxis' website at /images/userfiles/ folder. The bot can be called by writing the expression :{gviewer}filename.filetype{/gviewer}* at Elxis administration area (into editor).
2. Writing the live url of document. For example : {gviewer}http://www.mywebsite.gr/google.doc{/gviewer}*

* In order to avoid writing each time the expression of Google Doc Viewer Bot : {gviewer}.....{/gviewer} we have published one more bot that generates an Image button at Elxis Administrator Area (below of WYSIWYG text editor) [Download that bot below]

Supported file types
The Google Docs Viewer bot supports over 15 different file types, listed below:
Microsoft Word (.DOC and .DOCX) , Microsoft Excel (.XLS and .XLSX) , Microsoft PowerPoint (.PPT and .PPTX) , Adobe Portable Document Format (.PDF) , Apple Pages (.PAGES) , Adobe Illustrator (.AI) , Adobe Photoshop (.PSD) , Tagged Image File Format (.TIFF) , Autodesk AutoCad (.DXF) , Scalable Vector Graphics (.SVG) , PostScript (.EPS, .PS) , TrueType (.TTF) , XML Paper Specification (.XPS) and  Archive file types (.ZIP and .RAR)

Technical Specifications:
Developed in object-oriented programming language PHP and technologies such as: XML, CSS, JavaScript (AJAX). Supported multilingual system in the Public area of Elxis CMS which contains English and Greek.
- Administrator Language Support : English
- Supported browsers: Internet Explorer 7.0 - 9.0, Firefox, Safari, Google Chrome and Opera
- Elxis CMS Platform : 2009.X
- SSL Supported.
- HighSlide Technology for pop-up window.
- License : Creative Commons 3.0 S.A. (http://creativecommons.org/licenses/by-sa/3.0/legalcode)

Read analytically ...+( image gallery included! )  (http://www.webgift.dev/eblog/press-news/google-doc-reader-bot-development.html)
Download Bot : Google Docs Viewer Bot  (http://www.elxis-downloads.com/downloads/miscellaneous/352.html)
Download Button : Google Docs Viewer Button (http://www.elxis-downloads.com/downloads/miscellaneous/353.html)
Title: Re: Bot Development - Google Docs Viewer
Post by: CREATIVE Options on August 13, 2011, 14:10:33
Nice Job Stavro !
Title: Re: Bot Development - Google Docs Viewer
Post by: webgift on August 13, 2011, 14:21:51
Thank you Nick!
Title: Re: Bot Development - Google Docs Viewer
Post by: azmi2 on November 07, 2012, 07:36:44
i install Google Docs Viewer on localhost as well as my website.once i click button on content page,popup windows open without documents.no documents shown either doc or pdf.

where i am doing wrong please guide me


thanks
Title: Re: Bot Development - Google Docs Viewer
Post by: webgift on November 07, 2012, 10:36:46
Can you please send me what you type inside the tag {gviewer}here{/gviewer}?
It would be a great idea too if you could send me your website to test it in action.
Title: Re: Bot Development - Google Docs Viewer
Post by: azmi2 on November 10, 2012, 07:08:22
i am testing it localhost
i typed: {gviewer}01.pdf{/gviewer}
where 01 is the pdf file name.i put it in images/userfiles

waiting for your quick guidance



thanks
Title: Re: Bot Development - Google Docs Viewer
Post by: webgift on November 10, 2012, 12:12:54
azmi2, Google Docs viewer can't access your local file. You should upload it on the internet.
Title: Re: Bot Development - Google Docs Viewer
Post by: azmi2 on November 12, 2012, 07:36:33
is it possible that Google Docs Viewer access file through url,i mean

link (http://link)

after clicking link text ,page open

is it possible in Google Docs Viewer?

thanks
Title: Re: Bot Development - Google Docs Viewer
Post by: webgift on November 12, 2012, 10:11:13
The link is broken.
Title: Re: Bot Development - Google Docs Viewer
Post by: azmi2 on November 12, 2012, 12:12:21
i have 50 pdf forms.i want to put all in one page with their name,like

1:employee salary form
2:vacation form
-
-
-
-
--
-
-
-
49:feedback form
50:other form

i want that if a user want to see vacation form,once he click vacation form text,then pdf form should be open
there is any idea for this.
what is command for this.how we can display text vacation form.

thanks
Title: Re: Bot Development - Google Docs Viewer
Post by: webgift on November 12, 2012, 12:21:40
You can either use Google Docs Viewer bot (http://www.webgiftgr.com/eblog/press-news/google-doc-reader-bot-development.html) (button mode) or you can simply create a link directing to each PDF file separately.
Title: Re: Bot Development - Google Docs Viewer
Post by: azmi2 on November 13, 2012, 07:13:29
what is command ,how we can write the text.i am using frame not button.please give me some more details
Title: Re: Bot Development - Google Docs Viewer
Post by: webgift on November 13, 2012, 11:47:02
It's not a good idea to open 50 different PDF files in only one page using iFrame. Please visit the bot's parameter page.
[Administrator area] Bots -> Site Bots -> [Click] Google Docs Viewer bot -> [Change the] mode
Title: Re: Bot Development - Google Docs Viewer
Post by: azmi2 on November 13, 2012, 19:53:31
i do not want to open 50 pdf on a page,may be i am not able to tell what i want to say.

i want to know how we can give link to any file in Google doc viewer.

i have a text such that

"procedure for filling form"
"procedure for salary form"
"procedure for employee  form"

all above 3 forms are either  pdf or doc file.i want to put all 3 text line  on a autonomous page.when user click one by one ,it must be open in doc viewer.

what is command for this,how we can do this.


thanks
Title: Re: Bot Development - Google Docs Viewer
Post by: webgift on November 14, 2012, 10:21:36
We can define the files at Google Docs Viewer Bot as described in this article: here (http://www.webgiftgr.com/eblog/press-news/google-doc-reader-bot-development.html).
You can NOT manually change the button's text. However you can do something like the following example:

Example: Click on the salary form below:
{gviewer}salary.pdf{/gviewer} or
{gviewer}http://www.example.com/salary.pdf{/gviewer}
Title: Google Docs Viewer v1.2
Post by: webgift on June 09, 2016, 11:07:14
Google Docs viewer content plugin for Elxis CMS 4.x updated to v1.2 today. For more detailed
information or direct download, please follow the link [1] as quoted below.

Thank you for your time!
[1]: https://www.elxis.net/edc/content/14.html (https://www.elxis.net/edc/content/14.html)
Title: Re: Google Docs Viewer
Post by: perseas on June 11, 2016, 16:19:32
@webgift
Your promise to upgrade Google Docs viewer content plugin , to become responsive with 100 percent in width, took place.
Very good work

Many Thanks
Title: Re: Google Docs Viewer
Post by: webgift on June 13, 2016, 10:55:24
You're very welcome @perseas!