News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

PDF Tag

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

Previous topic - Next topic

live627

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)


genieuk

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


weightman

Nice mod. I adjusted the width and height to make the embeds larger by increasing their values in subs.php.

genieuk

Quote from: weightman 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.

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

General_Naga

I really like this idea. Any plans for a SMF 2.0 version?

weightman

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

<embed type="application/pdf" src="$1" width="775" height="975" />

Kermit

Quote from: General_Naga on October 31, 2008, 12:04:11 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

edi67

CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

General_Naga

Great news - I look forward to it :)

Kermit

#9
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

edi67

Quote from: weightman on October 31, 2008, 12:12:21 PM
QuoteDo 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.

<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

Kermit

Quote from: edi67 on October 31, 2008, 03:59:51 PM
Quote from: weightman on October 31, 2008, 12:12:21 PM
QuoteDo 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.

<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

Nibogo

Modifications.spanish.php:

$txt['pdf'] = 'A&ntilde;adir PDF';

Modifications.spanish_latin.php:

$txt['pdf'] = 'A&ntilde;adir PDF';

Modifications.spanish-utf8.php:

$txt['pdf'] = 'A&ntilde;adir PDF';

Modifications.spanish_latin-utf8.php:
 
  $txt['pdf'] = 'A&ntilde;adir PDF';

Thanks for the mod

Mick.


mforum

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

ke4obt

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

Kermit

Quote from: ke4obt 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


[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

ke4obt

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

Rockas

resize on 2.0RC1... is it possible?

thank you :-)

Kermit

Quote from: Rockas on February 25, 2009, 06:01:12 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

Advertisement: