IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Intégré un script php dans une page d'index exsistante


Sujet :

Langage PHP

  1. #1
    Candidat au Club
    Profil pro
    Inscrit en
    Décembre 2011
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2011
    Messages : 9
    Points : 2
    Points
    2
    Par défaut Intégré un script php dans une page d'index exsistante
    Bonjour,
    Je ne sais pas si ai utilisé les bons mots mais vais expliqué avec j'espère les mots corrects !!
    Voila j'ai un site sous joomla 2.5 avec T3 framework et le template japurity ii.

    J'utilise phpfreechat sur mon site grace a un module dit "wrapper" en appellant donc un fichier php via une url.

    Mais voila je désire directement intégrer ce script de chat sur toute les page de mon site.
    Afin de faire ceci je doit donc modifier le fichier default.php de t3 framework afin d'y inclure le fichier php de mon chat.
    Apres plusieurs tentative mon chat apparait bien sur mon site mais ne s'ouvre pas.
    Les deux fichiers son au meme endroit et il fonctionne bien independamment mais lorsque que je met les codes du chat dans le fichier default.php cela ne fonctionne pas

    Afin de ne pas faire de message a rallonge avec les codes de ces deux fichier je les met en pièces jointes.
    Si quelqu'un avais la possibilité de regarder ceci avec bien sur ma disposition pour tout détails complémentaires. Je débute dans ce genre de manipulation et fais beaucoup de bug a mon site !!! donc de plus plutot que d'avoir la solution toute faite je serais ravis d'avoir quelques explications afin d'avancer dans mon apprentissage de ce php. merci a tous pour votre aide si cela est possible
    nadia
    Fichiers attachés Fichiers attachés

  2. #2
    Invité
    Invité(e)
    Par défaut
    Citation Envoyé par tyann20 Voir le message
    Afin de ne pas faire de message a rallonge avec les codes de ces deux fichier je les met en pièces jointes.
    Mauvaise idée.
    On n'ira pas les ouvrir.

    Et ce serait utile que :
    - tu dises à quelle(s) ligne(s) regarder
    - tu montres tes "essais"
    - + le code source html généré

  3. #3
    Candidat au Club
    Profil pro
    Inscrit en
    Décembre 2011
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2011
    Messages : 9
    Points : 2
    Points
    2
    Par défaut
    A oui pardon viens de réaliser en lisant deux fois !! le soucis d'un zip verolé pardon y avais pas pensé !!

    le code source de la page donc qui marche seule et sans souci est celui la

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    <?php
     
    require_once dirname(__FILE__)."/../chat/src/phpfreechat.class.php";
     
     
    $params = array("height"         => "200px",);
    $params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
    //$params["nick"] = "guest".rand(1,1000);
    $params["container_type"] = "mysql";
    $params["container_cfg_mysql_host"]     = "db436624834.db.1and1.com";        // default value is "localhost"
    $params["container_cfg_mysql_port"]     = 3306;               // default value is 3306
    $params["container_cfg_mysql_database"] = "******";      // default value is "phpfreechat"
    $params["container_cfg_mysql_table"]    = "*****
    $params["container_cfg_mysql_username"] = "******";      // default value is "root"
    $params["container_cfg_mysql_password"] = "*****"; // default value is ""
    $params["container_cfg_mysql_fieldtype_server"] = 'varchar(32)';
    $params["container_cfg_mysql_fieldtype_group"] = 'varchar(64)';
    $params["container_cfg_mysql_fieldtype_subgroup"] = 'varchar(128)';
    $params["container_cfg_mysql_fieldtype_leaf"] = 'varchar(128)';
    $params["container_cfg_mysql_fieldtype_leafvalue"] = 'text';
    $params["container_cfg_mysql_fieldtype_timestamp"] = 'int(11)';
    $params["container_cfg_mysql_engine"] = 'InnoDB';
    $params["title"]         = 'La Buvette';
    $params["frozen_nick"]     = true;
    $params["language"]      = fr_FR;
    
    $params["theme"]       = "zilveer";
    $params["shownotice"]       = 0;     
    $params["nickmarker"]       = false;
    $params["clock"]       = false;
    $params["startwithsound"]       = false;  
    $params["display_ping"]       = false;
    $params["display_pfc_logo"]       = false;
    $params["nick"] = iconv("ISO-8859-1", "UTF-8", $bdd_jos_users);
    $params["refresh_delay"] = 2000; // 2000ms = 2s
    $chat = new phpFreeChat($params);
    
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
     
      <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>phpFreeChat demo</title>
        <?php $chat->printJavascript(); ?>
        <?php $chat->printStyle(); ?>
     
      </head>
     
      <body>
        <?php $chat->printChat(); ?>
     
     
      </body>
     
    </html>
    ce fichier php lorsque que je met le lien avec l'url la ou il ce trouve il marche impec !!

    mais pour le faire marché sur joomla j'utilise un module dit "wrapper" avec donc le lien direct a ce fichier

    Ce que j'aimerais c'est directement l'integrer a mon index par default du template qui est générer par le fichier "default.php" ou il y a les meme balise div header et body
    En y separant les lignes et mettant dans le code de "default.php" ai le module qui apparait mais qui ne s'ouvre pas

  4. #4
    Candidat au Club
    Profil pro
    Inscrit en
    Décembre 2011
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2011
    Messages : 9
    Points : 2
    Points
    2
    Par défaut
    Pardon oublier le code donc de "default.php" ou voudrais integrer donc ce code
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    <?php
    /**
     * ------------------------------------------------------------------------
     * JA T3 System Plugin for Joomla 2.5
     * ------------------------------------------------------------------------
     * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
     * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
     * Author: J.O.O.M Solutions Co., Ltd
     * Websites: http://www.joomlart.com - http://www.joomlancers.com
     * ------------------------------------------------------------------------
     */
     
    // No direct access
    defined('_JEXEC') or die;
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">
     
    <head>
        <?php //gen head base on theme info
        $this->showBlock ('head');
        ?>
     
        <?php
        $blocks = T3Common::node_children($this->getBlocksXML ('head'), 'block');
        foreach ($blocks as $block) :
            $this->showBlock ($block);
        endforeach;
        ?>
     
        <?php echo $this->showBlock ('css') ?>
    </head>
     
    <body id="bd" class="<?php if (!T3Common::mobile_device_detect()):?>bd<?php endif;?> <?php echo $this->getBodyClass();?>">
    <a name="Top" id="Top"></a>
    <div id="ja-wrapper">
     
     
        <?php
        $blks = &$this->getBlocksXML ('top');
        $blocks = &T3Common::node_children($blks, 'block');
        foreach ($blocks as $block) :
            $this->showBlock ($block);
        endforeach;
        ?>
     
        <!-- MAIN CONTAINER -->
        <div id="ja-container" class="wrap <?php echo $this->getColumnWidth('cls_w')?$this->getColumnWidth('cls_w'):'ja-mf'; ?>">
        <?php $this->genBlockBegin ($this->getBlocksXML ('middle')) ?>
            <div id="ja-mainbody" style="width:<?php echo $this->getColumnWidth('mw') ?>%">
                <!-- CONTENT -->
                <div id="ja-main" style="width:<?php echo $this->getColumnWidth('m') ?>%">
                <div class="inner clearfix">
     
                    <?php echo $this->loadBlock ('message') ?>
     
                    <?php
                    //content-mass-top
                    if($this->hasBlock('content-mass-top')) :
                    $block = &$this->getBlockXML ('content-mass-top');
                    ?>
                    <div id="ja-content-mass-top" class="ja-mass ja-mass-top clearfix">
                        <?php $this->showBlock ($block); ?>
                    </div>
                    <?php
     
                    endif; ?>
     
                    <div id="ja-contentwrap" class="clearfix <?php echo $this->getColumnWidth('cls_m'); ?>">
                        <div id="ja-content" class="column" style="width:<?php echo $this->getColumnWidth('cw') ?>%">
                            <div id="ja-current-content" class="column" style="width:<?php echo $this->getColumnWidth('c') ?>%">
                                <?php
                                //content-top
                                if($this->hasBlock('content-top')) :
                                $block = &$this->getBlockXML ('content-top');
                                ?>
                                <div id="ja-content-top" class="ja-content-top clearfix">
                                    <?php $this->showBlock ($block); ?>
                                </div>
                                <?php endif; ?>
     
                                <?php if (!$this->getParam ('hide_content_block', 0)): ?>
                                <div id="ja-content-main" class="ja-content-main clearfix">
                                    <?php echo $this->showBlock ('content') ?>
                                </div>
                                <?php endif ?>
     
                                <?php
                                //content-bottom
                                if($this->hasBlock('content-bottom')) :
                                $block = &$this->getBlockXML ('content-bottom');
                                ?>
                                <div id="ja-content-bottom" class="ja-content-bottom clearfix">
                                    <?php $this->showBlock ($block); ?>
                                </div>
                                <?php endif; ?>
                            </div>
     
                            <?php
                            //inset1
                            if($this->hasBlock('inset1')) :
                            $block = &$this->getBlockXML ('inset1');
                            ?>
                            <div id="ja-inset1" class="ja-col column ja-inset1" style="width:<?php echo $this->getColumnWidth('i1') ?>%">
                                <?php $this->showBlock ($block); ?>
                            </div>
                            <?php endif; ?>
                        </div>
     
                        <?php
                        //inset2
                        if($this->hasBlock('inset2')) :
                        $block = &$this->getBlockXML ('inset2');
                        ?>
                        <div id="ja-inset2" class="ja-col column ja-inset2" style="width:<?php echo $this->getColumnWidth('i2') ?>%">
                            <?php $this->showBlock ($block); ?>
                        </div>
                        <?php endif; ?>
     
                    </div>
     
                    <?php
                    //content-mass-bottom
                    if($this->hasBlock('content-mass-bottom')) :
                    $block = &$this->getBlockXML ('content-mass-bottom');
                    ?>
                    <div id="ja-content-mass-bottom" class="ja-mass ja-mass-bottom clearfix">
                        <?php $this->showBlock ($block); ?>
                    </div>
                    <?php endif; ?>
                </div>
                </div>
                <!-- //CONTENT -->
                <?php if (($l = $this->getColumnWidth('l'))): ?>
                <!-- LEFT COLUMN-->
                <div id="ja-left" class="column sidebar" style="width:<?php echo $l ?>%">
                    <?php
                    //left-mass-top
                    if($this->hasBlock('left-mass-top')) :
                    $block = &$this->getBlockXML ('left-mass-top');
                    ?>
                    <div id="ja-left-mass-top" class="ja-mass ja-mass-top clearfix">
                        <?php $this->showBlock ($block); ?>
                    </div>
                    <?php endif; ?>
     
                    <?php
                    $cls1 = $cls2 = "";
                    if ($this->hasBlock('left1') && $this->hasBlock('left2')) {
                        $cls1 = "ja-left1";
                        $cls2 = "ja-left2";
                    }
                    if ($this->hasBlock('left1') || $this->hasBlock('left2')):
                    ?>
                    <div class="ja-colswrap clearfix <?php echo $this->getColumnWidth('cls_l'); ?>">
                    <?php if ($this->hasBlock('left1')):
                        $block = &$this->getBlockXML('left1');
                    ?>
                        <div id="ja-left1" class="ja-col <?php echo $cls1;?> column" style="width:<?php echo $this->getColumnWidth('l1')?>%">
                            <?php $this->showBlock ($block); ?>
                        </div>
                    <?php endif ?>
     
                    <?php if ($this->hasBlock('left2')):
                        $block = &$this->getBlockXML('left2');
                    ?>
                        <div id="ja-left2" class="ja-col <?php echo $cls2;?> column" style="width:<?php echo $this->getColumnWidth('l2')?>%">
                            <?php $this->showBlock ($block); ?>
                        </div>
                    <?php endif ?>
                    </div>
                    <?php endif ?>
                    <?php
                    //left-mass-bottom
                    if($this->hasBlock('left-mass-bottom')) :
                    $block = &$this->getBlockXML ('left-mass-bottom');
                    ?>
                    <div id="ja-left-mass-bottom" class="ja-mass ja-mass-bottom clearfix">
                        <?php $this->showBlock ($block); ?>
                    </div>
                    <?php endif; ?>
                </div>
                <!-- //LEFT COLUMN-->
                <?php endif; ?>
     
            </div>
            <?php if (($r = $this->getColumnWidth('r'))): ?>
            <!-- RIGHT COLUMN-->
            <div id="ja-right" class="column sidebar" style="width:<?php echo $r ?>%">
     
                <?php
                //left-mass-top
                if($this->hasBlock('right-mass-top')) :
                $block = &$this->getBlockXML ('right-mass-top');
                ?>
                <div id="ja-right-mass-top" class="ja-mass ja-mass-top clearfix">
                    <?php $this->showBlock ($block); ?>
                </div>
                <?php endif; ?>
     
                <?php
                $cls1 = $cls2 = "";
                if ($this->hasBlock('right1') && $this->hasBlock('right2')) {
                    $cls1 = "ja-right1";
                    $cls2 = "ja-right2";
                }
                if ($this->hasBlock('right1') || $this->hasBlock('right2')): ?>
                <div class="ja-colswrap clearfix <?php echo $this->getColumnWidth('cls_r'); ?>">
                    <?php if ($this->hasBlock('right1')):
                    $block = &$this->getBlockXML('right1');
                    ?>
                    <div id="ja-right1" class="ja-col <?php echo $cls1;?> column" style="width:<?php echo $this->getColumnWidth('r1')?>%">
                        <?php $this->showBlock ($block); ?>
                    </div>
                    <?php endif ?>
     
                    <?php if ($this->hasBlock('right2')):
                    $block = &$this->getBlockXML('right2');
                    ?>
                    <div id="ja-right2" class="ja-col <?php echo $cls2;?> column" style="width:<?php echo $this->getColumnWidth('r2')?>%">
                        <?php $this->showBlock ($block); ?>
                    </div>
                    <?php endif ?>
                </div>
                <?php endif ?>
                <?php
                //right-mass-bottom
                if($this->hasBlock('right-mass-bottom')) :
                $block = &$this->getBlockXML ('right-mass-bottom');
                ?>
                <div id="ja-right-mass-bottom" class="ja-mass ja-mass-bottom clearfix">
                    <?php $this->showBlock ($block); ?>
                </div>
                <?php endif; ?>
            </div>
            <!-- //RIGHT COLUMN-->
            <?php endif; ?>
        <?php $this->genBlockEnd ($this->getBlocksXML ('middle')) ?>
        </div>
        <?php
        //Add fix height for main area
        if (T3Common::node_attributes ($this->getBlocksXML ('middle'), 'fixheight')) {
            $this->showBlock ('fixheight');
        }
        ?>
        <!-- //MAIN CONTAINER -->
     
        <?php
        $blks = &$this->getBlocksXML ('bottom');
        $blocks = &T3Common::node_children($blks, 'block');
        foreach ($blocks as $block) :
            //if (T3Common::getBrowserSortName() == 'ie' && T3Common::getBrowserMajorVersion() == 7) echo "<br class=\"clearfix\"/>";
            $this->showBlock ($block);
        endforeach;
        ?>
     
    </div>
     
    <?php if ($this->isIE6()) : ?>
        <?php $this->showBlock('ie6/ie6warning') ?>
    <?php endif; ?>
     
    <?php $this->showBlock('debug') ?>
     
    </body>
     
    </html>

  5. #5
    Candidat au Club
    Profil pro
    Inscrit en
    Décembre 2011
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2011
    Messages : 9
    Points : 2
    Points
    2
    Par défaut
    bon je cherche toujours hélas !! quelqu'un une idée
    merci par avance
    nadia

  6. #6
    Expert éminent sénior
    Avatar de rawsrc
    Homme Profil pro
    Dev indep
    Inscrit en
    Mars 2004
    Messages
    6 142
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Dev indep

    Informations forums :
    Inscription : Mars 2004
    Messages : 6 142
    Points : 16 545
    Points
    16 545
    Billets dans le blog
    12
    Par défaut
    Salut,

    à quelle ligne (emplacement) de ton script tu pointes vers le fichier que tu souhaites inclure en dur ?

  7. #7
    Candidat au Club
    Profil pro
    Inscrit en
    Décembre 2011
    Messages
    9
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2011
    Messages : 9
    Points : 2
    Points
    2
    Par défaut
    bonjour et merci de vous intéresser a mon souci !!
    Après tous les essais réalisés la ou cela marche le mieux si je peux dire !!!
    c'est le code chat intégrer ainsi a la page default.php
    Avec le code ainsi insérer j'ai bien le chat qui apparait mais juste la fenêtre "Chargement du chat patientez .."
    Je n'ai pas tester de faire appel juste au fichier demo55_mysql_container1.php dans default.php car je ne sais pas comment le faire.
    Ce fichier ce trouve au même endroit que la page default.php ainsi que tout les fichiers nécessaire au fonctionnement du chat et le chat fonctionne parfaitement lorsque que j'ouvre directement ce fichier via l'URL

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    <?php
     
    require_once dirname(__FILE__)."/../chat/src/phpfreechat.class.php";
     
     
    $params = array("height"         => "200px",);
    $params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
    //$params["nick"] = "guest".rand(1,1000);
    $params["container_type"] = "mysql";
    $params["container_cfg_mysql_host"]     = "****";        // default value is "localhost"
    $params["container_cfg_mysql_port"]     = 3306;               // default value is 3306
    $params["container_cfg_mysql_database"] = "****";      // default value is "phpfreechat"
    $params["container_cfg_mysql_table"]    = "****";             // default value is "phpfreechat"
    $params["container_cfg_mysql_username"] = "****";      // default value is "root"
    $params["container_cfg_mysql_password"] = "*****"; // default value is ""
    $params["container_cfg_mysql_fieldtype_server"] = 'varchar(32)';
    $params["container_cfg_mysql_fieldtype_group"] = 'varchar(64)';
    $params["container_cfg_mysql_fieldtype_subgroup"] = 'varchar(128)';
    $params["container_cfg_mysql_fieldtype_leaf"] = 'varchar(128)';
    $params["container_cfg_mysql_fieldtype_leafvalue"] = 'text';
    $params["container_cfg_mysql_fieldtype_timestamp"] = 'int(11)';
    $params["container_cfg_mysql_engine"] = 'InnoDB';
    $params["title"]         = 'La Buvette';
    $params["frozen_nick"]     = true;
    $params["language"]      = fr_FR;
     
    $params["theme"]       = "zilveer";
    $params["shownotice"]       = 0;     
    $params["nickmarker"]       = false;
    $params["clock"]       = false;
    $params["startwithsound"]       = false;  
    $params["display_ping"]       = false;
    $params["display_pfc_logo"]       = false;
    $params["nick"] = iconv("ISO-8859-1", "UTF-8", $bdd_jos_users);
    $params["refresh_delay"] = 2000; // 2000ms = 2s
    $chat = new phpFreeChat($params);
     
    defined('_JEXEC') or die;
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>">
     
    <head>
     
    	<?php $chat->printJavascript(); ?>
        <?php $chat->printStyle(); ?>
     
     
    	<?php //gen head base on theme info
        $this->showBlock ('head');
        ?>
     
        <?php
        $blocks = T3Common::node_children($this->getBlocksXML ('head'), 'block');
        foreach ($blocks as $block) :
            $this->showBlock ($block);
        endforeach;
        ?>
     
        <?php echo $this->showBlock ('css') ?>
    </head>
     
    <body id="bd" class="<?php if (!T3Common::mobile_device_detect()):?>bd<?php endif;?> <?php echo $this->getBodyClass();?>">
    <a name="Top" id="Top"></a>
    <div id="ja-wrapper">
     
     
        <?php
        $blks = &$this->getBlocksXML ('top');
        $blocks = &T3Common::node_children($blks, 'block');
        foreach ($blocks as $block) :
            $this->showBlock ($block);
        endforeach;
        ?>
     
        <!-- MAIN CONTAINER -->
    	<?php $chat->printChat(); ?>
        <div id="ja-container" class="wrap <?php echo $this->getColumnWidth('cls_w')?$this->getColumnWidth('cls_w'):'ja-mf'; ?>">
        <?php $this->genBlockBegin ($this->getBlocksXML ('middle')) ?>
            <div id="ja-mainbody" style="width:<?php echo $this->getColumnWidth('mw') ?>%">
                <!-- CONTENT -->
                <div id="ja-main" style="width:<?php echo $this->getColumnWidth('m') ?>%">
                <div class="inner clearfix">
     
                    <?php echo $this->loadBlock ('message') ?>
     
                    <?php
                    //content-mass-top
                    if($this->hasBlock('content-mass-top')) :
                    $block = &$this->getBlockXML ('content-mass-top');
                    ?>
                    <div id="ja-content-mass-top" class="ja-mass ja-mass-top clearfix">
                        <?php $this->showBlock ($block); ?>
                    </div>
                    <?php
     
                    endif; ?>
     
                    <div id="ja-contentwrap" class="clearfix <?php echo $this->getColumnWidth('cls_m'); ?>">
                        <div id="ja-content" class="column" style="width:<?php echo $this->getColumnWidth('cw') ?>%">
                            <div id="ja-current-content" class="column" style="width:<?php echo $this->getColumnWidth('c') ?>%">
                                <?php
                                //content-top
                                if($this->hasBlock('content-top')) :
                                $block = &$this->getBlockXML ('content-top');
                                ?>
                                <div id="ja-content-top" class="ja-content-top clearfix">
                                    <?php $this->showBlock ($block); ?>
                                </div>
                                <?php endif; ?>
     
                                <?php if (!$this->getParam ('hide_content_block', 0)): ?>
                                <div id="ja-content-main" class="ja-content-main clearfix">
                                    <?php echo $this->showBlock ('content') ?>
                                </div>
                                <?php endif ?>
     
                                <?php
                                //content-bottom
                                if($this->hasBlock('content-bottom')) :
                                $block = &$this->getBlockXML ('content-bottom');
                                ?>
                                <div id="ja-content-bottom" class="ja-content-bottom clearfix">
                                    <?php $this->showBlock ($block); ?>
                                </div>
                                <?php endif; ?>
                            </div>
     
                            <?php
                            //inset1
                            if($this->hasBlock('inset1')) :
                            $block = &$this->getBlockXML ('inset1');
                            ?>
                            <div id="ja-inset1" class="ja-col column ja-inset1" style="width:<?php echo $this->getColumnWidth('i1') ?>%">
                                <?php $this->showBlock ($block); ?>
                            </div>
                            <?php endif; ?>
                        </div>
     
                        <?php
                        //inset2
                        if($this->hasBlock('inset2')) :
                        $block = &$this->getBlockXML ('inset2');
                        ?>
                        <div id="ja-inset2" class="ja-col column ja-inset2" style="width:<?php echo $this->getColumnWidth('i2') ?>%">
                            <?php $this->showBlock ($block); ?>
                        </div>
                        <?php endif; ?>
     
                    </div>
     
                    <?php
                    //content-mass-bottom
                    if($this->hasBlock('content-mass-bottom')) :
                    $block = &$this->getBlockXML ('content-mass-bottom');
                    ?>
                    <div id="ja-content-mass-bottom" class="ja-mass ja-mass-bottom clearfix">
                        <?php $this->showBlock ($block); ?>
                    </div>
                    <?php endif; ?>
                </div>
                </div>
                <!-- //CONTENT -->
                <?php if (($l = $this->getColumnWidth('l'))): ?>
                <!-- LEFT COLUMN-->
                <div id="ja-left" class="column sidebar" style="width:<?php echo $l ?>%">
                    <?php
                    //left-mass-top
                    if($this->hasBlock('left-mass-top')) :
                    $block = &$this->getBlockXML ('left-mass-top');
                    ?>
                    <div id="ja-left-mass-top" class="ja-mass ja-mass-top clearfix">
                        <?php $this->showBlock ($block); ?>
                    </div>
                    <?php endif; ?>
     
                    <?php
                    $cls1 = $cls2 = "";
                    if ($this->hasBlock('left1') && $this->hasBlock('left2')) {
                        $cls1 = "ja-left1";
                        $cls2 = "ja-left2";
                    }
                    if ($this->hasBlock('left1') || $this->hasBlock('left2')):
                    ?>
                    <div class="ja-colswrap clearfix <?php echo $this->getColumnWidth('cls_l'); ?>">
                    <?php if ($this->hasBlock('left1')):
                        $block = &$this->getBlockXML('left1');
                    ?>
                        <div id="ja-left1" class="ja-col <?php echo $cls1;?> column" style="width:<?php echo $this->getColumnWidth('l1')?>%">
                            <?php $this->showBlock ($block); ?>
                        </div>
                    <?php endif ?>
     
                    <?php if ($this->hasBlock('left2')):
                        $block = &$this->getBlockXML('left2');
                    ?>
                        <div id="ja-left2" class="ja-col <?php echo $cls2;?> column" style="width:<?php echo $this->getColumnWidth('l2')?>%">
                            <?php $this->showBlock ($block); ?>
                        </div>
                    <?php endif ?>
                    </div>
                    <?php endif ?>
                    <?php
                    //left-mass-bottom
                    if($this->hasBlock('left-mass-bottom')) :
                    $block = &$this->getBlockXML ('left-mass-bottom');
                    ?>
                    <div id="ja-left-mass-bottom" class="ja-mass ja-mass-bottom clearfix">
                        <?php $this->showBlock ($block); ?>
                    </div>
                    <?php endif; ?>
                </div>
                <!-- //LEFT COLUMN-->
                <?php endif; ?>
     
            </div>
            <?php if (($r = $this->getColumnWidth('r'))): ?>
            <!-- RIGHT COLUMN-->
            <div id="ja-right" class="column sidebar" style="width:<?php echo $r ?>%">
     
                <?php
                //left-mass-top
                if($this->hasBlock('right-mass-top')) :
                $block = &$this->getBlockXML ('right-mass-top');
                ?>
                <div id="ja-right-mass-top" class="ja-mass ja-mass-top clearfix">
                    <?php $this->showBlock ($block); ?>
                </div>
                <?php endif; ?>
     
                <?php
                $cls1 = $cls2 = "";
                if ($this->hasBlock('right1') && $this->hasBlock('right2')) {
                    $cls1 = "ja-right1";
                    $cls2 = "ja-right2";
                }
                if ($this->hasBlock('right1') || $this->hasBlock('right2')): ?>
                <div class="ja-colswrap clearfix <?php echo $this->getColumnWidth('cls_r'); ?>">
                    <?php if ($this->hasBlock('right1')):
                    $block = &$this->getBlockXML('right1');
                    ?>
                    <div id="ja-right1" class="ja-col <?php echo $cls1;?> column" style="width:<?php echo $this->getColumnWidth('r1')?>%">
                        <?php $this->showBlock ($block); ?>
                    </div>
                    <?php endif ?>
     
                    <?php if ($this->hasBlock('right2')):
                    $block = &$this->getBlockXML('right2');
                    ?>
                    <div id="ja-right2" class="ja-col <?php echo $cls2;?> column" style="width:<?php echo $this->getColumnWidth('r2')?>%">
                        <?php $this->showBlock ($block); ?>
                    </div>
                    <?php endif ?>
                </div>
                <?php endif ?>
                <?php
                //right-mass-bottom
                if($this->hasBlock('right-mass-bottom')) :
                $block = &$this->getBlockXML ('right-mass-bottom');
                ?>
                <div id="ja-right-mass-bottom" class="ja-mass ja-mass-bottom clearfix">
                    <?php $this->showBlock ($block); ?>
                </div>
                <?php endif; ?>
            </div>
            <!-- //RIGHT COLUMN-->
            <?php endif; ?>
        <?php $this->genBlockEnd ($this->getBlocksXML ('middle')) ?>
        </div>
        <?php
        //Add fix height for main area
        if (T3Common::node_attributes ($this->getBlocksXML ('middle'), 'fixheight')) {
            $this->showBlock ('fixheight');
        }
        ?>
        <!-- //MAIN CONTAINER -->
     
        <?php
        $blks = &$this->getBlocksXML ('bottom');
        $blocks = &T3Common::node_children($blks, 'block');
        foreach ($blocks as $block) :
            //if (T3Common::getBrowserSortName() == 'ie' && T3Common::getBrowserMajorVersion() == 7) echo "<br class=\"clearfix\"/>";
            $this->showBlock ($block);
        endforeach;
        ?>
     
    </div>
     
    <?php if ($this->isIE6()) : ?>
        <?php $this->showBlock('ie6/ie6warning') ?>
    <?php endif; ?>
     
    <?php $this->showBlock('debug') ?>
     
    </body>
     
    </html>
    Je vous remercie vraiment si une solution peu etre trouvée !!
    Nadia

Discussions similaires

  1. Réponses: 2
    Dernier message: 04/03/2015, 08h27
  2. Inclure un script bash dans une page php
    Par kazylax dans le forum Linux
    Réponses: 1
    Dernier message: 27/01/2009, 16h59
  3. Réponses: 10
    Dernier message: 15/07/2008, 11h52
  4. Réponses: 1
    Dernier message: 12/01/2008, 21h45
  5. [Système] Executer un script CGI dans une page php
    Par RadicalBob dans le forum Langage
    Réponses: 1
    Dernier message: 25/04/2007, 17h46

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo