2011-08-15, 10:15 AM
A simple MyCode which able you to embed Google Docs into your posts easily.
http://mods.mybb.com/view/google-documents
Manual Installation Wrote:Regex:
[gdoc](.*?)\[\/gdoc\]
Replacement:
<div class="codeblock"><div class="title">Google Document:</div><div class="body"><iframe src="https://docs.google.com/document/pub?id=$1" width="100%" height="300px"></iframe></div></div></div>
Google Document MyCode Wrote:Usage
-------
All you need is the ID. For example, these are the 3 links which can be found at the document you want:
- Editing the document
https://docs.google.com/document/d/1apveaUwdaYevtuVIb8Q1vp4VTxyEejc22TAHLhaPSYw/edit?hl=en_US
OR
https://docs.google.com/viewer?a=v&pid=e...true&srcid=1wvDPpnd0EcZWNSDX5kunKSKUjeQk-CwdmstCYX_SeJYDkO1zdb10-x4jR0tR&hl=hr
OR
https://docs.google.com/leaf?id=0B6g1fNYZpYWvMWEwZDA0MzMtZmY0NC00NzhkLWI3ZGUtNmI1NTQxMDliNTY4&hl=en_US
- Publishing the document
https://docs.google.com/document/pub?id=1apveaUwdaYevtuVIb8Q1vp4VTxyEejc22TAHLhaPSYw
And the tag is:
[gdoc]ID[/gdoc]