agora head last post
Steve Daniels <[email protected]> Mon, 25 Oct 2004 18:14:30 +0100
| Newsgroups | gmane.comp.horde.agora |
|---|---|
| Message-ID | <[email protected]> |
In forums.php it lists the forums and the last post in each. I am tying
to implement this in threads.php. Instead of only listing the author of
the thread I want it to display the last poster and last post date. So
far I've edited the threads.php template to display the headers in the
table.
Using this:
$col_headers = array('message_subject' => _("Subject"), 'message_author'
=> _("Posted By"), 'message_date' => _("Date"), 'last_message_subject'
=>_("Last Post"), 'last_message_author' => _("Posted By"),
'last_message_date' => _("Date"));
And in agora/templates/threads/threads.html I added this to get the
relevant table headers:
<td width="20%"<tag:col_headers.last_message_subject_class />>
<b><tag:col_headers.last_message_subject /></b>
</td><td width="15%"<tag:col_headers.last_message_author_class />>
<b><tag:col_headers.last_message_author /></b>
</td><td width="10%"<tag:col_headers.last_message_date_class />>
<b><tag:col_headers.last_message_date /></b>
</td>
Now I just need in threads.php to get thse variables
'last_message_subject' =>_("Last Post"), 'last_message_author' =>
_("Posted By"), 'last_message_date' => _("Date")
populated with the correct info.
I am currently scanning the source to see how to do this. But if anyone
has already done this, or could give a view pointers I'd love the help.
Will try and provide this as a patch if it's wanted, when it's finished?
Hopefully with a preference option to enable and disable its functionality.
Thanks.
Steve Daniels
--
agora mailing list - Join the hunt: http://horde.org/bounties/#agora
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]