BB code for PDF Attachment

Get help developing custom BBCodes or request one.
User avatar
3Di
Former Team Member
Posts: 13772
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
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
3Di
Former Team Member
Posts: 13772
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
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
Tastenplayer
Registered User
Posts: 262
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 & More β€’ Nautical Styles Ahoi & Ahoi junior β€’ BROWSERLING - Test your style live in all IE Versions
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. The best online Translator

User avatar
3Di
Former Team Member
Posts: 13772
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
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

User avatar
Tastenplayer
Registered User
Posts: 262
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 & More β€’ Nautical Styles Ahoi & Ahoi junior β€’ BROWSERLING - Test your style live in all IE Versions
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. The best online Translator

User avatar
3Di
Former Team Member
Posts: 13772
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
πŸ‘¨β€πŸ« | Take a tour to | 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: 13772
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
πŸ‘¨β€πŸ« | Take a tour to | The Studio | πŸ‘¨β€πŸ«

Post Reply

Return to β€œCustom BBCode Development and Requests”