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 |
#62
|
||||
|
||||
Excellent as per usual.
Installed + rated 5. |
Благодарность от: | ||
BirdOPrey5 |
#63
|
|||
|
|||
Perfect.
Thanks (: |
#64
|
|||
|
|||
hi.. great mod.. actually working correctly for the files uploaded but not working for the attachments made through vbulletin.
It just shows a grey area, when i tried to embed attached vbulletin pdf files. Help me.. what will be mistake..?? |
#65
|
||||
|
||||
My guess would be because it's an attachment. Attachments have no extension, so it can't embed what's not ending in .pdf.
|
#66
|
|||
|
|||
Thanks for the reply..
in this post he mentioned that it will work for attachments. my attachment url will be like this... "http://www.sitename.com/forums/attachments/xxxx-xxxx/58503d1358952797-photoshop-tutorial-2013.pdf" |
#67
|
|||
|
|||
hey guyz please help me to embed attached files...
|
#68
|
|||
|
|||
its working fine in forums but not working in article, it just showing a grey color in article (I'm not using an attachment)
|
#69
|
|||
|
|||
It works fine in IE for me, but in Chrome it shows a grey box.
|
#70
|
||||
|
||||
There's no trick to using attachments...
For me it's just [pdf]http://www.juot.net/forums/attachment.php?attachmentid=1379&stc=1&d=136599999 7[/pdf] (for example) and it works. If it doesn't work for you it may be a server issue or the PDF program you have installed (I have Adobe Reader X) As for the issue with it not showing in the CMS, please post a link I can see it happening. |
#71
|
|||
|
|||
Quote:
But i have a doubt, why it is working correctly when i try to attach it with direct pdf link, but not working correctly with vbulletin attachment file. Is there is any solution? Bcoz, how can we tell and force members to enable adobe acrobate in chrome://plugins. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|