Developer Area

.tel for Webmasters tool

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.

Getting Started

To embed data from your .tel to your main website, do the following:

  1. Download and unzip the archive.
  2. Unzip the archive and choose to use the Perl version (contact.cgi) or PHP (contact.php).
    • With Perl: use the sample contact.cgi file with parameters passed directly as part of the URL
    • With PHP: consult the sample contact.html file containing an include of contact.php and configuration parameters
  3. Upload the Perl or PHP script and the lib directory into cgi-bin on the server.
  4. Verify that the web server is configured correctly; see details in the README file.

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.

Configuration

To configure the tool, use the following paramaters:

  • Domain name - domain=your.tel
  • Hiding domain name - no-domain-name=1
  • Embedding the script - embed=1
  • Text header - no-text=1
  • Contact items (NAPTR records) - no-naptr=1
  • 'Go to' links (non-terminal NAPTR records) - no-ntn=1
  • Keywords - no-keywords=1
  • Location - no-loc=1
  • Icons - 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.

Download .tel for Webmasters tool

 
Telnic
Search This Site
Partners
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us