Timestamps
--user fix -- lines 164 and 177 with:
'html' => '<div class="chat-message-' . $new_message_id . '"><strong style="color: ' . $user_text_color . ';">' . $user->user_login . '</strong>: ' . $content . '</div>'
to
'html' => '<div class="chat-message-' . $new_message_id . '"><span class="time">(' . date("g:ia") . ')</span> <strong style="color: ' . $user_text_color . ';">' . $user->login . '</strong>: ' . $content . '</div>'
time offset
'<div class="chat-message-' . $new_message_id . '"><span class=time>(' . date("g:ia", time() + ( get_option( 'gmt_offset' ) * 3600 ) ) . ')</span> <strong style="color: ' . $user_text_color . ';">' . $user->nickname . '</strong>: ' . $content . '</div>',
Hi Michael,
Sorry, I'm a beginner here. I'm trying to get date and time stamp working with chat room and found this fix. Which file do I need to change. I can find the .php file and the .css file but can't find a .html file with the lines 164 and 177 that need changing. Sorry for such a dumb question. Cheers R
I wouldn't rely on the Github version at this point, as it's changed a fair amount since the last proper release on wordpress.org. The line numbers mentioned above do match up when viewing https://plugins.trac.wordpress.org/browser/chat-room/trunk/chat-room.php which will match what's acquired at wordpress.org.
Hi Michael,
Many thanks for your reply on this.
Really helpful and much appreciated.
Roger
On 7 Nov 2017, at 23:16, Michael Beckwith <[email protected]mailto:[email protected]> wrote:
I wouldn't rely on the Github version at this point, as it's changed a fair amount since the last proper release on wordpress.orghttp://wordpress.org. The line numbers mentioned above do match up when viewing https://plugins.trac.wordpress.org/browser/chat-room/trunk/chat-room.php which will match what's acquired at wordpress.orghttp://wordpress.org.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/WebDevStudios/Chat-Room/issues/7#issuecomment-342656249, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Af6dgt7aVoEsqOp1nTGA1KU-r56SWmuAks5s0OTOgaJpZM4AnkRw.
Welcome.