En poursuivant votre navigation sur notre site, vous acceptez l’utilisation de cookies afin d’améliorer votre navigation. En savoir plus Réduire
Plan du site  ·  Mentions Légales  ·  Statistiques  ·  Contact PatMax Web ·  PatMax Annuaire · 
FAQ
Connexion · M’enregistrer
Afin de bénéficier de l'intégralité des fonctions de ce forum il est conseillé de vous connecter
PatMax Scripts va fermer définitivement au mois d'avril 2024

Index du forum » ENTRAIDE » PHPBB (2 et 3) » Installation

 
Poster un nouveau sujet Répondre au sujet
Message Auteur
 Sujet du message:
Message Posté: Ven 14 Mar 2008 14:59 

Je tente de realiser un forum phpbb. j'espere reussir je vous tient au courant .

_________________
Stop a l'impolitesse Stop au language SMS
Vive PatMaxScripts


Hors ligne

Enregistré le:
Sam 1 Avr 2006 19:08
Messages: 256
Localisation: saone et loire

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Ven 14 Mar 2008 19:30 

etape installation reussi .
:roll: c'est drolement vide .

_________________
Stop a l'impolitesse Stop au language SMS
Vive PatMaxScripts


Hors ligne

Enregistré le:
Sam 1 Avr 2006 19:08
Messages: 256
Localisation: saone et loire

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Sam 15 Mar 2008 10:21 

Salut,

Tu trouveras essentiellement tout ce qu'il te faut pour débuter ici même :

http://patmax.info/scripts/viewtopic.php?t=2118

http://patmax.info/scripts/viewtopic.php?t=2372

http://patmax.info/scripts/viewtopic.php?t=103

Pour les plus généraux, ensuite tu as une multitude de topics qui donnent diverses infos.

N'hésite pas à revenir vers nous si tu as un problème :wink:


Avatar de l’utilisateur
Hors ligne

Enregistré le:
Mer 2 Nov 2005 21:51
Messages: 837

Profil  Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Sam 15 Mar 2008 11:11 

Merci rithye
on m'a donné ca a installé pour pouvoir mettre les noms de groupe coloré
http://www.reddevboard.com/forum/viewtopic.php?t=1505 j'aurais certainement besoin devous pour ca !
http://membres.lycos.fr/dreamofpeace//p ... /index.php

Rithye et patmax afin que que vous puissiez voir le forum de l'interieur je vous est creer votre pseudo le mot de passe je vous le donnerais en mp si ca vous interresses

_________________
Stop a l'impolitesse Stop au language SMS
Vive PatMaxScripts


Modifié en dernier par freddy00771 le Sam 15 Mar 2008 14:35, modifié 1 fois.

Hors ligne

Enregistré le:
Sam 1 Avr 2006 19:08
Messages: 256
Localisation: saone et loire

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Sam 15 Mar 2008 15:13 

J'ai telecharger et dezippé le fichier mais j'ai besoin d'aide pour savoir quoi faire apres

_________________
Stop a l'impolitesse Stop au language SMS
Vive PatMaxScripts


Hors ligne

Enregistré le:
Sam 1 Avr 2006 19:08
Messages: 256
Localisation: saone et loire

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Sam 15 Mar 2008 15:38 

Dans les fichiers dézippés, tu dois avoir un ficher en .txt qui t'indique la procédure à suivre pour l'installation du mod en question.

_________________
Ma satisfaction, que vous soyez satisfait.


Avatar de l’utilisateur
<font color=#AA0000><b>Fondateur</b></font>
Fondateur
Hors ligne

Enregistré le:
Mar 1 Nov 2005 19:45
Messages: 5117
Localisation: Centre France

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Sam 15 Mar 2008 16:28 

j'ai bien 2 fichier txt pour m'expliquer mais tout en anglais
je t'ai fais une copie du 1er fichier a cette adresse :
http://membres.lycos.fr/dreamofpeace//p ... um.php?f=4
le forum est public

edit 1 :je vais tenter la proposition de patmax qu'il a fait ici : http://patmax.info/scripts/viewtopic.php?t=2248
c'est formidable Patmax ta version premod
http://www.knightrider2008.fr/forum/index.php
Merci

Edit 2 : J'ai fais un lien menant a ce forum car on y trouve vraiment l'aide qu'on a besoin .

_________________
Stop a l'impolitesse Stop au language SMS
Vive PatMaxScripts


Modifié en dernier par freddy00771 le Sam 19 Avr 2008 16:58, modifié 3 fois.

Hors ligne

Enregistré le:
Sam 1 Avr 2006 19:08
Messages: 256
Localisation: saone et loire

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Dim 16 Mar 2008 21:04 

J'ai une derniere question afin de finir mon foruum comment fait on pour avoir les bots (google, msn..) sur son forum ?

_________________
Stop a l'impolitesse Stop au language SMS
Vive PatMaxScripts


Hors ligne

Enregistré le:
Sam 1 Avr 2006 19:08
Messages: 256
Localisation: saone et loire

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Lun 17 Mar 2008 01:13 

Holla, c'est une autre histoire.

J'essaierai de regarder et te donner la procédure demain en fin de journée.
Si j'oublie, n'hésites pas à relancer le sujet.

_________________
Ma satisfaction, que vous soyez satisfait.


Avatar de l’utilisateur
<font color=#AA0000><b>Fondateur</b></font>
Fondateur
Hors ligne

Enregistré le:
Mar 1 Nov 2005 19:45
Messages: 5117
Localisation: Centre France

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Lun 17 Mar 2008 09:39 

Merci

_________________
Stop a l'impolitesse Stop au language SMS
Vive PatMaxScripts


Hors ligne

Enregistré le:
Sam 1 Avr 2006 19:08
Messages: 256
Localisation: saone et loire

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Lun 17 Mar 2008 13:44 

Voila le mod en question
http://patmax.info/zip/mods/Simple-Show-BotV0-0-2.zip

_________________
Ma satisfaction, que vous soyez satisfait.


Avatar de l’utilisateur
<font color=#AA0000><b>Fondateur</b></font>
Fondateur
Hors ligne

Enregistré le:
Mar 1 Nov 2005 19:45
Messages: 5117
Localisation: Centre France

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Lun 17 Mar 2008 17:50 

Merci ! :cry: Pourquoi faut il toujours que les explications soit en anglais ?
Please help me :D

_________________
Stop a l'impolitesse Stop au language SMS
Vive PatMaxScripts


Modifié en dernier par freddy00771 le Lun 17 Mar 2008 18:13, modifié 1 fois.

Hors ligne

Enregistré le:
Sam 1 Avr 2006 19:08
Messages: 256
Localisation: saone et loire

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Lun 17 Mar 2008 18:48 

Ce n'est pas compliqué...... :lol:

Voici l'essentiel:


[spoiler]
OUVRIR :
______
 
language/lang_french/lang_main.php

RECHERCHER :
______

$lang['Hidden_users_zero_total'] = '0 Invisible et ';
$lang['Hidden_user_total'] = '%d Invisible et ';
$lang['Hidden_users_total'] = '%d Invisibles et ';
$lang['Guest_users_zero_total'] = '0 Invité';
$lang['Guest_users_total'] = '%d Invités';
$lang['Guest_user_total'] = '%d Invité';

REMPLACER PAR :
______________

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$lang['Hidden_users_zero_total'] = '0 Invisible, ';
$lang['Hidden_user_total'] = '%d Invisible, ';
$lang['Hidden_users_total'] = '%d Invisibles, ';
$lang['Guest_users_zero_total'] = '0 Invité et ';
$lang['Guest_users_total'] = '%d Invités et ';
$lang['Guest_user_total'] = '%d Invité et ';
$lang['Bot_online'] = 'Bots : ';
$lang['Bot_nul'] = '0 Bots';
$lang['Bot_total'] = '%d Bots';
$lang['Bot_one'] = '%d Bot';
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ OUVRIR ]----------------------------------------------
#

includes/page_header.php

#
#-----[ RECHERCHER ]----------------------------------------------
#

define('HEADER_INC', TRUE);

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

// www.phpBB-SEO.com SEO TOOLKIT BEGIN - BOTS
$bots_online = array();
$online_botlist = '';
$bot_count = 0;
$bot_style = array( 'Google' => 'style="color:#2159D6;font-weight:bold"', 'MSN' => 'style="color:#52BA18;font-weight:bold"', 'Yahoo!' => 'style="color:#FF0031;font-weight:bold"' );
$bot_to_style = array( 'Google', 'Yahoo!', 'Yahoo!' , 'Yahoo!', 'MSN',  'MSN', 'MSN', 'MSN');
$bot_ips = array( '66.249', '74.6', '66.196', '66.142', '64.4', '65.5', '131.107', '207.46' );
// www.phpBB-SEO.com SEO TOOLKIT END - BOTS

#
#-----[ RECHERCHER ]----------------------------------------------
#

      }
      else
      {
         // Skip multiple sessions for one user
         if ( $row['session_ip'] != $prev_session_ip )
         {
            $guests_online++;


#
#-----[ APRES, AJOUTER ]----------------------------------------------
#
 
            // www.phpBB-SEO.com SEO TOOLKIT BEGIN
            $bot_id = is_bot(decode_ip($row['session_ip']));
            if ( $bot_id >=0 ) {
               $guests_online--;
               $bot_count++;
               if ( !array_key_exists($bot_to_style[$bot_id], $bots_online) ) {
                  $bots_online[$bot_to_style[$bot_id]] = 1;
               } else {
                  $bots_online[$bot_to_style[$bot_id]] ++;
               }
            }
            // www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ RECHERCHER ]----------------------------------------------
#
   if ( empty($online_userlist) )
   {
      $online_userlist = $lang['None'];
   }

#
#-----[ AVANT, AJOUTER ]----------------------------------------------
#
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   if ( !empty($bots_online) ) {
      foreach ( $bots_online as $bot => $bot_num) {
         $bot_cnt = ( $bot_num > 1) ? "($bot_num)" : '';
         $online_botlist .= (($online_botlist!='') ? ', ' : '') . "<span ".$bot_style[$bot].">$bot $bot_cnt</span>";
      }
   }
   // www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ RECHERCHER ]----------------------------------------------
#

   $total_online_users = $logged_visible_online + $logged_hidden_online + $guests_online;

#
#-----[ APRES, AJOUTER ]----------------------------------------------
#
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   $total_online_users += $bot_count;
   // www.phpBB-SEO.com SEO TOOLKIT END
#
#-----[ RECHERCHER ]----------------------------------------------
#

   else
   {
      $l_g_user_s = $lang['Guest_users_total'];
   }

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

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   if ( $bot_count == 0 ) {
      $l_bot = $lang['Bot_nul'];
   } else if ( $bot_count == 1 ) {
      $l_bot = $lang['Bot_one'];
   } else {
      $l_bot = $lang['Bot_total'];
   }
   // www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ RECHERCHER ]----------------------------------------------
#

   $l_online_users .= sprintf($l_g_user_s, $guests_online);

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

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   $l_online_users .= sprintf($l_bot, $bot_count);
   // www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ RECHERCHER ]----------------------------------------------
#

   'LOGGED_IN_USER_LIST' => $online_userlist,

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

   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
   'BOT_LIST' => $lang['Bot_online'] . ( ($online_botlist != '') ? $online_botlist : $lang['None']),
   // www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ OUVRIR ]----------------------------------------------
#
includes/functions.php

#
#-----[ RECHERCHER ]----------------------------------------------
#

?>


#
#-----[ AVANT, AJOUTER ]----------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
/**
* tell if user is a bot on ip match
*/
function is_bot($user_ip) {
   global $bot_ips;
   if ( !empty($bot_ips) ) {
      foreach ( $bot_ips as $bot_id => $bot_ip) {
         if ( strpos(trim($user_ip), $bot_ip) === 0) {
            return $bot_id;
         }
      }
   }
   return -1;
}
// www.phpBB-SEO.com SEO TOOLKIT END

#
#-----[ OUVRIR ]----------------------------------------------
#
 
language/lang_english/lang_main.php


#
#-----[ RECHERCHER ]----------------------------------------------
#

$lang['Hidden_users_zero_total'] = '0 Hidden and ';
$lang['Hidden_user_total'] = '%d Hidden and ';
$lang['Hidden_users_total'] = '%d Hidden and ';
$lang['Guest_users_zero_total'] = '0 Guests';
$lang['Guest_users_total'] = '%d Guests';
$lang['Guest_user_total'] = '%d Guest';


#
#-----[ REMPLACER PAR ]----------------------------------------------
#

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$lang['Hidden_users_zero_total'] = '0 Hidden, ';
$lang['Hidden_user_total'] = '%d Hidden, ';
$lang['Hidden_users_total'] = '%d Hidden, ';
$lang['Guest_users_zero_total'] = '0 Guests and ';
$lang['Guest_users_total'] = '%d Guests and ';
$lang['Guest_user_total'] = '%d Guest and ';
$lang['Bot_online'] = 'Online Bots : ';
$lang['Bot_nul'] = '0 Bots';
$lang['Bot_total'] = '%d Bots';
$lang['Bot_one'] = '%d Bot';
// www.phpBB-SEO.com SEO TOOLKIT END


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


#
#-----[ RECHERCHER ]----------------------------------------------
#

{LOGGED_IN_USER_LIST}

#
#-----[ DANS LA LIGNE RECHERCHER ]----------------------------------------------
#

{LOGGED_IN_USER_LIST}


#
#-----[ DANS LA LIGNE APRES, AJOUTER ]----------------------------------------------
#

<br />{BOT_LIST}

#
#-----[ SAUVER/FERMER LES FICHIERS ]------------------------------------------#
# EoM
[/spoiler]

_________________
Ma satisfaction, que vous soyez satisfait.


Avatar de l’utilisateur
<font color=#AA0000><b>Fondateur</b></font>
Fondateur
Hors ligne

Enregistré le:
Mar 1 Nov 2005 19:45
Messages: 5117
Localisation: Centre France

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Lun 17 Mar 2008 19:00 

je vais tenter sur mon forum de test si j'y arrive je le ferais sur l'autre

_________________
Stop a l'impolitesse Stop au language SMS
Vive PatMaxScripts


Hors ligne

Enregistré le:
Sam 1 Avr 2006 19:08
Messages: 256
Localisation: saone et loire

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message:
Message Posté: Lun 17 Mar 2008 21:06 

je coince a niveau
else
    {
        $l_g_user_s = $lang['Guest_users_total'];
    }

que je dois rechercher et que je trouve pas :
<?php
/***************************************************************************
 *                              page_header.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                : support@phpbb.com
 *
 *   $Id: page_header.php,v 1.106.2.24 2005/03/26 14:15:59 acydburn Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program 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.
 *
 ***************************************************************************/

if ( !defined('IN_PHPBB') )
{
   die("Hacking attempt");
}

define('HEADER_INC', TRUE);

// www.phpBB-SEO.com SEO TOOLKIT BEGIN - BOTS
$bots_online = array();
$online_botlist = '';
$bot_count = 0;
$bot_style = array( 'Google' => 'style="color:#2159D6;font-weight:bold"', 'MSN' => 'style="color:#52BA18;font-weight:bold"', 'Yahoo!' => 'style="color:#FF0031;font-weight:bold"' );
$bot_to_style = array( 'Google', 'Yahoo!', 'Yahoo!' , 'Yahoo!', 'MSN',  'MSN', 'MSN', 'MSN');
$bot_ips = array( '66.249', '74.6', '66.196', '66.142', '64.4', '65.5', '131.107', '207.46' );
// www.phpBB-SEO.com SEO TOOLKIT END - BOTS


if(!defined('PORTAL_INIT'))
{
   include($phpbb_root_path . 'includes/functions_portal.' . $phpEx);
   portal_config_init($portal_config);
   include_once($phpbb_root_path . 'includes/lite.'.$phpEx);
   $options = array(
      'cacheDir' => $phpbb_root_path . 'cache/cache_portal/',
      'fileLocking' => $portal_config['md_cache_file_locking'],
      'writeControl' => $portal_config['md_cache_write_control'],
      'readControl' => $portal_config['md_cache_read_control'],
      'readControlType' => $portal_config['md_cache_read_type'],
      'fileNameProtection' => $portal_config['md_cache_filename_protect'],
      'automaticSerialization' => $portal_config['md_cache_serialize']
   );
   $var_cache = new Cache_Lite($options);
   define('PORTAL_INIT', TRUE);
}

//
// gzip_compression
//
$do_gzip_compress = FALSE;
if ( $board_config['gzip_compress'] )
{
   $phpver = phpversion();

   $useragent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;

   if ( $phpver >= '4.0.4pl1' && ( strstr($useragent,'compatible') || strstr($useragent,'Gecko') ) )
   {
      if ( extension_loaded('zlib') )
      {
         if (headers_sent() != TRUE)
         {
            //
            // Here we updated the gzip function.
            // With this method we can get the server up
            // to 10% faster
            //
            $gz_possible = isset($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING']) && eregi('gzip, deflate',$HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING']);
            if ($gz_possible)
            {
               ob_start('ob_gzhandler');
            }
         }
      }
   }
   else if ( $phpver > '4.0' )
   {
      if ( strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') )
      {
         if ( extension_loaded('zlib') )
         {
            $do_gzip_compress = TRUE;
            ob_start();
            ob_implicit_flush(0);

            header('Content-Encoding: gzip');
         }
      }
   }
}

$template->set_filenames(array(
   'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
);

//
// Generate logged in/logged out status
//
if ( $userdata['session_logged_in'] )
{
   $u_login_logout = 'login.'.$phpEx.'?logout=true&amp;sid=' . $userdata['session_id'];
   $l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]';
}
else
{
   $u_login_logout = 'login.'.$phpEx;
   $l_login_logout = $lang['Login'];
}

$s_last_visit = ( $userdata['session_logged_in'] ) ? create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']) : '';

//
// Get basic (usernames + totals) online
// situation
//
$logged_visible_online = 0;
$logged_hidden_online = 0;
$guests_online = 0;
$online_userlist = '';
$l_online_users = '';

if (defined('SHOW_ONLINE'))
{
   $user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : '';
   $sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, u.user_qeel_color, s.session_logged_in, s.session_ip
      FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
      WHERE u.user_id = s.session_user_id
         AND s.session_time >= " . ( time() - $board_config['duree_viewonline'] ) . "
         $user_forum_sql
      ORDER BY u.username ASC, s.session_ip ASC";
   if( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql);
   }

   $userlist_ary = array();
   $userlist_visible = array();

   $prev_user_id = 0;
   $prev_user_ip = $prev_session_ip = '';

   while( $row = $db->sql_fetchrow($result) )
   {
      // User is logged in and therefor not a guest
      if ( $row['session_logged_in'] )
      {
         // Skip multiple sessions for one user
         if ( $row['user_id'] != $prev_user_id )
         {
            $style_color = '';
            if($row['user_qeel_color'] != 0)
            {
               $style_color = 'class="color_qeel_' . $row['user_qeel_color'] . '"';
            }

            if ( $row['user_allow_viewonline'] )
            {
               $user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
               $logged_visible_online++;
            }
            else
            {
               $user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>';
               $logged_hidden_online++;
            }

            if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )
            {
               $online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link;
            }
         }

         $prev_user_id = $row['user_id'];
      }
      else
      {
         // Skip multiple sessions for one user
         if ( $row['session_ip'] != $prev_session_ip )
         {
            $guests_online++;
   // www.phpBB-SEO.com SEO TOOLKIT BEGIN
                $bot_id = is_bot(decode_ip($row['session_ip']));
                if ( $bot_id >=0 ) {
                    $guests_online--;
                    $bot_count++;
                    if ( !array_key_exists($bot_to_style[$bot_id], $bots_online) ) {
                        $bots_online[$bot_to_style[$bot_id]] = 1;
                    } else {
                        $bots_online[$bot_to_style[$bot_id]] ++;
                    }
                }
                // www.phpBB-SEO.com SEO TOOLKIT END

         }
      }

      $prev_session_ip = $row['session_ip'];
   }
   $db->sql_freeresult($result);
 // www.phpBB-SEO.com SEO TOOLKIT BEGIN
    if ( !empty($bots_online) ) {
        foreach ( $bots_online as $bot => $bot_num) {
            $bot_cnt = ( $bot_num > 1) ? "($bot_num)" : '';
            $online_botlist .= (($online_botlist!='') ? ', ' : '') . "<span ".$bot_style[$bot].">$bot $bot_cnt</span>";
        }
    }
    // www.phpBB-SEO.com SEO TOOLKIT END

   if ( empty($online_userlist) )
   {
      $online_userlist = $lang['None'];
   }
   $online_userlist = ( ( isset($forum_id) ) ? $lang['Browsing_forum'] : $lang['Registered_users'] ) . ' <b>' . $online_userlist . '</b>';

   $total_online_users = $logged_visible_online + $logged_hidden_online;
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
    $total_online_users += $bot_count;
    // www.phpBB-SEO.com SEO TOOLKIT END
   $total_online_members = $logged_visible_online + $logged_hidden_online;
   if ( $total_online_members > $board_config['record_online_users'])
   {
      $board_config['record_online_users'] = $total_online_members;
      $board_config['record_online_date'] = time();

      $sql = "UPDATE " . CONFIG_TABLE . "
         SET config_value = '$total_online_members'
         WHERE config_name = 'record_online_users'";
      if ( !$db->sql_query($sql) )
      {
         message_die(GENERAL_ERROR, 'Could not update online user record (nr of users)', '', __LINE__, __FILE__, $sql);
      }

      $sql = "UPDATE " . CONFIG_TABLE . "
         SET config_value = '" . $board_config['record_online_date'] . "'
         WHERE config_name = 'record_online_date'";
      if ( !$db->sql_query($sql) )
      {
         message_die(GENERAL_ERROR, 'Could not update online user record (date)', '', __LINE__, __FILE__, $sql);
      }
   }

   if ( $total_online_users == 0 )
   {
      $l_t_user_s = $lang['Online_users_zero_total'];
   }
   else if ( $total_online_users == 1 )
   {
      $l_t_user_s = $lang['Online_user_total'];
   }
   else
   {
      $l_t_user_s = $lang['Online_users_total'];
   }

   if ( $logged_visible_online == 0 )
   {
      $l_r_user_s = $lang['Reg_users_zero_total'];
   }
   else if ( $logged_visible_online == 1 )
   {
      $l_r_user_s = $lang['Reg_user_total'];
   }
   else
   {
      $l_r_user_s = $lang['Reg_users_total'];
   }

   if ( $logged_hidden_online == 0 )
   {
      $l_h_user_s = $lang['Hidden_users_zero_total'];
   }
   else if ( $logged_hidden_online == 1 )
   {
      $l_h_user_s = $lang['Hidden_user_total'];
   }
   else
   {
      $l_h_user_s = $lang['Hidden_users_total'];
   }

   $l_online_users = sprintf($l_t_user_s, $total_online_users);
   $l_online_users .= sprintf($l_r_user_s, $logged_visible_online);
   $l_online_users .= sprintf($l_h_user_s, $logged_hidden_online);
   $l_online_users .= sprintf($l_g_user_s, $guests_online);
}


if ( $board_config['day_users'] && defined('SHOW_ONLINE') )
{
   $day_userlist = '';
   $total_users_day = 0;
   
   $tz = ( $userdata['session_logged_in'] ) ? $userdata['user_timezone'] : $board_config['board_timezone'];
   $today_tz = time() + ( 3600 * $tz );
   
   list ($month, $day, $year) = explode("/", gmdate('n/j/Y', $today_tz));
   
   $time_begin_day = mktime(0, 0, 0, $month, $day, $year);
   
   $sql = "SELECT user_id, username, user_qeel_color, user_allow_viewonline, user_level, user_session_time
      FROM ".USERS_TABLE."
      WHERE user_id > 0
      AND user_session_time >= ".$time_begin_day."
      ORDER BY username ASC";
      
   if( !($result = $db->sql_query($sql)) )
   {
      message_die(GENERAL_ERROR, 'Could not obtain user/day information', '', __LINE__, __FILE__, $sql);
   }
   
   while( $row = $db->sql_fetchrow($result) )
   {
      $style_color = ($row['user_qeel_color'] != 0) ? ('class="color_qeel_' . $row['user_qeel_color'] . '"') : '';
      
      if ( $row['user_allow_viewonline'] )
      {
         $user_day_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color . '><b>' . $row['username'] . '</b></a>';
      }
      else
      {
            $user_day_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color . '><i><b>' . $row['username'] . '</b></i></a>';
      }
      
      if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )
      {
         $day_userlist .= ( $day_userlist != '' ) ? ', ' . $user_day_link : $user_day_link;
         $total_users_day++;
      }
   }
   $day_userlist = ( $total_users_day == 0 ) ? $lang['None_users_day'] : ( ( $total_users_day == 1 ) ? $lang['Day_user'] : sprintf($lang['Day_users'], $total_users_day) ) . ' ' . $day_userlist;
   
   $template->assign_block_vars('switch_day_users', array());
}

//
// Obtain number of new private messages
// if user is logged in
//
if ( ($userdata['session_logged_in']) && (empty($gen_simple_header)) )
{
   if ( $userdata['user_new_privmsg'] )
   {
      $l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms'];
      $l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']);

      if ( $userdata['user_last_privmsg'] > $userdata['user_lastvisit'] )
      {
         $sql = "UPDATE " . USERS_TABLE . "
            SET user_last_privmsg = " . $userdata['user_lastvisit'] . "
            WHERE user_id = " . $userdata['user_id'];
         if ( !$db->sql_query($sql) )
         {
            message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql);
         }

         $s_privmsg_new = 1;
         $icon_pm = $images['pm_new_msg'];
      }
      else
      {
         $s_privmsg_new = 0;
         $icon_pm = $images['pm_new_msg'];
      }
   }
   else
   {
      if ( $userdata['user_unread_privmsg'] )
      {
         $l_message_unread = ( $userdata['user_unread_privmsg'] == 1 ) ? $lang['Unread_pm'] : $lang['Unread_pms'];
         $l_privmsgs_text = sprintf($l_message_unread, $userdata['user_unread_privmsg']);
         $s_privmsg_new = 0;
         $icon_pm = $images['pm_new_msg'];   
      }
      else
      {
         $l_privmsgs_text = $lang['No_unread_pm'];
         $s_privmsg_new = 0;
         $icon_pm = $images['pm_no_new_msg'];

      }
   }
}
else
{
   $icon_pm = $images['pm_no_new_msg'];
   $l_privmsgs_text = $lang['Login_check_pm'];
   $s_privmsg_new = 0;
}

//
// Generate HTML required for Mozilla Navigation bar
//
if (!isset($nav_links))
{
   $nav_links = array();
}

$nav_links_html = '';
$nav_link_proto = '<link rel="%s" href="%s" title="%s" />' . "\n";
while( list($nav_item, $nav_array) = @each($nav_links) )
{
   if ( !empty($nav_array['url']) )
   {
      $nav_links_html .= sprintf($nav_link_proto, $nav_item, append_sid($nav_array['url']), $nav_array['title']);
   }
   else
   {
      // We have a nested array, used for items like <link rel='chapter'> that can occur more than once.
      while( list(,$nested_array) = each($nav_array) )
      {
         $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']);
      }
   }
}

if ( $board_config['activeportail'] )
{
   $template->assign_block_vars('switch_portail', array());
}

// Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility
$l_timezone = explode('.', $board_config['board_timezone']);
$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//
$template->assign_vars(array(
   'SITENAME' => $board_config['sitename'],
   'SITE_DESCRIPTION' => $board_config['site_desc'],
   'PAGE_TITLE' => $page_title,
   'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit),
   'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])),
   'TOTAL_USERS_ONLINE' => $l_online_users,
   'LOGGED_IN_USER_LIST' => $online_userlist,
   'USERS_OF_THE_DAY_LIST' => $day_userlist,
   'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])),
   'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text,
   'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread,
   'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,
   'PRIVMSG_IMG' => $icon_pm,
   'COQE_CSS_NUMBER' => $board_config['CoQE_css_number'],

   'L_BOARD_CURRENTLY_DISABLED' => $lang['Board_Currently_Disabled'],
   'L_USERNAME' => $lang['Username'],
   'L_PASSWORD' => $lang['Password'],
   'L_LOGIN_LOGOUT' => $l_login_logout,
   'L_LOGIN' => $lang['Login'],
   'L_LOG_ME_IN' => $lang['Log_me_in'],
   'L_AUTO_LOGIN' => $lang['Log_me_in'],
   'L_INDEX' => sprintf($lang['Forum_Index']),
   'L_HOME' => $lang['Home'],
   'L_REGISTER' => $lang['Register'],
   'L_PROFILE' => $lang['Profile'],
   'L_SEARCH' => $lang['Search'],
   'L_PRIVATEMSGS' => $lang['Private_Messages'],
   'L_PRIVATEMSG_NEW' => ($userdata['user_new_privmsg'] == 1) ? $lang['You_new_pm'] : $lang['You_new_pms'],
   'L_WHO_IS_ONLINE' => $lang['Who_is_Online'],
   'L_MEMBERLIST' => $lang['Memberlist'],
   'L_FAQ' => $lang['FAQ'],
   'L_USERGROUPS' => $lang['Usergroups'],
   'L_SEARCH_NEW' => $lang['Search_new'],
   'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'],
   'L_SEARCH_SELF' => $lang['Search_your_posts'],
   'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'),
   'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span style="color:#' . $theme['fontcolor2'] . '">', '</span>'),
   'U_SEARCH_UNANSWERED' => append_sid('search.'.$phpEx.'?search_id=unanswered'),
   'U_SEARCH_SELF' => append_sid('search.'.$phpEx.'?search_id=egosearch'),
   'U_SEARCH_NEW' => append_sid('search.'.$phpEx.'?search_id=newposts'),
   'U_INDEX' => append_sid('index.'.$phpEx),
   'U_PORTAL' => append_sid('portal.'.$phpEx),
   'U_REGISTER' => append_sid('profile.'.$phpEx.'?mode=register'),
   'U_PROFILE' => append_sid('profile.'.$phpEx.'?mode=editprofile'),
   'U_PRIVATEMSGS' => append_sid('privmsg.'.$phpEx.'?folder=inbox'),
   'U_PRIVATEMSGS_POPUP' => append_sid('privmsg.'.$phpEx.'?mode=newpm'),
   'U_SEARCH' => append_sid('search.'.$phpEx),
   'U_MEMBERLIST' => append_sid('memberlist.'.$phpEx),
   'U_MODCP' => append_sid('modcp.'.$phpEx),
   'U_FAQ' => append_sid('faq.'.$phpEx),
   'U_VIEWONLINE' => append_sid('viewonline.'.$phpEx),
   'U_LOGIN_LOGOUT' => append_sid($u_login_logout),
   'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

   'S_CONTENT_DIRECTION' => $lang['DIRECTION'],
   'S_CONTENT_ENCODING' => $lang['ENCODING'],
   'S_CONTENT_DIR_LEFT' => $lang['LEFT'],
   'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'],
   'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone),
   'S_LOGIN_ACTION' => append_sid('login.'.$phpEx),

   'T_HEAD_STYLESHEET' => $theme['head_stylesheet'],
   'BBC_BOX_SHEET' => $images['bbc_box_sheet'],
   'T_BODY_BACKGROUND' => $theme['body_background'],
   'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'],
   'T_BODY_TEXT' => '#'.$theme['body_text'],
   'T_BODY_LINK' => '#'.$theme['body_link'],
   'T_BODY_VLINK' => '#'.$theme['body_vlink'],
   'T_BODY_ALINK' => '#'.$theme['body_alink'],
   'T_BODY_HLINK' => '#'.$theme['body_hlink'],
   'T_TR_COLOR1' => '#'.$theme['tr_color1'],
   'T_TR_COLOR2' => '#'.$theme['tr_color2'],
   'T_TR_COLOR3' => '#'.$theme['tr_color3'],
   'T_TR_CLASS1' => $theme['tr_class1'],
   'T_TR_CLASS2' => $theme['tr_class2'],
   'T_TR_CLASS3' => $theme['tr_class3'],
   'T_TH_COLOR1' => '#'.$theme['th_color1'],
   'T_TH_COLOR2' => '#'.$theme['th_color2'],
   'T_TH_COLOR3' => '#'.$theme['th_color3'],
   'T_TH_CLASS1' => $theme['th_class1'],
   'T_TH_CLASS2' => $theme['th_class2'],
   'T_TH_CLASS3' => $theme['th_class3'],
   'T_TD_COLOR1' => '#'.$theme['td_color1'],
   'T_TD_COLOR2' => '#'.$theme['td_color2'],
   'T_TD_COLOR3' => '#'.$theme['td_color3'],
   'T_TD_CLASS1' => $theme['td_class1'],
   'T_TD_CLASS2' => $theme['td_class2'],
   'T_TD_CLASS3' => $theme['td_class3'],
   'T_FONTFACE1' => $theme['fontface1'],
   'T_FONTFACE2' => $theme['fontface2'],
   'T_FONTFACE3' => $theme['fontface3'],
   'T_FONTSIZE1' => $theme['fontsize1'],
   'T_FONTSIZE2' => $theme['fontsize2'],
   'T_FONTSIZE3' => $theme['fontsize3'],
   'T_FONTCOLOR1' => '#'.$theme['fontcolor1'],
   'T_FONTCOLOR2' => '#'.$theme['fontcolor2'],
   'T_FONTCOLOR3' => '#'.$theme['fontcolor3'],
   'T_SPAN_CLASS1' => $theme['span_class1'],
   'T_SPAN_CLASS2' => $theme['span_class2'],
   'T_SPAN_CLASS3' => $theme['span_class3'],

   'NAV_LINKS' => $nav_links_html)
);

//
// Login box?
//
if ( !$userdata['session_logged_in'] )
{
   $template->assign_block_vars('switch_user_logged_out', array());
   
   //
   // Allow autologin?
   //
   if (!isset($board_config['allow_autologin']) || $board_config['allow_autologin'] )
   {
      $template->assign_block_vars('switch_allow_autologin', array());
      $template->assign_block_vars('switch_user_logged_out.switch_allow_autologin', array());
   }
}
else
{
   $template->assign_block_vars('switch_user_logged_in', array());

   if ( !empty($userdata['user_popup_pm']) )
   {
      $template->assign_block_vars('switch_enable_pm_popup', array());
   }
}

// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';

// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2'))
{
   header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
   header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');

// debug forum wide Portal
/*if($layout_forum_wide_flag)
   $temp_debug = 1;
else
   $temp_debug = 0;
die('debug: ' . strval(empty($gen_simple_header)) . ' | ' . strval($temp_debug) . ' | ' . strval($portal_config['portal_header']) . ' | ' . strval(defined('HAS_DIED')) . ' | ' . strval(defined('IN_LOGIN')));*/
// debug forum wide Portal

if(empty($gen_simple_header))
{
   if(!$layout_forum_wide_flag&&$portal_config['portal_header']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN')))
   {
      $template->set_filenames(array(
         'portal_header'         => 'portal_page_header.tpl')
      );
      portal_parse_blocks($portal_config['default_portal'], TRUE, 'header');
      $template->assign_var('HEADER_WIDTH', $portal_config['header_width']);
      $template->assign_var('PORTAL_HEADER', portal_assign_var_from_handle($template, 'portal_header'));
   }
}

$template->pparse('overall_header');

//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") && $userdata['user_level'] != ADMIN )
{
   if ( $board_config['board_disable_msg'] != "" )
   {
      message_die(GENERAL_MESSAGE, $board_config['board_disable_msg'], 'Information');
   }
   else
   {
      message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
   }
}

?>

_________________
Stop a l'impolitesse Stop au language SMS
Vive PatMaxScripts


Hors ligne

Enregistré le:
Sam 1 Avr 2006 19:08
Messages: 256
Localisation: saone et loire

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 
Poster un nouveau sujet Répondre au sujet



Qui est en ligne

Utilisateurs parcourant ce forum : Aucun utilisateur enregistré et 3 invités


Afficher les messages postés depuis:   Trier par  
Aller à:  

Vous ne pouvez pas poster de nouveaux sujets
Vous ne pouvez pas répondre aux sujets
Vous ne pouvez pas modifier vos messages
Vous ne pouvez pas supprimer vos messages
Vous ne pouvez pas joindre des fichiers

Index du forum » ENTRAIDE » PHPBB (2 et 3) » Installation

cron

Votre site ici

Inscrire votre site        Voir plus de boutons
 

Reproduction strictement interdite sans l'autorisation de l'administrateur.

PatMax © 2006 - 2008
Développé par phpBB® Forum Software © phpBB Group    
Traduit par phpBB-fr.com
Thème graphique par PatMax ©