![]() |
|
Mod Options |
![]() |
|||||||||||||||
BBCode: Embed PDF Files (No JavaScript/No iFrames) (BB Code)
![]() Developer Last Online: Dec 2020 ![]() ![]() ![]()
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:
Example: [pdf]http://www.qapla.com/ju/PDFOpenParameters.pdf[/pdf] (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: http://www.vbulletin.org/forum/attac...1&d=1281727562 Download Now Only licensed members can download files, Click Here for more information. Show Your Support
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
BB Code Enhancements ZippyShare.com shared music BBCode (Embed MP3 files in your forum!) | BirdOPrey5 | vBulletin 3.8 Add-ons | 6 | 17 Jul 2013 00:44 |
BB Code Enhancements BBCode: Embed PDF Files (No JavaScript/No iFrames) (BB Code) | BirdOPrey5 | vBulletin 3.8 Add-ons | 23 | 27 May 2012 18:28 |
BB Code Enhancements ZippyShare.com shared music BBCode (Embed mp3 files in you forum!) | BirdOPrey5 | vBulletin 4.x Add-ons | 11 | 01 Sep 2011 12:47 |
BB Code Enhancements [BB Code] YouTube Javascript Embed | wii | vBulletin 3.8 Add-ons | 21 | 10 May 2011 10:28 |
BB Code Enhancements [BB Code] YouTube Javascript Embed | wii | Modification Graveyard | 36 | 13 May 2008 10:10 |
Comments |
#2
|
|||
|
|||
After placing the pdf file - thread not scrolling (Mozilla 3.6.8)
No members have liked this post.
Last edited by stwan; 13 Aug 2010 at 21:10. |
#3
|
||||
|
||||
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?
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#4
|
|||
|
|||
I have to click once, outside of the pdf window, to get the thread to scroll again.
That's using Chrome, btw No members have liked this post.
|
#5
|
|||
|
|||
That's normal behavior, abqtj.
Thanks for this, I'll try it out. No members have liked this post.
|
#6
|
||||
|
||||
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 ![]() No members have liked this post.
|
#7
|
||||
|
||||
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?
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#8
|
||||
|
||||
Firefox 3.5.11 / Windows XP
I'll try updating adobe reader. No members have liked this post.
|
#9
|
|||
|
|||
not working for me...keeps looking for additional plug ins.
__________________
www.MWGLforums.com No members have liked this post.
|
#10
|
||||
|
||||
Did you install the pdf plugin from: http://www.adobe.com/products/reader/
What browser/OS are you using?
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#11
|
||||
|
||||
installed
thank you bro good work
__________________
No members have liked this post.
|
#12
|
|||
|
|||
How would I use this BBcode for a PDF file that I have uploaded myself into vB? ie via the paperclip file attachment in a post.
Some PDFs are confidential and I dont want to just upload them into public.html/root/folder, but keep them in the attachments manager that deals with access rights, etc. PS. I store attachments in the filesystem not the database (if it makes a difference). No members have liked this post.
|
#13
|
||||
|
||||
If you right click on the link to your attached file and get the URL to said file, then put that URL between the PDF BB Code tags, that should work.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#14
|
|||
|
|||
Great job mate, Working well on mine. thankssss
No members have liked this post.
|
#15
|
|||
|
|||
great job, installed and working!
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 01:29.