[Request] Time stamping
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_chatbox
View previous topic :: View next topic  
Author Message
bigsteve
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 17
Location: Romford, Essex, UK

PostPosted: Wed Jul 21, 2004 2:57 pm    Post subject: [Request] Time stamping Reply with quote

How about a time stamp before/after the users name.
 
 
_________________

Storm Hawks forum using Points Mod 1.1.1 | Shop Mod 1.2.0 | Usable Items Mod 0.0.4 | RPG Battle/Stats Mod. & its Working, only 99% though.
 
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Wed Jul 21, 2004 3:16 pm    Post subject: Re: [Request] Time stamping Reply with quote

Added to the wishlist:
http://forums.phpmix.org/viewtopic.php?t=28

Thanks for your suggestions.


inner comment: me praying for your patience. Rolling Eyes

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
bigsteve
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 17
Location: Romford, Essex, UK

PostPosted: Mon Sep 05, 2005 2:35 pm    Post subject: Re: [Request] Time stamping Reply with quote

Got a mate to help me with this one

Code:


Open up messanger_view.php

find line--

function output_msg($nick, $msg, $colour)

replace with

function output_msg($nick, $msg, $colour, $time)

find line

<td class='chatbox'><b><?php echo $nick; ?></b>: <?php echo $msg; ?></td>

Replace with

<td class='chatbox'><?php echo $time.' <b>'.$nick; ?></b>: <?php echo $msg; ?></td>

save and upload etc.

 
 
_________________

Storm Hawks forum using Points Mod 1.1.1 | Shop Mod 1.2.0 | Usable Items Mod 0.0.4 | RPG Battle/Stats Mod. & its Working, only 99% though.
 
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
bigsteve
Apprentice
Apprentice


Joined: 15 Jun 2004
Posts: 17
Location: Romford, Essex, UK

PostPosted: Mon Sep 05, 2005 2:40 pm    Post subject: Re: [Request] Time stamping Reply with quote

oooh forgot to mention his name jeNK or John Thornborrow.
 
 
_________________

Storm Hawks forum using Points Mod 1.1.1 | Shop Mod 1.2.0 | Usable Items Mod 0.0.4 | RPG Battle/Stats Mod. & its Working, only 99% though.
 
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Tue Sep 06, 2005 1:05 pm    Post subject: Re: [Request] Time stamping Reply with quote

Ah, thanks for the hack! Smile

I believe you forgot one step, though. It is passing the time when calling the output_msg() function.

Please, let me summarize the hack in MOD format:

Code:

#
#---[ OPEN ]----------
#
modules/mx_chatbox/messenger_view.php
#
#---[ FIND ]----------
#
function show_msg()
{
   global $chatbox_config, $userdata;
#
#---[ REPLACE WITH ]----------
#
function show_msg()
{
   global $chatbox_config, $userdata, $board_config;
#
#---[ FIND ]----------
#
echo output_msg($chat['nick'], $msg, $colour);
#
#---[ REPLACE WITH ]----------
#
echo output_msg($chat['nick'], $msg, $colour, create_date($board_config['default_dateformat'], $chat['time'], $board_config['board_timezone']));
#
#---[ FIND ]----------
#
function output_msg($nick, $msg, $colour)
#
#---[ REPLACE WITH ]----------
#
function output_msg($nick, $msg, $colour, $time)
#
#---[ FIND ]----------
#
<td class='chatbox'><b><?php echo $nick; ?></b>: <?php echo $msg; ?></td>
#
#---[ REPLACE WITH ]----------
#
<td class='chatbox'><?php echo $time.' <b>'.$nick; ?></b>: <?php echo $msg; ?></td>
#
#---[ SAVE ]----------
#

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_chatbox All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum