Advertisement:

Author Topic: PDF Tag  (Read 43915 times)

Offline Kilgore Trout

  • Semi-Newbie
  • *
  • Posts: 41
Re: PDF Tag
« Reply #20 on: June 17, 2009, 11:54:49 AM »
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

Offline Kilgore Trout

  • Semi-Newbie
  • *
  • Posts: 41
Re: PDF Tag
« Reply #21 on: June 17, 2009, 09:13:40 PM »
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

Offline Angelina Belle

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,586
ATTACHED PDF
« Reply #22 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

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

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,365
  • Gender: Male
Re: PDF Tag
« Reply #23 on: June 22, 2009, 02: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

Offline Kilgore Trout

  • Semi-Newbie
  • *
  • Posts: 41
Re: PDF Tag
« Reply #24 on: June 22, 2009, 02:56:51 PM »
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.

Offline Angelina Belle

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,586
Re: PDF Tag
« Reply #25 on: June 22, 2009, 03:03:56 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

Offline akosiparusa

  • Semi-Newbie
  • *
  • Posts: 50
Re: PDF Tag
« Reply #26 on: July 04, 2009, 10:50:59 AM »
which file/template is the quick reply?

Offline SPerroud

  • Full Member
  • ***
  • Posts: 542
  • Gender: Male
  • 4 years in SMF
    • DarkDog Studios
Re: PDF Tag
« Reply #27 on: July 04, 2009, 01:42:20 PM »
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

Offline ttuu

  • Jr. Member
  • **
  • Posts: 224
Re: PDF Tag
« Reply #28 on: July 14, 2009, 10:24:41 AM »
i am using Foxit Reader and i see X in PDF place.

Offline searchgr

  • Sophist Member
  • *****
  • Posts: 1,247
Re: PDF Tag
« Reply #29 on: November 11, 2009, 09:24:06 AM »
any update for rc2?

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,365
  • Gender: Male
Re: PDF Tag
« Reply #30 on: November 12, 2009, 05:11:40 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

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,443
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: PDF Tag
« Reply #31 on: January 28, 2010, 11:20:34 AM »
I got it to work on RC2 a while back ;)


Open:
./Sources/Subs.php

Find:
Code: [Select]
array(
'tag' => 'pre',
'before' => '<pre>',
'after' => '</pre>',
),

Add before:

Code: [Select]
// 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:
Code: [Select]
array(
'image' => 'quote',
'code' => 'quote',
'before' => '[quote]',
'after' => '[/quote]',
'description' => $txt['bbc_quote']
),

Add after:

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

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

Find:
Code: [Select]
?>
Add before:
Code: [Select]
$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.
« Last Edit: January 28, 2010, 11:35:45 AM by BlueDevil »

Offline Angelina Belle

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 7,586
Re: PDF Tag
« Reply #32 on: April 09, 2010, 08:59:58 PM »
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

Offline Yahmez

  • Sr. Member
  • ****
  • Posts: 798
  • -_-
Re: PDF Tag
« Reply #33 on: April 20, 2010, 09:35:40 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.

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,365
  • Gender: Male
Re: PDF Tag
« Reply #34 on: April 21, 2010, 02:42:29 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

  • Guest
Re: PDF Tag
« Reply #35 on: May 07, 2010, 05:50:01 PM »
Quote
Here is a version for rc3
I'll remove it if you object to my posting it.
thank you very much !

Offline NoFeaR / NFSMW

  • Full Member
  • ***
  • Posts: 493
  • Gender: Male
  • Manipulating the WEB!
    • Info-Hype
Re: PDF Tag
« Reply #36 on: September 20, 2010, 05:09:06 AM »
i get an error with this saying. File does not begin with %PDF

Offline NoFeaR / NFSMW

  • Full Member
  • ***
  • Posts: 493
  • Gender: Male
  • Manipulating the WEB!
    • Info-Hype
Re: PDF Tag
« Reply #37 on: October 16, 2010, 06:34:37 AM »
How do i set it for Auto width.

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,074
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: PDF Tag
« Reply #38 on: June 19, 2011, 12:54:12 PM »
Doesnt install on 2.0!

Offline PLAYBOY

  • SMF Hero
  • ******
  • Posts: 2,074
  • Livephotoshop.com & Lullabyabc.com
    • Lullabies and Us
Re: PDF Tag
« Reply #39 on: June 25, 2011, 04:33:46 PM »
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?
« Last Edit: June 25, 2011, 04:41:16 PM by PLAYBOY »