Search Results for 'code'
-
Search Results
-
Topic: Taking a look at bbPress 0.9
Topic: something useful
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>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>
,
I can see strong arguments for both a wp plugin and a standalone forum.
Also, the reality is that both will exist in the future. The WP team is very passionate about “bbPress as plugin” and at the same time some existing large installations will see to the continuation of standalone version in some format.
So it might be good to frame this decision differently than plugin versus standalone… The real question is: to what extent do we want the plugin and standalone versions of the bbPress code base to evolve independently versus in a coordinated way?
Simplistically, the two options are:
1. coupled roadmap with coordinated releases or periodic rev/fwd integrations
2. independent roadmaps that diverge over time (the current plan of record)
Both options (coupled roadmap and independent roadmap) can work, but it would be better for this decision to be the result of thoughtful discussion.
To kick things off, here are some pros of a coupled roadmap:
– Higher quality for standalone (benefitting from the larger installed base of the plugin)
– Better performance for the plugin (benefitting from the big standalone sites)
– More tight WP integration is likely
And some pros of independent evolution of the plugin and standalone versions
– More flexibility in release roadmap for both versions
– No compromises for either version
Another more subtle effect to consider is the impact on dev resources invested in the code base. For example, I think that there are currently a lot of “silent” but significant resources being invested in standalone bbPress development. It would be great to pull more of that work into the official project, but I fear that opportunity will go away once the move is made to “bbPress as plugin”.

