Home About us Products Support Contact us
:: LI-Date 'n Time
Documentation - Setup
Extract the .zip file to a temporary folder and edit everything as described below. Then upload everything to a folder on your server. Simply add the php include command on the spot where you want your date/time that the setup will give you.

This script comes with 3 files:
  1. dt.php --> The main script that does all the work
  2. setup.php --> The setup file which you can change the names of days and months to your language
  3. readme.txt --> The readme file with the same contents as this page

dt.php
This is the main script which does all the work. You don't need to change anything to this file.
setup.php
If you want full days or months or their shorter abbreviations in your date/time, but you don't want them in english, you can edit those names in this file and from then on those names will show up in the way you translated it. The variables you can edit:
  • $translate = 1; If you want the script not to use the default english names of days and months enter a 1, for english a 0. If you enter a 1 the script will use the names you set below

Note: The names below are put in an array and you should only change the names (everything in between two ' )
  • $weekdays_full The names of all the weekdays fully written out
  • $weekdays_short The names of all the weekdays in a short version
  • $months_full The names of all the months fully written out
  • $months_short The names of all the months in a short version
readme.txt
This file contains the same as this page


The steps for implementing date and time into your website:
  • Give the page you want a counter on a php extension
  • Use your webbrowser to go to the location where you uploaded dt.php and enter to
    dt.php?action=setup This setup relies heavily on javascript so you need to have that enabled in your browser to create your layout
  • In the setup, first change the time offset. Choose the hour difference with the given server time you want
  • Then choose all the elements you want in your date/time from the table, you ad them by clocking on the their links in the table. On the right side you can choose separation elements. At the bottom you can see the layout as you are adding elements to the date/time. It will use a fixed date as an example of how it will look.
  • If you're not happy with the result click the "start over" button
  • If you're finished, click the "finished" button and you'll get a page with the php code you need to enter to your website.
  • If you have dt.php in a different folder than the page where the date and time should show up, make sure you change the path to dt.php in the php code
  • Repeat this process if you want another different date time layout somewhere else on your website


Go back to the product page




Google
All Rights Reserved 2006
LI-Scripts
Metamorphozis Templates