<html>
<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Installation Guide</title>
<style type="text/css">
<!--
A:link {text-decoration: none; color: #11116E;}
A:visited {text-decoration: none; color: #11116E;}
A:hover {font-style: normal; color: #000000; text-decoration: underline;}
SELECT {font-family:Verdana;font-size:8pt;background:#FFFFFF;color:#000000;}
INPUT {font-family:Verdana;font-size:8pt;background:#FFFFFF;color:#000000;}
TEXTAREA {font-family:Verdana;font-size:8pt;background:#FFFFFF;color:#000000;}
hr {color: #11116E; background-color: #11116E; height: 1px;}
body {
background-color: #FFFFFF;
color: #000000;
font-family: verdana;
font-size: 10pt;
scrollbar-base-color: #0263C2;
scrollbar-arrow-color: #FFFFFF;
}
TD{
font-family: verdana;
font-size: 10pt;
}
-->
</style>
</head>
<body topmargin="50" leftmargin="50">
<p align="center"><img border="0" src="cjt.jpg" width="545" height="220"></p>
<p align="left"><br>
<font size="4"><b>
Installation Guide</b></font></p>
<div align="left">
<table border="0" cellpadding="3" cellspacing="0" width="100%">
<tr>
<td width="15%" height="19"><b>Script Name</b></td>
<td width="85%" height="19">CJ Random Quote v1.0</td>
</tr>
<tr>
<td width="100%" height="21" colspan="2">
<hr>
</td>
</tr>
<tr>
<td width="15%" height="21"><b>Files Required:</b></td>
<td width="85%" height="21">randomquote.php</td>
</tr>
<tr>
<td width="15%" height="21"></td>
<td width="85%" height="21">randomquote.inc</td>
</tr>
<tr>
<td width="15%" height="21"></td>
<td width="85%" height="21">displayquote.inc (Optional)</td>
</tr>
<tr>
<td width="100%" height="21" colspan="2">
<hr>
</td>
</tr>
<tr>
<td width="15%" height="21" valign="top"><b>Installation</b></td>
<td width="85%" height="21"><b>1) Variables to edit in
randomquote.php</b>
<p><font color="#808080">a) if you want random, keep true, set to false if want sequential
(i.e line by line)</font><br>
$random = <font color="#0000FF">true</font>;<br>
<br>
<font color="#808080">b) Webserver path to your quote files with / on end!</font><br>
$url = "<font color="#0000FF">/home/www/username/edit/this/randomquote/</font>";<br>
<br>
<font color="#808080">c) the random quote file (stores all quotes)</font><br>
$quotefile = "<font color="#0000FF">randomquote.inc</font>";<br>
<br>
<font color="#808080">d) the quote count file (optional if $random =
false)</font><br>
$quotecountfile = "<font color="#0000FF">displayquote.inc</font>";<br>
<br>
<b><br>
2) Upload<br>
<br>
</b>Upload all the files required (see above) into a directory
preferably called "<font color="#0000FF">randomquote</font>" so
your link to randomquote.php would be <a href="http://www.yourdomain.com/randomquote/randomquote.php">www.yourdomain.com/randomquote/randomquote.php</a></p>
<p><b><br>
3) Adding Quotes<br>
<br>
</b>When adding quotes make sure that you have one <b>WHOLE</b> quote
per line and that the randomquote.inc file does not have a blank quote
at the end - i.e <font color="#FF0000">do not add a return to the
end of the file</font>.<b><br>
<br>
<br>
4) Linking to randomquote.php!<br>
<br>
</b>After creating a page in which you would like to show how many users
are online (usually your index page) you will then need to INSERT the
randomquote.php file within it. This can be done using PHP or SSI!<br>
<br>
<b>a) How to create a link within a PHP Page (.php, .php3, .php4)</b><br>
<br>
To create the INSERT using PHP use this code:<br>
<br>
<textarea rows="3" name="S1" cols="58"><?
include("randomquote/randomquote.php");
?></textarea><br>
<br>
NOTE: You may need to change the path to randomquote.php (to be certain
you could enter the full path!)<br>
<br>
<b>b) How to create a link within a SSI Page (.shtml, .shtm)</b><br>
<br>
To create the INSERT using SSI use this code<br>
<br>
<textarea rows="5" name="S1" cols="58"><!--#include virtual="/randomquote/randomquote.php" -->
OR
<!--#exec cgi="/randomquote/randomquote.php" --> </textarea><br>
<br>
<br>
Once you have added the code to the page, upload the page!<b><br>
</b></p>
</td>
</tr>
<tr>
<td width="100%" height="21" valign="top" colspan="2">
<hr>
</td>
</tr>
<tr>
<td width="15%" height="4" valign="top"><b>Finished</b></td>
<td width="85%" height="4"><b>Thats all!<br>
</b><br>
If you have any problems with the script go to <a href="http://www.cj-design.com/?id=forum">www.cj-design.com/?id=forum</a>
and seek advice!</td>
</tr>
<tr>
<td width="100%" height="4" valign="top" colspan="2">
<hr>
</td>
</tr>
<tr>
<td width="15%" height="3" valign="top"><b>Donate</b></td>
<td width="85%" height="3">Show your appreciation for this script by
donating : ) <a href="http://www.cj-design.com/?id=donate">www.cj-design.com/?id=donate</a></td>
</tr>
<tr>
<td width="100%" height="10" valign="top" colspan="2">
<hr>
</td>
</tr>
</table>
</div>
<p align="center">© CJ Website Design
</p>
</body>
</html>