The important part! This uses SSI
(server sides includes) to get the html to pop up. If you are using multiple
categories you will make an EXACT copy of rotate.cgi and change ONE LINE (see below).
This value "marketing" must EXACTLY match the value of the category form
field inside the admin panel.
$query =
"marketing";
To call the ad simply cut and paste the
following command inside your webpage wherever you please.
<!--#EXEC
CGI="/cgi-bin/htmlrotator/marketing.cgi"-->
To clarify let me review what we have done.
For each category you simply clone rotate.cgi and rename it to
"categoryname.cgi". In this example I used marketing. Inside
rotate.cgi there is one single line of code to change
$query =
"marketing";
$query must be set to match the value of the
category form field you set inside the admin panel. So if you have 40 categories you
will make 40 clones of rotate.cgi. One copy for each category. Each clone will
have $query value changed. All .cgi files chmodded to 755 as usual. To call
the rotator for any category simply use the SSI command pointing to that rotator.
<!--#EXEC
CGI="/cgi-bin/htmlrotator/marketing.cgi"-->
If you do NOT want
multiple categories then you simply use ONE category - call it something like
"general". Follow the same procedure.