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 (IB Staff) BirdOPrey5 is offline
Developer Last Online: Nov 2019 I like it Show Printable Version Email this Page

vB Version: 4.0.x Rating: (14 votes - 5.00 average) Installs: 142
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 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

  #31  
Old 28 Jun 2011, 18:59
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Simply attaching a PDF file to a post isn't going to make it appear on the page.

You need to put the URL to the attachment inside the PDF tag.

Like this:


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

For this to work whoever is viewing it also has to have permission to view attachments on your site.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #32  
Old 25 Oct 2011, 17:39
nrasheed nrasheed is offline
 
Join Date: Oct 2011
Hi,

I am using it with VB4.1.7 I followed you instruction but after I post, it just shows me

[pdf]http://www.qapla.com/ju/PDFOpenParameters.pdf[/pdf]

instead of the windowed PDF document...

Any suggestion.....

Appreciations....
Reply With Quote
  #33  
Old 26 Oct 2011, 03:01
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
That would mean you either didn't set the field BB Code Tag Name: correctly- it should just be pdf

Or you set "Use Option" to "Yes", it must be set to "No."
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #34  
Old 26 Oct 2011, 03:57
nrasheed nrasheed is offline
 
Join Date: Oct 2011
Thanks, it was "Use Option" ....
Reply With Quote
  #35  
Old 31 Oct 2011, 01:54
misericorde misericorde is offline
 
Join Date: May 2011
Unhappy

Originally Posted by nrasheed View Post
Hi,

I am using it with VB4.1.7 I followed you instruction but after I post, it just shows me

[pdf]http://www.qapla.com/ju/PDFOpenParameters.pdf[/pdf]

instead of the windowed PDF document...

Any suggestion.....

Appreciations....
Hy,

Me too

Please can you see the problem

Thank s
Reply With Quote
  #36  
Old 31 Oct 2011, 12:42
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Originally Posted by misericorde View Post
Hy,

Me too

Please can you see the problem

Thank s
See my answer in post # 33.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #37  
Old 05 Dec 2011, 20:17
Lewenhaupt Lewenhaupt is offline
 
Join Date: Jan 2010
Originally Posted by BirdOPrey5 View Post
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.
Doesn't work. Instead I get a grey area where the PDF should appear.
Reply With Quote
  #38  
Old 06 Dec 2011, 20:40
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Please post the bbcode you are using, exactly, here. (the path to the pdf)
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #39  
Old 07 Dec 2011, 11:15
Lewenhaupt Lewenhaupt is offline
 
Join Date: Jan 2010
My apologies, the bbcode is correct and appears to be working perfectly in firefox. But I switched to chrome a while ago, and there the attachments won't show up.

edit:
PDF files that are hosted on the site - uploaded to a folder through ftp - do work on chrome.

Last edited by Lewenhaupt; 07 Dec 2011 at 11:27.
Reply With Quote
  #40  
Old 08 Dec 2011, 00:17
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Thanks for the update. Please mark this mod as installed if you are using it.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #41  
Old 08 Dec 2011, 15:10
Lewenhaupt Lewenhaupt is offline
 
Join Date: Jan 2010
Already have, attachments still not working on chrome though.
Reply With Quote
  #42  
Old 08 Dec 2011, 19:23
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
Please try again because developers are able to see who has it marked and who doesn't, and it's not showing up for you.

As I requested before I need the exact code you are using that isn't working.
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #43  
Old 05 Mar 2012, 11:07
HDMI HDMI is offline
 
Join Date: Sep 2010
please try agin..


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

demo : http://www.reddulmuhtar.com/Forum/sh...&p=188#post188
Reply With Quote
  #44  
Old 05 Mar 2012, 11:21
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
 
Join Date: Jun 2008
Real name: Joe D.
HDMI, I don't understand you post... "please try agin.." ???????
__________________
-Joe
Former vBulletin.org Staff Member

(@BirdOPrey5) Former vb.org Moderator. Fighting for a free & independent vb.org.
BirdOPrey5.com - Exclusive VB Mods! (Formerly Qapla.com) | Joe's Ultimate Off Topic
Note - I do not read my PMs often, do not expect quick replies.
Reply With Quote
  #45  
Old 05 Mar 2012, 12:09
HDMI HDMI is offline
 
Join Date: Sep 2010

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

I meant to say ;
I recommend above code to enter instead of the code which is in the first message.
(For the version 4.1.11)
I hope this would be helpful.

Have a good work ...
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


New To Site? Need Help?

All times are GMT. The time now is 07:25.

Layout Options | Width: Wide Color: