JimmyVT (@jimmyvt)

Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • In reply to: Hiding Sub-Forums

    JimmyVT
    Participant

    @jimmyvt

    Hey hentdan! Thanks for your code snippet, that seemed to do the trick. I tweaked a couple things, namely <?php if (bb_forum_depth() <= 1 ) : ?>.

    Thank you very much!

    Here’s the complete code that’s working for me:

    <?php function bb_forum_depth( ) {
    global $bb_forums_loop;
    if ( !is_object($bb_forums_loop) || !is_a($bb_forums_loop, 'BB_Loop') )
    return false;

    return $bb_forums_loop->walker->depth;
    } ?>

    <?php while ( bb_forum() ) : ?>
    <?php if (bb_get_forum_is_category()) : ?>
    <tr<?php bb_forum_class('bb-category'); ?>>
    <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    </tr>
    <?php continue; endif; ?>
    <?php if (bb_forum_depth() <= 1 ) : ?> <!-- ******* -->
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endif; ?><!-- ******* -->
    <?php endwhile; ?>

    In reply to: Hiding Sub-Forums

    JimmyVT
    Participant

    @jimmyvt

    I already have, they’re very very old and so any links with code in them (via Postbin) is gone.

    In reply to: Hiding Sub-Forums

    JimmyVT
    Participant

    @jimmyvt

    Hrmm, that didn’t seem to do the trick for me. That code appears to have some stray “> as well.

    In reply to: bbPress Integration

    JimmyVT
    Participant

    @jimmyvt

    Alright, so good news, it’s all working. I actually ended up including bb-load into my sites login script, then calling the login function when a successful login happened on my site, this then set cookies for my site and bbPress. I also have it so that when a successful registration takes place on my site it also inserts the user into the bbPress users database with the proper information. I snagged the MD5 password plugin for bbPress, modified it to change passwords to sha1 (which is also what my site uses).

    Then I snagged the freshly baked cookies plugin for bbpress so that it also sets WordPress cookies. I got the external DB auth plugin for WordPress so that it uses the bbPress users table for authentication. I’ve killed registrations through WordPress and bbPress…so you can only register through my site. So now it works that a user registers and logs in through my site, and when they have a successful login they can use my site and WordPress and bbPress.

    Thanks for the help! :)

    In reply to: bbPress Integration

    JimmyVT
    Participant

    @jimmyvt

    Hi johnhiler,

    I’m actually integrating it into a website, so when users login there they’ll also be logged into bbPress so they can post there as well, I would think it’d be easy to get avatars work, but I really have no idea. I shall read the link you’ve posted!

    I’ll definitely share results too.

    Thanks!!

    In reply to: admin link not working

    JimmyVT
    Participant

    @jimmyvt

    This a very good thread, might even want to sticky it. I’ve tested this and it works and is needed if you really want true cookie sharing :)


    JimmyVT
    Participant

    @jimmyvt

    Just installed this and it works wonderfully. Great job!

    In reply to: Thank You!

    JimmyVT
    Participant

    @jimmyvt

    So I read on the mailing-list!

    PS. Gratz on the mod position, was going to reply to the post in the list but didn’t get around to it.

Viewing 8 replies - 1 through 8 (of 8 total)