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 |
#22
|
|||
|
|||
It doesnt work.
and when i click at link |
#23
|
||||
|
||||
Looks like something might be wrong with the replacement code you copied.
Also could be an error in the URL you specified between the [pdf] tags. I suggest deleting the code and trying again. |
#24
|
|||
|
|||
That is a good mod for making e-books and offering free downloads, for SEO
|
#25
|
|||
|
|||
Could you expound on the install for us "non coders". Where do you put this code? Do you have to add it for every pdf or just once ? Sorry. Realize it's probably a dumb question but I need help.
|
#26
|
||||
|
||||
Quote:
You will copy all of the info in the first post to the corresponding box in the "Ass a New BB Code" page. When done hit SAVE and the BB Code will be active. |
#27
|
|||
|
|||
Quote:
My url is www.blackfinowners.com. What would I add instead of "ju" ? Thanks. |
#28
|
||||
|
||||
You can use the exact example... qapla.com is hosting a test PDF file.
If you want to use your own example you will first have to upload a pdf file to your server and put the full address to it in the example perhaps something like: http://www.blackfinowners.com/pdf/testpdf.pdf "ju" is just the directory on my qapla.com domain where this particular test pdf is located. |
#29
|
|||
|
|||
Everything seems installed fine. The preview pix on the acp look correct.
Will this thing work retroactively? What I mean is will .pdf attachments previously uploaded be displayed ? If the answer is yes, then I guess It's not working correctly for me. |
#30
|
||||
|
||||
It is a BB Code- it will work wherever the bbcode was entered correctly, before or after it was installed.
Can you post here whatever you have in one of your posts that isn't working. |
#31
|
|||
|
|||
Quote:
http://www.blackfinowners.com/forums...=8990#post8990 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|