Afficher un message
  #3  
Vieux   
Avatar de akex
akex (Hors ligne)
Administrateur
akex is infamous around these parts
 
Messages: 124
Date d'inscription: November 2005
Par défaut 05/12/2005 , 23h53


Premier bug corrigé avec nouveau fichier produit sur vbulletin-fr

Deuxieme bug :

Remplacer le module

[vBfp2] Recupération du cache du portail

Par ceci :

Code PHP:
//definition des options du portail
$vbfp_options unserialize($vbulletin->vbfp_option);

if (
THIS_SCRIPT == 'portal_index') {

//on récupère les infos de la page
$page_cache unserialize($vbulletin->vbfp_page);

//on récupère les infos du module
$module_cache unserialize($vbulletin->vbfp_module);

//on récupère les options de la page
$page_options_cache unserialize($vbulletin->vbfp_poption);

//on récupère les permissions
$vbfp_perm_cache unserialize($vbulletin->vbfp_permission);

    
$vbulletin->input->clean_array_gpc('r', array(
        
'page'       => TYPE_STR
    
));

    if (
$vbulletin->GPC['page'] != '') {
        
$page_title $vbulletin->GPC['page'];
        foreach (
$page_cache as $title => $tmp) {
            if (
strtolower($title) == strtolower($page_title)) {
                
$page $tmp;
                
$PAGE_TITLE $title;
            }
        }
    }
    foreach (
$page_cache as $title => $tmp) {
        if (
$tmp['defaut']) {
            if (
$page_title == '')
            {
               
$page $tmp;
               
$PAGE_TITLE $title;
            }
            
$IS_DEFAUT $title;
        }
    }


    if (
is_array($page['modules'])) {
        foreach (
$page['modules'] as $colonne => $tmp1) {
            foreach (
$tmp1 as $name) {

                    if (
preg_match('/^(.+?)(_\d+|)$/i'$name$match)) {
                        
$module $match[1];

                            if (
$module_cache["$module"]['phrasegroups'] != '') {
                               if (
is_array($phrasegroups)) {
                                  
$phrasegroups array_merge($phrasegroupsexplode(','$module_cache["$module"]['phrasegroups']));
                               } else {
                                  
$phrasegroups explode(','$module_cache["$module"]['phrasegroups']);
                               }
                            }


                    }
                }
        }
    }



Réponse avec citation
 
X vBulletin 3.8.11 Debug Information
  • Page Generation 0,00757 seconds
  • Memory Usage 1,286KB
  • Queries Executed 9 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_reputation
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • fetch_musername
  • reputation_image
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • showpost_complete