vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   BB Code Enhancements - BBCode: Embed PDF Files (No JavaScript/No iFrames) (BB Code) (https://vborg.vbsupport.ru/showthread.php?t=248549)

kf4eok 09-20-2013 08:10 PM

When I use this bb code it will work in the test block below bb code manager but it doesn't work in a post. I get a black block.
Also the Click here to view or download the file directly dose not work.

any ideas of what I could be doing wrong?
I am running 4.2
Here is my post link:
http://www.gonejetskifishing.com/for...&p=128#post128

kf4eok 09-20-2013 08:32 PM

Quote:

Originally Posted by kf4eok (Post 2446963)
When I use this bb code it will work in the test block below bb code manager but it doesn't work in a post. I get a black block.
Also the Click here to view or download the file directly dose not work.

any ideas of what I could be doing wrong?
I am running 4.2
Here is my post link:
http://www.gonejetskifishing.com/for...&p=128#post128

I found what I was doing wrong. My link was incorrect.

john7911 10-12-2013 06:32 PM

installed

thank you :)

good work :up:

blackberry 11-11-2013 05:43 PM

how to make it work for mediafire
http://www.mediafire.com/view/d03dsz...Episode_10.pdf
??

Digital Jedi 11-13-2013 07:20 PM

Quote:

Originally Posted by blackberry (Post 2459971)
how to make it work for mediafire
http://www.mediafire.com/view/d03dsz...Episode_10.pdf
??

Unless you have a direct link to the PDF file, you can't. The embed code is looking for an actual PDF file. Not a web page URL that happens to end in .pdf, but instead has a PDF embeded in it.

blackberry 01-22-2014 07:58 PM

Quote:

Originally Posted by Digital Jedi (Post 2460474)
Unless you have a direct link to the PDF file, you can't. The embed code is looking for an actual PDF file. Not a web page URL that happens to end in .pdf, but instead has a PDF embeded in it.

never mind, i figure out how to do for box.com

kf4eok 01-28-2014 12:42 PM

I have changed the bbcode so that users that see a blank pdf will have a link to click to view the file.

-----IF THE PDF IS BLANK CLICK HERE TO VIEW.-----

~~ok my bbcode settings are now as below:
----------------------------------------------------------------------------------------------------------------------
Title = embed_pdf
BB Code Tag Name = pdf
Replacement =
<div align="center">
<p align="center">
<p><a href="{param}">---------------IF THE PDF IS BLANK CLICK HERE TO VIEW.--------------- </a></p>
<br />
<object type="application/pdf" data="{param}" width="800" height="900">
<param name="src" value="{param}" />
<embed src="{param}" type="application/pdf" width="800" height="900">
<p><a href="{param}">Click here to view or download the file directly.</a></p>
</object><br />
</embed>
</p></div>

Example = [pdf]http://www.baymeadowscommunitycouncil.net/pdf/visionplan.pdf[/pdf]
Description = Allows you to embed a pdf file.
Use {option} = Yes

Remove Tag If Empty = Yes
Disable BB Code Within This BB Code = Yes
Disable Smilies Within This BB Code = Yes

Disable Word Wrapping Within This BB Code = Yes
Disable Automatic Link Parsing Within This BB Code = Yes
----------------------------------------------------------------------------------------------------------------------

This seems to work for now until a better solution is found.
Anyone that sees a problem with this please let me know and show me a better way of doing this.
Thanks

btedition 02-10-2014 04:11 AM

Working with 4.2.0. Marked as installed, thanks!

tini_lam 09-28-2014 12:18 PM

don't work with mediafire...

blind-eddie 03-18-2017 08:14 PM

Hey Joe, your pfd bbcode was working great on a vb4 site before it was changed to https.
Any idea what would cause it to stop functioning?
The acp is not https and the pdf bbcode example works fine there, thoughts?


All times are GMT. The time now is 05:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01175 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete