Firefox PHP

BBCode [pdf]: embedded PDF viewer

Posted by Mac­ 
BBCode [pdf]: embedded PDF viewer
June 27, 2014 02:20AM
Request for a mod that would add a BBCode for embedded viewing of pdf files.

The syntax could be:
[pdf]{url-of-pdf-file}[/pdf]

That would be translated to:
<iframe src="ht­tp://docs.google.com/viewer?url={url-of-pdf-file}&embedded=true" style="width:600px; height:500px;border: none;"></iframe>

(See [docs.google.com] for more info about the Google document viewer.
If there is an other/better pdf viewer that could be used in stead of Google's that would be fine by me too.)

It would be especially nice if it would also work with attachments, like:
[pdf][attachment 999 some.pdf][/pdf]
Sorry, only registered users may post in this forum.

Click here to login