Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display last topic poster name


  • sandy391
    Participant

    @sandy391

    Hi Guys, please help.

    I would like to display the topic last poster name and avatar column header “topic on this link :
    http://www.mzansionline.com/forums/forum/business-forum/#

    Im almost there, I achieved this by editing the Simple view counts plugin as follows :

    $str1 = bbp_topic_post_count();
    $post_id = get_the_ID();
    $count = get_post_meta( $post_id, ‘bbp_svc_viewcounts’, true );

    if (!empty($count)){
    echo ‘<span class=”bbp-topic-started-by”> Posts & <b> ‘.$count.'</b> <b> ‘.$str1.’ </b> Views, </span>’;
    echo bbp_topic_freshness_link() ;
    echo ‘topic_last_poster)>” <topic_last_poster()> ‘;

    I have struggled for days to insert the last poster so that the first line after
    “Where can I get cheap business registrations” reads :

    Started by: Pashy 9 Posts & 211 Views, 2 days, 6 hours ago by party.

    Your assistance will be much appreciated.

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

  • Robin W
    Moderator

    @robin-w

    sorry, but kit’s not clear what you are currently displaying and what you would like to display, as the display seems to reads exactly as you are asking in then last three lines of your post.


    Robkk
    Moderator

    @robkk

    this is what the freshness column is using

    <?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id() ) ); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar