Support » Plugin: Download Monitor » [Plugin: WordPress Download Monitor] Adding pdf view code

  • Hi,

    I’m hoping someone can help me. I’m trying to add a certain code at the end of a file url, but I’m getting “Download file does not exist”. The code is a thickbox like pdf viewer. Here is a working code from a plain link that i use on another plugin:

    <a href="'.$link.'?keepThis=true&TB_iframe=true&height=600&width=940">'.$itemName.'</a>

    It opens the file on an thickbox iFrame.

    Here is the code in the download monitor page-addon php that i’m trying to modify:

    $page .= '<p></a><a>id.'" format="{url}"]').'" class="download-button">'.$dbutton_text.'</a></p>';

    modified like this:

    $page .= '<p><a>id.'" format="{url}"]').'?keepThis=true&TB_iframe=true&height=600&width=940" class="thickbox">'.$dbutton_text.'</a></p>';

    When you click the download button(original) it downloads/opens the file. But when i click the modified download button, it gives me the 940×600 iFrame but it cannot open the file. Instead it says “Download file does not exist”

    Anything would be appreciated.

  • The topic ‘[Plugin: WordPress Download Monitor] Adding pdf view code’ is closed to new replies.