Le site des utilisateurs francophones de FluxBB.
Vous n'êtes pas identifié(e).
Bonjour, Bonsoir,
Je cherche actuellement une chatbox pour la version 1.5.3 de FluxBB.
Je vous remercie d'avance,
Hors ligne
Bonjours,
j'ai testé celle-ci en local sur la version 1.5.3 qui a priori marche sans problème .. 
https://fluxbb.org/resources/mods/ajax- … fluxbb-14/
et la discussion qui va avec par ailleurs .
http://fluxbb.fr/forums/viewtopic.php?id=12050
cdlt
david18
Hors ligne
Bonjour,
Le mod ne marche pas en local chez moi, lorsque je lance install_mod.php, j'ai pleins d'erreurs PHP.
Hors ligne
Bonjours,
De quels genre ? et as tu bien suivie le Readme.txt et placer les dossiers au bon endroit .. merci !!
normalement a la fin ça donne ça

voir la discussion a cette effet : http://fluxbb.fr/forums/viewtopic.php?id=12050

cdlt
david18
Dernière modification par david18 (24-03-2013 09:25:11)
Hors ligne
... j'ai pleins d'erreurs PHP.
Bonjour,
Lesquelles ?
Ce n'est pas parce que l'erreur se propage qu'elle devient vérité. Gandhi
Sont différents : ça et sa - est et ait - à et a - ce et se - mes et mais ou met - été et était - c'est et ces - ce-si et ceci
La vie sans musique est tout simplement une erreur, une fatigue, un exil. Friedrich Nietzsche
Hors ligne
J'ai des erreurs de ce types dès que je lance le install_mod.php :
( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: require(./include/common.php): failed to open stream: No such file or directory in C:\wamp\www\*****.fr\forum\files\install_mod.php on line 153
Call Stack
# Time Memory Function Location
1 0.0021 290160 {main}( ) ..\install_mod.php:0
( ! ) SCREAM: Error suppression ignored for
( ! ) Fatal error: require(): Failed opening required './include/common.php' (include_path='.;C:\php\pear') in C:\wamp\www\*****.fr\forum\files\install_mod.php on line 153
Call Stack
# Time Memory Function Location
1 0.0021 290160 {main}( ) ..\install_mod.php:0Hors ligne
Hors ligne
C:\wamp\www\*****.fr\forum\files\install_mod.php
Oui il me semble ...
Hors ligne
en générale c'est plus de ce genre ...
https://www.localhost/forum/install_mod.phpDernière modification par david18 (24-03-2013 14:46:22)
Hors ligne
Merci.
Bon sayé j'ai réussi à l'installer.
Maintenant j'ai un tas d'erreur PHP das le cadre de la chatbox sur mon site.
Hors ligne
Du genre ?
Affected files: index.php
header.php
Dernière modification par david18 (24-03-2013 15:23:58)
Hors ligne
Ah désolé j'ai oublié de mettre l'erreur 
Ya pleins d'erreurs du type :
Strict standards: Non-static method AJAXChatFileSystem::getFileContents() should not be called statically, assuming $this from incompatible context in C:\wamp\www\*****.fr\forum\chat\lib\class\AJAXChatTemplate.php on line 37Hors ligne
as tu bien modifier header.php comme ça c'est pas évidant ?
Dernière modification par david18 (24-03-2013 15:37:29)
Hors ligne
Oui je l'ai modifié -->
<title><?php echo generate_page_title($page_title, $p) ?></title>
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />
<link rel="stylesheet" type="text/css" href="chat/css/shoutbox.css" />
Hors ligne
Faut tout reprendre ... 
1/ Lancer install_mod
2/ placer les fichiers :
- dossier chat => a la racine du forum
- dossier include => ajax_chat => include
avec les ligne inclus de readme.txt essaye de voir si tu as bien fait tout ça 
fichier header :
<?php
/**
* Copyright (C) 2008-2012 FluxBB
* based on code by Rickard Andersson copyright (C) 2002-2008 PunBB
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
define('PUN_ROOT', dirname(__FILE__).'/');
require PUN_ROOT.'include/common.php';
if ($pun_user['g_read_board'] == '0')
message($lang_common['No view'], false, '403 Forbidden');
// Load the index.php language file
require PUN_ROOT.'lang/'.$pun_user['language'].'/index.php';
// Get list of forums and topics with new posts since last visit
if (!$pun_user['is_guest'])
{
$result = $db->query('SELECT t.forum_id, t.id, t.last_post FROM '.$db->prefix.'topics AS t INNER JOIN '.$db->prefix.'forums AS f ON f.id=t.forum_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.last_post>'.$pun_user['last_visit'].' AND t.moved_to IS NULL') or error('Unable to fetch new topics', __FILE__, __LINE__, $db->error());
$new_topics = array();
while ($cur_topic = $db->fetch_assoc($result))
$new_topics[$cur_topic['forum_id']][$cur_topic['id']] = $cur_topic['last_post'];
$tracked_topics = get_tracked_topics();
}
if ($pun_config['o_feed_type'] == '1')
$page_head = array('feed' => '<link rel="alternate" type="application/rss+xml" href="extern.php?action=feed&type=rss" title="'.$lang_common['RSS active topics feed'].'" />');
else if ($pun_config['o_feed_type'] == '2')
$page_head = array('feed' => '<link rel="alternate" type="application/atom+xml" href="extern.php?action=feed&type=atom" title="'.$lang_common['Atom active topics feed'].'" />');
$forum_actions = array();
// Display a "mark all as read" link
if (!$pun_user['is_guest'])
$forum_actions[] = '<a href="misc.php?action=markread">'.$lang_common['Mark all as read'].'</a>';
$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']));
define('PUN_ALLOW_INDEX', 1);
define('PUN_ACTIVE_PAGE', 'index');
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/ajax_chat.php';
// Print the categories and forums
$result = $db->query('SELECT c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster FROM '.$db->prefix.'categories AS c INNER JOIN '.$db->prefix.'forums AS f ON c.id=f.cat_id LEFT JOIN '.$db->prefix.'forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id='.$pun_user['g_id'].') WHERE fp.read_forum IS NULL OR fp.read_forum=1 ORDER BY c.disp_position, c.id, f.disp_position', true) or error('Unable to fetch category/forum list', __FILE__, __LINE__, $db->error());
$cur_category = 0;
$cat_count = 1;
$forum_count = 0;
while ($cur_forum = $db->fetch_assoc($result))
{
$moderators = '';
if ($cur_forum['cid'] != $cur_category) // A new category since last iteration?
{
if ($cur_category != 0)
echo "\t\t\t".'</tbody>'."\n\t\t\t".'</table>'."\n\t\t".'</div>'."\n\t".'</div>'."\n".'</div>'."\n\n";
++$cat_count;
$forum_count = 0;
?>
<div id="idx<?php echo $cat_count ?>" class="blocktable">
<h2><span><?php echo pun_htmlspecialchars($cur_forum['cat_name']) ?></span></h2>
<div class="box">
<div class="inbox">
<table cellspacing="0">
<thead>
<tr>
<th class="tcl" scope="col"><?php echo $lang_common['Forum'] ?></th>
<th class="tc2" scope="col"><?php echo $lang_index['Topics'] ?></th>
<th class="tc3" scope="col"><?php echo $lang_common['Posts'] ?></th>
<th class="tcr" scope="col"><?php echo $lang_common['Last post'] ?></th>
</tr>
</thead>
<tbody>
<?php
$cur_category = $cur_forum['cid'];
}
++$forum_count;
$item_status = ($forum_count % 2 == 0) ? 'roweven' : 'rowodd';
$forum_field_new = '';
$icon_type = 'icon';
// Are there new posts since our last visit?
if (!$pun_user['is_guest'] && $cur_forum['last_post'] > $pun_user['last_visit'] && (empty($tracked_topics['forums'][$cur_forum['fid']]) || $cur_forum['last_post'] > $tracked_topics['forums'][$cur_forum['fid']]))
{
// There are new posts in this forum, but have we read all of them already?
foreach ($new_topics[$cur_forum['fid']] as $check_topic_id => $check_last_post)
{
if ((empty($tracked_topics['topics'][$check_topic_id]) || $tracked_topics['topics'][$check_topic_id] < $check_last_post) && (empty($tracked_topics['forums'][$cur_forum['fid']]) || $tracked_topics['forums'][$cur_forum['fid']] < $check_last_post))
{
$item_status .= ' inew';
$forum_field_new = '<span class="newtext">[ <a href="search.php?action=show_new&fid='.$cur_forum['fid'].'">'.$lang_common['New posts'].'</a> ]</span>';
$icon_type = 'icon icon-new';
break;
}
}
}
// Is this a redirect forum?
if ($cur_forum['redirect_url'] != '')
{
$forum_field = '<h3><span class="redirtext">'.$lang_index['Link to'].'</span> <a href="'.pun_htmlspecialchars($cur_forum['redirect_url']).'" title="'.$lang_index['Link to'].' '.pun_htmlspecialchars($cur_forum['redirect_url']).'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a></h3>';
$num_topics = $num_posts = '-';
$item_status .= ' iredirect';
$icon_type = 'icon';
}
else
{
$forum_field = '<h3><a href="viewforum.php?id='.$cur_forum['fid'].'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a>'.(!empty($forum_field_new) ? ' '.$forum_field_new : '').'</h3>';
$num_topics = $cur_forum['num_topics'];
$num_posts = $cur_forum['num_posts'];
}
if ($cur_forum['forum_desc'] != '')
$forum_field .= "\n\t\t\t\t\t\t\t\t".'<div class="forumdesc">'.$cur_forum['forum_desc'].'</div>';
// If there is a last_post/last_poster
if ($cur_forum['last_post'] != '')
$last_post = '<a href="viewtopic.php?pid='.$cur_forum['last_post_id'].'#p'.$cur_forum['last_post_id'].'">'.format_time($cur_forum['last_post']).'</a> <span class="byuser">'.$lang_common['by'].' '.pun_htmlspecialchars($cur_forum['last_poster']).'</span>';
else if ($cur_forum['redirect_url'] != '')
$last_post = '- - -';
else
$last_post = $lang_common['Never'];
if ($cur_forum['moderators'] != '')
{
$mods_array = unserialize($cur_forum['moderators']);
$moderators = array();
foreach ($mods_array as $mod_username => $mod_id)
{
if ($pun_user['g_view_users'] == '1')
$moderators[] = '<a href="profile.php?id='.$mod_id.'">'.pun_htmlspecialchars($mod_username).'</a>';
else
$moderators[] = pun_htmlspecialchars($mod_username);
}
$moderators = "\t\t\t\t\t\t\t\t".'<p class="modlist">(<em>'.$lang_common['Moderated by'].'</em> '.implode(', ', $moderators).')</p>'."\n";
}
?>
<tr class="<?php echo $item_status ?>">
<td class="tcl">
<div class="<?php echo $icon_type ?>"><div class="nosize"><?php echo forum_number_format($forum_count) ?></div></div>
<div class="tclcon">
<div>
<?php echo $forum_field."\n".$moderators ?>
</div>
</div>
</td>
<td class="tc2"><?php echo forum_number_format($num_topics) ?></td>
<td class="tc3"><?php echo forum_number_format($num_posts) ?></td>
<td class="tcr"><?php echo $last_post ?></td>
</tr>
<?php
}
// Did we output any categories and forums?
if ($cur_category > 0)
echo "\t\t\t".'</tbody>'."\n\t\t\t".'</table>'."\n\t\t".'</div>'."\n\t".'</div>'."\n".'</div>'."\n\n";
else
echo '<div id="idx0" class="block"><div class="box"><div class="inbox"><p>'.$lang_index['Empty board'].'</p></div></div></div>';
// Collect some statistics from the database
if (file_exists(FORUM_CACHE_DIR.'cache_users_info.php'))
include FORUM_CACHE_DIR.'cache_users_info.php';
if (!defined('PUN_USERS_INFO_LOADED'))
{
if (!defined('FORUM_CACHE_FUNCTIONS_LOADED'))
require PUN_ROOT.'include/cache.php';
generate_users_info_cache();
require FORUM_CACHE_DIR.'cache_users_info.php';
}
$result = $db->query('SELECT SUM(num_topics), SUM(num_posts) FROM '.$db->prefix.'forums') or error('Unable to fetch topic/post count', __FILE__, __LINE__, $db->error());
list($stats['total_topics'], $stats['total_posts']) = $db->fetch_row($result);
if ($pun_user['g_view_users'] == '1')
$stats['newest_user'] = '<a href="profile.php?id='.$stats['last_user']['id'].'">'.pun_htmlspecialchars($stats['last_user']['username']).'</a>';
else
$stats['newest_user'] = pun_htmlspecialchars($stats['last_user']['username']);
if (!empty($forum_actions))
{
?>
<div class="linksb">
<div class="inbox crumbsplus">
<p class="subscribelink clearb"><?php echo implode(' - ', $forum_actions); ?></p>
</div>
</div>
<?php
}
?>
<div id="brdstats" class="block">
<h2><span><?php echo $lang_index['Board info'] ?></span></h2>
<div class="box">
<div class="inbox">
<dl class="conr">
<dt><strong><?php echo $lang_index['Board stats'] ?></strong></dt>
<dd><span><?php printf($lang_index['No of users'], '<strong>'.forum_number_format($stats['total_users']).'</strong>') ?></span></dd>
<dd><span><?php printf($lang_index['No of topics'], '<strong>'.forum_number_format($stats['total_topics']).'</strong>') ?></span></dd>
<dd><span><?php printf($lang_index['No of posts'], '<strong>'.forum_number_format($stats['total_posts']).'</strong>') ?></span></dd>
</dl>
<dl class="conl">
<dt><strong><?php echo $lang_index['User info'] ?></strong></dt>
<dd><span><?php printf($lang_index['Newest user'], $stats['newest_user']) ?></span></dd>
<?php
if ($pun_config['o_users_online'] == '1')
{
// Fetch users online info and generate strings for output
$num_guests = 0;
$users = array();
$result = $db->query('SELECT user_id, ident FROM '.$db->prefix.'online WHERE idle=0 ORDER BY ident', true) or error('Unable to fetch online list', __FILE__, __LINE__, $db->error());
while ($pun_user_online = $db->fetch_assoc($result))
{
if ($pun_user_online['user_id'] > 1)
{
if ($pun_user['g_view_users'] == '1')
$users[] = "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_user_online['user_id'].'">'.pun_htmlspecialchars($pun_user_online['ident']).'</a>';
else
$users[] = "\n\t\t\t\t".'<dd>'.pun_htmlspecialchars($pun_user_online['ident']);
}
else
++$num_guests;
}
$num_users = count($users);
echo "\t\t\t\t".'<dd><span>'.sprintf($lang_index['Users online'], '<strong>'.forum_number_format($num_users).'</strong>').'</span></dd>'."\n\t\t\t\t".'<dd><span>'.sprintf($lang_index['Guests online'], '<strong>'.forum_number_format($num_guests).'</strong>').'</span></dd>'."\n\t\t\t".'</dl>'."\n";
if ($num_users > 0)
echo "\t\t\t".'<dl id="onlinelist" class="clearb">'."\n\t\t\t\t".'<dt><strong>'.$lang_index['Online'].' </strong></dt>'."\t\t\t\t".implode(',</dd> ', $users).'</dd>'."\n\t\t\t".'</dl>'."\n";
else
echo "\t\t\t".'<div class="clearer"></div>'."\n";
}
else
echo "\t\t\t".'</dl>'."\n\t\t\t".'<div class="clearer"></div>'."\n";
?>
</div>
</div>
</div>
<?php
$footer_style = 'index';
require PUN_ROOT.'footer.php';fichier header:
<?php
/**
* Copyright (C) 2008-2012 FluxBB
* based on code by Rickard Andersson copyright (C) 2002-2008 PunBB
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
*/
// Make sure no one attempts to run this script "directly"
if (!defined('PUN'))
exit;
// Send no-cache headers
header('Expires: Thu, 21 Jul 1977 07:30:00 GMT'); // When yours truly first set eyes on this world! :)
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache'); // For HTTP/1.0 compatibility
// Send the Content-type header in case the web server is setup to send something else
header('Content-type: text/html; charset=utf-8');
// Load the template
if (defined('PUN_ADMIN_CONSOLE'))
$tpl_file = 'admin.tpl';
else if (defined('PUN_HELP'))
$tpl_file = 'help.tpl';
else
$tpl_file = 'main.tpl';
if (file_exists(PUN_ROOT.'style/'.$pun_user['style'].'/'.$tpl_file))
{
$tpl_file = PUN_ROOT.'style/'.$pun_user['style'].'/'.$tpl_file;
$tpl_inc_dir = PUN_ROOT.'style/'.$pun_user['style'].'/';
}
else
{
$tpl_file = PUN_ROOT.'include/template/'.$tpl_file;
$tpl_inc_dir = PUN_ROOT.'include/user/';
}
$tpl_main = file_get_contents($tpl_file);
// START SUBST - <pun_include "*">
preg_match_all('%<pun_include "([^/\\\\]*?)\.(php[45]?|inc|html?|txt)">%i', $tpl_main, $pun_includes, PREG_SET_ORDER);
foreach ($pun_includes as $cur_include)
{
ob_start();
// Allow for overriding user includes, too.
if (file_exists($tpl_inc_dir.$cur_include[1].'.'.$cur_include[2]))
require $tpl_inc_dir.$cur_include[1].'.'.$cur_include[2];
else if (file_exists(PUN_ROOT.'include/user/'.$cur_include[1].'.'.$cur_include[2]))
require PUN_ROOT.'include/user/'.$cur_include[1].'.'.$cur_include[2];
else
error(sprintf($lang_common['Pun include error'], htmlspecialchars($cur_include[0]), basename($tpl_file)));
$tpl_temp = ob_get_contents();
$tpl_main = str_replace($cur_include[0], $tpl_temp, $tpl_main);
ob_end_clean();
}
// END SUBST - <pun_include "*">
// START SUBST - <pun_language>
$tpl_main = str_replace('<pun_language>', $lang_common['lang_identifier'], $tpl_main);
// END SUBST - <pun_language>
// START SUBST - <pun_content_direction>
$tpl_main = str_replace('<pun_content_direction>', $lang_common['lang_direction'], $tpl_main);
// END SUBST - <pun_content_direction>
// START SUBST - <pun_head>
ob_start();
// Define $p if its not set to avoid a PHP notice
$p = isset($p) ? $p : null;
// Is this a page that we want search index spiders to index?
if (!defined('PUN_ALLOW_INDEX'))
echo '<meta name="ROBOTS" content="NOINDEX, FOLLOW" />'."\n";
?>
<title><?php echo generate_page_title($page_title, $p) ?></title>
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />
<link rel="stylesheet" type="text/css" href="chat/css/shoutbox.css" />
<?php
if (defined('PUN_ADMIN_CONSOLE'))
{
if (file_exists(PUN_ROOT.'style/'.$pun_user['style'].'/base_admin.css'))
echo '<link rel="stylesheet" type="text/css" href="style/'.$pun_user['style'].'/base_admin.css" />'."\n";
else
echo '<link rel="stylesheet" type="text/css" href="style/imports/base_admin.css" />'."\n";
}
if (isset($required_fields))
{
// Output JavaScript to validate form (make sure required fields are filled out)
?>
<script type="text/javascript">
/* <![CDATA[ */
function process_form(the_form)
{
var required_fields = {
<?php
// Output a JavaScript object with localised field names
$tpl_temp = count($required_fields);
foreach ($required_fields as $elem_orig => $elem_trans)
{
echo "\t\t\"".$elem_orig.'": "'.addslashes(str_replace(' ', ' ', $elem_trans));
if (--$tpl_temp) echo "\",\n";
else echo "\"\n\t};\n";
}
?>
if (document.all || document.getElementById)
{
for (var i = 0; i < the_form.length; ++i)
{
var elem = the_form.elements[i];
if (elem.name && required_fields[elem.name] && !elem.value && elem.type && (/^(?:text(?:area)?|password|file)$/i.test(elem.type)))
{
alert('"' + required_fields[elem.name] + '" <?php echo $lang_common['required field'] ?>');
elem.focus();
return false;
}
}
}
return true;
}
/* ]]> */
</script>
<?php
}
// JavaScript tricks for IE6 and older
echo '<!--[if lte IE 6]><script type="text/javascript" src="style/imports/minmax.js"></script><![endif]-->'."\n";
if (isset($page_head))
echo implode("\n", $page_head)."\n";
$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<pun_head>', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <pun_head>
// START SUBST - <body>
if (isset($focus_element))
{
$tpl_main = str_replace('<body onload="', '<body onload="document.getElementById(\''.$focus_element[0].'\').elements[\''.$focus_element[1].'\'].focus();', $tpl_main);
$tpl_main = str_replace('<body>', '<body onload="document.getElementById(\''.$focus_element[0].'\').elements[\''.$focus_element[1].'\'].focus()">', $tpl_main);
}
// END SUBST - <body>
// START SUBST - <pun_page>
$tpl_main = str_replace('<pun_page>', htmlspecialchars(basename($_SERVER['PHP_SELF'], '.php')), $tpl_main);
// END SUBST - <pun_page>
// START SUBST - <pun_title>
$tpl_main = str_replace('<pun_title>', '<h1><a href="index.php">'.pun_htmlspecialchars($pun_config['o_board_title']).'</a></h1>', $tpl_main);
// END SUBST - <pun_title>
// START SUBST - <pun_desc>
$tpl_main = str_replace('<pun_desc>', '<div id="brddesc">'.$pun_config['o_board_desc'].'</div>', $tpl_main);
// END SUBST - <pun_desc>
// START SUBST - <pun_navlinks>
$links = array();
// Index should always be displayed
$links[] = '<li id="navindex"'.((PUN_ACTIVE_PAGE == 'index') ? ' class="isactive"' : '').'><a href="index.php">'.$lang_common['Index'].'</a></li>';
if ($pun_user['g_read_board'] == '1' && $pun_user['g_view_users'] == '1')
$links[] = '<li id="navuserlist"'.((PUN_ACTIVE_PAGE == 'userlist') ? ' class="isactive"' : '').'><a href="userlist.php">'.$lang_common['User list'].'</a></li>';
if ($pun_config['o_rules'] == '1' && (!$pun_user['is_guest'] || $pun_user['g_read_board'] == '1' || $pun_config['o_regs_allow'] == '1'))
$links[] = '<li id="navrules"'.((PUN_ACTIVE_PAGE == 'rules') ? ' class="isactive"' : '').'><a href="misc.php?action=rules">'.$lang_common['Rules'].'</a></li>';
if ($pun_user['g_read_board'] == '1' && $pun_user['g_search'] == '1')
$links[] = '<li id="navsearch"'.((PUN_ACTIVE_PAGE == 'search') ? ' class="isactive"' : '').'><a href="search.php">'.$lang_common['Search'].'</a></li>';
if ($pun_user['is_guest'])
{
$links[] = '<li id="navregister"'.((PUN_ACTIVE_PAGE == 'register') ? ' class="isactive"' : '').'><a href="register.php">'.$lang_common['Register'].'</a></li>';
$links[] = '<li id="navlogin"'.((PUN_ACTIVE_PAGE == 'login') ? ' class="isactive"' : '').'><a href="login.php">'.$lang_common['Login'].'</a></li>';
}
else
{
$links[] = '<li id="navprofile"'.((PUN_ACTIVE_PAGE == 'profile') ? ' class="isactive"' : '').'><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a></li>';
if ($pun_user['is_admmod'])
$links[] = '<li id="navadmin"'.((PUN_ACTIVE_PAGE == 'admin') ? ' class="isactive"' : '').'><a href="admin_index.php">'.$lang_common['Admin'].'</a></li>';
$links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'&csrf_token='.pun_hash($pun_user['id'].pun_hash(get_remote_address())).'">'.$lang_common['Logout'].'</a></li>';
}
// Are there any additional navlinks we should insert into the array before imploding it?
if ($pun_user['g_read_board'] == '1' && $pun_config['o_additional_navlinks'] != '')
{
if (preg_match_all('%([0-9]+)\s*=\s*(.*?)\n%s', $pun_config['o_additional_navlinks']."\n", $extra_links))
{
// Insert any additional links into the $links array (at the correct index)
$num_links = count($extra_links[1]);
for ($i = 0; $i < $num_links; ++$i)
array_splice($links, $extra_links[1][$i], 0, array('<li id="navextra'.($i + 1).'">'.$extra_links[2][$i].'</li>'));
}
}
$tpl_temp = '<div id="brdmenu" class="inbox">'."\n\t\t\t".'<ul>'."\n\t\t\t\t".implode("\n\t\t\t\t", $links)."\n\t\t\t".'</ul>'."\n\t\t".'</div>';
$tpl_main = str_replace('<pun_navlinks>', $tpl_temp, $tpl_main);
// END SUBST - <pun_navlinks>
// START SUBST - <pun_status>
$page_statusinfo = $page_topicsearches = array();
if ($pun_user['is_guest'])
$page_statusinfo = '<p class="conl">'.$lang_common['Not logged in'].'</p>';
else
{
$page_statusinfo[] = '<li><span>'.$lang_common['Logged in as'].' <strong>'.pun_htmlspecialchars($pun_user['username']).'</strong></span></li>';
$page_statusinfo[] = '<li><span>'.sprintf($lang_common['Last visit'], format_time($pun_user['last_visit'])).'</span></li>';
if ($pun_user['is_admmod'])
{
if ($pun_config['o_report_method'] == '0' || $pun_config['o_report_method'] == '2')
{
$result_header = $db->query('SELECT 1 FROM '.$db->prefix.'reports WHERE zapped IS NULL') or error('Unable to fetch reports info', __FILE__, __LINE__, $db->error());
if ($db->result($result_header))
$page_statusinfo[] = '<li class="reportlink"><span><strong><a href="admin_reports.php">'.$lang_common['New reports'].'</a></strong></span></li>';
}
if ($pun_config['o_maintenance'] == '1')
$page_statusinfo[] = '<li class="maintenancelink"><span><strong><a href="admin_options.php#maintenance">'.$lang_common['Maintenance mode enabled'].'</a></strong></span></li>';
}
if ($pun_user['g_read_board'] == '1' && $pun_user['g_search'] == '1')
{
$page_topicsearches[] = '<a href="search.php?action=show_replies" title="'.$lang_common['Show posted topics'].'">'.$lang_common['Posted topics'].'</a>';
$page_topicsearches[] = '<a href="search.php?action=show_new" title="'.$lang_common['Show new posts'].'">'.$lang_common['New posts header'].'</a>';
}
}
// Quick searches
if ($pun_user['g_read_board'] == '1' && $pun_user['g_search'] == '1')
{
$page_topicsearches[] = '<a href="search.php?action=show_recent" title="'.$lang_common['Show active topics'].'">'.$lang_common['Active topics'].'</a>';
$page_topicsearches[] = '<a href="search.php?action=show_unanswered" title="'.$lang_common['Show unanswered topics'].'">'.$lang_common['Unanswered topics'].'</a>';
}
// Generate all that jazz
$tpl_temp = '<div id="brdwelcome" class="inbox">';
// The status information
if (is_array($page_statusinfo))
{
$tpl_temp .= "\n\t\t\t".'<ul class="conl">';
$tpl_temp .= "\n\t\t\t\t".implode("\n\t\t\t\t", $page_statusinfo);
$tpl_temp .= "\n\t\t\t".'</ul>';
}
else
$tpl_temp .= "\n\t\t\t".$page_statusinfo;
// Generate quicklinks
if (!empty($page_topicsearches))
{
$tpl_temp .= "\n\t\t\t".'<ul class="conr">';
$tpl_temp .= "\n\t\t\t\t".'<li><span>'.$lang_common['Topic searches'].' '.implode(' | ', $page_topicsearches).'</span></li>';
$tpl_temp .= "\n\t\t\t".'</ul>';
}
$tpl_temp .= "\n\t\t\t".'<div class="clearer"></div>'."\n\t\t".'</div>';
$tpl_main = str_replace('<pun_status>', $tpl_temp, $tpl_main);
// END SUBST - <pun_status>
// START SUBST - <pun_announcement>
if ($pun_user['g_read_board'] == '1' && $pun_config['o_announcement'] == '1')
{
ob_start();
?>
<div id="announce" class="block">
<div class="hd"><h2><span><?php echo $lang_common['Announcement'] ?></span></h2></div>
<div class="box">
<div id="announce-block" class="inbox">
<div class="usercontent"><?php echo $pun_config['o_announcement_message'] ?></div>
</div>
</div>
</div>
<?php
$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<pun_announcement>', $tpl_temp, $tpl_main);
ob_end_clean();
}
else
$tpl_main = str_replace('<pun_announcement>', '', $tpl_main);
// END SUBST - <pun_announcement>
// START SUBST - <pun_main>
ob_start();
define('PUN_HEADER', 1);cdlt
david18
Dernière modification par david18 (24-03-2013 19:50:25)
Hors ligne
Si je réinstalle le mod, ça ne va pas créer des bugs ?
P.S : J'ai aussi le fichier index.php à modifier non ?
Dernière modification par Skymix (24-03-2013 19:58:40)
Hors ligne
Pour plus d'info voici mon readme.txt :
##
##
## Mod title: Ajax Chat for FluxBB 1.4
##
## Mod version: 0.8.3
## Works on FluxBB: 1.4.*
## Release date: 2011-02-18
## Author: adaur (adaur.underground@gmail.com)
##
## Description: This mod allows you to display a shoutbox where you want on your
## forum. A real room is also available, see notes.
##
## Affected files: index.php
## header.php
##
## Affects DB: Yes
##
## Notes: If you want to add a link to the chat in the navbar,
## go to admin_options and add it.
## See orignal ajax chat readme.txt and
## http://sourceforge.net/projects/ajax-chat/
## to get more informations about your chat :-)
## If you want to disable or unable the shoutbox for the guests,
## set $allow_guests to 0 or 1 in include/ajax_chat.php
##
## DISCLAIMER: Please note that "mods" are not officially supported by
## FluxBB. Installation of this modification is done at
## your own risk. Backup your forum database and any and
## all applicable files before proceeding.
##
##
#
#---------[ 1. UPLOAD ]-------------------------------------------------------
#
Files folder to the root of your forum.
#
#---------[ 2. RUN ]----------------------------------------------------------
#
install_mod.php
#
#---------[ 3. DELETE ]-------------------------------------------------------
#
install_mod.php
#
#---------[ 4. OPEN ]---------------------------------------------------------
#
The file(s) where you want the chat to be displayed, for example
index.php
#
#---------[ 5. FIND ]--------------------------------------------------------
#
require PUN_ROOT.'header.php';
#
#---------[ 6. AFTER, ADD ]--------------------------------------------------
#
require PUN_ROOT.'include/ajax_chat.php';
#
#---------[ 7. FIND (steps 7 and 8 for index.php only) ]------------------------
#
$cat_count = 0;
#
#---------[ 8. REPLACE WITH ]------------------------------------------------
#
$cat_count = 1;
#
#---------[ 9. OPEN ]---------------------------------------------------------
#
header.php
#
#---------[ 10. FIND ]--------------------------------------------------------
#
<link rel="stylesheet" type="text/css" href="style/<?php echo $pun_user['style'].'.css' ?>" />
#
#---------[ 11. AFTER, ADD ]--------------------------------------------------
#
<link rel="stylesheet" type="text/css" href="chat/css/shoutbox.css" />
#
#---------[ 12. SAVE/UPLOAD ]-------------------------------------------------
#Et j'ai Fluxbb 1.5.3.
Hors ligne
oui tu peux restaurer ta base de donnée avec install_mod.php ou la restaurer puis la relancer .
oui il faut modifier le fichier index.php de ton forum et rajouter ça :
index.php
#
#---------[ 5. FIND ]--------------------------------------------------------
#
require PUN_ROOT.'header.php';
#
#---------[ 6. AFTER, ADD ]--------------------------------------------------
#
require PUN_ROOT.'include/ajax_chat.php';
#
#---------[ 7. FIND (steps 7 and 8 for index.php only) ]------------------------
#
$cat_count = 0;
#---------[ 8. REPLACE WITH ]------------------------------------------------
#
$cat_count = 1;Ps: tester en local sur 1.5.3 et marche sans problème .
résultat :

cdlt
Dernière modification par david18 (24-03-2013 20:11:46)
Hors ligne
J'ai peut être un problème du coté de ajax, il est peut être mal configuré sur mon PC non ?
Hors ligne
tu utilise wampserver soit phpmyadmin ( en local ) : le chemin que j'utilise est généralement c'est http://www.localhost/forum/index.php ou install_mod etc ..
Après je ne sait pas comment tu as procéder et je ne peut pas faire plus complet 
Dernière modification par david18 (24-03-2013 20:21:27)
Hors ligne
Oui ça je le sais, moi c'est : http://localhost/*****.fr/forum/index.php
Bon ba je vois pas d'où viennent mes erreurs ?
Hors ligne
si tu enlève ton nom de domaine si c'est le cas vu que tu es en local pour voir ( normalement sa fonctionne ) et le refaire peut être après sur ton serveur 
cdlt
Hors ligne
J'vais tester sur un forum de test, car là je viens de désinstaller la chatbox.
Hors ligne
Bonjour @ tous,
Je suis nouveau ici, j'ai installé le chat mais j'ai un problème il s'affiche bien au dessus du forum mais il reste blanc rien ne s'affiche dedans.
Je pense que j'ai bien tout modifié (index et header) et j'ai beau cherché, je ne comprend pas d'ou viens le problème, une petite aide serai la bienvenue !
Voici le lien : Forum
D'avance merci ! 
Hors ligne
Bonjour @ tous,
Je suis nouveau ici, j'ai installé le chat mais j'ai un problème il s'affiche bien au dessus du forum mais il reste blanc rien ne s'affiche dedans.
D'avance merci !
et la base de données?!le fichier install, la configuration en admin
parce que là en plus pour que quelque chose s'affiche,
il faudrait déjà qu'on puisse entrer quelque chose! 
sinon: ajouter comment on a connu le le site 
-lien sur un autre site (ou annuaire?)
et il y a un blem en profil option "affichage" 
An error was encountered
Error: Unable to connect to MySQL and select database. MySQL reported: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2).
Dernière modification par fakrys (14-09-2013 18:28:55)
Fab'
Hors ligne