Shoutbox: erreurs fréquemment rencontrées & astuces


  • SQL Error : 1146 Table 'xxxx.SHOUTBOX_TABLE' doesn't exist
    vous trouvez dans la frame de votre shoutbox ce message d'erreur:
    Code:
    Could not get shoutbox information

    DEBUG MODE

    SQL Error : 1146 Table 'xxxx.SHOUTBOX_TABLE' doesn't exist

    SELECT s.*, u.user_allowsmile, u.username FROM SHOUTBOX_TABLE s, phpbb_users u WHERE s.shout_user_id=u.user_id ORDER BY s.shout_session_time DESC LIMIT 0, 20

    Line : 98
    File : shoutbox_view.php

    le nom de la table se termine par _table et est en majuscules dans la requête.
    vous avez oublié cette modification de constants.php:
    Code:
    #
    #-----[ CHERCHER ]------------------------------------------------
    #
    define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');

    #
    #-----[ APRES, AJOUTER ]------------------------------------------
    #

    // Start add - Fully integrated shoutbox MOD
    define('SHOUTBOX_TABLE', $table_prefix.'shout');
    // End add - Fully integrated shoutbox MOD


  • SQL Error : 1146 Table 'xxxx.phpbb_shout' doesn't exist
    Vous trouvez dans la frame de votre shoutbox cette erreur
    Code:
    SQL Error : 1146 Table 'xxxx.phpbb_shout' doesn't exist

    SELECT s.*, u.user_allowsmile, u.username FROM phpbb_shout s, phpbb_users u WHERE s.shout_user_id=u.user_id ORDER BY s.shout_session_time DESC LIMIT 0, 20

    Line : 98
    File : shoutbox_view.php

    cette erreur peut sembler identique à la précédente, mais le nom de la table est différent (SHOUTBOX_TABLE dans le 1er cas, phpbb_shout ici) et est en minuscules
    Ici, vous n'avez tout simplement pas créé la table phpbb_shout en exécutant shoutbox_db_update.php

  • Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting ')' in .../.../index.php on line xxx
    vous avez fait une erreur en appliquant cette instruction
    Code:
    #
    #-----[ OPEN ]------------------------------------------------
    #
    index.php

    #
    #-----[ FIND ]------------------------------------------------
    #
    'FORUM_LOCKED_IMG' =>

    #
    #-----[ AFTER, ADD ]------------------------------------------
    #

    // Start add - Fully integrated shoutbox MOD
    'U_SHOUTBOX' => append_sid("shoutbox.$phpEx"),
    'L_SHOUTBOX' => $lang['Shoutbox'],
    'U_SHOUTBOX_MAX' => append_sid("shoutbox_max.$phpEx"),
    // End add - Fully integrated shoutbox MOD

    [AFTER, ADD] signifie que le texte qui suit doit être inséré à la ligne suivante et non pas couper la ligne en deux
    vous devez avoir après l'insertion
    Code:
          'FORUM_LOCKED_IMG' => $images['forum_locked'],
    // Start add - Fully integrated shoutbox MOD
    ...

    et non
    Code:
          'FORUM_LOCKED_IMG' =>// Start add - Fully integrated shoutbox MOD
    ...

  • Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting ')' in .../.../admin/admin_board.php on line xxx
    Cette erreur est identique à la précédente: vous avez coupé la ligne en deux au lieu d'insérer votre texte à la ligne suivante dans cette instruction:
    Code:
    #
    #-----[ OPEN ]------------------------------------------------
    #
    admin/admin_board.php

    #
    #-----[ FIND ]------------------------------------------------
    #
    "L_ENABLE_PRUNE" =>

    #
    #-----[ AFTER, ADD ]------------------------------------------
    #

    // Start add - Fully integrated shoutbox MOD
    'L_PRUNE_SHOUTS' => $lang['Prune_shouts'],
    'L_PRUNE_SHOUTS_EXPLAIN' => $lang['Prune_shouts_explain'],
    // End add - Fully integrated shoutbox MOD

  • Parse error: parse error, unexpected ';', expecting ')' in .../.../admin/admin_db_utilities.php on line xxx
    Cette erreur est identique aux deux précédentes: vous avez coupé la ligne en deux au lieu d'insérer votre texte à la ligne suivante dans cette instruction:
    Code:
    #
    #-----[ OPEN ]------------------------------------------------
    #
    admin/admin_db_utilities.php

    #
    #-----[ FIND ]------------------------------------------------
    #
    $tables = array(

    #
    #-----[ AFTER, ADD ]------------------------------------------
    #

    // Start add - Fully integrated shoutbox MOD
    $tables[] = 'shout';
    // End add - Fully integrated shoutbox MOD

  • impossible d'exécuter le fichier shoutbox_db_update.php
    si vous obtenez la réponse 'non autorisé' en exécutant shoutbox_db_update.php, connectez-vous à votre forum avec un compte administrateur et essayez à nouveau.

  • problèmes d'affichage des boutons
    Si vous avez cet affichage:

    au lieu de celui-ci:

    c'est que vous n'avez pas effectué les modifications de lang_main.php

  • L'affichage de ma shoutbox ne se fait pas selon mon thème
    Si votre shoutbox s'affiche selon le thème subSilver alors que ce n'est pas votre thème par défaut, c'est que votre thème utilise la feuille de style interne située dans overall_header.tpl, alors que la shoutbox utilise la feuiile de style externe .css.
    Vous trouverez ici un tutorial pour adapter votre thème à la shoutbox.

  • Je ne vois pas de possibilités de modération
    Vous avez dans le panneau d'administration, section configuration générale, cette option:



    sinon, en cliquant sur le lien 'Chat de discussion' en page d'index, vous aboutissez à une page type viewtopic, où chaque message est doté en haut à droite de 3 boutons de modération

    où / (censure) remplace le texte par 'ce message a été supprimé', X supprime le message sans traces et IP permet d'accéder à l'IP du posteur

  • Je souhaiterais placer ma shoutbox en haut du forum
    Code:
    #
    #-----[ OPEN ]------------------------------------------------
    #
    templates/subSilver/index_body.tpl

    #
    #-----[ FIND ]------------------------------------------------
    #
    <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
    </tr>
    </table>

    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    <!-- Start add - Fully integrated shoutbox MOD -->
    <table width="100%" cellspacing="0" border="0" align="center" cellpadding="2" class="forumline">
    <tr>
    <td align="center" nowrap="nowrap" class="catHead"><span class="cattitle"><a href="{U_SHOUTBOX_MAX}">{L_SHOUTBOX}</a></span></td>
    </tr>
    <tr>
    <td>
    <iframe src="{U_SHOUTBOX}" scrolling="NO" width="100%" height="180" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true"></iframe>
    </td>
    </tr>
    </table>
    <br/>
    <!-- End add - Fully integrated shoutbox MOD -->
    Bien entendu, n'oubiez pas de retirer ce même bout de code présent en bas du fichier

  • Comment modifier les dimensions de ma shoutbox ?
    Code:
    #
    #-----[ OPEN ]------------------------------------------------
    #
    templates/subSilver/index_body.tpl

    #
    #-----[ FIND ]------------------------------------------------
    #
    <iframe src="{U_SHOUTBOX}" scrolling="NO" width="100%" height="180" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true"></iframe>

    #
    #-----[ IN-LINE, FIND]------------------------------------------
    #
    180

    #
    #-----[ REPLACE WITH]------------------------------------------
    #
    250
    #

    #-----[ OPEN ]------------------------------------------------
    #
    templates/subSilver/shoutbox_body.tpl

    #
    #-----[ FIND ]------------------------------------------------
    #
    <iframe src="{U_SHOUTBOX_VIEW}" align="left" width="100%" height="145" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true">
    </iframe>

    #
    #-----[ IN-LINE, FIND]------------------------------------------
    #
    145

    #
    #-----[ REPLACE WITH]------------------------------------------
    #
    215

  • Comment rendre invisible la Shoutbox aux invités?
    Code:
    #
    #-----[ OPEN ]------------------------------------------------
    #
    templates/subSilver/index_body.tpl

    #
    #-----[ FIND ]------------------------------------------------
    #
    <!-- Start add - Fully integrated shoutbox MOD -->
    <table width="100%" cellspacing="0" border="0" align="center" cellpadding="2" class="forumline">
    <tr>
    <td align="center" nowrap="nowrap" class="catHead"><span class="cattitle"><a href="{U_SHOUTBOX_MAX}">{L_SHOUTBOX}</a></span></td>
    </tr>
    <tr>
    <td>
    <iframe src="{U_SHOUTBOX}" scrolling="NO" width="100%" height="180" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true"></iframe>
    </td>
    </tr>
    </table>
    <br/>
    <!-- End add - Fully integrated shoutbox MOD -->

    #
    #-----[ REPLACE WITH]------------------------------------------
    #
    <!-- BEGIN switch_user_logged_in -->
    <!-- Start add - Fully integrated shoutbox MOD -->
    <table width="100%" cellspacing="0" border="0" align="center" cellpadding="2" class="forumline">
    <tr>
    <td align="center" nowrap="nowrap" class="catHead"><span class="cattitle"><a href="{U_SHOUTBOX_MAX}">{L_SHOUTBOX}</a></span></td>
    </tr>
    <tr>
    <td>
    <iframe src="{U_SHOUTBOX}" scrolling="NO" width="100%" height="180" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true"></iframe>
    </td>
    </tr>
    </table>
    <br/>
    <!-- End add - Fully integrated shoutbox MOD -->
    <!-- END switch_user_logged_in -->

  • Comment rendre visible la Shoutbox uniquement à un ou plusieurs groupes?
    Code:
    #
    #-----[ OPEN ]------------------------------------------------
    #
    index.php

    #
    #-----[ FIND ]------------------------------------------------
    #
    $template->set_filenames(array(
    'body' => 'index_body.tpl')
    );

    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    //On définit tous les ID de groupes qui seront autoriser à voir la Shoutbox
    $groups_id = array(5,8,25);
    for($i = 0; $i < count($groups_id); $i++)
    {
    $user_id = $userdata['user_id'];
    //On recherche dans les user_id appartenant à ce groupe, si le user_id de l'utilisateur connecté y est
    $sql = "SELECT user_id
    FROM " . USER_GROUP_TABLE . "
    WHERE user_id = $user_id AND group_id = $groups_id[$i]";
    if ( !($result = $db->sql_query($sql)) )
    {
    message_die(GENERAL_ERROR, 'Could not obtain user and group information', '', __LINE__, __FILE__, $sql);
    }
    if ($db->sql_numrows($result))
    {
    $template->assign_block_vars('switch_is_in_group', array());
    break;
    }
    }

    #
    #-----[ OPEN ]------------------------------------------------
    #
    templates/subSilver/index_body.tpl

    #
    #-----[ FIND ]------------------------------------------------
    #
    <!-- Start add - Fully integrated shoutbox MOD -->

    #
    #-----[ BEFORE, ADD ]------------------------------------------
    #
    <!-- BEGIN switch_is_in_group -->

    #
    #-----[ FIND ]------------------------------------------------
    #
    <!-- End add - Fully integrated shoutbox MOD -->

    #
    #-----[ AFTER, ADD ]------------------------------------------
    #
    <!-- END switch_is_in_group -->


  • Comment diminuer le temps de rafraichissement de la Shoutbox?
    Code:
    #
    #-----[ OPEN ]------------------------------------------------
    #
    templates/subSilver/shoubox_view_body.tpl

    #
    #-----[ FIND ]------------------------------------------------
    #
    <META http-equiv="refresh" content="120;url={U_SHOUTBOX_VIEW}?auto_refresh=1">

    #
    #-----[ IN-LINE, FIND]------------------------------------------
    #
    120

    #
    #-----[ REPLACE WITH]------------------------------------------
    # 30 secondes par exemple
    30