Affiliate Scheme

Use www.deepsea.co.uk to provide a page of dive boat availability or angling boat availability on your own website. The content can be easily filtered to show information specific to your location or even particlar interests.

Overview

The www.deepsea.co.uk affiliate scheme provides information on boat availability for inclusion on any web site free of charge. Our only conditions of use are that the information is displayed as provided without any changes and that it is not used in an offensive or derogatory context.

How it works

First, have a look at an example on PSA International where Diving Boat Availability is provided by www.deepsea.co.uk .

You will need to copy and edit two files and build them into your web site:

  1. An html (.htm) file that “frames” the deepsea content within your site.
  2. A style sheet (.css) that gives the content provided by deepsea the same look as the rest of your site

The html (.htm) file

Here is an example of the html file you need on your site. You can either link to your version of this file or hide it within another frame.

<html><head>
<!-- FOR INSTRUCTIONS SEE http://www.deepsea.co.uk/affiliate/index.htm -->
<script language="JavaScript" type="text/JavaScript"
src="http://www.deepsea.co.uk/affiliate/deepsea_content.js">
</script>
</head>
<script language="JavaScript" type="text/JavaScript"><!--
  
// add set_ds_param() calls for each parameter required
set_ds_param ('style', 'http://www.psainternational.co.uk/boatspace/deepsea_content.css');
set_ds_param ('title', 'Dive Boat Availability');
set_ds_param ('mode', 'Calendar');
set_ds_param ('interest', 'diving');
  
// leave this alone
make_ds_frameset();
  
--></script>
<noscript>
<!-- You can edit this to another message if you like -->
<p>JavaScript must be enabled to view content from deepsea.co.uk</p>
</noscript>
</html>

The only bits you will ever need to change are those coloured red. We strongly advise you leave the rest alone. If you have a more complicated site design, you can include your version of the above file within another frame on your site.

How to configure it

Be careful not to change anything else by mistake or it simply won't work.

The style sheet (.css) file

Here is an example of the style sheet you need to put on your site.

/* File deepsea_content.css */
/* Edit to make deepsea content match the look of your site */
/* The backround displayed behind the page */
BODY {
background-color: #C6EFF7;
background-image: none;
}
  
/* Used for the heading of the page */
H1	{
color:#083194;
font-size:30pt;
font-family:"Comic Sans MS";
text-align:center;
margin:20pt 40pt;
padding:20pt 0pt;
border-width:1pt 0pt;
border-color:purple;
border-style:solid none;
}
  
/* Used for most text */
P {
color:black;
font-size:14pt;
text-align:left;
font-family:"Arial";
}

The bits you are most likely to want to change to make it look like your site are the background colour or image, the heading font and the main text font. These are all coloured in red. The border style sets a solid 1pt border colored purple above and below the heading, with no (none, 0pt) border on either side of the heading.

Zip file

Download the files to setup deepsea content on your site as a zip archive deepsea_content.zip.

Feedback

Dont forget when you have it all running, let us know by posting a message on the comments forum.

Advanced stuff

Everything above this point is the stuff you need to include to make a deepsea affiliate page work. From here on, it is all optional, but if you know more about web programming, you can do more complicated things with the deepsea affiliate data.

Changing the appearance of affiliated pages

The file ‘deepsea_content.css’ provides minimal style information. To radically change the appearance of the deepsea data, there are other styles that you could include in your style sheet to change the way the list and calendar are displayed. Examples can be found in the file ‘deepsea_advanced_content.css’ (see the zip file).

Filtering the deepsea data

The data supplied by deepsea can be filtered to a subset matching specific keywords. Include the line:

set_ds_param ('keys', 'keyword1,keyword2, etc....');

Example 1. Configure deepsea feed to only show trips to the Channel Islands (note the common misspellings):

set_ds_param ('keys', 'alderney,aldernay,channel island,channel islands,guernsey,jersey,gurnsey');

Example 2. Configure deepsea feed to only show boats from ports in the West Wight region:

set_ds_param ('keys', 'lymington,yarmouth iow,keyhaven');

Example 3. Configure deepsea feed to show conger and ling trips:

set_ds_param ('keys', 'conger,ling');

Future developments

The affiliate scheme is a new service for deepsea.co.uk and we will no doubt be adding further enhancements in the future. Whatever these enhancements turn out to be, webmasters can rest assured that we will maintain backward compatibility with the affiliate scheme described above.


Last Updated: Tue Sep 5 2006