Page 1 of 1

Integrate LinkMan into Wordpress

Posted: Mon Apr 24, 2006 10:04 am
by newbielinkman
Script URL: http://www.raymond.cc/linkman
Version of script: 1.03
Version of PHP: Not sure
Hosting company: Integricity.com
Have you searched THIS FORUM for your problem: Yes
(if not please do before posting)
If so, what terms did you try: integrate, echo, print

Write your message below:
I am trying to integrate Linkman (Link Exchange script) into my Wordpress.

Currently this is the location of my Wordpress.
http://www.raymond.cc/blog/

And this is the location of where I installed Linkman.
http://www.raymond.cc/linkman/

I want http://www.raymond.cc/blog/links/ to echo or print out the linkinfo.txt file from http://www.raymond.cc/linkman/linkinfo.txt

I believe that it is links.php that has the code to call out the contents in linkinfo.txt

Problem is, according to the location of where the files are, I can't just copy and paste the php codes from links.php to my wordpress.
How should I modify them? I tried changing around but couldn't get it to work.
I've asked for help in PHP forums, and even in Wordpress forum but no one help me :( Please, if anyone could help, I'd really appreciate it.

Posted: Mon Apr 24, 2006 12:47 pm
by Klemen
Well, you have all the code in links.php, all you need to do is change 3 paths. This might work:

Code: Select all

require '../linkman/settings.php';

$lines = array ();
$lines=file('../linkman/linkinfo.txt');

echo '<p class="linkman">';

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 '<a href="'.$url.'" target="_blank" class="linkman">'.$title.'</a> - '.$description.'<br>';
    }
}

echo '
</p>
<hr size=1 noshade>
<p align="center" class="linkman">Powered by <a href="http://www.phpjunkyard.com/php-link-manager.php" target="_blank" class="linkman">Link manager LinkMan</a> '.$settings['verzija'].' from <a href="http://www.phpjunkyard.com/" target="_new" class="linkman">PHPJunkYard - free php scripts</a></p>
';
If not try adding/removing ../ in paths... And don't modify the Powered by HTML :wink:

Posted: Mon Apr 24, 2006 1:17 pm
by newbielinkman
Man, thank you!

Got it working by using only one ../

Will definately blog about this script and blast it on many blog search engines :)

I believe there are many people running wordpress and figuring how to do this.

Thanks again.