Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #174003

    I am trying to set up a bbpress community on one of my websites and I would like the log in feature to display like yours does on this support forum. Right now, after the user logs-in it only gives them the option to log out. I thought I saw a plug-in before that did this but I can not remember the name of it.

    Is there a simple way to change it so that it shows the account tab like it is on this website?

    #174266

    Hello Raymmar!

    Unfortunately no I don’t believe so. It looks like Kriesi custom coded one in just for his site which he isn’t releasing any customization from for now.

    You may be able to find a plugin that has an “if user is logged in show this content, if not show the login form” type setup but I don’t know of any off hand.

    Best regards,
    Devin

    #174463

    Hey, thanks for the reply. I think this might work to do what I am looking for but I am not sure to which file it would need to be installed. There is a wp-login.php file that I am looking at and I feel like this would be the right place but I am not a php guy so I have no idea where I would put it. Do you think this would work and if so any idea where to drop it so that it does not screw with anything else inside the theme?

    <?php global $userdata;
          get_currentuserinfo();
    if (!is_user_logged_in())
    {
    echo "Hello there, Guest..."; ?>
    <form action="wp-login.php" method="post">
    Username: <input type="text" name="log" id="user_login" class="input" />
    Password:<input type="password" name="pwd" id="user_pass" class="input" />
    <input type="hidden" name="testcookie" value="1" />
    <input name="rememberme" type="checkbox" id="rememberme" value="forever" /> Remember Me
    <input type="submit" name="wp-submit" id="wp-submit" value="Log In" />
    </form>
    <?php } else {
    echo 'Welcome back' . $userdata->user_login . 'Logout.';
    } ?>
    #174954

    Hey!

    Maybe you can add that on sidebar.php, find this code:

    echo "<div class='sidebar sidebar_".$sidebar." ".avia_layout_class( 'sidebar', false )." units'>";
    
    	echo "<div class='inner_sidebar extralight-border'>";

    Below add the code:

    
    echo "<div id='bbpress-login'>";
    	
    	global $userdata;
          get_currentuserinfo();
    if (!is_user_logged_in())
    {
    echo "Hello there, Guest..."; ?>
    <form action="wp-login.php" method="post">
    Username: <input type="text" name="log" id="user_login" class="input" />
    Password:<input type="password" name="pwd" id="user_pass" class="input" />
    <input type="hidden" name="testcookie" value="1" />
    <input name="rememberme" type="checkbox" id="rememberme" value="forever" /> Remember Me
    <input type="submit" name="wp-submit" id="wp-submit" value="Log In" />
    </form>
    <?php } else {
    echo 'Welcome back' . $userdata->user_login . 'Logout.';
    }
    
    echo "</div>";
    

    Best regards,
    Ismael

    #184443

    Hey,

    any chance to ask Kriesi how he has do this? It looks very great…!!
    The default is really ugly..

    Or another question: Is it possible to get all the changes for bbpress that here are done? I really want to pay for it, because your forum looks really very nice! It´s also very great to configure the profile and all the other options..

    Best regards

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

The topic ‘BBPress Sidebar – Logged in appearance settings’ is closed to new replies.