The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
BBCode: Embed PDF Files (No JavaScript/No iFrames) (BB Code) Details »» | |||||||||||||||||||||||||||
BBCode: Embed PDF Files (No JavaScript/No iFrames) (BB Code)
Developer Last Online: Aug 2023
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"> <p align="center"> <embed src="{param}" type="application/pdf" width="700" height="900"> <br /> <a href="{param}">Click here to view or download the file directly.</a> <br /> </embed> </p></div> (I suggest using your own example if possible.) Use Option: No Button Image: (optional) 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 Show Your Support
|
4 благодарности(ей) от: | ||
ITDarasgah, Judith2, synseal, Toorak Times |
Comments |
#52
|
|||
|
|||
Quote:
I have fixed it. How? 1./ Update to LATEST Acrobat Reader 10.1.3 2./ Update to latest Chrome 3./ Launch chrome 4./ In address bar type chrome://plugins 5./ Enable Acrobat Reader plugin (which will automatically disable Chrome PDF reader plugin) Inline attachments should now work also within the bbcode as PDF inline read. There seems to be a bug in the embedded Chrome PDF reader that is not caching or cannot resolve the indirect link to the attachment PDF. This problem doesnt not occur with IE, and was a solution discovered by trial and error. No logic there! Try it out and report back to see if this is a general solution, or just worked for me. |
Благодарность от: | ||
BirdOPrey5 |
#53
|
|||
|
|||
installed on 4.1.12
|
#54
|
|||
|
|||
Is this working for anybody that has 4.2? I just get a empty gray box. I've tried Chrome, FF, and IE and it's all the same. Just curious.
|
#55
|
||||
|
||||
Quote:
If you can post a link to a page with the problem. |
#56
|
|||
|
|||
I've got a PDF reader. Here's a link to one of the embeds.
http://forum.wapscalc.com/showthread...romotion-Study |
#57
|
||||
|
||||
BOP5@
Your demo doesn't work for me either - it seems to specifically want the Adobe plug-in. I'm running Kubuntu 12.04, 64-bit, with Okular version 0.15.1. Okular is an Adobe Reader compliant Linux .pdf viewer/reader. |
#58
|
||||
|
||||
Quote:
Code:
http://forum.wapscalc.com/pdfs/NCOpromotion.pdf |
#59
|
||||
|
||||
There's nothing in the code that can specify a specific PDF reader. It's simply your PDF viewer may not work embedded in web documents.
|
#60
|
||||
|
||||
thanks nice plug in but no working to my vb 4.2pl3 any browser testing
uninstalled i see only one box with html code no pdf. |
#61
|
|||
|
|||
Works for me 4.2pl3 in Firefox 16 and IE9
|
Благодарность от: | ||
BirdOPrey5 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|