Download Instructions

Getting the FindLinkPartners code working on your website.

There are 2 ways to get your website connected up with FindLinkPartners.

1. If using WordPress.

a. From inside FindLinkPartners, find your website in the list of domains added under your account. Then note down the ID (the number on the far left hand side).
b. Download the plugin, install it into your website, using the standard WordPress plugin instructions.
c. Create a new PAGE (not a post), call it anything you want. Just please don’t call it Links or FindLinkPartners or anything like that.
d. On the page, insert the following shortcode

[flp id=123]

Replace 123 with the ID you wrote down in step a.

e. Save and publish the page.
f. Edit our website by placing a link on your home page to your newly created page appears. You could do this by placing a link in the sidebar, or by modifying your sites menu and including a link to the page there.

Save your changes and you are done!

2. Not using WordPress, using a standard PHP enabled website.

a. From inside FindLinkPartners, find your website in the list of domains added under your account. Then note down the ID (the number on the far left hand side).

b. Create a page on your website, call it what ever you want. Just please don’t call it Links or FindLinkPartners or anything like that.

c. Insert the following PHP code into that page, where you want the results to be displayed.

<?PHP
$id = 123;
$s='';

$num=isset($_GET)?count($_GET):0;
if ($num>0)
{
$i=1;
foreach($_GET as $key=>$value)
$s.= '&'.$key.'='.$value;
}
$protocol = $_SERVER["SERVER_PROTOCOL"];
if (strpos($protocol,'/')>0)
$protocol = strtolower(substr($protocol, 0,strpos($protocol,'/')));
$page = $protocol.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];

$url = 'http://findlinkpartners.com/getlinks.php?flp_site_id='.$id;
$url.='&flp_page_url='.urlencode($page).$s;

if (function_exists('curl_init'))
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 6000 );
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3 );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept-Encoding: gzip,deflate'));
curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate");
curl_setopt($ch, CURLOPT_URL, $url);
$result = curl_exec($ch);
if(curl_errno($ch))
$c = '';
else
{
$c=trim($result);
curl_close($ch);
}
}
else
$c= trim(@file_get_contents($url));
}
echo $c;
?>

d. In the above code, replace the number 123 (on line 2 with the ID you wrote down in step a.

e. Save and publish the page.
f. Edit our website by placing a link on your home page to your newly created page appears. You could do this by placing a link in the sidebar, or by modifying your sites menu and including a link to the page there.