Need a windows user to test a page

Maddox

Habitué
Joined
Jul 29, 2016
Messages
1,243
If it's any help to you this is what I see on a Windows 10 Pro machine:

upload_2018-5-20_19-56-6.png

There's nothing else on the page other than the usual sign up details at the bottom of the page.

;)
 

fixer

I'm In My Prime
Joined
Jan 28, 2010
Messages
2,054
i dont know which route to take here, i want a database of embeded pdf files

as it is now i dont like the functionality, wont say how i got it to work because im not happy about it

kept messing with java embed scripts of pdf and was unsuccessful
 
Joined
Jan 6, 2004
Messages
5,948
It works on my Windows 7 machine in a chromium fork and in a firefox fork.


kept messing with java embed scripts of pdf and was unsuccessful

Not surprised you're having trouble with this honestly. Are you opposed to converting the documents to another format? I'd convert them over to HTML or one of the open book formats. PDF is a bit clunky to deal with. Alternatively just offer PDF downloads and make the user use his own reader. Also, you could look into using iframes instead of javascript. As much as I hate google you could piggy-back off their PDF service and embed that with an iframe. Just make sure to keep backups incase they decide to get rid of gun related information like they have with youtube.

What javascript viewers are you trying to use/modify?
 

fixer

I'm In My Prime
Joined
Jan 28, 2010
Messages
2,054
i ran across the mozilla one , it seems to be a better option because it supports safari

configuiring the ips editor button tool to use the mozilla script to embed pdf’s is not easy for me

i have a lot of the pdf files already on the server as i had them embeded with xenforo
 
Joined
Jan 6, 2004
Messages
5,948
I'm not an IPS expert so I can't help you much without looking but it shouldn't be too hard to modify it and make it work. The one from Mozilla is supposed to work in all major browsers so it's probably the way to go if you absolutely need this feature.
 

fixer

I'm In My Prime
Joined
Jan 28, 2010
Messages
2,054
what im finding is im having to enable html to get them to work
 
Joined
Jan 6, 2004
Messages
5,948
what im finding is im having to enable html to get them to work

You shouldn't have to do this. It implies you are allowing them inside of posts/user created content. The solution is you'll probably have to make a new bbcode for embedding pdfs.
 

fixer

I'm In My Prime
Joined
Jan 28, 2010
Messages
2,054
How'd you end up implementing it?

https://www.mymilitia.com/intel/

Im using the mozilla PDF.js , Uploading the PDF files manually via FTP, Built a custom (admin only) PDF Button on the editor ...

Screen Shot 2018-05-20 at 8.57.04 PM.png

Then all i have to do is click the button and put the file name, the pdf's embed in a SEO friendly way and should show on search engines, nothing can change later and screw it up.
 
Last edited:

fixer

I'm In My Prime
Joined
Jan 28, 2010
Messages
2,054
Download the stable version - https://github.com/mozilla/pdf.js/releases/download/v1.9.426/pdfjs-1.9.426-dist.zip

Upload via FTP

Place all your PDF files in the following directory... /pdfjs/web/

Create a custom editor button , Block type , Turn on use option , permission set to admin only

HTML...

Code:
<p>
   <iframe height="800px" scrolling="auto" src="https://www.YOURSITE.com/pdfjs/web/viewer.html?file={option}" width="100%">PDF File Embeded</iframe>
</p>

edit YOURSITE

you will then be able to click the PDF icon in your editor and paste just the file name ie... yourpdffile.pdf

and it will embed , works on all browsers and platforms even mobile , and is SEO friendly and will index in search engines as it embeds as text a bot can read unlike 3rd party embeds
 
Top