WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] Doesn't work alongside [Force User Login] plugin (5 posts)

  1. callumw
    Member
    Posted 2 years ago #

    Hi
    I'm trying to get users to login with the [Force User Login] plugin, which by all accounts is a redirect to wp-login.php

    I edited the (FUL) plugin so that instead of it being:
    header( 'Location: /wp-login.php?redirect_to=' . $redirect_to );
    it says
    header( 'Location: /login/?redirect_to=' . $redirect_to );

    This fails to find the login.
    If I disable the FUL plugin and try the URL above then it works.
    e.g. http://mysite.com/login/?redirect_to=/postname

    This also works: http://mysite.com/wp-login.php?redirect_to=/postname

    Is there a way of having this plugin compatable with Forced User Login - or integrating a forced login int othis plugin so it's all contained and neat?

    Ta
    CW

    http://wordpress.org/extend/plugins/theme-my-login/

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    What does FUL actually do?

  3. callumw
    Member
    Posted 2 years ago #

    Forces the user to login on entering the site.
    It jumps to the wp-login.php, but the theme my login tries to redirect it to /login

    I think it gets caught in an endless loop.

    I actually figured a better solution in the end.
    I used the [Theme My Login] alongside [Private! WordPress Access Control Manager] where it can selectively choose which pages/posts to hide unless you're registered.

    Works together just fine :o)

    http://wordpress.org/extend/plugins/private-wordpress-access-control-manager/

  4. cyansnow
    Member
    Posted 2 years ago #

    Hi Jeff

    I am trying to forse users to login before seeing content also ............. will TML do this without using another plugin along side it ........... as this would be the best solution for myself

    thanks Rob

  5. Jeff Farthing
    Member
    Plugin Author

    Posted 2 years ago #

    See this post.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic