visor support function

in Download Manager Free

Viewing 4 posts - 1 through 4 (of 4 total)
Feb 4, 2015 at 7:05 pm
#25724
Member
vakotm
OP

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?

Feb 4, 2015 at 9:17 pm
#25742
Keymaster
Shahjada
Staff

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.

Feb 4, 2015 at 9:22 pm
#25743
Member
vakotm
OP

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 ..

Feb 7, 2015 at 1:14 am
#25809
Keymaster
Shahjada
Staff

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.