This page gives the details for a contact-us tool that embeds .tel data into a traditional site; for a list of useful PHP and Perl scripts for displaying and managing .tel data, please see the bottom part of the list at .tel Software.
The '.tel for Webmasters' tool is a simple open-source solution enables webmasters to embed .tel data into static web pages, such as 'Contact Us'. This script retrieves data from the specified .tel domain according to the user settings. You can determine the types of data to display, and the use of custom icons and styles.
The functionality is available in PHP and Perl. The code is available for download or checkout from SVN under the standard Telnic license.
To embed data from your .tel to your main website, do the following:
lib directory into cgi-bin on the server.To test the operation of this tool, host and run the standalone page contact.cgi on your website with the correct paramaters. When you are happy with the output, you can update the main Contacts page with embedded .tel data.
To configure the tool, use the following paramaters:
domain=your.tel
no-domain-name=1
embed=1
no-text=1
no-naptr=1
no-ntn=1 no-keywords=1
no-loc=1
no-icons=1
You can test the configuration, use the standalone page and enabled/disable individual parameters by setting them to 0 or 1 in a URL.
After configuring the data set to be displayed, you can adjust its appearance. The sample contact.html page uses the stylesheet contact.css for style definitions.