Forums

[Plugin: Customize Your Community] Redirection does not work on CYC (1 post)

  1. randyhoyt
    Member
    Posted 7 months ago #

    I was testing out the redirection functionality of the WordPress login -- if you visit a page that requires logging in, WordPress will forward you to login page and then redirect you back to the original page -- in the CYC plugin, but it was not working. I have pages on the front of the site that require log in; logging always took my subscribers to the profile page.

    As it turns out, there's a LOT of code in CYC for determining what $redirect_to should be, but that variable gets left out of login form. I added the following line of code around 553 -- inside the `<p class="submit">' -- and it appears to be working fine:

    <input type="hidden" name="redirect_to" value="<?php echo $redirect_to; ?>" />

    http://wordpress.org/extend/plugins/customize-your-community/

Reply

You must log in to post.

About this Topic