News:

Wondering if this will always be free?  See why free is better.

Main Menu

PDF Tag

Started by live627, October 31, 2008, 08:43:51 AM

Previous topic - Next topic

Kilgore Trout

I have installed this mod on a 2.0 RC-1 board.  I used the pdf_tag_1.1.zip file and uploaded the package and it said it installed successfully.  When I try to use the pdf tags and place a valid pdf file (on another site) I get a post that says "click here to download plugin"  When I click it it says no plugin is available.  Can someone help this poor newb get this working?  I am sure I have done something basic incorrectly and will look forward to hearing about it.  ;>)

KT

Kilgore Trout

Solved it.  Realized that it was my browser that needed the plugin.  duh.  For anyone else who has this problem you can find the Mac plugin here:

http://plugindoc.mozdev.org/OSX.html#PDF

Angelina Belle

I would like to embed an attached PDF.  This does not work well at all.

Here is an example of embedding an "unattached" PDF
http://rockhallsailingclub.org/smf/index.php?topic=58.0

Here is an example, using the same PDF file.  This time, though, I have attempted to attach it to a post and then embed it in the same post, using the PDF file.  SMF insists that the attached PDF file needs to be opened in a new window.  That really messes up the message window and the browser window with the empty object/embed window seems really unhappy, too.
http://rockhallsailingclub.org/smf/index.php?topic=76.0

Is there a solution to the problem?

Thanks
AB

Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Kermit

Quote from: AngelinaBelle on June 22, 2009, 01:51:41 PM
I would like to embed an attached PDF.  This does not work well at all.

Here is an example of embedding an "unattached" PDF
http://rockhallsailingclub.org/smf/index.php?topic=58.0

Here is an example, using the same PDF file.  This time, though, I have attempted to attach it to a post and then embed it in the same post, using the PDF file.  SMF insists that the attached PDF file needs to be opened in a new window.  That really messes up the message window and the browser window with the empty object/embed window seems really unhappy, too.
http://rockhallsailingclub.org/smf/index.php?topic=76.0

Is there a solution to the problem?

Thanks
AB




PDF Tag mod has nothing to do with the attachment stuff,so i don't know what could be wrong with it
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Kilgore Trout

I have a problem with a mac/firefox os/browser combination.  The PDF file seems to open a ways down on the page and the width stays too narrow even if the width variable is changed in subs.php  Any ideas?  Thanks.

Angelina Belle

Quote from: Duncan85 on June 22, 2009, 02:51:41 PM
PDF Tag mod has nothing to do with the attachment stuff,so i don't know what could be wrong with it

Thanks.  That tells me it might not be so simple to attach a PDF and then embed the PDF.  I'll go ask someplace else.
The PDF mod seems to be working great for what it was designed to do.
Thanks!
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

akosiparusa

which file/template is the quick reply?

SPerroud

Nice nice nice nice.
Thanks
Version SMF: 1.1.11
Theme: Black Default Theme for SMF
CMS (Portal): TinyPortal v0.9.8

- Deja siempre tu versión del foro y el tema que usas para ayudarte mejor.

Preguntas Frecuentes: SMF FAQ

ttuu

i am using Foxit Reader and i see X in PDF place.

searchgr


Kermit

Quote from: searchgr on November 11, 2009, 09:24:06 AM
any update for rc2?


Already tried to update,but no luck,somehow the pdf thing doesn't work on RC2
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Mick.

#31
I got it to work on RC2 a while back ;)


Open:
./Sources/Subs.php

Find:array(
'tag' => 'pre',
'before' => '<pre>',
'after' => '</pre>',
),


Add before:

// PDF [pdf]example.pdf[/pdf]
         array(
            'tag' => 'pdf',
            'type' => 'unparsed_content',
            'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<object type="application/pdf" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" data="$1" width="800" height="600"><param name="src" value="$1"><embed src="$1" width="500" height="400" /><noembed><a href="$1" target="_blank">$1</a></noembed></object>' : '<embed type="application/pdf" src="$1" width="500" height="400" /><noembed><a href="$1" target="_blank">$1</a></noembed>'),
            'validate' => create_function('&$tag, &$data, $disabled', '
               if (isset($disabled[\'url\']))
                  $tag[\'content\'] = \'$1\';'),
            'disabled_content' => '<a href="$1" target="_blank">$1</a>',
         ),


Open:
Subs-Editor.php

Find:
array(
'image' => 'quote',
'code' => 'quote',
'before' => '[quote]',
'after' => '[/quote]',
'description' => $txt['bbc_quote']
),


Add after:

array(
'image' => 'pdf',
'code' => 'pdf',
'before' => '[pdf]',
'after' => '[/pdf]',
'description' => $txt['Add_PDF']
)


Open:
./Themes/default/languages/Modifications.english.php

Find:
?>

Add before:
$txt['Add_PDF'] = 'Add PDF';

Make sure you grab the PDF image from the package here and load it into your theme's BBC folder.


Demo on RC2:
http://www.chevyavalancheclub.com/index.php?action=articles;sa=view;article=47

It works in the forums as well in the Articles mod.

Angelina Belle

Thanks for posting that. You saved me thinking through and debugging the edit to Subs-Editor
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

Yahmez

Quote from: Duncan85 on November 12, 2009, 05:11:40 AM
Quote from: searchgr on November 11, 2009, 09:24:06 AM
any update for rc2?


Already tried to update,but no luck,somehow the pdf thing doesn't work on RC2

Here is a version for rc3
I'll remove it if you object to my posting it.

Kermit

Quote from: ҰΛĥmΞڃ on April 20, 2010, 09:35:40 AM
Quote from: Duncan85 on November 12, 2009, 05:11:40 AM
Quote from: searchgr on November 11, 2009, 09:24:06 AM
any update for rc2?


Already tried to update,but no luck,somehow the pdf thing doesn't work on RC2

Here is a version for rc3
I'll remove it if you object to my posting it.


I have no,thanks for updating,when i have time,i will look into your package and add on modification page  ;)
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

dmacleo

Quote
Here is a version for rc3
I'll remove it if you object to my posting it.
thank you very much !

NoFeaR / NFSMW

i get an error with this saying. File does not begin with %PDF

NoFeaR / NFSMW

How do i set it for Auto width.

PLAYBOY

Doesnt install on 2.0!

PLAYBOY

#39
I realy need this mod. I have so many pdfs i have put in the messages with this mod but now i i upgraded it to 2.0 and you cant see any of the pdfs.
Please! When Is this gonna be updated for 2.0?

Advertisement: