4
I realise this has been covered a few times in the forums but it just doesn't seem to work for me.
I have the News module on my homepage and I would like to remove the topic before the news title i.e.:
Change
News : first story title to just
first story title.
I know I have to change things in the index.php of the news module, part of this code:
$story['title'] = $sarray[$i]->textlink().' : '."<a href='".XOOPS_URL."/modules/news/article.php?storyid=".$sarray[$i]->storyid()."'>".$sarray[$i]->title()."</a>";
In another post on this forum it says to remove
textlink().' : '.
so that I'm left with
$story['title'] = $sarray[$i]->"<a href='".XOOPS_URL."/modules/news/article.php?storyid=".$sarray[$i]->storyid()."'>".$sarray[$i]->title()."</a>";
Well I tried that but I just get the following error:
Quote:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or T_VARIABLE or '{' or '$' in /home2/mysite/public_html/modules/news/index.php on line 131
So can anyone please tell me what I've done wrong ?
Thanks