Download Monitor
Adding pdf view code (1 post)

  1. bibo_m16
    Posted 4 years ago #


    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 940x600 iFrame but it cannot open the file. Instead it says "Download file does not exist"

    Anything would be appreciated.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Download Monitor
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic