The <MOTD> code under EHTML is used to display the contents of a plain text file in your EHTML page. The primary advantage of using this code over directly modifying your home is the reduced risk of errors that could cause undesirable effects to your page. Note that the "plain text" described below can contain HTML codes for formatting, but not EHTML codes.
Since the <MOTD> code is responsible for displaying a plain text file to the screen, that text file must exist. As well, the text file must be "readable by the world". This is done by setting the appropriate "file permissions" under UNIX.
To begin the setup for the <MOTD> code, you must access a UNIX prompt by either logging in to "alpha.vaxxine.com" using a terminal emulator program or by using a "telnet" program running over SLIP/PPP.
After logging in, you must enter your EHTML directory and create a file containing the text that you wish to display as a message. If you are not familiar with the use of the "pico" editor, which will be referenced below, you may enter Ctrl-G while within the editor to Get help.
To create a message file called "ehd_default" which could be used with the <MOTD> code, you would enter the following commands at the UNIX prompt. You do not need to type anything after the semicolons (;) as they are just comments.
cd ~/html/ehtml ; # Enter your "html/ehtml" directory under UNIX chmod a+rx . ; # This lets other people read your messages pico ehd_default.motd ; # Enter message and Ctrl-X to exit chmod a+rx *.motd ; # Other people can read MOTDs in particular
After your MOTD file was created in the way specified above, you must add the code to your document in order to display the message. In this example, you would use the standard basic code style of <MOTD ehd_default>. Note that "ehd_default" must be in all lower case since that is the way we named the "ehd_default.motd" file under UNIX.
[
EHTML Overview |
EHTML Setup |
EHTML Codes |
EHTML Problems
]
Please Report Problems With This Page To:
Vaxxine Web Development, vaxxweb@vaxxine.com
Original EHTML documentation by RK. EHTML originally designed by JP, updates by RK.