English   German
  #1  
Old 22-01-2007, 07:08
hvyft hvyft is offline
-= TeamSpeak User =-
 
Join Date: Jan 2007
Location: Murfreesboro, TN
Posts: 7
hvyft is on a distinguished road
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
Reply With Quote
  #2  
Old 22-01-2007, 13:54
Reedy Boy's Avatar
Reedy Boy Reedy Boy is offline
-= TeamSpeak Fanatic =-
 
Join Date: Oct 2006
Location: UK
Posts: 1,114
Reedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to behold
Quote:
Originally Posted by hvyft View Post
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

Code:
M dd, yyyy - hh:nn

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
Reply With Quote
  #3  
Old 22-01-2007, 14:28
hvyft hvyft is offline
-= TeamSpeak User =-
 
Join Date: Jan 2007
Location: Murfreesboro, TN
Posts: 7
hvyft is on a distinguished road
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.
Reply With Quote
  #4  
Old 22-01-2007, 14:45
Thomas's Avatar
Thomas Thomas is offline
-= TeamSpeak Support =-
 
Join Date: Sep 2005
Location: Germany / Dortmund
Posts: 1,556
Thomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond repute
That's a variable which will be replaced by the server's webserver.

You can find them in every file of the webadmin.
Reply With Quote
  #5  
Old 22-01-2007, 15:16
Reedy Boy's Avatar
Reedy Boy Reedy Boy is offline
-= TeamSpeak Fanatic =-
 
Join Date: Oct 2006
Location: UK
Posts: 1,114
Reedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to behold
Quote:
Originally Posted by hvyft View Post
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 View Post
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...
Reply With Quote
  #6  
Old 22-01-2007, 21:11
hvyft hvyft is offline
-= TeamSpeak User =-
 
Join Date: Jan 2007
Location: Murfreesboro, TN
Posts: 7
hvyft is on a distinguished road
Hmm...

is there a tutorial on how to edit them?
Reply With Quote
  #7  
Old 23-01-2007, 06:49
hvyft hvyft is offline
-= TeamSpeak User =-
 
Join Date: Jan 2007
Location: Murfreesboro, TN
Posts: 7
hvyft is on a distinguished road
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
Reply With Quote
  #8  
Old 23-01-2007, 10:08
Reedy Boy's Avatar
Reedy Boy Reedy Boy is offline
-= TeamSpeak Fanatic =-
 
Join Date: Oct 2006
Location: UK
Posts: 1,114
Reedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to behold
Quote:
Originally Posted by hvyft View Post
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...?
Reply With Quote
  #9  
Old 23-01-2007, 15:45
Thomas's Avatar
Thomas Thomas is offline
-= TeamSpeak Support =-
 
Join Date: Sep 2005
Location: Germany / Dortmund
Posts: 1,556
Thomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond repute
Quote:
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.
Reply With Quote
  #10  
Old 23-01-2007, 19:00
Reedy Boy's Avatar
Reedy Boy Reedy Boy is offline
-= TeamSpeak Fanatic =-
 
Join Date: Oct 2006
Location: UK
Posts: 1,114
Reedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to behold
Quote:
Originally Posted by Thomas View Post
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
Reply With Quote
  #11  
Old 23-01-2007, 19:16
Thomas's Avatar
Thomas Thomas is offline
-= TeamSpeak Support =-
 
Join Date: Sep 2005
Location: Germany / Dortmund
Posts: 1,556
Thomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond reputeThomas has a reputation beyond repute
Okay, my false. I thought that it is not possible. (and in my experiences with Delphi it wasn't).

Forget, what I've said.
Reply With Quote
  #12  
Old 23-01-2007, 19:21
Reedy Boy's Avatar
Reedy Boy Reedy Boy is offline
-= TeamSpeak Fanatic =-
 
Join Date: Oct 2006
Location: UK
Posts: 1,114
Reedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to behold
Quote:
Originally Posted by Thomas View Post
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
Reply With Quote
  #13  
Old 24-01-2007, 06:49
hvyft hvyft is offline
-= TeamSpeak User =-
 
Join Date: Jan 2007
Location: Murfreesboro, TN
Posts: 7
hvyft is on a distinguished road
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
Reply With Quote
  #14  
Old 24-01-2007, 09:25
Reedy Boy's Avatar
Reedy Boy Reedy Boy is offline
-= TeamSpeak Fanatic =-
 
Join Date: Oct 2006
Location: UK
Posts: 1,114
Reedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to beholdReedy Boy is a splendid one to behold
Quote:
Originally Posted by hvyft View Post
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!!
Reply With Quote
  #15  
Old 25-01-2007, 05:32
hvyft hvyft is offline
-= TeamSpeak User =-
 
Join Date: Jan 2007
Location: Murfreesboro, TN
Posts: 7
hvyft is on a distinguished road
well Reedy Boy, none of those 3 commands worked for me. what were your results?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 21:30.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Add to Bookmarks   |   Printview   |   Contact Us   |   Legal Notices