Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2015-12-22 21:21:18

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: PDF to view in browser, not download

Thank you, @jakob! Is there any method to override this without editing publish.php, like a plugin or something?

I have barely enough wits to create the most basic plugin, but does output_file_download() have any kind of wiggle room if someone with PHP chops wanted to try?

Edit: I see that there the method includes callback_event('file_download'), and the Core callback list explicitly says it can intercept a file download. So I guess my question is, if such a plugin does not exist, is there dummy plugin code somewhere I can copy that shows how to use a callback from a plugin to do something like this?

Thanks again!

Last edited by johnstephens (2015-12-22 21:27:31)

Offline

#26 2016-02-02 18:11:47

johnstephens
Plugin Author
From: Woodbridge, VA
Registered: 2008-06-01
Posts: 999
Website

Re: PDF to view in browser, not download

MisterX wrote #297698:

Have you installed flash player?

I test the site in one browser that includes Flash, but nothing on the site depends on Flash. I’m very cautious about Flash’s security vulnerabilities. Why?

Offline

Board footer

Powered by FluxBB