Page 2 of 2

Re: BB code for PDF Attachment

Posted: Mon May 13, 2019 2:24 pm
by 3Di
When I get some spare time I will code something for attachments.

Re: BB code for PDF Attachment

Posted: Mon May 13, 2019 2:31 pm
by 3Di
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>

Re: BB code for PDF Attachment

Posted: Mon May 13, 2019 5:06 pm
by Tastenplayer
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.

Re: BB code for PDF Attachment

Posted: Mon May 13, 2019 5:10 pm
by 3Di
With the DIV there is no problem.

Re: BB code for PDF Attachment

Posted: Mon May 13, 2019 6:19 pm
by Tastenplayer
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).

Re: BB code for PDF Attachment

Posted: Mon May 13, 2019 8:20 pm
by 3Di
I don't have such issues.. dunno. :)

Re: BB code for PDF Attachment

Posted: Wed May 29, 2019 7:38 am
by Ilikeit
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 :)

Re: BB code for PDF Attachment

Posted: Sat Jun 01, 2019 5:49 am
by 3Di
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