lirving@coffs.com.au
|
| Posted: 09/17/2002, 4:48 AM |
|
Is it possible to make the forum display number of replies or a new replies icon
Wayne
|
|
|
 |
Nicole
|
| Posted: 09/18/2002, 1:31 AM |
|
Hello,
here is CCS solution. CC one is similar, but you should use CC syntax when coding events.
- add one more column to the messages form on the Default page;
- put Label type field into it, lets name it "replies". Add "message_id" field of Hidden type to the form as well.
- to display the number of replies create "replies" field Before Show event:
global $messages;
global $DB<connection_name>;
$messages->replies->SetValue(CCDLookUp("count(message_id_parent)", "forum_messages", "message_id_parent=" . $messages->message_id->Value, $DB<connection_name>));
|
|
|
 |
|