• I just installed AJAX Login Widget++….

    How can I get the AJAX Login Widget++ into a matching sidebar frame?

    goto htp://thehandymantoolbox.com

    Thanks for considering my query.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Rick Patterson

    (@rick-patterson)

    Second attempt here…no takers yet!

    I just installed AJAX Login Widget++….

    How can I get the AJAX Login Widget++ into a matching sidebar frame?

    goto htp://thehandymantoolbox.com

    Thanks for considering my query.

    The only way I see to do it is edit ajax-login-widget/alw-template.php.

    At the very first <div>, change to <div><div class="main"><div class="middle"><div class="bottom">

    At the very last </div>, change to </div></div></div></div>.

    Thread Starter Rick Patterson

    (@rick-patterson)

    Thank you . I will see if this works for me. I appreciate your time.

    Thread Starter Rick Patterson

    (@rick-patterson)

    ok looks good, but does not work…LOL

    enter in login info and nothing happens….

    any suggestions?

    Can you post the code from alw-template.php?

    Thread Starter Rick Patterson

    (@rick-patterson)

    I deactivated it until a fix can be performed…

    Thank you for looking into this….

    ___________________________________________________________

    <?php
    /*
    This is a template for AJAX Login Widget++.

    Elements which always must exist:
    – The forms alw_registerForm, alw_loginForm and alw_lostPassword
    – The message spans alw_registerMessage, alw_loginMessage and alw_lostPasswordMessage

    Elements that must exist for the alw_show*()-functions to work:
    – alw_login, alw_loading_login
    – alw_register, alw_loading_register
    – alw_lostPassword, alw_loading_lost
    */
    ?>

    <div><div class=”main”><div class=”middle”><div class=”bottom”>

    <?php
    global $user_ID, $user_identity;
    get_currentuserinfo();
    if (!$user_ID) {
    /* This part is for when the user is NOT logged in. */
    ?>
    <div id=”alw_login” style=”padding-left:10px”>
    <form onsubmit=”return false;” id=”alw_loginForm” action=”#” method=”post”>
    <table>
    <tr>
    <td><?php _e(‘User’) ?>:</td>
    <td><input onkeypress=”return alw_loginOnEnter(event);” type=”text” name=”log” size=”20″ style=”height:18px;”/></td>
    </tr>
    <tr>
    <td><?php _e(‘Password’) ?>:</td>
    <td><input onkeypress=”return alw_loginOnEnter(event);” type=”password” name=”pwd” size=”20″ style=”height:18px;”/></td>
    </tr>
    </table>
    <p id=”alw_login_p”>
    <label><input onkeypress=”return alw_loginOnEnter(event);” type=”checkbox” name=”rememberme” value=”forever”/> <?php _e(“Remember me”); ?></label>
    | Register
    | Lost password?
    <input type=”button” name=”submit” value=”<?php _e(‘Log In’); ?> »” onclick=”alw_login();” style=”font-size:10px;height:24px;”/>
    <span id=”alw_loginMessage”></span>
    <span id=”alw_loading_login” style=”display:none; height:22px; width:22px; vertical-align:bottom”>
    <img src=”<?php bloginfo(‘wpurl’); ?>/wp-content/plugins/ajax-login-widget/alw_loading.gif” alt=”Loading”/>
    Logging in …
    </span>
    </p>
    </form>
    </div>

    <div id=”alw_register” style=”padding-left:10px; display:none”>
    <div>
    <form onsubmit=”return false;” id=”alw_registerForm” action=”#” method=”post”>
    <table>
    <tr>
    <td><?php _e(‘User’) ?>:</td>
    <td><input onkeypress=”return alw_registerOnEnter(event);” type=”text” name=”user_login” size=”20″ style=”height:18px;”/></td>
    </tr>
    <tr>
    <td><?php _e(‘E-mail’) ?>:</td>
    <td><input onkeypress=”return alw_registerOnEnter(event);” type=”text” name=”user_email” size=”20″ style=”height:18px;”/></td>
    </tr>
    </table>
    <p>
    <span id=”alw_registerMessage”>A password will be mailed to you.
    </span>
    Log In
    | Lost password?
    <input type=”button” name=”submit” value=”<?php _e(‘Register’); ?> »” onclick=”alw_register();” style=”font-size:10px;height:22px;”/>
    <span id=”alw_loading_register” style=”display:none; height:22px; width:22px; vertical-align:bottom”>
    <img src=”<?php bloginfo(‘wpurl’); ?>/wp-content/plugins/ajax-login-widget/alw_loading.gif” alt=”Loading”/>
    Registering …
    </span>
    </p>
    </form>
    </div>
    </div>

    <div id=”alw_lostPassword” style=”padding-left:10px; display:none”>
    <div>
    <form onsubmit=”return false;” id=”alw_lostPasswordForm” action=”#” method=”post”>
    <table>
    <tr>
    <td><?php _e(‘User’) ?>:</td>
    <td><input onkeypress=”return alw_retrievePasswordOnEnter(event);” type=”text” name=”user_login” size=”20″ style=”height:18px;”/></td>
    </tr>
    <tr>
    <td><?php _e(‘E-mail’) ?>:</td>
    <td><input onkeypress=”return alw_retrievePasswordOnEnter(event);” type=”text” name=”user_email” size=”20″ style=”height:18px;”/></td>
    </tr>
    </table>
    <p>
    <span id=”alw_lostPasswordMessage”>A message will be sent to your e-mail address.
    </span>
    Log In
    | Register
    <input type=”button” name=”submit” value=”<?php _e(‘Retrieve’); ?> »” onclick=”alw_retrievePassword();” style=”font-size:10px;height:22px;”/>
    <span id=”alw_loading_lost” style=”display:none; height:22px; width:22px; vertical-align:bottom”>
    <img src=”<?php bloginfo(‘wpurl’); ?>/wp-content/plugins/ajax-login-widget/alw_loading.gif” alt=”Loading”/>
    Looking up your credentials …
    </span>
    </p>
    </form>
    </div>
    </div>

    <?php
    } else {
    /* This part is for when the user IS logged in. */
    ?>

    <div>
    <span class=”ajax_login_widget”>Logged in as <?php echo $user_identity; ?></span>
    (“>log out)
    <?php
    if ( current_user_can(‘manage_options’) ) {
    echo ‘(‘ . __(‘admin’) . ‘)’;
    } else {
    echo ‘(‘ . __(‘profile’) . ‘)’;
    }
    ?>
    </div>

    <?php
    }
    ?>

    </div></div></div></div>

    OK – couple of things. First, my version of alw_template.php is different than yours. Are you using version 1.01?

    Second, I missed a line where the extra divs needed to be added, about 3/4 down in the file. See below:

    <?php
    } else {
    /* This part is for when the user IS logged in. */
    ?>
    
    <div><div class="main"><div class="middle"><div class="bottom">
    <span class="ajax_login_widget">Logged in as <?php echo $user_identity; ?></span>
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘AJAX Login Widget’ is closed to new replies.