Subject: \"What\'s Related?\" block on articles

Posted on: 31/07/03 11:50am
By: onnodb

Hi all! I\'ve started playing around with GeekLog some time ago, and now I\'m trying to write some articles on a GeekLog portal. When I wrote a draft of my first one, GeekLog very smartly summed up all the links in my article and put them in a \"What\'s Related\" block on the right side. However, after making some modifications and adding an image, all those links have disappeard from that block (although they\'re still in the article). Is this a bug, or am I just being stupid Confused Wink Oh, one more thing: shouldn\'t those links in an article open in a new browser window by default? Anyway, thanks in advance, I hope I haven\'t said any stupid newbie-things Big Grin

Re:

Posted on: 01/08/03 04:53pm
By: Dirk

[QUOTE BY= onnodb]However, after making some modifications and adding an image, all those links have disappeard from that block (although they\'re still in the article). Is this a bug, or am I just being stupid Confused Wink[/QUOTE] There\'s a similar report here but I haven\'t been able to pin that down yet. Can you provide an example to reproduce this? [QUOTE BY= onnodb]Oh, one more thing: shouldn\'t those links in an article open in a new browser window by default?[/QUOTE] No. See some of my previous rants on that topic ... bye, Dirk

Re:

Posted on: 01/08/03 06:16pm
By: onnodb

[QUOTE BY= Dirk] [QUOTE BY= onnodb]However, after making some modifications and adding an image, all those links have disappeard from that block (although they\'re still in the article).[/QUOTE] There\'s a similar report here but I haven\'t been able to pin that down yet. Can you provide an example to reproduce this?[/QUOTE] Hm... I\'ll try messing around with a test setup, to see if I can somehow reproduce the problem. It just *might* have something to do with adding images to the story, but I\'m not sure. I\'ll keep you updated on this. [QUOTE BY= Dirk][QUOTE BY= onnodb]Oh, one more thing: shouldn\'t those links in an article open in a new browser window by default?[/QUOTE] No. (snip)[/QUOTE] Oops! Never mind, I added this comment while typing my message, it popped up. Apparently, there\'s a good reason for the current behaviour. Thanks.

Test case for \"What\'s related\" bug

Posted on: 02/08/03 03:51am
By: onnodb

While experimenting with GeekLog, I think I\'ve found a relatively simple test case for this bug. Try adding an article that contains an image: GeekLog will forget about all links in the article! I hope this helps...

Re:

Posted on: 02/08/03 11:17am
By: Dirk

[QUOTE BY= onnodb]Try adding an article that contains an image: GeekLog will forget about all links in the article![/QUOTE] Thanks, I found something. I have to point you to CVS for the fix since the forum messes up the patch I wanted to post here ... You only need the last two highlighted changes (for the if(stristr) and if($code) lines). See if that helps. bye, Dirk

Re:

Posted on: 02/08/03 01:18pm
By: onnodb

Big Grin Great! Thanks a lot for your quick reply and great support! I\'ll try fixing it soon on my portal...

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=22776