The path .../lins/web/userfiles... seems to be wrong to me.PDF.js v1.4.20 (build: b15f335)
Message: Missing PDF "http://zusnobela.sk/plugins/pdfviewer/l ... myfile.pdf>".
[NEW PLUGIN] Pdf Viewer
Moderator: Tata
Re: [NEW PLUGIN] Pdf Viewer
This modo returned:
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: [NEW PLUGIN] Pdf Viewer
Oops. That should have been:Tata wrote:This modo returned:The path .../lins/web/userfiles... seems to be wrong to me.PDF.js v1.4.20 (build: b15f335)
Message: Missing PDF "http://zusnobela.sk/plugins/pdfviewer/l ... myfile.pdf>".
Code: Select all
$o.='<iframe id="'.$id.'" src ="'.$pth['folder']['plugins'].'pdfviewer/libs/web/viewer.html?file='.$GLOBALS['sn'].$GLOBALS['pth']['folder']['base'].'userfiles/downloads/'.($srctmp).'#zoom='.$plugin_cf['pdfviewer']['zoom'].'&pagemode='.$plugin_cf['pdfviewer']['pagemode'].'&page='.$plugin_cf['pdfviewer']['page'].'" allowfullscreen webkitallowfullscreen></iframe>';
Code: Select all
$o.='<iframe id="'.$id.'" src ="'.$pth['folder']['plugins'].'pdfviewer/libs/web/viewer.html?file='.CMSIMPLE_URL.'userfiles/downloads/'.($srctmp).'#zoom='.$plugin_cf['pdfviewer']['zoom'].'&pagemode='.$plugin_cf['pdfviewer']['pagemode'].'&page='.$plugin_cf['pdfviewer']['page'].'" allowfullscreen webkitallowfullscreen></iframe>';
Christoph M. Becker – Plugins for CMSimple_XH
Re: [NEW PLUGIN] Pdf Viewer
Can you see the plugin working on iPADs, tablets or iPhones? It worked before, now I see it's not.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: [NEW PLUGIN] Pdf Viewer
Android Tablet 1024x768Tata wrote:Can you see the plugin working on iPADs, tablets or iPhones? It worked before, now I see it's not.
It works fine.
Looks good.
Re: [NEW PLUGIN] Pdf Viewer
Same here, with either variant of my latest post.frase wrote:Android Tablet 1024x768Tata wrote:Can you see the plugin working on iPADs, tablets or iPhones? It worked before, now I see it's not.
It works fine.
Looks good.
Christoph M. Becker – Plugins for CMSimple_XH
Re: [NEW PLUGIN] Pdf Viewer
Hm, it works with me only on computer. On iPAD and iPhone it doesn't work.
I actually have the same page installed on my host in subdomain http://nobela.cmsimple.sk and at original host http://zusnobela.sk.
The UO files on first URL return file origin does not match viewer's.
On the other URL files retun Missing PDF...
I actually have the same page installed on my host in subdomain http://nobela.cmsimple.sk and at original host http://zusnobela.sk.
The UO files on first URL return file origin does not match viewer's.
On the other URL files retun Missing PDF...
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: [NEW PLUGIN] Pdf Viewer
Look at the Christophs posts.
The url is not correct.
<iframe id="pdf_container" src="./plugins/pdfviewer/libs/web/viewer.html?file=/./userfiles/downloads
Is Firefox tolerant ???
But Chrome on Android - it works!
The url is not correct.
<iframe id="pdf_container" src="./plugins/pdfviewer/libs/web/viewer.html?file=/./userfiles/downloads
Is Firefox tolerant ???
But Chrome on Android - it works!
Re: [NEW PLUGIN] Pdf Viewer
Both iPAD and iPhone run the newest iOS and I have FF and Safary installed. Using both of Christoph's codes make no changes there. On iMAC run both codes well. Now I installed Chrom and it doesn't work with it. The messages are the same like on FF or Safari.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.
Re: [NEW PLUGIN] Pdf Viewer
Und noch etwas:
Du hast in "plugins/pdfviewer/css/stylesheet.css" stehen:
Es genügt:
Du hast in "plugins/pdfviewer/css/stylesheet.css" stehen:
Code: Select all
*[id^='pdf_container'],#pdf_container_1,#pdf_container_2,#pdf_container_3,#pdf_container_4,#pdf_container_5,#pdf_container_6,#pdf_container_7,#pdf_container_1#pdf_container_9,#pdf_container_10{
width:100% !important;
height: 782px !important;
}
Code: Select all
*[id^='pdf_container'] {
width:100% !important;
height: 782px !important;
}