Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 4 of 4

Thread: TPL Variables

  1. #1
    Join Date
    August 2013
    Location
    Germany
    Posts
    541

    Post TPL Variables

    Where can i find a FULL list of all variables i can use in my TPL files?

    eg

    HTML Code:
    				<td class="infotext">IP Adress:</td>
    				<td class="infotext" style="color:lightgrey">%%SERVER_ADDRESS%%:%%SERVER_PORT%%</td>
    			</tr>
    			<tr>    
    				<td class="infotext">Version:</td>
    				<td class="infotext">%%SERVER_VERSION%% on %%SERVER_PLATFORM%%</td>
    			</tr>
    			<tr><td class="infotext">Online since:</td><td class="infotext">%%SERVER_UPTIME%%</td></tr>
    			<tr><td class="infotext">Clients/Querys Online/Max:</td><td class="infotext" >%%SERVER_CLIENTS_ONLINE%% / %%SERVER_QUERYCLIENTS_ONLINE%% / %%SERVER_MAXCLIENTS%% (-%%SERVER_RESERVED_SLOTS%%)</td></tr>
    			<!--tr><td class="infotext">Reserved Slots:</td><td class="infotext" >%%SERVER_RESERVED_SLOTS%%</td></tr-->
    			<tr><td class="infotext">Clients/Querys Connects:</td><td class="infotext">%%SERVER_CLIENT_CONNECTIONS%% / %%SERVER_QUERY_CLIENT_CONNECTIONS%%</td></tr>
    			<tr><td class="infotext">Channels:</td><td class="infotext">%%SERVER_CHANNELS_ONLINE%%</td></tr> 
    			<tr><td>&nbsp;</td></tr>
    			<tr><td class="infoheader" style="color:blue">Server Traffic</td></tr>
    			<tr>
    				<td class="infotext">Download Month / Total:</td>
    				<td class="infotext">%%?SERVER_MONTH_BYTES_DOWNLOADED%% / %%?SERVER_TOTAL_BYTES_DOWNLOADED%%</td>	
    			</tr>
    			<tr>
    				<td class="infotext">Upload Month / Total:</td>
    				<td class="infotext">%%?SERVER_MONTH_BYTES_UPLOADED%% / %%?SERVER_TOTAL_BYTES_UPLOADED%%</td>	
    			</tr>
    			<tr>
    				<td class="infotext">Traffic Quota:</td>
    				<td class="infotext">DOWN: %%SERVER_DOWNLOAD_QUOTA%% / UP: %%?SERVER_UPLOAD_QUOTA%%</td>	
    			</tr>

  2. #2
    Join Date
    July 2006
    Posts
    1,600
    I was also wondering where to find a full list. The TeamSpeak team could put on proper documentation.

  3. #3
    Join Date
    January 2010
    Location
    El Prat de Llobregat (Barcelona, Spain)
    Posts
    2,698
    Quote Originally Posted by Bluscream View Post
    Where can i find a FULL list of all variables i can use in my TPL files?
    In styles\default, each .TPL includes the full list as comment.
    Code:
    <!--
    TeamSpeak 3 Client Infoframe Template
    Copyright 2009-2013 (c) TeamSpeak Systems GmbH
    
    The replaceable variables are embedded in "%%" like %%CLIENT_NAME%%. At this time you can 
    also use %%?CLIENT_NAME%% (note the questionmark), which is a tiny "if"- query. Use it, to 
    remove the whole line, if a variable is empty or just "0".
    
    Templates can be placed in "styles/" for default theme or in a sub folder named like an available 
    theme (e.g. "styles/bluesky/"). Be aware that this template will not automaticly be translated when 
    displayed.
    
    Predefined values have to be inside the html comment-tag to make sure that they will be parsed
    before the replacing begins! Remove the "#" to enable.
    
    #%%AVATAR_MAX_WIDTH%%128
    #%%AVATAR_MAX_HEIGHT%%128
    #%%CLIENT_SERVER_SHOW_MAX_GROUPS%%3
    
    Replacable variables for clients:
    CLIENT_NAME
    CLIENT_NAME_PERCENT_ENCODED
    CLIENT_CUSTOM_NICK_NAME
    CLIENT_COUNTRY_TOOLTIP
    CLIENT_COUNTRY_IMAGE
    CLIENT_ID
    CLIENT_UNIQUE_ID
    CLIENT_AWAY_MESSAGE
    CLIENT_PLATFORM
    CLIENT_VERSION
    CLIENT_VERSION_SHORT
    CLIENT_VERSION_STATE   [Alpha|Beta|Stable]
    CLIENT_DESCRIPTION
    CLIENT_ICON
    CLIENT_TOTALCONNECTIONS
    CLIENT_CREATED
    CLIENT_LASTCONNECTED
    CLIENT_CONNECTED_SINCE
    CLIENT_FLAG_AVATAR
    CLIENT_IGNORE_AVATAR
    AVATAR_MAX_WIDTH
    AVATAR_MAX_HEIGHT
    CLIENT_TALK_REQUEST_TIME
    CLIENT_TALK_REQUEST_MSG
    CLIENT_VOLUME_MODIFIER
    CLIENT_CHANNEL_GROUP_NAME
    CLIENT_CHANNEL_GROUP_ICON
    CLIENT_SERVER_GROUP_NAME
    CLIENT_SERVER_GROUP_ICON
    CLIENT_DATABASE_ID
    CLIENT_SERVER_SHOW_MAX_GROUPS
    PLUGIN_INFO_DATA
    -->

  4. #4
    Join Date
    June 2008
    Posts
    18,507
    Just read one post above yours....
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •