Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @eleventwenty2

    Member

    I was able to accomplish this by simply installing https://wordpress.org/extend/plugins/forum-server/

    @eleventwenty2

    Member

    Here’s what I came up with and it works the way I need it..

    I added the following function to the “buddypress/bp-forums/bp-forums-templatetags.php” file.

    `function bp_the_short_topic_title() {
    echo bp_get_the_short_topic_title();
    }
    function bp_get_the_short_topic_title() {
    global $forum_template;
    $topic = $forum_template->topic->topic_title;

    if (strlen($topic) > 35)
    {
    $output = substr($topic, 0, 35).’…’;
    }
    else
    {
    $output = $forum_template->topic->topic_title;
    }
    return apply_filters( ‘bp_get_the_topic_title’, stripslashes($output) );
    }`

    then just replaced bp_the_topic_title() with bp_the_short_topic_title() where I needed it shortened.

    @eleventwenty2

    Member

    bump on this.

    @eleventwenty2

    Member

    worked, thanks!

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