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)

Lewenhaupt 12-08-2011 02:10 PM

Already have, attachments still not working on chrome though.

BirdOPrey5 12-08-2011 06:23 PM

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.

HDMI 03-05-2012 10:07 AM

please try agin..

PHP Code:

<object type="application/pdf" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" data="{param}" width="800" height="900"><param name="src" value="{param}"><embed src="{param}" width="800" height="900" /></object

demo : http://www.reddulmuhtar.com/Forum/sh...&p=188#post188

BirdOPrey5 03-05-2012 10:21 AM

HDMI, I don't understand you post... "please try agin.." ???????

HDMI 03-05-2012 11:09 AM

PHP Code:

<object type="application/pdf" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" data="{param}" width="800" height="900"><param name="src" value="{param}"><embed src="{param}" width="800" height="900" /></object

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 ...

BirdOPrey5 03-05-2012 11:47 AM

Your code has a useless "classid" parameter... you should at least remove that from the code-

Your also missing the "type" from the <embed>

Code:

<object type="application/pdf" data="{param}" width="800" height="900">
<param name="src" value="{param}" />
<embed src="{param}" width="800" height="900" type="application/pdf" />
</object>

Not tested but that would be the appropriate code using both <object> and <embed>.

ricardoNJ 04-11-2012 10:51 PM

Testing..........

Trevor Matthews 04-13-2012 08:31 PM

I am using Firefox and 4.1.12, the mod is working just great except that I can only scroll the pdf, the thread will not scroll wherever I try and click on the page.

Is there anything I can do about this.

I went to your demo page but can only see a list of BB codes and not a pdf.

BirdOPrey5 04-13-2012 11:28 PM

Fixed demo link- but there is no way to solve the scrolling issue. That's the same on all browsers.

Trevor Matthews 04-14-2012 05:24 PM

Ok, thanks for letting me know.

lemonadesoda 04-15-2012 03:43 PM

Quote:

Originally Posted by Lewenhaupt (Post 2275491)
...the bbcode 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 - but not through inline "attachments".)

I have the same issue, hence my post a year ago https://vborg.vbsupport.ru/showpost....7&postcount=12

I have fixed it. How?

1./ Update to LATEST Acrobat Reader 10.1.3
2./ Update to latest Chrome
3./ Launch chrome
4./ In address bar type chrome://plugins
5./ Enable Acrobat Reader plugin (which will automatically disable Chrome PDF reader plugin)

Inline attachments should now work also within the bbcode as PDF inline read. There seems to be a bug in the embedded Chrome PDF reader that is not caching or cannot resolve the indirect link to the attachment PDF. This problem doesnt not occur with IE, and was a solution discovered by trial and error. No logic there!

Try it out and report back to see if this is a general solution, or just worked for me.

etca 04-15-2012 08:19 PM

installed on 4.1.12

stl7997 09-30-2012 04:43 PM

Is this working for anybody that has 4.2? I just get a empty gray box. I've tried Chrome, FF, and IE and it's all the same. Just curious.

BirdOPrey5 09-30-2012 05:02 PM

Quote:

Originally Posted by stl7997 (Post 2369785)
Is this working for anybody that has 4.2? I just get a empty gray box. I've tried Chrome, FF, and IE and it's all the same. Just curious.

It should work... do you have a PDF reader installed on your computer/browser?

If you can post a link to a page with the problem.

stl7997 09-30-2012 05:19 PM

I've got a PDF reader. Here's a link to one of the embeds.

http://forum.wapscalc.com/showthread...romotion-Study

Snowhog 09-30-2012 06:27 PM

BOP5@

Your demo doesn't work for me either - it seems to specifically want the Adobe plug-in. I'm running Kubuntu 12.04, 64-bit, with Okular version 0.15.1. Okular is an Adobe Reader compliant Linux .pdf viewer/reader.

BirdOPrey5 09-30-2012 08:50 PM

Quote:

Originally Posted by stl7997 (Post 2369791)
I've got a PDF reader. Here's a link to one of the embeds.

http://forum.wapscalc.com/showthread...romotion-Study

The file you are linking to does't exist:

Code:

http://forum.wapscalc.com/pdfs/NCOpromotion.pdf
check the spelling maybe... ?m

BirdOPrey5 09-30-2012 08:52 PM

Quote:

Originally Posted by Snowhog (Post 2369811)
BOP5@

Your demo doesn't work for me either - it seems to specifically want the Adobe plug-in. I'm running Kubuntu 12.04, 64-bit, with Okular version 0.15.1. Okular is an Adobe Reader compliant Linux .pdf viewer/reader.

There's nothing in the code that can specify a specific PDF reader. It's simply your PDF viewer may not work embedded in web documents.

ikorolis 11-18-2012 04:32 PM

thanks nice plug in but no working to my vb 4.2pl3 any browser testing

uninstalled

i see only one box with html code no pdf.

Mr_Running 11-18-2012 05:28 PM

Works for me 4.2pl3 in Firefox 16 and IE9 :)

synseal 11-28-2012 10:25 PM

Excellent as per usual.

Installed + rated 5.

Guest20210129 01-11-2013 06:44 PM

Perfect.

Thanks (:

coolbreeze86 01-31-2013 07:49 AM

hi.. great mod.. actually working correctly for the files uploaded but not working for the attachments made through vbulletin.

It just shows a grey area, when i tried to embed attached vbulletin pdf files. Help me.. what will be mistake..??

Digital Jedi 01-31-2013 03:59 PM

Quote:

Originally Posted by coolbreeze86 (Post 2400739)
hi.. great mod.. actually working correctly for the files uploaded but not working for the attachments made through vbulletin.

It just shows a grey area, when i tried to embed attached vbulletin pdf files. Help me.. what will be mistake..??

My guess would be because it's an attachment. Attachments have no extension, so it can't embed what's not ending in .pdf.

coolbreeze86 01-31-2013 07:41 PM

Thanks for the reply..

in this post he mentioned that it will work for attachments.

my attachment url will be like this... "http://www.sitename.com/forums/attachments/xxxx-xxxx/58503d1358952797-photoshop-tutorial-2013.pdf"

coolbreeze86 02-01-2013 10:39 AM

hey guyz please help me to embed attached files...

SiteTalkZone 03-15-2013 01:00 AM

its working fine in forums but not working in article, it just showing a grey color in article (I'm not using an attachment)

mrschmitz 04-04-2013 02:24 PM

It works fine in IE for me, but in Chrome it shows a grey box.

BirdOPrey5 04-09-2013 01:09 PM

There's no trick to using attachments...

For me it's just

[pdf]http://www.juot.net/forums/attachment.php?attachmentid=1379&stc=1&d=136599999 7[/pdf]

(for example) and it works.

If it doesn't work for you it may be a server issue or the PDF program you have installed (I have Adobe Reader X)

As for the issue with it not showing in the CMS, please post a link I can see it happening.

coolbreeze86 04-09-2013 07:46 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2415310)
There's no trick to using attachments...

For me it's just

[pdf]http://www.juot.net/forums/attachment.php?attachmentid=1379&stc=1&d=136599999 7[/pdf]

(for example) and it works.

If it doesn't work for you it may be a server issue or the PDF program you have installed (I have Adobe Reader X)

As for the issue with it not showing in the CMS, please post a link I can see it happening.

working fine now. lemonadesoda's post (https://vborg.vbsupport.ru/showpost....5&postcount=51) helped me.

But i have a doubt, why it is working correctly when i try to attach it with direct pdf link, but not working correctly with vbulletin attachment file. Is there is any solution?

Bcoz, how can we tell and force members to enable adobe acrobate in chrome://plugins.

BirdOPrey5 04-13-2013 06:10 PM

You can't force users to have or user any such plguins- you can just post advising them how to have the best experience on your site- it is up to them to comply.

kartheekb 04-17-2013 11:01 AM

Does this works for 4.2?

Naijasite 04-22-2013 11:06 PM

not working on 4.2.1 showing 404 error. but it work at the admincp

tommythejoat 06-11-2013 09:10 PM

I wanted to provide a size option for the hack, so I added the use of the {option} for. a dimension. The problem is that I cannot figure out how to adjust the other dimension.

The options are to allow both dimensions with a separator or use a fixed ratio like height = 1.6 x width. I used to be able to do that in html, but I don't really remember how.

I tried using vb:math but that does not seem to work.

I seem to recall that I cannot parse the option, but I can parse the parameter. However, I cannot find the html references on how to do that.

Can anyone help?

BirdOPrey5 06-12-2013 04:53 PM

There is no real way to control 2 dimensions with a simple BB Code. You would need to go to a full blown modification with php plugins to deal with that.

tommythejoat 06-13-2013 01:08 AM

I was hoping there was some secret expert trick to provide

embed {parameter} width="{option}" height="8*{option}/5"

e24h 06-13-2013 01:11 PM

That's normal behavior, abqtj.

Thanks for this, I'll try it out.

BirdOPrey5 06-19-2013 03:17 PM

Attn: RazKaziRo from vBulletin.com
http://www.vbulletin.com/forum/forum...w-on-vbulletin

Re:

https://vborg.vbsupport.ru/

1) Make sure you have a PDF Viewer plugin for your browser

2) If you do, there may be a mistake in the replacement code, copy it in again. You seem to be missing some code.

RazKaziRo 06-19-2013 05:49 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2429162)
Attn: RazKaziRo from vBulletin.com
http://www.vbulletin.com/forum/forum...w-on-vbulletin

Re:

http://speedcap.net/sharing/files/8e...954d3e3e1c.png

1) Make sure you have a PDF Viewer plugin for your browser

2) If you do, there may be a mistake in the replacement code, copy it in again. You seem to be missing some code.

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?

BirdOPrey5 06-19-2013 09:29 PM

And you put in a post, for example:

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

??


All times are GMT. The time now is 06:54 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.01739 seconds
  • Memory Usage 1,829KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (7)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
  • (40)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