Raised This Month: $51 Target: $400
 12% 

ChatLog v1.3.7 (Extended)


Post New Thread Reply   
 
Thread Tools Display Modes
muukis
Veteran Member
Join Date: Apr 2009
Old 05-15-2009 , 16:56   Re: ChatLog v1.3.4 (Extended)
Reply With Quote #21

Quote:
Originally Posted by waertf View Post
i found that my time is less than 8 hours ,how can i fix that? thx
my local time is GMT+8
You'll have to change the time of your MySQL server. That'll fix the new log rows. Another way is to modify the PHP to change the timestamp read from the DB. I can check how you can modify it if you can't google it yourself.
muukis is offline
waertf
Member
Join Date: Jan 2009
Old 05-15-2009 , 19:57   Re: ChatLog v1.3.4 (Extended)
Reply With Quote #22

i found that the start time of mysql server is wrong in phpmyadmin
but use
SELECT CURTIME( )
SELECT CURDATE( )
then it catch the correct system time
the php file i only modified 5 db value
and the values of date looked from phpmyadmin are correct
help pls

Edit1: I fix it myself
add line:date_default_timezone_set('Asia/Taipei');

Last edited by waertf; 05-15-2009 at 20:52.
waertf is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 05-16-2009 , 03:30   Re: ChatLog v1.3.4 (Extended)
Reply With Quote #23

Quote:
Originally Posted by waertf View Post
i found that the start time of mysql server is wrong in phpmyadmin
but use
SELECT CURTIME( )
SELECT CURDATE( )
then it catch the correct system time
the php file i only modified 5 db value
and the values of date looked from phpmyadmin are correct
help pls

Edit1: I fix it myself
add line:date_default_timezone_set('Asia/Taipei');
GJ
muukis is offline
tingleby
New Member
Join Date: May 2009
Old 05-16-2009 , 05:24   Re: ChatLog v1.3.4 (Extended)
Reply With Quote #24

When I restart My server and a user Types a Message i have this error
[chatlogex.smx] ChatLogEx: Cannot log message, sm_chatlogex_id is not set!

I have set in in the server.cfg which worked fine with the previous version.
Please Help

I also got the php to output the time as GMT. I just need to go DST
PHP Code:
$date gmdate("j.m.y H:i:s"$R['date']); 

Last edited by tingleby; 05-16-2009 at 05:52.
tingleby is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 05-16-2009 , 05:58   Re: ChatLog v1.3.4 (Extended)
Reply With Quote #25

Quote:
Originally Posted by tingleby View Post
When I restart My server and a user Types a Message i have this error
[chatlogex.smx] ChatLogEx: Cannot log message, sm_chatlogex_id is not set!

I have set in in the server.cfg which worked fine with the previous version.
Please Help
I modified the plugin so that it writes a config of its own. Modify the /left4dead/cfg/sourcemod/sm_chatlogex.cfg for the correct values.
muukis is offline
tingleby
New Member
Join Date: May 2009
Old 05-16-2009 , 06:02   Re: ChatLog v1.3.4 (Extended)
Reply With Quote #26

Oh.
Thank You

Still working on getting DST though. I cant change the server times
tingleby is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 05-16-2009 , 09:01   Re: ChatLog v1.3.4 (Extended)
Reply With Quote #27

Quote:
Originally Posted by tingleby View Post
Still working on getting DST though. I cant change the server times
From line 79 (somewhere there) in your chatlogex.php you can find lines that determine the date string. Replace them with these lines and modify the $hoursmod value to suit your needs. I'll include this in the future releases.
PHP Code:
    // Hours modifier
    
$hoursmod 0;

    
// http://fi2.php.net/manual/en/function.date.php
    // European timestamp
    //$date = date("j.m.y H:i:s", $R['date'] + ($hoursmod * 3600));
    
$date date("n/j g:i:sa"$R['date'] + ($hoursmod 3600)); 

Last edited by muukis; 05-16-2009 at 09:07.
muukis is offline
anon666
Member
Join Date: Apr 2009
Location: south east asia
Old 05-16-2009 , 10:22   Re: ChatLog v1.3.4 (Extended)
Reply With Quote #28

This is mine
PHP Code:
    // http://fi2.php.net/manual/en/function.date.php
    // European timestamp
    //$date = date("j.m.y H:i:s", $R['date']);
    
date_default_timezone_set('Asia/Kuala_Lumpur');
    
$date date("d/m/Y G:i:s"$R['date']); 
Refer to http://fi2.php.net/manual/en/timezones.php for available timezones.
anon666 is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 05-16-2009 , 11:03   Re: ChatLog v1.3.4 (Extended)
Reply With Quote #29

Quote:
Originally Posted by anon666 View Post
This is mine
I'm not sure if that'll fix the DST "problem"?
muukis is offline
cns
Junior Member
Join Date: Apr 2009
Old 05-18-2009 , 12:12   Re: ChatLog v1.3.4 (Extended)
Reply With Quote #30

Is it possible to use this with several servers at the same time and get a clear indication of which server the message is coming from in the log?
cns is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode