1
xoopie
Removing News topics
  • 2005/4/6 17:05

  • xoopie

  • Just popping in

  • Posts: 9

  • Since: 2004/4/16


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().'&nbsp;:&nbsp;'."<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().'&nbsp;:&nbsp;'.


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

2
risto
Re: Removing News topics
  • 2005/4/12 15:00

  • risto

  • Not too shy to talk

  • Posts: 159

  • Since: 2003/4/16


//$story['title'] = $thisstory->textlink().'&nbsp;:&nbsp;'.$story['title'];

this was enogh for me!

Login

Who's Online

155 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 155


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits