![]() |
BBCode: Embed PDF Files (No JavaScript/No iFrames) (BB Code)
1 Attachment(s)
This is <embed> BB Code to embed a PDF file into your forum. The user needs a compatible PDF Reader such as Adobe's free PDF Reader. If they don't have one they will still see a link to view the PDF directly.
I am aware <embed> is not "proper" HTML but it works fine in all major browsers (IE/FF/Chrome/Opera/Safari) while <object> was not working for me in IE. If you prefer to keep to strict HTML guidelines and don't care about IE users then simply change the two instances of "embed" in the replacement code to "object". This has been confirmed working in the latest releases of IE, FF, Chrome, Safari, and Opera. I am also aware there are at least 2 other PDF BB Codes out there... I believe this implementation is better because one of them uses JavaScript and another uses an iFrame and relies on a 3rd party website (google) to display the PDF. My implementation uses no JavaScript and does not reply on any other websites. Demo: http://www.juot.net/forums/showthread.php?t=46803 Add a new BBCode Title: Embed PDF BB Code Tag Name: pdf Replacement: Code:
<div align="center"> (I suggest using your own example if possible.) Use Option: No Button Image: (optional) https://vborg.vbsupport.ru/attachmen...1&d=1281727232 Remove Tag If Empty: Yes All Disable Options: Yes Overall this tag acts a lot like the built in [img] tags. Please mark as installed if you use this. :) Check My Profile for other BB Code enhancements. They work on all versions. Screenshot Attached: https://vborg.vbsupport.ru/attachmen...1&d=1281727562 |
After placing the pdf file - thread not scrolling (Mozilla 3.6.8)
|
If the mouse pointer is over the PDF it may try and scroll the PDF and not the page, that would be 'normal' behavior when there's a 'window' inside a 'window' - try using the browser's "slide bar" at the right of the page or the arrow keys and see if you can get it to scroll...
Also, are you able to scroll the page on my demo site? Can you give me a link to your site where I can see the problem? |
I have to click once, outside of the pdf window, to get the thread to scroll again.
That's using Chrome, btw |
That's normal behavior, abqtj.
Thanks for this, I'll try it out. |
I clicked on the demo you provided, Adobe appeared to be starting up, then I got a popup that said:
box title: Acrobat Plug-In text: This operation is not allowed option to click: OK I want to install this code, but not if that's going to happen to my pdfs ;) Any idea why that happened? |
I would guess there is something wrong with your pdf plugin, maybe an old version or maybe some option you chose when installing?
I would re-download the latest version from: http://www.adobe.com/products/reader/ Also what browser/OS were you using? |
Firefox 3.5.11 / Windows XP
I'll try updating adobe reader. |
not working for me...keeps looking for additional plug ins.
|
Did you install the pdf plugin from: http://www.adobe.com/products/reader/
What browser/OS are you using? |
All times are GMT. The time now is 12:27 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|