Closed (fixed)
Project:
Chatblock
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Jan 2008 at 11:27 UTC
Updated:
5 Dec 2011 at 16:30 UTC
It would be nice if there was an option in the settings page of the module to insert a date/time stamp on each chat line.
Comments
Comment #1
dwees commentedYeah I see that as a useful feature. If I have any free time, I'll add this as an option.
Dave
Comment #2
rschaa commentedhi,
see this:
in chatblock.module chatblock_logs_page_view() replace:
width:
and insert this function:
greetings
rainer
Comment #3
dtabach commentedHi rschaa,
Your hack almost did the trick.
The times are correctly printed in the chat logs page, but not int the chat block itself.
I tried to replace the output in function chatblock_messages() (around line 300 of 5.x-1.0-dev) the same way your did in chatblock_logs_page_view(), and now the timestamps also appear in chatblock, but they all show "70-01-01 1:00". And they show only after a page refresh, not when a message is added.
Any further tip?
Comment #4
dwees commentedThe trick to using these on the chatblock messages themselves is to include some similar code in the JS. That should be relatively easy to do.
Comment #5
ottos commented+1
The insert date/time information would be really good feature in the 6.x-1.x-dev too.
Comment #6
miahawk commentedI would love to see this feature in 6.x!
Comment #7
doitDave commentedYes, there will most likely be *some kind of* a timestamp in the upcoming first stable release. But I will have to identify the less CPU consuming variant (either server localtime or relative time or whatever) as chatblock will strictly focus on efficiency and speed in the future. (And, sorry, will not be maintained for D5 unless someone applies to fix that branch.)
Comment #8
doitDave commentedDate/time now configurable and implemented as resource-preserving as possible. Will be available in dev-snapshot within the next 12 hours.
Comment #9
doitDave commented