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)

RazKaziRo 06-21-2013 07:44 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2429230)
And you put in a post, for example:

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

??

yes i put exactly like that

BirdOPrey5 06-21-2013 09:40 AM

Then I don't know what to tell you, sorry. It works on dozens, maybe hundreds, of other VB forums.

You don't have any "Replacement Variables" setup that could be interfering, do you?

ar15dcm 06-23-2013 11:43 AM

The document view when I use it is skewed to right and down. Also when the post I have it embedded in comes up the browser looses focuses and focus is controlled by the embedded .pdf window.

I used the adobe .pdf document that discusses the controls and switches when embedding .pdf files and one of the controls is

http://www.xxxxx.com$fitH

This is suppsed to fit the document wigth wise in the viewable window... not.

Snowhog 06-23-2013 05:38 PM

Just added this BBCode and tested in Chromium Browser. Had to download Google Chrome .deb package, extract the contents and copy the libpdf.so file to /usr/lib/chromium-browser as Chromium doesn't have a .pdf plug-in (Google Chrome does). Restarted Chromium and went to your demo page and voila, embedded .pdf document! Just too cool. :cool: :cool:

Even though this MOD is from 2010, I've marked it as recommended for MOTM and of course, rated it Excellent. BOP5 continues to amaze me with his skills at providing improvements to vBulletin.

Digital Jedi 06-24-2013 03:55 PM

Quote:

Originally Posted by RazKaziRo (Post 2429193)
thanks for the help but i check 3 times for the code and download all pdf viewer there is and try from 3 different computers and 3 different browsers

any ideas?

It really does look like there's an error in your HTML Replacement code. There's a dot where there should be a quotation mark. In addition, it almost looks like you have the code in there twice. Double check that you also don't have a plugin that automatically tries to parse PDFs installed.

RazKaziRo 06-27-2013 10:55 AM

Quote:

Originally Posted by Digital Jedi (Post 2430203)
It really does look like there's an error in your HTML Replacement code. There's a dot where there should be a quotation mark. In addition, it almost looks like you have the code in there twice. Double check that you also don't have a plugin that automatically tries to parse PDFs installed.

i triple check it i copied the text exactly and follow the instructions
can you help me ?
i can give you admin premission for testing

thanks

Raz

BirdOPrey5 07-06-2013 09:28 PM

Sorry guys... This is a simple bbcode, if it doesn't work I don't know why, it works on dozens of other sites.

There is nothing I can change in this mod to make it magically work on a site it doesn't work on now- the issue is external from this code.

I am marking this as unsupported because I do not have time to give the support some people are asking for.

I would suggest anyone having issues-
1) Try with a different browser
2) Make sire you have Adobe PDF Reader Plugin for your browser installed
3) Double/triple check the correct code in the BB Code Manager
4) Try from another computer

xtragic 08-18-2013 05:44 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2432462)
Sorry guys... This is a simple bbcode, if it doesn't work I don't know why, it works on dozens of other sites.

There is nothing I can change in this mod to make it magically work on a site it doesn't work on now- the issue is external from this code.

I am marking this as unsupported because I do not have time to give the support some people are asking for.

I would suggest anyone having issues-
1) Try with a different browser
2) Make sire you have Adobe PDF Reader Plugin for your browser installed
3) Double/triple check the correct code in the BB Code Manager
4) Try from another computer

Actually it doesn't work. I've tried this on my forums and know how to write xhtml, xml, PHP and LUA. I can only figure there has to be something in one of the VB updates that is preventing it from property embedding.

BirdOPrey5 08-22-2013 10:33 AM

1 Attachment(s)
It works fine on my 3.8.7 and 4.2.1 forums.

Can you see the PDF on this page? http://www.qapla.com/mods/showthread...e-Embedded-PDF

This is what it looks like to me (working):

https://vborg.vbsupport.ru/attachmen...1&d=1377171151

xtragic 09-02-2013 03:12 AM

After reinstalling it a second time, it now works on 4.1.11. Not sure why it wouldn't work the first time, unless I copied the code wrong. =/


All times are GMT. The time now is 12:49 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.01105 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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