|
|
|

22-01-2007, 07:08
|
|
-= TeamSpeak User =-
|
|
Join Date: Jan 2007
Location: Murfreesboro, TN
Posts: 7
|
|
|
Teamspeak Control Panel question.
Hey guys, I am editing my control panel for fun to see if I can make it look good. I have come across a problem. At the top right of the control panel when i log into it, where it shows the user logged in, the server, and the current time/date, the time/date says "22-01-2007 00:14:47".
I am trying to edit the "%%CURRENT_DATETIME%%" command to where it would say "January 22, 2007 - 12:14" instead of the default "22-01-2007 00:14:47". Do any of you guys know how to go about doing this?
Thanks in advance for all of your guys help and suggestions,
HvyFt
|

22-01-2007, 13:54
|
 |
-= TeamSpeak Fanatic =-
|
|
Join Date: Oct 2006
Location: UK
Posts: 1,114
|
|
Quote:
Originally Posted by hvyft
Hey guys, I am editing my control panel for fun to see if I can make it look good. I have come across a problem. At the top right of the control panel when i log into it, where it shows the user logged in, the server, and the current time/date, the time/date says "22-01-2007 00:14:47".
I am trying to edit the "%%CURRENT_DATETIME%%" command to where it would say "January 22, 2007 - 12:14" instead of the default "22-01-2007 00:14:47". Do any of you guys know how to go about doing this?
Thanks in advance for all of your guys help and suggestions,
HvyFt
|
That is pulling date from the server in default format
You need to format it
If you look at server.ini
Code:
DateTimeFormat=dd-mm-yyyy hh:nn:ss
Default format:
Code:
dd-mm-yyyy hh:nn:ss
22-01-2007 00:14:47
Im presuming it would standard formatting
The M could be MM, one of the 2 should get you done
Code:
MM dd, yyyy - hh:nn
Change it in the server.ini, save it, and restart TS server
|

22-01-2007, 14:28
|
|
-= TeamSpeak User =-
|
|
Join Date: Jan 2007
Location: Murfreesboro, TN
Posts: 7
|
|
|
Thanks!
Thanks Reedy Boy,
I will have to try this when i get around to it. but as for the other commands, where are they located at, I mean they aren't in the server folder, all of the %%----%% commands.
|

22-01-2007, 14:45
|
 |
-= TeamSpeak Support =-
|
|
Join Date: Sep 2005
Location: Germany / Dortmund
Posts: 1,556
|
|
|
That's a variable which will be replaced by the server's webserver.
You can find them in every file of the webadmin.
|

22-01-2007, 15:16
|
 |
-= TeamSpeak Fanatic =-
|
|
Join Date: Oct 2006
Location: UK
Posts: 1,114
|
|
Quote:
Originally Posted by hvyft
Thanks Reedy Boy,
I will have to try this when i get around to it. but as for the other commands, where are they located at, I mean they aren't in the server folder, all of the %%----%% commands.
|
No Problem
Quote:
Originally Posted by Thomas
That's a variable which will be replaced by the server's webserver.
You can find them in every file of the webadmin.
|
Yeah
I cant see most of them needing changes
As Thomas said, theyare variables from the server, it will pull numbers and strings from the server
If there are others you want to change, it may be changable...
|

22-01-2007, 21:11
|
|
-= TeamSpeak User =-
|
|
Join Date: Jan 2007
Location: Murfreesboro, TN
Posts: 7
|
|
|
Hmm...
is there a tutorial on how to edit them?
|

23-01-2007, 06:49
|
|
-= TeamSpeak User =-
|
|
Join Date: Jan 2007
Location: Murfreesboro, TN
Posts: 7
|
|
|
Results...
well I tryed the command you told me to use Reedy Boy, and it showed as:
01 22, 2007 - 23:50
instead of that, can it show up as:
January 22, 2007 - 11:50
what I mean is, is there a way to do this?
thanks again,
HvyFt
|

23-01-2007, 10:08
|
 |
-= TeamSpeak Fanatic =-
|
|
Join Date: Oct 2006
Location: UK
Posts: 1,114
|
|
Quote:
Originally Posted by hvyft
well I tryed the command you told me to use Reedy Boy, and it showed as:
01 22, 2007 - 23:50
instead of that, can it show up as:
January 22, 2007 - 11:50
what I mean is, is there a way to do this?
thanks again,
HvyFt
|
Should be doable
Try
Code:
MMMM dd, yyyy - hh:nn
Tutorial...? For the specific TS ones...?
|

23-01-2007, 15:45
|
 |
-= TeamSpeak Support =-
|
|
Join Date: Sep 2005
Location: Germany / Dortmund
Posts: 1,556
|
|
No, I think that is not possible. The format only consists digits.
Write your own function which converts it to your needed syntax.
|

23-01-2007, 19:00
|
 |
-= TeamSpeak Fanatic =-
|
|
Join Date: Oct 2006
Location: UK
Posts: 1,114
|
|
Quote:
Originally Posted by Thomas
No, I think that is not possible. The format only consists digits.
Write your own function which converts it to your needed syntax.
|
Hmm
I cant see why not, TS seems to follow the standard formatting for Dates, (followed from MSDN library for the .NET languages)
Just Tried it
It does
Code:
Servertime
January 23, 2007 - 17:59
|

23-01-2007, 19:16
|
 |
-= TeamSpeak Support =-
|
|
Join Date: Sep 2005
Location: Germany / Dortmund
Posts: 1,556
|
|
Okay, my false. I thought that it is not possible. (and in my experiences with Delphi it wasn't).
Forget, what I've said.
|

23-01-2007, 19:21
|
 |
-= TeamSpeak Fanatic =-
|
|
Join Date: Oct 2006
Location: UK
Posts: 1,114
|
|
Quote:
Originally Posted by Thomas
Okay, my false. I thought that it is not possible. (and in my experiences with Delphi it wasn't).
Forget, what I've said. 
|
Haha
Thomas - Read your latest Reputation comment :P
|

24-01-2007, 06:49
|
|
-= TeamSpeak User =-
|
|
Join Date: Jan 2007
Location: Murfreesboro, TN
Posts: 7
|
|
|
Well...
Reedy Boy,
I am one step closer, look:
January 23, 2007 - 23:50
is there a way to convert 23:50 into 11:50 ( 12 hour time-frame instead of 24 hour 'military' time)?
HvyFt
|

24-01-2007, 09:25
|
 |
-= TeamSpeak Fanatic =-
|
|
Join Date: Oct 2006
Location: UK
Posts: 1,114
|
|
Quote:
Originally Posted by hvyft
Reedy Boy,
I am one step closer, look:
January 23, 2007 - 23:50
is there a way to convert 23:50 into 11:50 ( 12 hour time-frame instead of 24 hour 'military' time)?
HvyFt
|
DateTimeFormat=dd-mm-yyyy hh:nn:ss
Try one of these three
Code:
MMMM dd, yyyy - h:nn
Code:
MMMM dd, yyyy - H:nn
Code:
MMMM dd, yyyy - HH:nn
It is supposed to be lowercase h for 12 hour clock
So i think the h:nn should work, but unable to try, as its 8:24 am atm!!
|

25-01-2007, 05:32
|
|
-= TeamSpeak User =-
|
|
Join Date: Jan 2007
Location: Murfreesboro, TN
Posts: 7
|
|
|
well Reedy Boy, none of those 3 commands worked for me. what were your results?
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 21:30.
Powered by vBulletin® Version 3.7.3 Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
|