The Coldfusion Open Source Forums
Home | ImageCFC | CFFM | BlogCFM | CFMBB | CFOpenMail / ImapCFC | CFOpenChat
Forums | Profile | Inbox | Members | Chat | Search | Login | RSS
Vivio Technologies Dedicated Hosting
New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page

Forums: CFOpenChat Forum: When Joining a Room - Viewing Older
Created on: 12/10/07 {ts '2013-06-20 22:50:00'} Views: 3510 Replies: 1
When Joining a Room - Viewing Older Conversations
Posted Monday, December 10, 2007 at {ts '2013-06-20 22:50:00'}

Is there a way I can show only "new" conversations after a user joins a room.

Problem at hand: Only Bob and Joe are in a room. Bob tells Joe that he thinks Nancy is really sexy.

Nancy Joins Room. Nancy now knows that Bob thinks she is sexy because the program shows the old conversation.

Bob is embarrassed.

Any insight would be helpful. Thanks!

Ron

RE: When Joining a Room - Viewing Older
Posted Sunday, January 20, 2008 at {ts '2013-06-20 16:32:00'}

Personally I like the context of the conversion being available. Bob shouldn't type embarassing things into a public chat room =)

From Ocean's 11: "In my hotels, somebody is always watching"

Anyway, yes, you can disable the context feature. Basically, see the following from cfopenchat.cfc:

        <cfquery name="qry" datasource="#variables.chatdsn#" maxrows="10">
select line_id
from chat_content
where
room_id = <cfqueryparam cfsqltype="cf_sql_integer" value="#room_id#">
order by line_id desc
</cfquery>

change the "10" to "1" for the maxrows attribute. should do it.

New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page
Subscription Options
Subscription options are available after you log in.

There are 4 active user sessions right now.