BB code for PDF Attachment

Get help developing custom BBCodes or request one.
User avatar
3Di
Former Team Member
Posts: 14381
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: BB code for PDF Attachment

Post by 3Di » Mon May 13, 2019 2:24 pm

When I get some spare time I will code something for attachments.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
3Di
Former Team Member
Posts: 14381
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: BB code for PDF Attachment

Post by 3Di » Mon May 13, 2019 2:31 pm

Tastenplayer wrote:
Mon May 13, 2019 2:07 pm
However, depending on the server, you may have to click Update several times to display the file.
Try wrapping it into a div

<div><iframe src="//docs.google.com/gview?url={RELATIVE_URL}&embedded=true" style="width:100%; height:500px;" frameborder="0"></iframe></div>
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
Tastenplayer
Registered User
Posts: 384
Joined: Thu Jul 03, 2014 9:20 pm
Location: Switzerland
Name: Jutta Koliofotis
Contact:

Re: BB code for PDF Attachment

Post by Tastenplayer » Mon May 13, 2019 5:06 pm

Could also be that there are problems, because I inserted 2 pdf files as a demo in the same posting.
I'll try it later with the div.
My phpBB Style Board & MoreFlowerPower 3.2.8 Screenshots & Download
Be the best version of yourself rather than a bad copy of someone else!
Excuse me for my English, but I learned the language by speaking to people and not at school.

User avatar
3Di
Former Team Member
Posts: 14381
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: BB code for PDF Attachment

Post by 3Di » Mon May 13, 2019 5:10 pm

With the DIV there is no problem.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
Tastenplayer
Registered User
Posts: 384
Joined: Thu Jul 03, 2014 9:20 pm
Location: Switzerland
Name: Jutta Koliofotis
Contact:

Re: BB code for PDF Attachment

Post by Tastenplayer » Mon May 13, 2019 6:19 pm

That's probably due to my server again :-). The pdf with http://xx loads immediately. However the pdf with https://xx loads only if I click on refresh again in the browser.
I didn't feel like moving again with everything. The last time I moved to this server it would never have worked without help. The settings and possibilities on this server are quite a bit strange. Recently I have been getting "time-out" again and again, which is caused by the fact that I want to display my subdomain with www., which according to the supporter I should not do, since www. is already a subdomain :lol: (displaying www. only works with .htaccess).
My phpBB Style Board & MoreFlowerPower 3.2.8 Screenshots & Download
Be the best version of yourself rather than a bad copy of someone else!
Excuse me for my English, but I learned the language by speaking to people and not at school.

User avatar
3Di
Former Team Member
Posts: 14381
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: BB code for PDF Attachment

Post by 3Di » Mon May 13, 2019 8:20 pm

I don't have such issues.. dunno. :)
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
Ilikeit
Registered User
Posts: 7
Joined: Wed May 29, 2019 7:35 am

Re: BB code for PDF Attachment

Post by Ilikeit » Wed May 29, 2019 7:38 am

Puchahawa wrote:
Wed May 23, 2018 5:21 pm
I've used this with good success. Basically same as above but minor change (URL vs relative URL). Height and width can be adjusted to your preference. Just need FULL URL of the pdf file down to .pdf. :)

BBCode usage

Code: Select all

[pdf]{URL}[/pdf]
HTML replacement

Code: Select all

<iframe src="{URL}" style="width:725px; height:800px;" frameborder="0"></iframe>
If this doesn't work for you, you may want to try this extension. It's one of Dmzx's that allows you to upload the file and gives you a direct link to it that you would put into the bbcode. I used that and it works well. Requires a minor edit to allow the pdf file. see 2nd and 3rd posts that topic.
Thank you! I've been looking for a solution that works :)

User avatar
3Di
Former Team Member
Posts: 14381
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: BB code for PDF Attachment

Post by 3Di » Sat Jun 01, 2019 5:49 am

3Di wrote:
Mon May 13, 2019 2:24 pm
When I get some spare time I will code something for attachments.
Done. :) :P

viewtopic.php?f=456&t=2513366
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
paulyii
Registered User
Posts: 171
Joined: Tue Jul 29, 2008 5:19 am
Contact:

Re: BB code for PDF Attachment

Post by paulyii » Thu Aug 22, 2019 2:30 am

upon adding the BBCode pdf.

it does works ..
but this show up ( Top part of Picture ) on click the Pop out on top right corner .. The bottom part of the image shows.
pdf-TOO-Big.jpg

User avatar
3Di
Former Team Member
Posts: 14381
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: BB code for PDF Attachment

Post by 3Di » Thu Aug 22, 2019 2:53 am

Use the support topic, above linked.

In any case, I can't do anything about that, your file is too large. ;) That's it by Google.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
paulyii
Registered User
Posts: 171
Joined: Tue Jul 29, 2008 5:19 am
Contact:

Re: BB code for PDF Attachment

Post by paulyii » Thu Aug 22, 2019 3:08 am

3Di wrote:
Thu Aug 22, 2019 2:53 am
Use the support topic, above linked.

In any case, I can't do anything about that, your file is too large. ;) That's it by Google.
:D
Thanks.

BTW, can the code be modified to if file exceed a quota size, it opened at a new tab ?
if i used the url link BBcode .. it opened up replaced my Forum post ... or any suggestion where to alter the url link BBcode ?

User avatar
3Di
Former Team Member
Posts: 14381
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: BB code for PDF Attachment

Post by 3Di » Thu Aug 22, 2019 3:10 am

My extension don't use bbcode. Uses attachments. :)
So we are talking about two different things.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
✒️ Black Friday 2019 @ The Studio ▪️◾️

User avatar
paulyii
Registered User
Posts: 171
Joined: Tue Jul 29, 2008 5:19 am
Contact:

Re: BB code for PDF Attachment

Post by paulyii » Thu Aug 22, 2019 4:03 am

3Di wrote:
Thu Aug 22, 2019 3:10 am
My extension don't use bbcode. Uses attachments. :)
So we are talking about two different things.
Thanks for your response.

I had by accident saw a BBCode that will solve my problem.
Grateful you lent the hand.

Post Reply

Return to “Custom BBCode Development and Requests”