Вход
Главное меню

Subject:*
Name/Email:*
Message Icon:*
       
Select*
Message:*


    


Click the Preview to see the content in action.
Options:*
 
 
 
 
Attach file*
   

Maximum file size: 100Kb;  Allowed extensions: zip jpg gif png  
Images at the max. Size 640 X 800 pixels. 
Confirmation Code*
3 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
   
*
* = Required

Re: Изменения в модуле news
by MayDay on 2003/8/19 4:08:19

в файле index.php ремарим строчку 89:
$totalcount = $introcount + $fullcount;
а также строчки 93 и 94:
$morelink .= sprintf(_NW_BYTESMORE,$totalcount);
$morelink .= ' | ';

И все :)
Re: Вот как у меня (xoops2 v.2.0.3)
by Enoh on 2003/8/19 2:14:13

Есть один вопрос - если вставить этот код в файл index.php тот ссылка "читать дальше" будет видна?
Для меня важно только, чтобы этих цифр не было, а читать дальше мы будем...
Вот как у меня (xoops2 v.2.0.3)
by denious on 2003/8/18 8:14:22

Файл 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>';
}
}
}
Re: Изменения в модуле news
by Alexxus on 2003/8/17 15:51:10

Просто так их не убрать - надо искать в коде.
Изменения в модуле news
by Enoh on 2003/8/17 0:23:21

У меня установлено так чтобы новости выводились на главной странице сайта. Внизу каждого нового сообщения выводятся коментарии, читать дальше,и еще размер в байтах - вопрос в том как можно запретиь вывод этих чисел!?
Powered by XOOPS © 2001-2023 The XOOPS Project