Coach Afrane (@coach-afrane)

Forum Replies Created

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

  • Coach Afrane
    Participant

    @coach-afrane

    Thanks.

    Please one more thing.
    I want to place a login/register form in header which drops the profile on hover as in codex.bbpress.org

    I used

    <?php if ( $user_ID ) : ?>
    <?php wp_head();
    global $user_identity;
    ?>
    
    <p><b>Howdy</b>, <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>.  [<a href="<?php echo wp_logout_url(); ?>" title="Log out of this account">Log Out</a>]</p>
    
    <?php else : ?>
    
    <form name="loginform" id="loginform" action="<?php echo get_option('siteurl'); ?>/wp-login.php" method="post">
    
    	Username <input value="Username" class="input" type="text" size="20" tabindex="10" name="log" id="user_login" onfocus="if (this.value == 'Username') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Username';}" /> <input name="rememberme" id="rememberme" value="forever" tabindex="90" type="checkbox"> Remember Me? <br />
            Password <input value="Password" class="input" type="password" size="20" tabindex="20" name="pwd" id="user_pass" onfocus="if (this.value == 'Password') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Password';}" />
    		<input name="wp-submit" id="wp-submit" value="Log In" tabindex="100" type="submit">
    		<input name="redirect_to" value="<?php echo get_option('siteurl'); ?>/wp-admin/" type="hidden">
    		<input name="testcookie" value="1" type="hidden">
    
    </form>
    
    <?php endif; ?>

    …but on log out the username and password boxes stretchesd fullwith.

    Please help.
    Thanks


    Coach Afrane
    Participant

    @coach-afrane

    I have bbpress installed for forums and i have set it to “Anyone can register”. I would want to allow anyone who is registered to be able to start a topic in the forum but it seems i (admin) am the only one who is allowed to.

    Please help.
    Thanks

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