Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mannydablogger

    (@mannydablogger)

    the admin link is there when ANY user signs on…that is the problem…i don’t want it to be there when they log on…

    overall i have many updates to do on the registration process…you really have to know php stuff to make this look how you want…

    yeah it works pretty good…have fun with it.

    hi guys…i pasted the code to create a text box to log in from the side bar, and it works well except for two things:

    try logging on to my site:
    username: test
    pasword: test
    https://www.liverpuncher.com

    1. when you log in for the first time, it does not show the user name, and seems like you are not logged in, only after you navigate to another page does it show the log in name….

    2. How do i get rid of the bullet point “Login” on top of the log in box?

    here is the code i pasted in the side bar, it works great except for the two issues i mentioned…

    <li id="login">
    <?php
    global $user_ID, $user_identity;
    get_currentuserinfo();
    if (!$user_ID):
    ?>
    <h2><?php _e('Login'); ?></h2>
    <form name="loginform" id="loginform" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post">
    <div><label><?php _e('Login') ?>:<input type="text" name="log" id="log" value="" size="20" tabindex="7" /></label>
    <label><?php _e('Password') ?>: <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="8" /></label>
    <input type="hidden" name="rememberme" value="forever" />
    <input type="submit" name="submit" value="<?php _e('Login'); ?> &raquo;" tabindex="9" />
    <?php wp_register('', ''); ?>
    <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/></div>
    </form>
    <?php
    else:
    ?>
    <h2><?php echo $user_identity; ?></h2>

    <ul>
    <?php wp_register(); ?>

    <li><a>"><?php _e('Logout'); ?></a></li>
    </ul>
    <?php
    endif;
    ?>

    this is great info guys, i’m going to update my page as well.

    But what if you want to have the text box for their username and password to be right on the front page of your blog instead of being redirected to a log in page?

    any tips would be great! here is my site, its still a work in progress ?? https://www.liverpuncher.com

    so then how do you create another “blog” page?

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