Sinsitrus
Messages postés849Date d'inscriptionsamedi 11 juin 2005StatutMembreDernière intervention21 août 2015
-
18 janv. 2008 à 01:26
Sinsitrus
Messages postés849Date d'inscriptionsamedi 11 juin 2005StatutMembreDernière intervention21 août 2015
-
18 janv. 2008 à 14:40
Salut a tous !
J'ai recuperer ce code a quelque part et il est pour oi très utile. Seulement je rencntre deux problèmes :
<?php
define('IN_PHPBB', TRUE);
$phpbb_root_path = 'Forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->setup('', $forum_data['forum_style']);
$sql = 'SELECT p.*, t.*, u.user_id, u.username FROM ' . POSTS_TABLE . ' p JOIN ' . TOPICS_TABLE . ' t JOIN ' . USERS_TABLE . ' u
ON p.topic_id = t.topic_id
AND u.user_id = p.poster_id
ORDER BY p.post_id DESC LIMIT 15';
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{ echo '[' . $phpbb_root_path . 'viewtopic.php?t=' . $row['topic_id'] . ' ' . $row['topic_title'] . ']
';}
?>
Le premier est que je veux que cette ligne ouvre le lien dans une nouvelle fenêtre :
[' . $phpbb_root_path . 'viewtopic.php?t=' . $row['topic_id'] . ' ' . $row['topic_title'] . ']