WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Download Manager
[resolved] Add ability to filter user authentication check (8 posts)

  1. Faison
    Member
    Posted 9 months ago #

    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/

  2. Shaon
    Member
    Plugin Author

    Posted 9 months ago #

    thanks, we will do that with next update.

  3. Faison
    Member
    Posted 8 months ago #

    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

  4. Faison
    Member
    Posted 5 months ago #

    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

  5. aranuir
    Member
    Posted 4 months ago #

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

  6. Faison
    Member
    Posted 3 months ago #

    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

  7. aranuir
    Member
    Posted 3 months ago #

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

    before

    after

  8. Shaon
    Member
    Plugin Author

    Posted 3 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.