「blocks/myalbum_topnews.php」40行目あたり
$result = $xoopsDB->query( "SELECT l.lid , l.cid , l.title ,
l.ext ,
l.res_x , l.res_y , l.submitter , l.status ,
l.date AS unixtime ,
l.hits , l.rating , l.votes ,l.comments ,
c.title AS cat_title
, t.description FROM $table_photos
l LEFT JOIN $table_cat c ON
l.cid=c.cid
LEFT JOIN $table_text t ON l.lid=t.lid
WHERE l.status>0 AND $whr_cat ORDER
BY unixtime DESC" ,
$photos_num , 0 ) ;$count = 1 ;
while( $photo = $xoopsDB->fetchArray( $result ) ) {
$photo['description'] = $myts->displayTarea( $photo['description']
, 0 , 1 , 1 , 1 , 1 , 1 ) ;
$photo['description'] = mb_strcut
(strip_tags($photo['description']),0,60);
$photo['title'] = $myts->makeTboxData4Show( $photo['title'] ) ;
説明文を入れたい箇所に <{$photo.description}> を入れる。
参考サイト
http://www.kuri3.net/modules/newbb/viewtopic.php?viewmode=flat&topic_id=53&forum=2
http://jp.xoops.org/modules/newbb/viewtopic.php?topic_id=4440&forum=17#forumpost23799
http://jp.xoops.org/modules/newbb/viewtopic.php?viewmode=flat&order=ASC&topic_id=4537&forum=17