Skip to:
Content
Pages
Categories
Search
Top
Bottom

Subject for message thread non-existent in full thread view


  • Greg
    Participant

    @rebootnow

    [I’m using WPMU 2.7.1 and BP 1.1]

    I would like to display the thread title on the page that views a full private message thread. As far as I can tell, this should happen automatically, but on all the BP installations I have checked (including this one here at buddypress.org), the line “<h2 id=”message-subject”><?php echo $thread->subject; ?></h2>” in “messages_view_thread()” is not working, presumably because $thread->subject is an empty string.

    I’ve searched, but no-one else seems to have brought this up. It seems so fundamental that I’m wondering what I am missing. Why are the thread titles AWOL?

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

  • Greg
    Participant

    @rebootnow

    [UPDATE]

    Digging a little deeper, it looks like this is a bug in “messages_view_thread()”.

    I think it will work if “$thread->subject” is replaced with “$thread->messages[0]->subject”.

    This approach is working in my template to get access to the subject of the thread.


    Burt Adsit
    Participant

    @burtadsit

    Can you post that in trac pls? Nice catch. Since you have a solution perhaps a patch too?


    Greg
    Participant

    @rebootnow

    Sure thing. I was originally scared off by a “forbidden” message from trac, but discovered that I simply needed to log in there using my buddypress.org credentials.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Subject for message thread non-existent in full thread view’ is closed to new replies.
Skip to toolbar