macwise (@macwise)

Forum Replies Created

Viewing 9 replies - 51 through 59 (of 59 total)
  • In reply to: Download Away Folks!

    @macwise

    Member

    YESSSSSSSSS! Now that I have mastered *cough* the .75 no less than 37 minutes ago, now I can face a whole new set of features, challenges and triumphs!

    In reply to: Unique Style Sheet?

    @macwise

    Member

    “Maybe a few release templates for bbPress then “

    is that a question, (or rather a request)?

    In reply to: Unique Style Sheet?

    @macwise

    Member

    Perfect.. Thanks. I had a few problems with my form…simple stuff. I added the proper redirects in the form, and it worked beautifully.

    In reply to: Unique Style Sheet?

    @macwise

    Member

    So, 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">&nbsp;</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:') ?>&nbsp;</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:') ?>&nbsp;</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'); ?> &raquo;" 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?

    In reply to: Unique Style Sheet?

    @macwise

    Member

    Once 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

    @macwise

    Member

    It’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.

    In reply to: Unique Style Sheet?

    @macwise

    Member

    Thanks again. Hey, since I have you here, maybe I can ask you a quick one…I’m looking for a way to display content solely based on whether it’s a wordpress page or a bbpress page. For instance, I would like to have the login controls for the wordpress site be in the sidebar when wp is loaded, and the bbpress controls there when bb is loaded.

    I imagine it wouldn’t matter which way the user logged in, but there are a few things I would like which I haven’t been able to achieve due to the way I have to put absolute path for redirects, etc. Here are the features I need, maybe you can suggest a more elegant solution for them?:

    – Login Redirects to last visited page

    – Display selective content based on which side the user’s on (bb vs wp)

    – I seem to be having some issues with relative paths? (Actually, I think I may have just figured this out, and I may just be dumb)

    – Some other thing I’ll ask about in 7 minutes or less, I’m sure…

    I’m a beginner, but not a newb. (anymore). I feel I am getting a pretty good grasp, but I still get confused now and again. Thanks for any feedback you can give.

    In reply to: Unique Style Sheet?

    @macwise

    Member

    Really? Thanks, man. Which sites have you seen, just out of curiosity?

    @macwise

    Member

    I seem to be having a similar problem here, but when I add:

    require_once('/wp-content/themes/BabyQuestions101/header.php');

    in my bb config.php file, I get this error:

    Warning: main(/wp-content/themes/BabyQuestions101/header.php) [function.main]: failed to open stream: No such file or directory in path/to/babyquestions101.com/forum/config.php on line 3

    Fatal error: main() [function.require]: Failed opening required ‘/wp-content/themes/BabyQuestions101/header.php’ (include_path=’.:/usr/local/lib/php’) in /path/to/babyquestions101.com/forum/config.php on line 3

    (the require_once code is just below the php tag, like this:

    <?php

    require_once('/wp-content/themes/BabyQuestions101/header.php');

    // ** MySQL settings ** //

    define('BBDB_NAME', '////'); // The name of the database...

    I can’t seem to make this error go away.

    Also, is it true that with bbpress .75 I now DO NOT need to add the following line to my config.php file?:

    define('WP_BB',true);

    Any help here would be appreciated.

Viewing 9 replies - 51 through 59 (of 59 total)