1
If you use WF-Sections 2.07b3 and wondered why the 'related news' feature displays the news category rather than the article title - here's a fix.
In news/class/class.newsstory.php
around line 207 (before the closing brace)
add a new function:
le="color: #000000"><?php // pk function for wf-section related news link function pk_newslink() { $ret = "<a href='".XOOPS_URL."/modules/news/article.php?storyid=".$this->storyid()."'>".$this->title()."</a>"; return $ret; }
Then in wfsection/article.php
around line 679
Change:
le="color: #000000"><?php $related_newsstory['title'] = $ret_news->textLink();
to:
le="color: #000000"><?php $related_newsstory['title'] = $ret_news->pk_newslink();
Adding a related news item will now display a direct link to the article.
A thread is for life. Not just for Christmas.