Integrate LinkMan into Wordpress

Problems installing LinkMan?
Post Reply
newbielinkman
Posts: 2
Joined: Tue Apr 18, 2006 6:05 am

Integrate LinkMan into Wordpress

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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:
Last edited by Klemen on Mon Apr 24, 2006 2:40 pm, edited 1 time in total.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
newbielinkman
Posts: 2
Joined: Tue Apr 18, 2006 6:05 am

Post 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.
Post Reply