craftcore (@craftcore)

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • @craftcore

    Member

    I figured out how to hook into it. I created bp-custom.php in the plugin directory and modified the action like this:

    add_action( 'bbp_theme_after_reply_author_details', 'display_authorlevel' );
    function display_authorlevel() {

    // code goes here that you want to executed under the avatar. I wanted to display my WP roles instead of the bbPress roles, so I wrote a custom function to pull the WP roles and put it here.

    }

    Thanks so much for looking!

    @craftcore

    Member

    Yay, I found the file! I downloaded my entire website, then used the program MultiFindPro to search for Hello World within my website files. It found it right away and I was able to remove the echo statement.

    Thanks so much for help, John. 🙂 I really felt like I was losing my mind there, haha.

    (Note to self: don’t code late at night while sleepy.)

    @craftcore

    Member

    This is so weird…deleted /plugins/bbpress and all its subdirectories, downloaded and extracted bbPress 2.1.1 and uploaded. Reactivated and saved settings on the bbPress page…and the Hello World text is still there! So strange!

    Is there anything outside of the actual bbPress folder that could modify the bbPress forum index template?

    @craftcore

    Member

    Thank you for the reply, labsecrets. Unfortunately, this won’t help me. I just want to add something below the avatar that displays next to the reply text.

    (IE: above on this forum, we see Lab’s avatar, followed by “labsecrets,” followed by the user role (“Member”).

    I just want to add some other text below “Member,” but I don’t know how to hook into it. Anyone else know how to do this?

    @craftcore

    Member

    Oh my goodness, this was driving me CRAZY! I figured out a solution that I hope will help you budddypress + bbress users out too!

    Go to loop-single-reply.php in the bbpress theme files.

    Find the line:

    <?php bbp_reply_author_link( array( 'sep' => '<br />' ) ); ?>

    This seems to be what is generating the avatar by default, so I commented it out and used the following code instead:

    <?php // bbp_reply_author_link( array( 'sep' => '<br />' ) ); ?>

    <?php

    $replyauthor = bbp_get_reply_author_id();

    if ( function_exists( 'bp_core_fetch_avatar' ) ) :
    echo bp_core_fetch_avatar( array(
    'item_id' => $replyauthor,
    'type' => 'full',
    'width' => 100,
    'height' => 100
    ));
    endif;

    ?>

    My forums are happy and unfuzzy now. Hope it works for you too!

    :3

    @craftcore

    Member

    Mindsink, thank you so much! That’s perfect!

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