issues and questions with my bbpress install login / logout – please help!!
-
I am using the bbpress integration plugin to sync my wp and bbpress site up for users to login/logout.
I am having some issues getting my front-page login to work the way that i want it to. Currently (complete code and file setup at bottom) when i try to login initially i have the fields:
Community Login or [link – Register] – [link -Lost Password?]
[field – username] [field – password] [btn – login]
when i input the username and password and hit login it shoots me to the login page where i need to do this again in doer to login.
currently i have this code attributed to my login button:
<input type="image" src="<?php bb_option('uri'); ?>my-templates/discussion_center/images/top_login_btn.png" width="67" height="23" alt="Submit Form" value="<?php _e('Login');?>" />
i am guessing thats where the issue lies with that. i would like it to NOT go to another page and to just log in right there.
Next, after i am logged in the set up is like this:
Welcome back, username!
[link – View your profile] [link – logout]
the logout link seems to work, logging me out of my bbpress install, but it doesnt log me out of my wp install… any fix for that?
i added the cookies line to the wp-config.php for the plugin, am i supposed to add it to the bb-config.php too?
Thanks for the help in advance!!!
<b>In my header.php ::</b>
<?php login_form(); ?>
<?php if ( is_bb_profile() ) profile_menu(); ?><b>In my logged-in.php ::</b>
<div id="loginreg" class="clear">
<span id="welclogout"><?php printf(__('Welcome back, %1$s!'), bb_get_current_user_info( 'name' ));?>
<p>
Use the links below to manage your account.
<?php echo bb_get_profile_link('View your profile'); ?>
<?php bb_admin_link( 'before= | ' );?>
<?php bb_logout_link(); ?>
</p>
</span>
</div><b>in my login-form.php ::</b>
<div id="loginreg">
<p>Community Login or <?php printf(__('Register'), bb_get_option('uri').'register.php')?> - Lost Password?</p>
<form method="post" name="loginform" id="loginform" action="<?php bb_option('uri'); ?>bb-login.php">
<div class="left">
Username
<input type="text" name="log" id="user_login" class="text input" value="<?php if (!is_bool($user_login)) echo $user_login;?>" size="20" tabindex="10" />
</div>
<div class="center">
Password
<input type="password" name="pwd" id="user_pass" class="text input" value="" size="20" tabindex="20" />
</div>
<div class="right">
<input name="remember" type="hidden" id="remember" value="forever" tabindex="90" />
<input name="re" type="hidden" value="<?php echo $re; ?>" />
<?php wp_referer_field(); ?>
<input type="image" src="<?php bb_option('uri'); ?>my-templates/discussion_center/images/top_login_btn.png" width="67" height="23" alt="Submit Form" value="<?php _e('Login');?>" />
</div>
</form>
</div>
- You must be logged in to reply to this topic.