Adding author names to posts in the conversation list

  1. 4 years ago
    Edited 4 years ago by Passport

    Thanks to @Toby 's help, was able to fix this issue that has been bugging me for too many hours.

    Here's how to display the name of a conversations's originator:

    The file that needs to be modified is core/views/conversations/conversation.php

    Around line 41 (or where you see the comment // Output the conversation title, highlighting search keywords)

    Modify this code:

    echo "<strong class='title'><a href='".URL($conversationURL.((ET::$session->user and $conversation["unread"]) ? "/unread" : ""))."'>".highlight(sanitizeHTML($conversation["title"]), ET::$session->get("highlight"))."</a></strong> ";

    to this

    echo "<strong class='title'><a href='".URL($conversationURL.((ET::$session->user and $conversation["unread"]) ? "/unread" : ""))."'>".highlight(sanitizeHTML($conversation["title"]),ET::$session->get("highlight"))."</a></strong> posted by ".memberLink($conversation["startMemberId"], $conversation["startMember"]);
  2. @Passport
    Sorry to bother you, but would you happen to have a picture in reference to what this actually does?

 

or Sign Up to reply!