WordPress.org

Forums

Download Monitor
How to Redirect? (5 posts)

  1. endlessstudio
    Member
    Posted 2 years ago #

    How can I redirect a page after the download?
    Is there a function?
    Thanks

    http://wordpress.org/extend/plugins/download-monitor/

  2. truthseeker83
    Member
    Posted 2 years ago #

    im also having the same problem
    any solution
    Thanks

  3. endlessstudio
    Member
    Posted 2 years ago #

    I couldn't figure out the direct way, so I used a different method.
    1. I pass the value to the redirect page
    Download

    2. Then, get the value and used iframe to download the file
    $file_name = $_GET['file_name'];
    echo "<iframe src=\"Yourwebsite.com/wp-content/plugins/download-monitor/download.php?id=$file_name\" height='0' width='0' style='display:none'></iframe>

    My site: http://endlessicons.com click any of the icon and click 'Download' button and see. It will redirect to the page then started to download it.

  4. truthseeker83
    Member
    Posted 2 years ago #

    sorry its not working for me

    file name is appearing in the url

    but not download, where i should place the code

  5. endlessstudio
    Member
    Posted 2 years ago #

    Try it with 'id' instead of 'file_name'

    Basically it's sending the value to redirect page and inside of the redirect page, there is an iframe that loads the download function.

    Let me know.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic

Tags