Advertisement:

Author Topic: PDF Tag  (Read 43916 times)

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 5,928
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
PDF Tag
« on: October 31, 2008, 08:43:51 AM »
Link to Mod

PDF Tag

Version: 1.2 Date 2011-07-17
Compatibility: SMF 1.1.14  & SMF 2.0


Showing PDF Files in Posts with using [pdf] [/pdf] tag


Tips From FaSan -> http://www.simplemachines.org/community/index.php?topic=35851.0

Just  packaged & attached PDF-Button in BBC-codes



You may get support or submit questions and comments in the modification's support thread at the SMF site.



Changelog:

v1.2 - 17 July 2011

o Added support for SMF 2.0 Gold.

v1.1 - 31 October 2008

o Added support for SMF 2.0 BETA 4.

v1.0 - 15 October 2008

o Initial release. (SMF 1.1.6 Compatible)

« Last Edit: July 17, 2011, 01:41:22 AM by Kermit »

Offline genieuk

  • Sr. Member
  • ****
  • Posts: 779
  • Gender: Male
Re: PDF Tag
« Reply #1 on: October 31, 2008, 08:54:18 AM »
Very nice, thanks,

Is it suppose to look like this thou:, not sure it meant to be but it seems to restrict the width.

Mathew


Offline weightman

  • Sr. Member
  • ****
  • Posts: 700
Re: PDF Tag
« Reply #2 on: October 31, 2008, 10:33:58 AM »
Nice mod. I adjusted the width and height to make the embeds larger by increasing their values in subs.php.

Offline genieuk

  • Sr. Member
  • ****
  • Posts: 779
  • Gender: Male
Re: PDF Tag
« Reply #3 on: October 31, 2008, 12:02:25 PM »
Nice mod. I adjusted the width and height to make the embeds larger by increasing their values in subs.php.

Do you mind telling me what size you used? i dont want to make it to big so it is to large and ruins the look of theme if to wide etc.

Thank you,
Mathew

Offline General_Naga

  • Jr. Member
  • **
  • Posts: 162
  • Gender: Male
    • Traction Wars Hompage
Re: PDF Tag
« Reply #4 on: October 31, 2008, 12:04:11 PM »
I really like this idea. Any plans for a SMF 2.0 version?

Offline weightman

  • Sr. Member
  • ****
  • Posts: 700
Re: PDF Tag
« Reply #5 on: October 31, 2008, 12:12:21 PM »
Quote
Do you mind telling me what size you used? i dont want to make it to big so it is to large and ruins the look of theme if to wide etc.

The width I used might not be optimal for your site since my forum is wrapped inside a bridged CMS. If you make the width too large it shouldn't wreck your pages. Instead the pdf should just get cut off. Then, you can just decrease the number til it fits. The height should work fine. I have it set to display the full first page.

Code: [Select]
<embed type="application/pdf" src="$1" width="775" height="975" />

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,365
  • Gender: Male
Re: PDF Tag
« Reply #6 on: October 31, 2008, 12:23:10 PM »
I really like this idea. Any plans for a SMF 2.0 version?

Yep,it will be shortly available for SMF 2.0 too
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 edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: PDF Tag
« Reply #7 on: October 31, 2008, 02:39:33 PM »
excellent
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline General_Naga

  • Jr. Member
  • **
  • Posts: 162
  • Gender: Male
    • Traction Wars Hompage
Re: PDF Tag
« Reply #8 on: October 31, 2008, 02:48:28 PM »
Great news - I look forward to it :)

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,365
  • Gender: Male
Re: PDF Tag
« Reply #9 on: October 31, 2008, 03:12:47 PM »
« Last Edit: October 31, 2008, 03:15:11 PM by Duncan85 »
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 edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: PDF Tag
« Reply #10 on: October 31, 2008, 03:59:51 PM »
Quote
Do you mind telling me what size you used? i dont want to make it to big so it is to large and ruins the look of theme if to wide etc.

The width I used might not be optimal for your site since my forum is wrapped inside a bridged CMS. If you make the width too large it shouldn't wreck your pages. Instead the pdf should just get cut off. Then, you can just decrease the number til it fits. The height should work fine. I have it set to display the full first page.

Code: [Select]
<embed type="application/pdf" src="$1" width="775" height="975" />

this could be one good addiction for new version to  be able to change the size od document pdf in topic ;)
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,365
  • Gender: Male
Re: PDF Tag
« Reply #11 on: October 31, 2008, 04:05:55 PM »
Quote
Do you mind telling me what size you used? i dont want to make it to big so it is to large and ruins the look of theme if to wide etc.

The width I used might not be optimal for your site since my forum is wrapped inside a bridged CMS. If you make the width too large it shouldn't wreck your pages. Instead the pdf should just get cut off. Then, you can just decrease the number til it fits. The height should work fine. I have it set to display the full first page.

Code: [Select]
<embed type="application/pdf" src="$1" width="775" height="975" />

this could be one good addiction for new version to  be able to change the size od document pdf in topic ;)


Good idea,i will add this in the new version
  ;)
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 Nibogo

  • SMF Hero
  • ******
  • Posts: 6,673
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: PDF Tag
« Reply #12 on: November 01, 2008, 10:19:21 AM »
Modifications.spanish.php:

Code: [Select]
$txt['pdf'] = 'A&ntilde;adir PDF';
Modifications.spanish_latin.php:
 
 
Code: [Select]
$txt['pdf'] = 'A&ntilde;adir PDF';
Modifications.spanish-utf8.php:
 
 
Code: [Select]
$txt['pdf'] = 'A&ntilde;adir PDF';
 Modifications.spanish_latin-utf8.php:
 
 
Code: [Select]
$txt['pdf'] = 'A&ntilde;adir PDF';
Thanks for the mod

Offline Mick.

  • Customizer
  • SMF Hero
  • *
  • Posts: 5,443
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: PDF Tag
« Reply #13 on: November 26, 2008, 05:49:36 PM »

Offline mforum

  • Full Member
  • ***
  • Posts: 609
  • Gender: Male
  • PRESS START TO PLAY
Re: PDF Tag
« Reply #14 on: January 21, 2009, 02:39:51 PM »
can be done something so it doesn`t  load whole pdf at once and every time you refresh page ?
is a really big problem with files larger than 6 mb and especially with 30 mb files, IE loads it but a grey window is showing instead of the document, you have to refresh to load it again to show it normally ......

Offline ke4obt

  • Jr. Member
  • **
  • Posts: 215
  • Gender: Male
Re: PDF Tag
« Reply #15 on: February 19, 2009, 01:25:39 PM »
Hey All,
could someone tell me how to use this bbcode please, sence I'm not real sure how to place the pdf file into the tags.
cut and paste or is it to be attached some how?

Thanks Lots,
TTYL Flip
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!

Yes I am really a BLIND user!
So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,365
  • Gender: Male
Re: PDF Tag
« Reply #16 on: February 19, 2009, 03:51:46 PM »
Hey All,
could someone tell me how to use this bbcode please, sence I'm not real sure how to place the pdf file into the tags.
cut and paste or is it to be attached some how?

Thanks Lots,
TTYL Flip


Code: [Select]
[pdf]url of your pdf[/pdf]
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 ke4obt

  • Jr. Member
  • **
  • Posts: 215
  • Gender: Male
Re: PDF Tag
« Reply #17 on: February 19, 2009, 04:18:45 PM »
Duncan,
thanks. My wife came and looked at the screenshot and then smacked me in the head. :)
My screen reader didn't read it for me since it was an image. So, had to use the wife's eyes - again.
Tried it out in a post and it worked perfectly!!

Thanks again.

TTYL,
Flip
Thanks Much

Flip - KE4OBT
     The Blind Ham
Helping other blind hams
get on the air!

Yes I am really a BLIND user!
So, if a mod doesn't install properly, and I can't get help from your part of the forum,
I will come begging for YOUR help since you wrote it and know how it works
um, uh, well,
At least I would really, really hope you do!
HEE-HEE-HEE

Offline Rockas

  • Semi-Newbie
  • *
  • Posts: 19
Re: PDF Tag
« Reply #18 on: February 25, 2009, 06:01:12 AM »
resize on 2.0RC1... is it possible?

thank you :-)

Offline Kermit

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,365
  • Gender: Male
Re: PDF Tag
« Reply #19 on: February 25, 2009, 07:14:55 AM »
resize on 2.0RC1... is it possible?

thank you :-)

I've already tried that with resizing,but unfortunately with no luck
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