Ohna (@ohna)

Forum Replies Created

Viewing 16 replies - 1 through 16 (of 16 total)
  • Curiously if I write the code in “functions.php” that break my login/logout/edit profile page and display a blank page. I have moved the code in “my-plugins” and no issue now.

    Thank you for your information and your patience _ck_, I will try to solve my last problem by my self.

    Edit: solved with :

    foreach ($results as $result){$list.=" ".bb_get_avatar($result->ID, 20, $default)."<a href='".bb_get_option('uri')."profile/".$result->user_login."'>".$result->user_login." </a>";}

    Hi, bb-gian

    If you want this in “front-page” latest topic you can try this:

    <a href="<?php forum_link($topic->forum_id); ?>"><?php forum_name($topic->forum_id); ?></a>

    or if you just want show all categories:

    <a href="<?php forum_link(); ?>"><?php forum_name(); ?></a>

    In reply to: Pagination bug?

    I edited my first post:

    try add / to your forum url in “settings > general > bbPress address (URL) “

    In reply to: Pagination bug?

    Hi Kar-l,

    I think the 2 errors are the special chars “Następna” .

    or if this is “href” try add / to your forum url in “settings > general > bbPress address (URL) “

    Hi, bb-gian

    Try this: <?php topic_author(); ?>

    I use my own personal custom theme and it’s works for me.

    I just tried replace “topic-tags.php” from kakumei in the theme in your link, no issue.

    Sorry for my bad english.


    I want to add a link to the profile page:

    foreach ($results as $result){$list.=" <li class='list_b'>".bb_get_avatar($result->ID, 25, $default)."<a href='" .$result->user_profile_link. "'>".$result->user_login."</a></li> ";}

    I tried .$result->user_profile_link., but it doesn’t work, any idea ?

    Thanks a lot _CK_ !!!

    It works with “Kakumei”, I need to re-check my custom Template, because nothing seems to appear.

    I had the same problem when I wanted to upgrade an old theme, when I have update to 1.0 I could not remove tags, for solve this issue I copied “topic-tag.php” from kakumei to my custom theme.

    I think this isn’t the best practice but you can try this for the moment:

    If you use a custom template, edit with a text editor:



    <?php bb_get_header(); ?>


    <?php if ( bb_is_user_logged_in() ) : ?>

    before :

    <?php bb_get_footer(); ?>

    add :

    <?php else : ?>
    <?php if ( !in_array( bb_get_location(), array( 'login-page', 'register-page' ) ) ) login_form(); ?>
    <?php endif; // bb_is_user_logged_in() ?>

    do the same for:







    but your forums posts can allways be read trough the rss feed..

    Thank’s _CK_ !!

    But, your code doesn’t seem to work in bbPress 1.0 (I tried to add it in functions.php or directly in topic.php).

    However I have no problem if I add your code in bbPress 9.0 theme.

    I want to add ” <?php echo bb_get_avatar( $poster_id->ID, $size , $default); ?> ” in your code, but I can not ?

    Hi, dan90036

    Try this:

    <?php if ( bb_is_user_logged_in() ) : ?>
    HTML content for registred user
    <?php else : ?>
    HTML content for unregistred user
    <?php endif; // bb_is_user_logged_in() ?>

    Thanks for your reply!

    And if I want to create a list of each users who marked the topic as a favorite, this is the same problem ?




    You don’t need any plugin for doing this, check this topic https://bbpress.org/forums/topic/custom-avatar-function-broken-in-10-rc2



    Ok, I find a solution :

    <?php echo bb_get_avatar( $member->ID ); ?>




    I use this for display “add new topic”, try:

    <?php if ( bb_is_user_logged_in() ) : ?>


    <?php endif; // bb_is_user_logged_in() ?>

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