Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

    Member

    never mind…
    silly me :)

    @chetbrz

    Member

    Nice…
    Thank you for the help.

    @chetbrz

    Member

    Here is another good plugin for opening external links in new windows.
    https://wordpress.org/extend/plugins/open-external-links-in-a-new-window/

    @chetbrz

    Member

    I guess this is top secret information?
    I promise I won’t tell anyone :)

    @chetbrz

    Member

    In my forums-loop.php I have:
    (Didn’t come up on my first post)

    if ( function_exists( ‘bp_get_the_topic_post_poster_username’ ) ) echo bp_get_the_topic_post_poster_username();

    @chetbrz

    Member

    I found this confusing thread searching for a way to add the topic starter on my forums index page:
    Ex: http://www.mywebsite.com/forums/

    What do I need to have in my bp-custom.php file?

    I have this:
    function ray_bp_get_the_topic_last_poster_name( $name ) {
    global $forum_template;

    return str_replace($forum_template->topic->topic_last_poster_displayname, $forum_template->topic->topic_last_poster_login, $name);
    }
    add_filter( ‘bp_get_the_topic_last_poster_name’, ‘ray_bp_get_the_topic_last_poster_name’ );

    function bp_get_the_topic_post_poster_username() {
    global $topic_template;

    if ( !$link = bp_core_get_user_domain( $topic_template->post->poster_id, $topic_template->post->poster_nicename, $topic_template->post->poster_login ) )
    return __( ‘Deleted User’, ‘buddypress’ );

    return apply_filters( ‘bp_get_the_topic_post_poster_username’, ‘post->poster_login . ‘”>’ . $topic_template->post->poster_login . ‘‘ );
    }

    And then this in my forums-loop.php template I have:

    But all I get is “Deleted User”

    Can anyone tell me what I am doing wrong?

Viewing 6 replies - 1 through 6 (of 6 total)
Skip to toolbar