PDA

View Full Version : Teamspeak Control Panel question.


hvyft
22-01-2007, 07:08
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

Reedy Boy
22-01-2007, 13:54
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

DateTimeFormat=dd-mm-yyyy hh:nn:ss

Default format:
dd-mm-yyyy hh:nn:ss
22-01-2007 00:14:47

Im presuming it would standard formatting

M dd, yyyy - hh:nn


The M could be MM, one of the 2 should get you done

MM dd, yyyy - hh:nn

:)

Change it in the server.ini, save it, and restart TS server

hvyft
22-01-2007, 14:28
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.

Thomas
22-01-2007, 14:45
That's a variable which will be replaced by the server's webserver.

You can find them in every file of the webadmin.

Reedy Boy
22-01-2007, 15:16
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

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...

hvyft
22-01-2007, 21:11
is there a tutorial on how to edit them?

hvyft
23-01-2007, 06:49
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

Reedy Boy
23-01-2007, 10:08
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

MMMM dd, yyyy - hh:nn


Tutorial...? For the specific TS ones...?

Thomas
23-01-2007, 15:45
January 22, 2007 - 11:50
No, I think that is not possible. The format only consists digits.

Write your own function which converts it to your needed syntax.

Reedy Boy
23-01-2007, 19:00
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

Servertime
January 23, 2007 - 17:59

:)

Thomas
23-01-2007, 19:16
Okay, my false. I thought that it is not possible. (and in my experiences with Delphi it wasn't).

Forget, what I've said. :p

Reedy Boy
23-01-2007, 19:21
Okay, my false. I thought that it is not possible. (and in my experiences with Delphi it wasn't).

Forget, what I've said. :p

Haha


Thomas - Read your latest Reputation comment :P

hvyft
24-01-2007, 06:49
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

Reedy Boy
24-01-2007, 09:25
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

MMMM dd, yyyy - h:nn

MMMM dd, yyyy - H:nn

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!!

hvyft
25-01-2007, 05:32
well Reedy Boy, none of those 3 commands worked for me. what were your results?

Reedy Boy
25-01-2007, 12:40
well Reedy Boy, none of those 3 commands worked for me. what were your results?

As Below

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!!

I couldnt test it at the time

For the Hours, there are 4 options
h

hh

H

HH



If that doesnt work, i dont think it can be put into 12 hours