Posted on: 03/31/04 07:18pm
By: Anonymous (oddly)
What's Related block weirdness
Posted on: 03/31/04 07:19pm
By: Anonymous (oddly)
Also, that site is running geeklog 1.3.9
What's Related block weirdness
Posted on: 03/31/04 08:51pm
By: Turias
Hmm, maybe it's a bug with 'a name'. Could you try removing that and seeing if it fixes it?
What's Related block weirdness
Posted on: 03/31/04 08:56pm
By: asmaloney
[QUOTE BY= oddly]Any ideas on how to fix this behavior so it only shows the story's links?[/QUOTE]
In lib-common.php in the function COM_extractLinks, try changing this:
preg_match_all( "/(<a.*?href="(.*?)".*?>(.*?)(</a>/i", $fulltext, $matches );
to this:
preg_match_all( "/(<a +?href="(.*?)".*?>(.*?)(</a>/i", $fulltext, $matches );
This will restrict it to matching only spaces between the 'a' and the 'href' which seems to be the problem.
What's Related block weirdness
Posted on: 03/31/04 10:11pm
By: Anonymous (oddly)
[QUOTE BY= Turias] Hmm, maybe it's a bug with 'a name'. Could you try removing that and seeing if it fixes it?[/QUOTE]
Yup. Removing the "a name" html tags fixed it immediately.
What's Related block weirdness
Posted on: 03/31/04 10:17pm
By: Turias
Yeah, asmaloney's hack will work, but it won't pick up links with attributes between the 'a' and the 'href' (like 'title', 'style', or 'class').
Looks like a bug with 'a' tags that don't hold a 'href' attribute. Wanna file a bug report?
What's Related block weirdness
Posted on: 03/31/04 10:18pm
By: Anonymous (oddly)
Thanks for the patch!! It fixed the problem completely.
What's Related block weirdness
Posted on: 03/31/04 10:22pm
By: Anonymous (oddly)
http://project.geeklog.net/ responds with "The Geeklog Project Site Could Not Connect to Database:" when I try to go there to report this bug.
What's Related block weirdness
Posted on: 04/01/04 02:25am
By: Dirk
[QUOTE BY= oddly] http://project.geeklog.net/ responds with "The Geeklog Project Site Could Not Connect to Database:" when I try to go there to report this bug. [/QUOTE]
Keep trying ... The project site is a bit unstable these days. That should be resolved soon, hopefully, when we finally move it to the new server.
bye, Dirk