Aide - Recherche - Membres - Calendrier
Version complète : rss forum phpbb
Forum Développeur - Administration serveur, programmation et base de données > Programmation > PHP
nizouille
Hello, Sur mon forum pour enseignants , j'ai installé rss content syndicator pour phpbb.
QUOTE
<?php [/color]// Set the relative path from this file to your phpBB root folder [/color]; [/color]// How many posts do you want to returnd (count)?  Specified in the URL with \"c=\".  Defaults to 15, upper limit of 50. [/color]; [/color]; [/color]; [/color]// Which forum do you want posts from (forum_id)?  specified in the url with \"f=\".  Defaults to all (public) forums. [/color]; [/color]; [/color]// Return topics only, or all posts?  Specified in the URL with \"t=\".  Defaults to all posts (0). [/color]; [/color]; if ( [/color]) {    [/color]; } [/color]// // END Configuration // // // BEGIN Includes of phpBB scripts // [/color]); include([/color]); include([/color]); include([/color]); [/color]// // END Includes of phpBB scripts // // // BEGIN Session management // [/color]); [/color]); [/color]// // End session management // // // BEGIN Create main board information (some code borrowed from functions_post.php) // // Build URL components [/color])); [/color]; [/color]; [/color]); [/color]; [/color]; [/color]// Assemble URL components [/color]; [/color]; [/color]// Reformat site name and description [/color]); [/color]); [/color]// Set the fully qualified url to your smilies folder [/color]; [/color]; [/color]); [/color]// // END Create main board information // // // BEGIN Initialise template // [/color](array(    [/color]) ); [/color]// // END Initialise template // // // BEGIN Assign static variables to template // // Variable reassignment for Topic Replies [/color]; [/color](array(    [/color],    [/color],    [/color],    [/color],    [/color],    [/color],    [/color],      [/color],    [/color],    [/color],    [/color]) ); [/color]// // END Assign static variabless to template // // // BEGIN SQL statement to fetch active posts of public forums // [/color]\"SELECT f.forum_name, t.topic_title, u.user_id, u.username, u.user_sig, u.user_sig_bbcode_uid, p.post_id, pt.post_text, pt.post_subject, pt.bbcode_uid, p.post_time, t.topic_replies, t.topic_first_post_id    FROM \" [/color]\" as pt    WHERE        t.forum_id = f.forum_id            AND f.auth_view = \" [/color]\"            AND p.poster_id = u.user_id            AND pt.post_id = p.post_id            AND p.topic_id = t.topic_id            $sql_topics_only_where            $sql_forum_where    ORDER BY p.post_time DESC LIMIT $count\"[/color]; [/color]); [/color]// // END SQL statement to fetch active posts of public forums // // // BEGIN Query failure check // [/color]) {    [/color]); } else if ( ![/color]) ) {    [/color]); } else { [/color]// // END Query failure check // // // BEGIN \"item\" loop //    [/color]))    { [/color]// Variable reassignment and reformatting for post text [/color]; [/color]); [/color]); [/color]); [/color]); [/color]); [/color]// Variable reassignment and reformatting for user sig [/color]; [/color]); [/color]); [/color]); [/color]);    if ( [/color]) {        [/color]); } [/color]// Variable reassignment and reformatting for post subject [/color];    if ( [/color]) {        [/color]; } [/color]// Variable reassignment for topic title, and show whether it is the start of topic, or a reply [/color]; if ( [/color] ) {    [/color]; } [/color]// Variable reassignment and reformatting for author [/color]; if ( [/color]) {        [/color]'\" target=\"_blank\">' [/color]; } [/color]); [/color]// Assign \"item\" variables to template        [/color], array(            [/color],            [/color]),            [/color]),            [/color],            [/color]),            [/color]),            [/color]),            [/color]),            [/color] )        );    } } [/color]// // END \"item\" loop // // // BEGIN XML and nocaching headers (copied from page_header.php) // [/color])) {    [/color]); } else {    [/color]); } [/color]); [/color]); [/color]); [/color]// // End XML and nocaching headers // // // BEGIN Output XML page // [/color]); [/color]
Le problème est que mon rss prend toutes les réponses comme des nouveaux sujets, alors que je voudrais un fil par sujet, peu importe le nombre de réponses (la réponse mettant le sujet au début du fil). Merci de votre aide (et ne me renvoyez pas vers topics_anywhere smile.gif ) [/code]
nizouille
résolu
http://www.phpbb.com/phpBB/viewtopic.php?t...r=asc&start=105
Ceci est une version "bas débit" de notre forum. Pour voir la version complète avec plus d'informations, la mise en page et les images, veuillez cliquer ici.
Invision Power Board © 2001-2009 Invision Power Services, Inc.