Page 1 of 1

Related links plugin prob???

Posted: Fri Apr 13, 2007 4:41 am
by chrissie
I have installed the related entries/links plugin.

when I type out the link the way it says to

eg: http://link1.com=Link 1

It comes out on the page as exactly that and when you click on it it tries to go to http://link1.com=Link%201

I'm wanting it to show just

Link 1

then go to the page http://link1.com

Is there something else I need to do or some other plugin I need to have installed to make this work?

Re: Related links plugin prob???

Posted: Fri Apr 13, 2007 10:45 am
by garvinhicking
Hi!

You can configure the "seperation" character in that plugin, did you try to maybe use a character like "|" instead of "="?

Are you sure you tried with "http://link1.com"? Or did you try it with another one maybe?

HTH,
Garvin

Posted: Fri Apr 13, 2007 10:52 am
by chrissie
Nope, definitely used "=" symbol. I had read about using "|" in another thread and tried that too. didn't work.

http://link1.com was just an example. but i tried with a few different links and using and not using spaces in the description but to no avail.

Posted: Fri Apr 13, 2007 10:56 am
by garvinhicking
Hi!

Hm, I just tried to enter:

Code: Select all

http://link1.com/=Link1
http://link1.com/=Link 1
and both work for me. Maybe you need to tell me which exact links you entered?

Regards,
Garvin

Posted: Fri Apr 13, 2007 11:07 am
by chrissie
I typed a few, just test ones

http://example.com=Example Link
http://link1.com=Link 1
http://link1.com=Link1

Posted: Fri Apr 13, 2007 11:11 am
by chrissie
This is the test page. please ignore the silliness of the post. just trying to set everything up first then I'll put the real content in.

http://undeniableright.com/index.php?/a ... l#extended

Posted: Fri Apr 13, 2007 11:12 am
by garvinhicking
Hi!

And when you configure the related entries plugin through teh configuration, you did set "=" as the separation character there?

Regards,
Garvin

Posted: Fri Apr 13, 2007 11:18 am
by chrissie
Image

Is this what it's supposed to look like?

Posted: Fri Apr 13, 2007 11:21 am
by chrissie
I can setup a ftp acct for you to take a look if thet would be easier.

Posted: Fri Apr 13, 2007 11:22 am
by garvinhicking
Hi!

Yes, that looks about right. If you change it to "|" on that screen, and then in your entries as well it still doesn't work?

This sounds as if some other plugin might be interfering...it really works here for me :(

Maybe you could edit the relatedlinks.php event plugin file and replace this:

Code: Select all

$parts = explode($this->get_config('explodechar', '='), $link);
if (empty($parts[1])) {
    $parts[1] = $parts[0];
}
with:

Code: Select all

echo "Got input: <pre>$link</pre><br />Replace-Char: " . $this->get_Config('explodechar', '=') . "<br />\n";
$parts = explode($this->get_config('explodechar', '='), $link);
echo "Got " . count($parts) . " parts:<pre>" . print_r($parts, true) . "</pre><br />\n";
if (empty($parts[1])) {
    $parts[1] = $parts[0];
}
Best regards,
Garvin

Posted: Fri Apr 13, 2007 11:26 am
by chrissie
Ok. now I feel silly.

When I tried "|" before i musn't have changed it in the config screen. I tried changing both now and it works perfectly. Can't figure out why the "=" doesn't though. oh well it works fabulously now. thankyou so much for all your help garvin.