Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
BBCode: Embed PDF Files (No JavaScript/No iFrames) (BB Code) Details »
BBCode: Embed PDF Files (No JavaScript/No iFrames) (BB Code)
Mod Version: 1.00, by BirdOPrey5 (Moderator) BirdOPrey5 is offline
Developer Last Online: Mar 2017 I like it Show Printable Version Email this Page

vB Version: 4.0.x Rating: (14 votes - 5.00 average) Installs: 140
Released: 13 Aug 2010 Last Update: Never Downloads: 0
Not Supported Re-usable Code Translations  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
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 16 Jul 2013 23:44
BB Code Enhancements BBCode: Embed PDF Files (No JavaScript/No iFrames) (BB Code) BirdOPrey5 vBulletin 3.8 Add-ons 23 27 May 2012 17: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 11:47
BB Code Enhancements [BB Code] YouTube Javascript Embed wii vBulletin 3.8 Add-ons 21 10 May 2011 09:28
BB Code Enhancements [BB Code] YouTube Javascript Embed wii Modification Graveyard 36 13 May 2008 09:10

Comments
  #2  
Old 13 Aug 2010, 19:47
stwan stwan is offline
 
Join Date: Feb 2009
After placing the pdf file - thread not scrolling (Mozilla 3.6.8)

Last edited by stwan; 13 Aug 2010 at 20:10.
Reply With Quote
  #3  
Old 13 Aug 2010, 20:43
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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 (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #4  
Old 14 Aug 2010, 03:33
abqtj abqtj is offline
 
Join Date: Nov 2008
I have to click once, outside of the pdf window, to get the thread to scroll again.

That's using Chrome, btw
Reply With Quote
  #5  
Old 14 Aug 2010, 13:30
laebshade laebshade is offline
 
Join Date: Jul 2010
That's normal behavior, abqtj.

Thanks for this, I'll try it out.
Reply With Quote
  #6  
Old 16 Aug 2010, 08:33
Michlerish's Avatar
Michlerish Michlerish is offline
 
Join Date: May 2010
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 Any idea why that happened?
Reply With Quote
  #7  
Old 16 Aug 2010, 14:19
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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 (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #8  
Old 16 Aug 2010, 22:26
Michlerish's Avatar
Michlerish Michlerish is offline
 
Join Date: May 2010
Firefox 3.5.11 / Windows XP

I'll try updating adobe reader.
Reply With Quote
  #9  
Old 17 Aug 2010, 23:59
markwein markwein is offline
 
Join Date: Feb 2009
not working for me...keeps looking for additional plug ins.
__________________
www.MWGLforums.com
Reply With Quote
  #10  
Old 18 Aug 2010, 00:50
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Did you install the pdf plugin from: http://www.adobe.com/products/reader/

What browser/OS are you using?
__________________
-Joe (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #11  
Old 28 Dec 2010, 13:49
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Real name: Dr.osama
installed

thank you bro

good work
__________________
Reply With Quote
  #12  
Old 28 Dec 2010, 14:21
lemonadesoda lemonadesoda is offline
 
Join Date: Dec 2009
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).
Reply With Quote
  #13  
Old 28 Dec 2010, 14:43
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
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 (@BirdOPrey5)
Qapla.com - Exclusive VB Mods! | Joe's Ultimate Off Topic | My Free VB "Mods"
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #14  
Old 22 Feb 2011, 16:22
hoatran hoatran is offline
 
Join Date: Aug 2008
Great job mate, Working well on mine. thankssss
Reply With Quote
  #15  
Old 12 Mar 2011, 13:56
giaguaro giaguaro is offline
 
Join Date: Feb 2011
Real name: Marco
great job, installed and working!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 03:19.

Layout Options | Width: Wide Color: