Search Results for 'code'
-
AuthorSearch Results
-
February 8, 2007 at 8:59 pm #54138
In reply to: Unique Style Sheet?
Trent Adams
MemberGlad to here! Maybe a few release templates for bbPress then

Trent
February 8, 2007 at 8:38 pm #54136In reply to: Unique Style Sheet?
Trent Adams
MemberIt seems goofy to be discussing WP on a bbPress forum, but this is important for theme integration between the 2. Here is my login form in my sidebar (well ex sidebar as I use wordpress.com now). I use a conditional to welcome the user or display the login form.
<li id="login">
<?php
global $user_ID, $user_identity;
get_currentuserinfo();
if (!$user_ID):
?>
<label for="s"><?php _e('Login:'); ?></label>
<ul>
<li>
<form name="loginform" id="loginform" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method="post">
<div><label><?php _e('Login') ?>:<br /><input type="text" name="log" id="log" value="" size="15" tabindex="7" /></label><br />
<label><?php _e('Password') ?>:<br /> <input type="password" name="pwd" id="pwd" value="" size="15" tabindex="8" /></label><br />
<input type="hidden" name="rememberme" value="forever" />
<input type="submit" name="submit" value="<?php _e('Login'); ?> »" tabindex="9" /><br />
<?php wp_register('', ''); ?>
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/></div>
</form></li>
<li><script type="text/javascript">slvBanner();</script></li></ul>
<?php
else:
?>
<label for="s">Welcome <?php echo $user_identity; ?>!</label>
<ul>
<?php wp_register(); ?>
<li><a href="<?php echo get_settings('siteurl') . '/wp-login.php?action=logout&redirect_to=' . $_SERVER['REQUEST_URI']; ?>"><?php _e('Logout'); ?></a></li>
</ul>
<?php
endif;
?>
</li>Trent
February 8, 2007 at 8:30 pm #54135In reply to: Unique Style Sheet?
macwise
MemberSo, maybe my problem is that I haven’t included ALL the code from wp-login in the sidebar…instead I’ve just included the code necessary to get them redirected to the wp-login.php to actually be logged in…Here’s what it looks like. Maybe you can make sense of it:
<!--BEGIN SIDEBAR-->
<?php
$user_login = '';
$user_pass = '';
$using_cookie = false;
if ( !isset( $_REQUEST['redirect_to'] ) )
$redirect_to = 'wp-admin/';
else
$redirect_to = $_REQUEST['redirect_to'];
if( $_POST ) {
$user_login = $_POST['log'];
$user_login = sanitize_user( $user_login );
$user_pass = $_POST['pwd'];
$rememberme = $_POST['rememberme'];
} else {
$cookie_login = wp_get_cookie_login();
if ( ! empty($cookie_login) ) {
$using_cookie = true;
$user_login = $cookie_login['login'];
$user_pass = $cookie_login['password'];
}
}
do_action('wp_authenticate', array(&$user_login, &$user_pass));
?>
<span class="sidenav_top"> </span>
<ul class="sidenav_body" style="">
<li><h2>Login:</h2></li>
<?php
global $userdata;
get_currentuserinfo();
global $user_identity;
if (!$userdata) {
?>
<li style="padding-left: 10px; overflow: hidden;">
<form name="loginform" id="loginform" action="/wp-login.php" method="post">
<p style="margin: 0px; height: 25px; width: 175px;">
<label style="font-size: 11px; text-align: right; width: 76px; display: block; float: left; clear: left;"><?php _e('Username:') ?> </label>
<input style="float: right;" type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1); ?>" size="13" tabindex="1" />
</p>
<p style="margin: 0px; height: 25px; width: 175px;">
<label style="font-size: 11px; text-align: right; width: 76px; display: block; float: left; clear: left;"><?php _e('Password:') ?> </label>
<input style="float: right;" type="password" name="pwd" id="pwd" value="" size="13" tabindex="2" />
</p>
<p style="margin: 0px; height: 22px; float: right; margin-right: 10px; clear: both;">
<label style="font-size: 12px;"><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="3" />
<?php _e('Remember me'); ?></label></p>
<p class="submit" style="height: 35px;">
<input style="float: right; clear: both; margin-right: 10px;" type="submit" name="submit" id="submit" value="<?php _e('Login'); ?> »" tabindex="4" />
<input type="hidden" name="redirect_to" value="index.php" />
</p>
</form>I am guessing the difference between how I have it set up and how you have it is that I am sending the user to wp-login whereas you are authenticating right there on that page. I tried to get the sidebar to do all the work, but I ran into errors I couldn’t fix on my own…do you have a suggestion for how I might handle the logins in the sidebar? Do you maybe have code I can look at to see how you’re doing it?
February 8, 2007 at 7:58 pm #54133In reply to: Unique Style Sheet?
macwise
MemberOnce again, I think this is done by default. WP has its theme and content. bbPress has its theme and content.
As usual..more details.
I am really trying to use elements from wp on the bb side, such as sidebar…so I’m calling
<?php get_sidebar(); ?>on pages like this one:
http://babyquestions101.com/forum/
However, I have so many questions as to how to handle the login box in sidebar…Should it:
– Go to BBPress login/register page always (wp or bb)
– Go to WP login/register page always
– Go to respective login/register pages depending on which side the click originated?
Then, depending on that configuration, redirect questions ensue.
I know this is probably a matter of preference, but I’m indifferent, and wondering what will overall be the best solution for the user. Any suggestions will be greatly appreciated.
– Login Redirects to last visited page
It seems to me that if you are integrated, both bbPress and WP use the wp_users table in the database so wherever you login will be redirected to the last visited page (as both programs do this now). It is easy to have th login in the header.php of your template in bbPress and just adding the login box to WP in sidebar also has login on every page.
I have already made a tweak to the redirect in wp-admin to go back to the homepage in wp. I did this because it was redirecting to the profile.php page when a user logged in, instead of to the last page they were visiting. Is that the default behavior, or did I miss something? I am on wp v.2.0.5, so maybe something has changed in version 2.1 which changes this behavior?
Ron
February 8, 2007 at 7:51 pm #54180In reply to: SHWEEEEET!!! 8,888.88888?
wpmaniac
MemberPatience my young padawan

Soon!
Soon, like today? Or soon like this month?
I’m putting together a new install today and might as well wait for the current version if it’s coming soon!
Thanks.
February 8, 2007 at 7:45 pm #54179In reply to: SHWEEEEET!!! 8,888.88888?
Null
MemberThink we have a fan
February 8, 2007 at 7:39 pm #54178In reply to: SHWEEEEET!!! 8,888.88888?
macwise
MemberIt’s better than Christmas…
But really, I have to say that even though I am much more familiar with phpbb, and even though it has a (currently) larger, more active community, and even though there are many more features, I chose to stick with bbpress to integrate with wordpress.
First of all, the integration process, though buggy now, will no doubt only get simpler and cleaner. I also expect to soon see the types of features that I need, and a shortage of the code that I can do without.
In fact, my decision may even have been in part due to the “code is poetry” which is written at the bottom of each page, but more importantly in the code. I’m excited to see the developments, and would even like to get to the point where I can lend a hand to the community like others are.
February 8, 2007 at 7:35 pm #54173In reply to: Forums closing at 11am PST
Michael Adams (mdawaffe)
MemberIt was a bug!
February 8, 2007 at 7:33 pm #54172In reply to: Forums closing at 11am PST
Trent Adams
MemberWhat did you do to get the extra grey box above the username and profile information in the past 2 minutes? I haven’t looked to close, but need to do that on the bbPress forums theme release. (Maybe email the one you are using instead)

Trent
February 8, 2007 at 7:29 pm #54171In reply to: Forums closing at 11am PST
Michael Adams (mdawaffe)
Member
All set, I think.
February 8, 2007 at 7:29 pm #54177In reply to: SHWEEEEET!!! 8,888.88888?
Michael Adams (mdawaffe)
MemberPatience my young padawan

Soon!
February 8, 2007 at 6:41 pm #54164In reply to: bbPress forums struck by bbPress bug!
Trent Adams
MemberUpcoming eh….

Trent
mozey
Memberwow wow, hold on!,
you posted -1 year ago. WOuld’nt that make you,,,, hold on!, double negative!. so yeahh your right!.
early!
February 8, 2007 at 4:01 pm #54162In reply to: Drupal Forum to bbPress
Trent Adams
MemberBrad and I will work on a write up for converting to bbPress from other programs. Sad part is, everything seeems to convert over to phpBB, so most of the writeup will be converters to phpBB and then the 2 phpBB => bbPress converters we have here

Trent
February 8, 2007 at 2:22 pm #54102In reply to: Plugin: Visual Support Forums for bbPress
so1o
Participantoh please feel free to.. try checking in the code. if you do not have access, may be you can add a patch file and i’ll check it in for you.
February 8, 2007 at 8:40 am #53011In reply to: Template: bbPress Forum Theme
Null
MemberI still run 0.74 I believe, I will check it when I have the time
February 8, 2007 at 4:14 am #1356Topic: Dumb question!
in forum Requests & Feedbackk8cpa
MemberHow come ya’ll don’t offer hosted forums?
I think yours looks 100% better and more than likely easier to config too.
just wonderin’
WordPress is awesome, BTW… could use a more themes… and customizeable Smilies, But other than that it rocks…
and you shant ever hear me complain… *hehe*-Chuck
February 8, 2007 at 3:47 am #53010In reply to: Template: bbPress Forum Theme
Trent Adams
MemberI changed this up a little bit and made it work for the up and coming 0.8 theme. It would be nice to have someone test it again on 0.75 as I don’t have an install anymore, but I think my directions should work. Download is in the first post of this thread or check out the entry on my blog or over at the complete template and plugin blog, Pro Forum
Trent
*EDIT*
Null I am using the original logo again.
February 7, 2007 at 9:14 pm #54146In reply to: 404 upon innstall
Trent Adams
MemberChange over to this as well:
$bb->akismet_key = false;Trent
February 7, 2007 at 9:02 pm #54145In reply to: 404 upon innstall
dozer1
MemberThanks, but removing the slash had no effect
February 7, 2007 at 8:25 pm #54143In reply to: 404 upon innstall
Trent Adams
MemberFirst off, take the slash off the domain part:
$bb->domain = 'http://aagymruss.net';That might get it going.
Trent
flaerpen
Membertwo tickets now!
February 7, 2007 at 7:48 pm #49893In reply to: loading wordpress with bbpress
Trent Adams
MemberI have never tried what you are doing (in terms of this type of integration), but maybe this article by So10 might be something that can help in the meantime? If not, disregard

Trent
February 7, 2007 at 5:47 pm #54093In reply to: Changing what memberlist plugin displays.
ardentfrost
MemberJust ask if you have anymore questions. Feel free to post up code that isn’t working also
There are a few of us who can help you with it.
February 7, 2007 at 2:21 pm #54121In reply to: How do I delete a forum
Null
MemberI understand, nothing to be ashamed about, we all do it
-
AuthorSearch Results