visor support function

Viewing 4 posts - 1 through 4 (of 4 total)
#25724

vakotm
Member

such a good afternoon’m slightly modifying the system so instead you download the file can be viewed with some sort of visor ??

for example I have this advance:

BEGIN // // FUNCTION DISPLAY OF DOCUMENTS
$ package ['link_url'] = '<iframe width = "100%" height = "750px" src = "$ package"> </ iframe>';
// END FUNCTION DISPLAY OF DOCUMENTS //

// DISABLE FUNCTION START BUTTON DOWNLOAD //
   $ package ['link_label'] =! isset ($ package ['link_label']) || $ package ['link_label'] == ''? __ ("Download", "wpdmpro"): $ package ['link_label'];
// END FUNCTION BUTTON DISABLE DOWNLOAD //

I hope I can support as it is very interesting the system but do not want to download anything to the contrary I want to view them from a iframe or from any pdf viewer could?

#25742

Shahjada
Keymaster

Use filter hook wdm_before_fetch_template ( http://www.wpdownloadmanager.com/doc/filter-reference/wdm_before_fetch_template/ ) to modify variable rather then edit plugin code.

#25743

vakotm
Member

apology friend thank you very much for your answer but I really do not understand much what you mention me.

could you give me an example please ..

#25809

Shahjada
Keymaster

In your first reply, you edited core plugin code, but if you update plugin code will be erased, So if you use this hook wdm_before_fetch_template and place the code in somewhere else like themes functions.php, your changes will there even after you update plugin. The hook usage are here http://www.wpdownloadmanager.com/doc/filter-reference/wdm_before_fetch_template/

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘visor support function’ is closed to new replies.