WordPress.org

Support

Support » Plugins and Hacks » WordPress Download Manager » [Resolved] Add ability to filter user authentication check

[Resolved] Add ability to filter user authentication check

  • I’m working on a site that uses a third party authentication system. When a user authenticates with the third party, they are not logged into WordPress so any checks with the function is_user_logged_in() will fail. If you could add a filter to the logged in check, that would allow myself and others to determine if a person not logged into WordPress is allowed to download a protected file.

    I’ve already made this change on my copy and if you have a github repo for this plugin I can send you a pull request, otherwise how could I provide you the changes to integrate with your plugin?

    Thanks,
    Faison

    http://wordpress.org/plugins/download-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Shaon

    @codename065

    thanks, we will do that with next update.

    Thanks Shaon!

    And hate to bother you about one more thing, but it turns out the “Login Required” link is always using the default WordPress login page, but I need to specify a different login page.

    If you go to line 173 in download-manager.php, that’s where the login url is stored in the variable $url. If you could add a filter to the $url variable, that would help me a ton!

    Thanks,
    Faison

    Hi Shaon,

    I noticed that you haven’t added these filters yet. The update is very simple, I have code I can provide you, and it doesn’t break your plugin. Is there any way we can work together to get these filters in the plugin?

    Thanks,
    Faison

    Faison,
    I also need your changes. Can I have it? Even for a fee?
    Giovanni

    Hi Shaon,

    I forked your plugin and added my code to it on GitHub: https://github.com/Faison/wordpress-download-manager

    Hi Giovanni, see that link for the changes.

    Thanks,
    Faison

    Thanks for the reply… but
    I’ve installed the plugin and now (in WP 3.9) the editor bar is gone…

    before

    after

    Plugin Author Shaon

    @codename065

    WordPress Download Manager is moving to custom post type soon, where the feature is added and also editor is working fine, we are releasing v2.7 in wp.org very soon, until then you can get it from here http://www.wpdownloadmanager.com/download/wordpress-download-manager-v2-7-0/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Add ability to filter user authentication check’ is closed to new replies.
Skip to toolbar