|
Re: Изменения в модуле news
|
||||
|---|---|---|---|---|
|
Просто так их не убрать - надо искать в коде.
Posted on: 2003/8/17 15:51
|
|||
|
||||
|
Вот как у меня (xoops2 v.2.0.3)
|
||||
|---|---|---|---|---|
|
Just popping in
![]() |
Файл index.php модуль news. "Читать далее" я тоже убрал. Какой в этом смысл, если заголовок - это ссылка?
$sarray = NewsStory::getAllPublished($xoopsOption['storynum'], $start, $xoopsOption['storytopic']); $scount = count($sarray); for ( $i = 0; $i < $scount; $i++ ) { $story = array(); $story['id'] = $sarray[$i]->storyid(); $story['poster'] = $sarray[$i]->uname(); if ( $story['poster'] != false ) { $story['poster'] = "<a href='".XOOPS_URL."/userinfo.php?uid=".$sarray[$i]->uid()."'>".$story['poster']."</a>"; } else { $story['poster'] = $xoopsConfig['anonymous']; } $story['posttime'] = formatTimestamp($sarray[$i]->published()); $story['text'] = $sarray[$i]->hometext(); $introcount = strlen($story['text']); $fullcount = strlen($sarray[$i]->bodytext()); $totalcount = $introcount + $fullcount; $morelink = ''; if ( $fullcount > 1 ) { } $ccount = $sarray[$i]->comments(); $morelink .= '<a href="'.XOOPS_URL.'/modules/news/article.php?storyid='.$sarray[$i]->storyid().''; $morelink2 = '<a href="'.XOOPS_URL.'/modules/news/article.php?storyid='.$sarray[$i]->storyid().''; if ( $ccount == 0 ) { $morelink .= '">'._NW_COMMENTS.'</a>'; } else { if ( $fullcount < 1 ) { if ( $ccount == 1 ) { $morelink .= '">'._NW_READMORE.'</a> | '.$morelink2.'">'._NW_ONECOMMENT.'</a>'; } else { $morelink .= '">'._NW_READMORE.'</a> | '.$morelink2.'">'; $morelink .= sprintf(_NW_NUMCOMMENTS, $ccount); $morelink .= '</a>'; } } else { if ( $ccount == 1 ) { $morelink .= '">'._NW_ONECOMMENT.'</a>'; } else { $morelink .= '">'; $morelink .= sprintf(_NW_NUMCOMMENTS, $ccount); $morelink .= '</a>'; } } }
Posted on: 2003/8/18 8:14
|
|||
|
||||
|
Re: Вот как у меня (xoops2 v.2.0.3)
|
||||
|---|---|---|---|---|
|
Just popping in
![]() |
Есть один вопрос - если вставить этот код в файл index.php тот ссылка "читать дальше" будет видна?
Для меня важно только, чтобы этих цифр не было, а читать дальше мы будем...
Posted on: 2003/8/19 2:14
|
|||
|
||||
|
Re: Изменения в модуле news
|
||||
|---|---|---|---|---|
|
Just popping in
![]()
|
в файле index.php ремарим строчку 89:
$totalcount = $introcount + $fullcount; а также строчки 93 и 94: $morelink .= sprintf(_NW_BYTESMORE,$totalcount); $morelink .= ' | '; И все :)
Posted on: 2003/8/19 4:08
|
|||
|
||||


)