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

  1. callumw
    Posted 5 years ago #

    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?



  2. Jeff Farthing
    Plugin Author

    Posted 5 years ago #

    What does FUL actually do?

  3. callumw
    Posted 5 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)


  4. cyansnow
    Posted 4 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
    Plugin Author

    Posted 4 years ago #

    See this post.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Theme My Login
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic