En attendant, tu pourris mon topic là..
Modérateur: Equipe

$phpbb_root_path = '../forums/';

Chaos[] a écrit:Et bien ça ne peut pas marcher étend donnée que le forum est à la racine de mon site.. :S


page_header('News'); // Titre de la page
page_header($page_title, false); $page_title = $user->lang['TAPAGE_TITRE']; // load the sql query
$sql = 'SELECT * FROM ' . NEWS_TABLE . ' ORDER BY news_id ASC';
$result = $db->sql_query($sql);
while ($news = $db->sql_fetchrow($result))
{
// Envoie au template
$template->assign_block_vars('news', array(
'AUTEUR' => $news['news_auteur'],
'TITRE' => $news['news_titre'],
'DATE' => $news['news_date'],
));
}
$db->sql_freeresult($result); define('NEWS_TABLE', $table_prefix . 'news'); <!-- INCLUDE overall_header.html -->
<div class="forumbg forumbg-table">
<div class="inner"><span class="corners-top"><span></span></span>
<table class="table1" cellspacing="1" id="attachtable">
<thead>
<tr>
<th width="40%">{L_NEWS_TITRE}</th>
<th width="20%">{L_NEWS_AUTHOR}</th>
</tr>
</thead>
<tbody>
<!-- BEGIN row -->
<tr class="bg1">
<td width="40%" align="center">{news.MOD_NAME}</td>
<td width="20%" align="center">{news.AUTHOR}</td>
</tr>
<!-- BEGINELSE row -->
<tr class="bg1">
<td width="40%" align="center" colspan="4">{L_NO_NEWS}</td>
</tr>
<!-- END row -->
</tbody>
</table>
<span class="corners-bottom"><span></span></span></div>
</div>
<br />
<!-- INCLUDE overall_footer.html -->
Aucun support par mail, MP ou msn.
Aucun support par mail, MP ou msn.Utilisateurs parcourant ce forum: Bing [Bot], Exabot [Bot], Google [Bot] et 12 invités