Skip to:
Content
Pages
Categories
Search
Top
Bottom

Understanding the bbpress-bp setup

  • @bpisimone

    Participant

    Ok I need help understanding how exactly bbpress works inside of buddypress. I’ve basically been trying too long and would be more than happy if someone could help out here.

    All of these snippets have been working perfectly in bbpress

    1.

    <?php if ( (current_time('timestamp') - 24*60*60) < strtotime($topic->topic_start_time) ) : ?>

    Outputs nothing. What do I need to change?

    2.

    <?php echo date("j", strtotime($topic->topic_time)); ?>

    Time wrong. What do I need to change?

    3.

    <?php $bb_post = bb_get_first_post(); bb_post_template(); ?><!--Calls only the first post -->

    <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?><?php if (get_post_position() == 1) { continue; } ?>

    The above setup made it possible to call only the first post (so I have it on the subsequent page also). And then call post 2-rest separately. Absolutely need to get it back!

    4. Whenever someone wants to reply or start a new topic that is not logged in, in bbpress there is a message You must log in to post. Defined in function post_form I think.

    } elseif ( !bb_is_user_logged_in() ) {
    echo '<p>';
    printf(
    __('You must <a href="%s">log in</a> to post.'),
    esc_attr( bb_get_uri( 'bb-login.php', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_USER_FORMS ) )
    );
    echo '</p>';
    }

    THANKS A BUNCH!

Viewing 1 replies (of 1 total)
  • @bpisimone

    Participant

    Ok this post deserves a little *Bump*. I’m seriously trying to solve these problems and haven’t got much else to work on before going live.

    Thanks to everyone who can help me out here, mostly on 1,2 and 4!

Viewing 1 replies (of 1 total)
  • The topic ‘Understanding the bbpress-bp setup’ is closed to new replies.
Skip to toolbar