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)

Alan_SP 03-20-2017 04:10 PM

Try pdf from https source. And check in browser if it blocked http scripts. And if it is, what happens if you allow them.

BirdOPrey5 03-22-2017 09:21 AM

Weird, but confirmed same issue on my own site. I guess browsers just don't trust pdf files, even if loaded over https. I suppose its because these days PDF files can submit data on their own outside of the security of the rest of the page it is loaded on. I haven't checked yet for any fix, too many other things to deal with on the https conversion. But if I find a fix I'll post it.

Gn_Snake 03-22-2017 10:18 AM

I confirm to me does not work. It worked perfectly before migration

BirdOPrey5 03-22-2017 10:18 PM

Seems changing to an <object> tag instead of embed makes it work... There are some other small changes to the replacement code:

Code:

<div align="center">
<p align="center">
<object data="{param}" type="application/pdf" style="width:700px; height:900px;">
<br />
<a href="{param}">Click here to view or download the file directly.</a>
<br />
</object>
</p></div>


blind-eddie 03-22-2017 11:00 PM

Thanks Joe, What small changes?

blind-eddie 03-22-2017 11:07 PM

Sorry Joe, http link still refuse to work for me.

BirdOPrey5 03-23-2017 11:00 AM

Quote:

Originally Posted by blind-eddie (Post 2584217)
Thanks Joe, What small changes?

You can compare it to the one in the original post, I didn't change it. Things like width and height specified as CSS now.

Quote:

Originally Posted by blind-eddie (Post 2584218)
Sorry Joe, http link still refuse to work for me.

All I can say is it works for me. PDF file is also on my own https server. sure it won't show if loaded from http link.

Make sure you edit the post so it rebuild the cache if you didn't make a new post or truncate the postparsed table.

Gn_Snake 03-24-2017 02:53 PM

Thx BirdOPrey5, now it's ok!

Drucifer 04-19-2019 06:51 PM

Is there a PDF Viewer in the works for vB v5?


All times are GMT. The time now is 06:52 AM.

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.01193 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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