As I previously mentioned that I’ve finally managed to integrate link exchange manager LinkMan into my WordPress.
I’ve also seen some post on forums asking for help on how to integrate the link exchange manager LinkMan php code into WordPress in order to automatically update the links added at their WordPress Pages whenever someone submit their links.
After weeks of trying and asking for help, I’ve finally did it and I will now show you exactly how I did it.
1. Download link exchange manager LinkMan and install it according to instructions provided.
( I installed LinkMan at http://www.raymond.cc/linkman/ )
2. Download and install runPHP, a plugin for WordPress.
3. Create/Write a Page from your WordPress.
( I created a WordPress Page at http://www.raymond.cc/blog/links/ to display the links exchanged from LinkMan )
4. The links.php file from your LinkMan folder contains the necessary php code to call out the links exchanged from linkinfo.txt
Just copy and paste the PHP code below into your Page that you created in step 3.
[code]
require ‘../linkman/settings.php’;
$lines = array ();
$lines=file(‘../linkman/linkinfo.txt’);
echo ‘
‘;
foreach ($lines as $thisline)
{
$thisline=trim($thisline);
if (!empty($thisline)) {
list($name,$email,$title,$url,$recurl,$description)=explode($settings[‘delimiter’],$thisline);
if ($settings[‘clean’] != 1) {$url=’../linkman/go.php?url=’.$url;}
echo ‘‘.$title.’ – ‘.$description.’
‘;
}
}
echo ‘
Powered by Link manager LinkMan ‘.$settings[‘verzija’].’ from PHPJunkYard – free php scripts
[/code]
If you’re using WordPress v1.5.x, select the “eval() Content” checkbox to enable PHP code in the Page.
If you’re using WordPress v2.0, select the “run PHP code?” checkbox to enable PHP code in the Page.
That’s it. Login to your LinkMan and manually add some links to test it out.
If it doesn’t work, try adding or removing ../ in paths on the PHP code.
Another alternate and simpler way you can integrate link exchange manager LinkMan into your WordPress blog is to insert only 1 line code to your WordPress Page.
[code]
[/code]
Don’t forget to select the “eval() Content” checkbox if you’re using WordPress v1.5.x or “run PHP code?” if you’re using WordPress v2.0 to enable PHP code in the Page.
Once you’ve successfully integrated link exchange manager LinkMan on your website, don’t forget to exchange links with raymond.cc!