- Code: Tout sélectionner
// @define('DEBUG', true);
// @define('DEBUG_EXTRA', true);
Par :
- Code: Tout sélectionner
@define('DEBUG', true);
@define('DEBUG_EXTRA', true);
Et il le sera
Modérateur: Modérateurs
// @define('DEBUG', true);
// @define('DEBUG_EXTRA', true); @define('DEBUG', true);
@define('DEBUG_EXTRA', true); 
[phpBB Debug] PHP Notice: in file /home.2/lecampin/www/index666.php on line 11: Undefined variable: forum_data

$user->setup('', $forum_data['forum_style']); $user->setup(); 


dcz a écrit:
Note que j'ai ajouté :
- Code: Tout sélectionner
forum_id = 2
Tu peux utiliser :
- Code: Tout sélectionner
forum_id IN (1,5,45)
si tu veux en utiliser plusieurs, c'est mieux de spécifier si non, il faut que le code vérifie les autorisations.

<?php
define('IN_PHPBB', TRUE);
$phpbb_root_path = './forum/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$user->setup('', $forum_data['forum_style']);
$sql = "SELECT topic_id, forum_id, topic_title, topic_type FROM " . TOPICS_TABLE . " where forum_id = 2 AND topic_approved = 1 ORDER BY topic_last_post_time DESC limit 10";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if ($row['topic_type'] == POST_GLOBAL) {
$phpbb_seo->seo_opt['topic_type'][$row['topic_id']] = POST_GLOBAL;
}
if ( empty($phpbb_seo->seo_url['topic'][$row['topic_id']]) ) {
$phpbb_seo->seo_url['topic'][$row['topic_id']] = $phpbb_seo->format_url($row['topic_title']);
}
echo '<a href="'.append_sid($phpbb_root_path . 'viewtopic.php?f=' . $row['forum_id'] . '&t=' . $row['topic_id']).'" target="_blank" >' . $row['topic_title'] . "</a><br />";
// www.phpBB-SEO.com SEO TOOLKIT END
}
?>
where forum_id = 2

dcz a écrit:GYM sitemaps & RSS permet désormais d'afficher très facilement les derniers messages du forum ou d'un forum, ou de n'importe quel flux rss, sur n'importe quelle page de phpBB, exemples :
http://phpbb3.phpbb-seo.net/demo/rss-links.php
http://phpbb3.phpbb-seo.net/demo/rss-messages.php


Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 3 invités