CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 forum display number of replies

Print topic Send  topic

Author Message
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>));

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.