Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Forum: Plugins
    In reply to: Custom WP Login Widget
    Thread Starter brandonlassiter

    (@brandonlassiter)

    k12,

    Yes you can, however, it will require you to edit the code. Open up clw-form.php in notepad or some other word processing program and change the line that says:

    <input type=”hidden” name=”redirect_to” value=”<?php echo $_SERVER[‘REQUEST_URI’]; ?>” />

    and change what is inside value to be whatever url you want to redirect the user to

    Plugin Author brandonlassiter

    (@brandonlassiter)

    Since I have not heard back and I believe the answer provided is correct I am closing this topic. If you have any further questions feel free to contact me.

    Forum: Plugins
    In reply to: Custom WP Login Widget
    Thread Starter brandonlassiter

    (@brandonlassiter)

    I am not quite sure I understand. Are you trying to make it so that people cannot see your page/post unless they are logged in? If so, that is not what this plugin does. It is designed to place the login form somewhere on your site instead of using the default wordpress login.

    You can, however, insert some coding into your template files to get the desired result.

    <?php
    if ( is_user_logged_in() ) {
    ?>
    Whatever content you want only logged in users to see
    <?php
    } else {
    ?>
    What you want them to see if they are not logged in
    <?php
    }
    ?>

    If you are not comfortable with PHP I wouldnt recommend trying to add this code because there is a very likely chance that you will break your site. A good plugin that can do that however is s2Member. It is not free though. Do you want your entire site to be hidden if the user is not logged in? If so I have a workaround code I can help you out with. Feel free to email me at [email protected]

    Plugin Author brandonlassiter

    (@brandonlassiter)

    I am not quite sure I understand. Are you trying to make it so that people cannot see your page/post unless they are logged in? If so, that is not what this plugin does. It is designed to place the login form somewhere on your site instead of using the default wordpress login.

    You can, however, insert some coding into your template files to get the desired result.

    <?php
    if ( is_user_logged_in() ) {
    ?>
    Whatever content you want only logged in users to see
    <?php
    } else {
    ?>
    What you want them to see if they are not logged in
    <?php
    }
    ?>

    If you are not comfortable with PHP I wouldnt recommend trying to add this code because there is a very likely chance that you will break your site. A good plugin that can do that however is s2Member. It is not free though. Do you want your entire site to be hidden if the user is not logged in? If so I have a workaround code I can help you out with. Feel free to email me at [email protected]

Viewing 4 replies - 1 through 4 (of 4 total)