SAPE Client Plugin v0.1

Based on Google Analytics plugin by lss.

Description
This plugin do 2 things.
1.It offers a settings page in blog settings. Blogger can fill in his SAPE_USER code which can be found in his SAPE code settings.
2.It offers a method call getSapeLinks returning SAPE links code which can be add to template file. A number of links could be specified (5 by default).

Installation
1. Unpack the plugin zip file to your lifetype plugins folder, then refresh browser in plugins center. You can find sapeclient plugin installed.
2. Create directory named "sape" in the root of your LifeType installation
3. Place standard SAPE script (sape.php) in this directory
4. Provide write permissions for web-server on this directory

Configuration
1.Enter admin page, goto control center -> Sape Client.
2.Enable this plugin and fill in you SAPE_USER code. You can find this code in SAPE code settings.

Template
Add template code below to any part of your template.

{if $sapeclient}
{$sapeclient->getSapeLinks(x)}
{/if}

where x - number of links

Of course, you must get a SAPE account first.
