en el config.php esta esto
Código:
Y en el notices.php$_config['forum_feed'] = 'http://zacura.es/foro/'; $_config['notice_feed'] = 'notice'; $_config['updates_feed'] = 'update'; $_config['events_feed'] = 'event';
Código:
Como tendrias que hacer para vincular la web con el foro?<?PHP
$myReadAccess=new ReadFile($_config['forum_feed'].$_config['notice_feed']);
if(!$data=$myReadAccess->getFileContents()){
//ERROR, DISPLAY ERROR MESSAGE
echo "Error: " . $myReadAccess->getError();
}
else{
$feed = simplexml_load_string($data);
$c=1;
foreach ($feed->channel->item as $f) {
echo '<tr>
<td class="no">'.$c++.'</td>
<td class="subject"><a href="'.$f->link.'" target="_new">'.$f->title.'</a></td>
<td class="postedby">'.$f->author .'</td>
<td class="date">'.date('Y-m-d',strtotime($f->pubDate)) .'</td>
<td class="view">-</td>
</tr>';
}
}
?>
Aquí quiero que las muestre = http://cabal.zacura.es/notices.html
y el foro es este www.zacura.es/foro
gracias de antemano ^^


