31
Hi,
One last thing, I suppose that you have already made it with your last beta version but I have completed the search.inc.php code. Before the line :
return $ret;
I have added, to finish the search "inside" attached files :
$nbfiles=count($articles_arr);
for($j=0;$j<$nbfiles;$j++)
{
$link="article.php?page=1&articleid=".$articles_arr[$j]."";
if(!in_array($link,$ret))
{
$sql="select articleid, title, published, uid, categoryid from ".$xoopsDB->prefix("wfs_article")." WHERE articleid=".$articles_arr[$j];
$result = $xoopsDB->query($sql,$limit,0);
$myrow = $xoopsDB->fetchArray($result);
if($myrow['published']>0 && $myrow['published']<=time())
{
$ret[$i]['image'] = "images/wf.gif";
$ret[$i]['title'] = " ".$myrow['title'];
$ret[$i]['link'] = "article.php?page=1&articleid=".$myrow['articleid']."";
$ret[$i]['time'] = $myrow['published'];
$ret[$i]['uid'] = $myrow['uid'];
$i++;
}
}
}
Bye,
Hervé