Les archives de FluxBB.fr
Vous n'êtes pas identifié(e).
Un petit truc qui est parfois bien utile : avoir deux niveaux "d'épinglage".
Les topics placés en "annonce" seront ainsi positionnés avant ceux qui sont épinglés.
Edit du 31/03/08
J'ai finalement mis la distinction épinglé / annoncé
EDIT du 4/04/08
Utilisation du fichier langue
Permettre d'épingler directement un sujet "annoncé" et vice-versa
Footer.php
Chercher
if ($cur_topic['sticky'] == '1')
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&unstick='.$id.'">'.$lang_common['Unstick topic'].'</a></dd></dl>'."\n";
else
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&stick='.$id.'">'.$lang_common['Stick topic'].'</a></dd></dl>'."\n";Remplacer par
if ($cur_topic['sticky'] == '1')
{
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&annonce='.$id.'">'.$lang_common['Announce topic'].'</a></dd>'."\n";
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&unstick='.$id.'">'.$lang_common['Unstick topic'].'</a></dd></dl>'."\n";
}
else if ($cur_topic['sticky'] == '2')
{
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&stick='.$id.'">'.$lang_common['Stick topic'].'</a></dd>'."\n";
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&unstick='.$id.'">'.$lang_common['Unstick topic'].'</a></dd></dl>'."\n";
}
else
{
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&stick='.$id.'">'.$lang_common['Stick topic'].'</a></dd>'."\n";
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&annonce='.$id.'">'.$lang_common['Announce topic'].'</a></dd></dl>'."\n";
}Moderate.php
Chercher
// Unstick a topic
else if (isset($_GET['unstick']))
{
confirm_referrer('viewtopic.php');
$unstick = intval($_GET['unstick']);
if ($unstick < 1)
message($lang_common['Bad request']);
$db->query('UPDATE '.$db->prefix.'topics SET sticky=\'0\' WHERE id='.$unstick.' AND forum_id='.$fid) or error('Unable to unstick topic', __FILE__, __LINE__, $db->error());
redirect('viewtopic.php?id='.$unstick, $lang_misc['Unstick topic redirect']);
}Après, ajouter
// Announce a topic
else if (isset($_GET['annonce']))
{
confirm_referrer('viewtopic.php');
$annonce = intval($_GET['annonce']);
if ($annonce < 1)
message($lang_common['Bad request']);
$db->query('UPDATE '.$db->prefix.'topics SET sticky=\'2\' WHERE id='.$annonce.' AND forum_id='.$fid) or error('Unable to announce topic', __FILE__, __LINE__, $db->error());
redirect('viewtopic.php?id='.$annonce, $lang_misc['Stick topic redirect']);
}viewforum.php
Chercher
if ($cur_topic['sticky'] == '1')
{
$subject = '<span class="stickytext">'.$lang_forum['Sticky'].': </span>'.$subject;
$item_status .= ' isticky';
$icon_text .= ' '.$lang_forum['Sticky'];
}Ajouter après
if ($cur_topic['sticky'] == '2')
{
$subject = '<span class="announcetext">'.$lang_forum['Announce'].': </span>'.$subject;
$item_status .= ' iannounce';
$icon_text .= ' '.$lang_forum['Announce'];
}lang/French/common.php
Chercher
'Stick topic' => 'Épingler la discussion',Ajouter après
'Announce topic' => 'Placer la discussion en annonce',lang/French/forum.php
Chercher
'Sticky' => 'Épinglé',Ajouter après
'Announce' => 'Annonce',Dernière modification par fanf73 (04-04-2008 16:56:17)
Nous ne faisons pas le travail à votre place mais nous prenons le temps de vous montrer le chemin. Merci de lire ce que l'on vous dit et de réfléchir avant de re-demander une explication.
Hors ligne
Pas mal je le mettrai sur mon forum d'ici peu 
Cependant il faudrait modifier
$subject = '<span class="stickytext">Annonce : </span>'.$subject;par
$subject = '<span class="stickytext">'.$lang_forum['Annonce'].': </span>'.$subject;Et ajouter dans le fichier lang>french>moderate.php (je pense)
Annonce => Annonce
Pour faire "plus" propre !
Hors ligne
C'est vrai que ça serait plus propre. Je n'ai pas l'habitude de faire des modifs dans le fichier langue donc je n'avais pas pris le temps de le faire là.
Je modifierais mon premier post un de ces jours pour le rajouter, ainsi qu'un petit truc que j'ai fait chez moi mais pas encore mis ici.
Nous ne faisons pas le travail à votre place mais nous prenons le temps de vous montrer le chemin. Merci de lire ce que l'on vous dit et de réfléchir avant de re-demander une explication.
Hors ligne
Et ajouter dans le fichier lang>french>moderate.php (je pense)
Annonce => Annonce
$lang_common['Announcement'] 
C'est vrai que c'est bien comme astuce 
Hors ligne
Astuce mise à jour
(merci pour les commentaire
)
- je me sers maintenant du fichier langue common.php (je n'ai mis les infos que pour le français)
- ajout de la possibilité d'épingler un sujet "annoncé" et vice-versa en un clic.
Nous ne faisons pas le travail à votre place mais nous prenons le temps de vous montrer le chemin. Merci de lire ce que l'on vous dit et de réfléchir avant de re-demander une explication.
Hors ligne
Bonjour,
J'ai tenté de suivre les indications, mais je rencontre un problème sur le fichier "footer.php".
Il me dit que j'ai une erreur de syntax sur la ligne 172...la dernière ligne.
N'étant pas expert, j'avoue ne pas avoir réussi à trouver mon problème.
Je ne souhaite pas non plus pourrir ce post par un copié collé de mon fichier, je peux peut être l'envoyer à une âme charitable ?
Merci d'avance.
Hors ligne
Tu peux nous poster les 20 ou 30 dernières lignes que l'on puisse peut-être t'aider, et également nous copier l'intégralité du message d'erreur, qui aide bien à trouver les erreurs dans un fichier
.
Nous ne faisons pas le travail à votre place mais nous prenons le temps de vous montrer le chemin. Merci de lire ce que l'on vous dit et de réfléchir avant de re-demander une explication.
Hors ligne
Si c'est "la dernière ligne" du fichier qui provoque l'erreur, il y a peu de chance que le problème soit dans CE fichier.
Cela vient d'une mod mal installée, avec une erreur AILLEURS...
Hors ligne
Bonjour à tous,
Ci-dessous mon message d'erreur:
Parse error: syntax error, unexpected $end in /home/Katalog/www/forum/footer.php on line 172
Et le contenu de mon fichier "footer.php"
<?php
/***********************************************************************
Copyright (C) 2002-2005 Rickard Andersson (rickard@FluxBB.org)
This file is part of FluxBB.
FluxBB is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
FluxBB is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA
************************************************************************/
// Make sure no one attempts to run this script "directly"
if (!defined('PUN'))
exit;
$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<pun_main>', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <pun_main>
// START SUBST - <pun_footer>
ob_start();
?>
<div id="brdfooter" class="block">
<h2><span><?php echo $lang_common['Board footer'] ?></span></h2>
<div class="box">
<div class="inbox">
<?php
// If no footer style has been specified, we use the default (only copyright/debug info)
$footer_style = isset($footer_style) ? $footer_style : NULL;
/* Start MOD PM */
if ($footer_style == 'pms_list')
{
?>
<dl id="searchlinks" class="conl">
<dt><strong>Liens messages privés</strong></dt>
<?php
if ($num_new_mp > 0)
echo "\t\t\t\t\t\t".'<dd><a href="pms_list.php?action=markall&box='.$box.'&p='.$p.'">'.$lang_pms['Mark all'].'</a></dd>'."\n";
echo '</dl>';
}
/* End MOD PM */
if ($footer_style == 'index' || $footer_style == 'search')
{
if (!$pun_user['is_guest'])
{
echo "\n\t\t\t".'<dl id="searchlinks" class="conl">'."\n\t\t\t\t".'<dt><strong>'.$lang_common['Search links'].'</strong></dt>'."\n\t\t\t\t".'<dd><a href="search.php?action=show_24h">'.$lang_common['Show recent posts'].'</a></dd>'."\n";
echo "\t\t\t\t".'<dd><a href="search.php?action=show_unanswered">'.$lang_common['Show unanswered posts'].'</a></dd>'."\n";
if ($pun_config['o_subscriptions'] == '1')
echo "\t\t\t\t".'<dd><a href="search.php?action=show_subscriptions">'.$lang_common['Show subscriptions'].'</a></dd>'."\n";
echo "\t\t\t\t".'<dd><a href="search.php?action=show_user&user_id='.$pun_user['id'].'">'.$lang_common['Show your posts'].'</a></dd>'."\n\t\t\t".'</dl>'."\n";
}
else
{
if ($pun_user['g_search'] == '1')
{
echo "\n\t\t\t".'<dl id="searchlinks" class="conl">'."\n\t\t\t\t".'<dt><strong>'.$lang_common['Search links'].'</strong></dt><dd><a href="search.php?action=show_24h">'.$lang_common['Show recent posts'].'</a></dd>'."\n";
echo "\t\t\t\t".'<dd><a href="search.php?action=show_unanswered">'.$lang_common['Show unanswered posts'].'</a></dd>'."\n\t\t\t".'</dl>'."\n";
}
}
}
else if ($footer_style == 'viewforum' || $footer_style == 'viewtopic')
{
echo "\n\t\t\t".'<div class="conl">'."\n";
// Display the "Jump to" drop list
if ($pun_config['o_quickjump'] == '1')
{
// Load cached quickjump
@include PUN_ROOT.'cache/cache_quickjump_'.$pun_user['g_id'].'.php';
if (!defined('PUN_QJ_LOADED'))
{
require_once PUN_ROOT.'include/cache.php';
generate_quickjump_cache($pun_user['g_id']);
require PUN_ROOT.'cache/cache_quickjump_'.$pun_user['g_id'].'.php';
}
}
if ($footer_style == 'viewforum' && $is_admmod)
echo "\t\t\t".'<p id="modcontrols"><a href="moderate.php?fid='.$forum_id.'&p='.$p.'">'.$lang_common['Moderate forum'].'</a></p>'."\n";
else if ($footer_style == 'viewtopic' && $is_admmod)
{
echo "\t\t\t".'<dl id="modcontrols"><dt><strong>'.$lang_topic['Mod controls'].'</strong></dt><dd><a href="moderate.php?fid='.$forum_id.'&tid='.$id.'&p='.$p.'">'.$lang_common['Delete posts'].'</a></dd>'."\n";
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&move_topics='.$id.'">'.$lang_common['Move topic'].'</a></dd>'."\n";
if ($cur_topic['closed'] == '1')
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&open='.$id.'">'.$lang_common['Open topic'].'</a></dd>'."\n";
else
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&close='.$id.'">'.$lang_common['Close topic'].'</a></dd>'."\n";
if ($cur_topic['sticky'] == '1')
{
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&annonce='.$id.'">'.$lang_common['Announce topic'].'</a></dd>'."\n";
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&unstick='.$id.'">'.$lang_common['Unstick topic'].'</a></dd></dl>'."\n";
}
else if ($cur_topic['sticky'] == '2')
{
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&stick='.$id.'">'.$lang_common['Stick topic'].'</a></dd>'."\n";
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&unstick='.$id.'">'.$lang_common['Unstick topic'].'</a></dd></dl>'."\n";
}
else
{
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&stick='.$id.'">'.$lang_common['Stick topic'].'</a></dd>'."\n";
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&annonce='.$id.'">'.$lang_common['Announce topic'].'</a></dd></dl>'."\n";
}
echo "\t\t\t".'</div>'."\n";
}
?>
<p class="conr">Propulsé par <a href="http://fluxbb.org/">FluxBB</a><?php if ($pun_config['o_show_version'] == '1') echo ' '.$pun_config['o_cur_version']; ?><br />Traduction par <a href="http://fluxbb.fr/">FluxBB.fr</a></p>
<?php
// Display debug info (if enabled/defined)
if (defined('PUN_DEBUG'))
{
// Calculate script generation time
list($usec, $sec) = explode(' ', microtime());
$time_diff = sprintf('%.3f', ((float)$usec + (float)$sec) - $pun_start);
echo "\t\t\t".'<p class="conr">[ Générée en '.$time_diff.' sec., '.$db->get_num_queries().' requêtes exécutées ]</p>'."\n";
}
?>
<div class="clearer"></div>
</div>
</div>
</div>
<?php
// End the transaction
$db->end_transaction();
// Display executed queries (if enabled)
if (defined('PUN_SHOW_QUERIES'))
display_saved_queries();
$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<pun_footer>', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <pun_footer>
// Close the db connection (and free up any result data)
$db->close();
// Spit out the page
exit($tpl_main);Merci d'avance 
Dernière modification par Katashi (17-06-2008 17:17:40)
Hors ligne
Bonjour a tous,
Je relance ma demande, dans les cas ou une âme charitable serait en mesure de m'apporter une solution.
Apres si cela s'avère trop complexe, tant pis pour moi ! 
Hors ligne
Ton fichier ne contient que 171 ligne, donc je ne vois pas trop où est la faute
(surtout qu'il n'existe aucun $end dans ce fichier).
Est-ce que tu as apporté d'autres modifications au même moment, qui pourraient être responsable de ton erreur ? (dans le fichier index.php par exemple, ou dans le viewtopic ?)
Bah non, je crois que j'ai trouvé : rajoute une accolade ligne 130 de ton code, entre ces deux lignes :
echo "\t\t\t".'</div>'."\n";
}Nous ne faisons pas le travail à votre place mais nous prenons le temps de vous montrer le chemin. Merci de lire ce que l'on vous dit et de réfléchir avant de re-demander une explication.
Hors ligne
Effectivement, cela règle mon problème et tout fonctionne à merveille !
Merci pour ta diligence et ta perspicacité 
Hors ligne
Bonjour ou bonsoir 
Je rencontre un petit blocage ...
Je n'arrive pas à mettre l'image correspondante.
J'ai fait les modifs sans problème
mais à ce niveau là
j'ai essayé tous les thermes dans le CSS
et rien ne bouge.
/* Sujet article du site */
TR.Announce DIV.icon {
background-image : url(http://mereaufoyer-exprimetoi.fr/images/maf_article.png);
}
Ce sont les mentions que j'ai ajouté dans mon CSS
Quelqu'un pourrait il m'aider ? 
Dernière modification par Alexandra (06-09-2008 02:52:08)
Hors ligne
Ça vient du fait que le code que je donne ne fais pas de distinction d'icône en Annoncé et Épinglé
. C'est un de ces lignes qu'il te faut modifier dans viewforum, " $item_status " plus précisément je pense :
if ($cur_topic['sticky'] == '2')
{
$subject = '<span class="stickytext">'.$lang_forum['Announce'].': </span>'.$subject;
$item_status .= ' isticky';
$icon_text .= ' '.$lang_forum['Sticky'];
}Nous ne faisons pas le travail à votre place mais nous prenons le temps de vous montrer le chemin. Merci de lire ce que l'on vous dit et de réfléchir avant de re-demander une explication.
Hors ligne
J'ai du laissé tomber il m'a fait buguer le forum je crois.
Il n'est pas compatible
(je ne suis pas codeuse)
avec le mode "la lecture des titres seulement"
je suis encore en train de réparer ... 
Hors ligne
Merci pour ce beau mod et qui fonctionne à merveille

Hors ligne
Merci beaucoup pour cette petite astuce sympathique
Hors ligne
Moi j'ai un petit soucis j'ai suivit tout le tuto a la lettre tout fonctionne bien mais aucun bouton ou texte pour epinglé en sujet n'apparait dans les sujet , es-ce normal ??
Hors ligne
Peux-tu nous montrer ton fichier footer.php (poste-le ici entre balise (code).
Nous ne faisons pas le travail à votre place mais nous prenons le temps de vous montrer le chemin. Merci de lire ce que l'on vous dit et de réfléchir avant de re-demander une explication.
Hors ligne
?php
/***********************************************************************
Copyright (C) 2002-2005 Rickard Andersson (rickard@FluxBB.org)
This file is part of FluxBB.
FluxBB is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
FluxBB is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA
************************************************************************/
// Make sure no one attempts to run this script "directly"
if (!defined('PUN'))
exit;
$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<pun_main>', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <pun_main>
// START SUBST - <pun_footer>
ob_start();
?>
<div id="brdfooter" class="block">
<h2><span><?php echo $lang_common['Board footer'] ?></span></h2>
<div class="box">
<div class="inbox">
<?php
// If no footer style has been specified, we use the default (only copyright/debug info)
$footer_style = isset($footer_style) ? $footer_style : NULL;
if ($footer_style == 'index' || $footer_style == 'search')
{
if (!$pun_user['is_guest'])
{
echo "\n\t\t\t".'<dl id="searchlinks" class="conl">'."\n\t\t\t\t".'<dt><strong>'.$lang_common['Search links'].'</strong></dt>'."\n\t\t\t\t".'<dd><a href="search.php?action=show_24h">'.$lang_common['Show recent posts'].'</a></dd>'."\n";
echo "\t\t\t\t".'<dd><a href="search.php?action=show_unanswered">'.$lang_common['Show unanswered posts'].'</a></dd>'."\n";
if ($pun_config['o_subscriptions'] == '1')
echo "\t\t\t\t".'<dd><a href="search.php?action=show_subscriptions">'.$lang_common['Show subscriptions'].'</a></dd>'."\n";
echo "\t\t\t\t".'<dd><a href="search.php?action=show_user&user_id='.$pun_user['id'].'">'.$lang_common['Show your posts'].'</a></dd>'."\n\t\t\t".'</dl>'."\n";
}
else
{
if ($pun_user['g_search'] == '1')
{
echo "\n\t\t\t".'<dl id="searchlinks" class="conl">'."\n\t\t\t\t".'<dt><strong>'.$lang_common['Search links'].'</strong></dt><dd><a href="search.php?action=show_24h">'.$lang_common['Show recent posts'].'</a></dd>'."\n";
echo "\t\t\t\t".'<dd><a href="search.php?action=show_unanswered">'.$lang_common['Show unanswered posts'].'</a></dd>'."\n\t\t\t".'</dl>'."\n";
}
}
}
else if ($footer_style == 'viewforum' || $footer_style == 'viewtopic')
{
echo "\n\t\t\t".'<div class="conl">'."\n";
// Display the "Jump to" drop list
if ($pun_config['o_quickjump'] == '1')
{
// Load cached quickjump
@include PUN_ROOT.'cache/cache_quickjump_'.$pun_user['g_id'].'.php';
if (!defined('PUN_QJ_LOADED'))
{
require_once PUN_ROOT.'include/cache.php';
generate_quickjump_cache($pun_user['g_id']);
require PUN_ROOT.'cache/cache_quickjump_'.$pun_user['g_id'].'.php';
}
}
if ($footer_style == 'viewforum' && $is_admmod)
echo "\t\t\t".'<p id="modcontrols"><a href="moderate.php?fid='.$forum_id.'&p='.$p.'">'.$lang_common['Moderate forum'].'</a></p>'."\n";
else if ($footer_style == 'viewtopic' && $is_admmod)
{
echo "\t\t\t".'<dl id="modcontrols"><dt><strong>'.$lang_topic['Mod controls'].'</strong></dt><dd><a href="moderate.php?fid='.$forum_id.'&tid='.$id.'&p='.$p.'">'.$lang_common['Delete posts'].'</a></dd>'."\n";
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&move_topics='.$id.'">'.$lang_common['Move topic'].'</a></dd>'."\n";
if ($cur_topic['closed'] == '1')
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&open='.$id.'">'.$lang_common['Open topic'].'</a></dd>'."\n";
else
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&close='.$id.'">'.$lang_common['Close topic'].'</a></dd>'."\n";
if ($cur_topic['sticky'] == '1')
{
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&annonce='.$id.'">'.$lang_common['Announce topic'].'</a></dd>'."\n";
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&unstick='.$id.'">'.$lang_common['Unstick topic'].'</a></dd></dl>'."\n";
}
else if ($cur_topic['sticky'] == '2')
{
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&stick='.$id.'">'.$lang_common['Stick topic'].'</a></dd>'."\n";
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&unstick='.$id.'">'.$lang_common['Unstick topic'].'</a></dd></dl>'."\n";
}
else
{
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&stick='.$id.'">'.$lang_common['Stick topic'].'</a></dd>'."\n";
echo "\t\t\t".'<dd><a href="moderate.php?fid='.$forum_id.'&annonce='.$id.'">'.$lang_common['Announce topic'].'</a></dd></dl>'."\n";
}
}
echo "\t\t\t".'</div>'."\n";
}
?>
<p class="conr">Propulsé par <a href="http://fluxbb.org/">FluxBB</a><?php if ($pun_config['o_show_version'] == '1') echo ' '.$pun_config['o_cur_version']; ?><br />Traduction par <a href="http://fluxbb.fr/">FluxBB.fr</a></p>
<?php
// Display debug info (if enabled/defined)
if (defined('PUN_DEBUG'))
{
// Calculate script generation time
list($usec, $sec) = explode(' ', microtime());
$time_diff = sprintf('%.3f', ((float)$usec + (float)$sec) - $pun_start);
echo "\t\t\t".'<p class="conr">[ Générée en '.$time_diff.' sec., '.$db->get_num_queries().' requêtes exécutées ]</p>'."\n";
}
?>
<div class="clearer"></div>
</div>
</div>
</div>
<?php
// End the transaction
$db->end_transaction();
// Display executed queries (if enabled)
if (defined('PUN_SHOW_QUERIES'))
display_saved_queries();
$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<pun_footer>', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <pun_footer>
// Close the db connection (and free up any result data)
$db->close();
// Spit out the page
exit($tpl_main);Hors ligne
Bizarre ça, le fichier est bon
(il manque juste un "<" tout en haut mais je pense que ça vient du copier/coller).
Va dans un de tes topics, fait un clique-droit, "Afficher la source" (ou "Code source de la page") : est-ce que tu vois une ligne du style :
<dd><a href="moderate.php?fid=X&stick=x"></a></dd></dl>presque en bas ?
Nous ne faisons pas le travail à votre place mais nous prenons le temps de vous montrer le chemin. Merci de lire ce que l'on vous dit et de réfléchir avant de re-demander une explication.
Hors ligne
j'ai cette ligne la
<dl id="modcontrols"><dt><strong>Modération</strong></dt><dd><a href="moderate.php?fid=10&tid=19&p=1">Supprimer plusieurs messages</a></dd>mais je pense que ca a rien a voir !
Hors ligne
Donne-moi les 10 lignes qui suivent celle que tu viens de poster stp.
Nous ne faisons pas le travail à votre place mais nous prenons le temps de vous montrer le chemin. Merci de lire ce que l'on vous dit et de réfléchir avant de re-demander une explication.
Hors ligne
<dd><a href="moderate.php?fid=14&move_topics=20">Déplacer la discussion</a></dd>
<dd><a href="moderate.php?fid=14&close=20">Fermer la discussion</a></dd>
<dd><a href="moderate.php?fid=14&stick=20">Épingler la discussion</a></dd>
<dd><a href="moderate.php?fid=14&annonce=20">Placer la discussion en annonce</a></dd></dl>
</div>
<p class="conr">Propulsé par <a href="http://fluxbb.org/">FluxBB</a><br />Traduction par <a href="http://fluxbb.fr/">FluxBB.fr</a></p>
<div class="clearer"></div>
</div>
</div>
</div>
</div>
</div>voilà 
Hors ligne