![]() |
|
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: here. 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 yotsume has found a bug where VB drop down menus (like "thread tools") may get hidden behind the PDF if the menu overlaps the same screen space as the PDF. For now please leave some extra lines before embedding a PDF at the top of the first post if you need to use the drop down menus. Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
![]() |
||||
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 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
|
||||
|
||||
Works Great!
However... I changed the width to: width="100%". Looks even nicer using a %. This way the pdf view window is the full size of the post. In my case I used this inside of a vbadvanced bb code page with no wrapper. Thanks!
__________________
Yotsume Kaydev Media Productions Check out my mods: EYO-AIM, FlashChat Combo-Module for vBadvanced 3.6x or 3.7x No members have liked this post.
|
#3
|
|||
|
|||
Simple to install, user friendly and works nicely.
Thanks! ![]() No members have liked this post.
|
#4
|
||||
|
||||
Originally Posted by yotsume
Thanks for the suggestion, I personally prefer the smaller box but whatever works for you is good. ![]()
![]() No 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.
|
#5
|
|||
|
|||
Is there a way to adjust it so the scroll wheel works when outside the pdf itself? It scrolls the pdf just fine, but will not scroll the web page.
Thanks Rick No members have liked this post.
|
#6
|
|||
|
|||
Never mind. Guess it just wanted to mess with me. Works fine now.
No members have liked this post.
|
#7
|
||||
|
||||
Your scroll wheel will detect where you have clicked on the page. So if you clicked on the pdf scroll bar your scroll wheel will move that bar instead of the pages bar. Click on a portion of the page and it will detect the pages scroll bar instead.
![]()
__________________
Yotsume Kaydev Media Productions Check out my mods: EYO-AIM, FlashChat Combo-Module for vBadvanced 3.6x or 3.7x No members have liked this post.
|
#9
|
||||
|
||||
There is a small problem with the BB Code. Popup menus in VB will open under the embedded PDF. (see attached screenshot)
I believe the same way that flash can be made to open under menus... the PDF can be made to as well by adding a line of code that makes it "transparent". UPDATE: Using a transparent or opaque mode will not work with a PDF because the adobe plugin doesn't currently support them for PDFs yet. I hope another solution to this issue can be found...
__________________
Yotsume Kaydev Media Productions Check out my mods: EYO-AIM, FlashChat Combo-Module for vBadvanced 3.6x or 3.7x No members have liked this post.
Last edited by yotsume; 15 Aug 2010 at 07:38. |
#10
|
||||
|
||||
yotsume- I can confirm I do have this bug too, thanks... I guess the work around for now is to leave some empty lines before embedding the PDF, though for me it's not nearly as big an issue because of my choice to have a fixed width and most of the menus still very visible. This doesn't seem like it would be a problem if a pdf was posted in anyplace but the top of the first post.
I will see if I can find a solution.
__________________
-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
|
||||
|
||||
I've been playing with z-index values all morning but this is apparently a common issue with flash too and there is no solution for that either- when something loads via a plugin all bets are off on how it displays
![]()
__________________
-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.
|
#12
|
|||
|
|||
Nice BB code, but page on forum doesn't scroll with mouse wheel on Firefox.
No members have liked this post.
|
#13
|
|||
|
|||
I had the same glitch with FF no matter where I clicked, then it just started working right.
No members have liked this post.
|
#14
|
||||
|
||||
The flash issue is actually easy to solve. This PDF issue however requires you to wrap it in an iframe and then use a lower z-index then the popup menu. Its a pain but for now not a big issue for me. Maybe Adobe will fix it in a new plugin update???
__________________
Yotsume Kaydev Media Productions Check out my mods: EYO-AIM, FlashChat Combo-Module for vBadvanced 3.6x or 3.7x No members have liked this post.
|
#15
|
||||
|
||||
I actually tried the iframe 'solution' I found posted but in fact it still wasn't working for me even with the iframe-div-iframe codes I found.
__________________
-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.
|
![]() |
«
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 15:43.