11
ajaxbr
Re: News on the front page
  • 2004/7/6 20:49

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


Skythe: usually this kind of thing is pretty simple in XOOPS, this is a sad exception but I believe the new version of News will make it much easier to tack problems like this.

Anyway, here's what you want:
in /news/class/class.newsstory.php we have
function textlink()
    {
        
$ret ".XOOPS_URL."/modules/news/index.php?storytopic=".$this->topicid()."'>".$this->newstopic->topic_title()."";
        return 
$ret;
    }
... which seems to create the topic link,

in /news/index.php
$story['title'] = $sarray[$i]->textlink().' : '.".XOOPS_URL."/modules/news/article.php?storyid=".$sarray[$i]->storyid()."'>".$sarray[$i]->title()."";
... which concatenates the topic link with the story title + HTML for link.

I guess that you could replace the above lines in /news/index.php with
$story['title'] = $sarray[$i]->title();
, but I'd wait for someone with a better grip of PHP to avoid silly type errors. Or you can just try it on a test server :)

In article.php there's
$story['title'] = $article->textlink()." : ".$article->title();
, which should also be hacked if you need to keep the new format all around (title() seems to be a core function).

12
Skythe
Re: News on the front page
  • 2004/7/20 20:30

  • Skythe

  • Just popping in

  • Posts: 99

  • Since: 2004/7/2 2


thanks alot abrax !!!

i got it right now. perfect

Login

Who's Online

221 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

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

Latest GitHub Commits