Queris en otra página (Portal) relantiza?

I

Itachi-Kun

Buenas, ps estoy poniendo llamadas a la base de datos "queris", donde muestra los ultimos posts, ultimas descargas, total post threads, usuarios online, en OTRO PORTAL de el mismo directorio del foro.

Este es el plugin que le puse a vBulletin General "global_star", que si pongo cualquier variable en los templates funcionaría.

PHP:
// forum stats start  
$numbersmembers = $db->query_first("SELECT COUNT(*) AS users,MAX(userid) AS max FROM " . TABLE_PREFIX . "user");  
$numbermembers = number_format($numbersmembers['users']);  
$counter = $db->query_first("SELECT COUNT(postid) AS posts, COUNT(threadid) AS threads FROM " . TABLE_PREFIX . "post"); 
$totalposts=number_format($counter['posts']);  
$countthreads = $db->query_first("SELECT COUNT(*) AS threads FROM " . TABLE_PREFIX . "thread"); 
$totalthreads=number_format($countthreads['threads']);  
// forum stats end  

// total online start  
$datecut = TIMENOW - $vbulletin->options['cookietimeout'];  
$headerguests=$db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "session WHERE userid=0 AND lastactivity>$datecut");  
$headerusers=$db->query_first("SELECT COUNT(DISTINCT(userid)) AS count FROM " . TABLE_PREFIX . "session WHERE " . TABLE_PREFIX . "session.userid>0 AND " . TABLE_PREFIX . "session.lastactivity>$datecut");  
$headerguests=$headerguests[count];  
$headerusers=$headerusers[count];  
$totalonline=$headerguests+$headerusers;  
// total online end 

// get newest member name and userid start  
$getnewestmember=$db->query_first("SELECT userid, username FROM " . TABLE_PREFIX . "user WHERE userid=$numbersmembers[max]");  
$newusername = $getnewestmember['username'];  
$newuserid = $getnewestmember['userid'];  
// get newest member name and userid end

$ec_totaldownloads = $vbulletin->db->query_first("SELECT COUNT(*) AS download, MAX(id) AS max FROM " . TABLE_PREFIX . "dl_files");
$ec_totaldownloads = $ec_totaldownloads['download'];

$ec_newdownload = $vbulletin->db->query_first("SELECT name AS newdownload FROM " . TABLE_PREFIX . "dl_files ORDER BY id DESC LIMIT 1");
$ec_newdownload = $ec_newdownload['newdownload'];

$ec_totaldownloaded = $vbulletin->db->query_first("SELECT COUNT(*) AS downloaded, MAX(id) AS max FROM " . TABLE_PREFIX . "dl_downloads");
$ec_totaldownloaded = $ec_totaldownloaded['downloaded'];
Este es el codigo del portal
PHP:
<?php 

// ######################## SET PHP ENVIRONMENT ########################### 
error_reporting(E_ALL & ~E_NOTICE); 

// ##################### DEFINE IMPORTANT CONSTANTS ####################### 
// change the line below to the actual filename without ".php" extention. 
// the reason for using actual filename without extention as a value of this constant is to ensure uniqueness of the value throughout every PHP file of any given vBulletin installation. 

define('THIS_SCRIPT', 'portal');   

// ############################# FORUM PATH ###############################
// ============================================
// Enter the full path to your forum here
// Example: /home/site/public_html/forum
// ============================================

$forumpath = 'C:/AppServ/www/vBulletin/';

// ############################# CONNECTING ###############################

 if (!is_dir($forumpath))
{
    echo 'Invalid forum path specified! Please edit this file and be sure to include the correct path for your $forumpath variable.';
    exit;
} 

chdir($forumpath);

// #################### PRE-CACHE TEMPLATES AND DATA ###################### 
// get special phrase groups 
$phrasegroups = array(); 

// get special data templates from the datastore 
$specialtemplates = array(); 

// pre-cache templates used by all actions 
$globaltemplates = array( 
        'portal', 
); 

// pre-cache templates used by specific actions 
$actiontemplates = array(); 

// ########################## REQUIRE BACK-END ############################ 
require_once('./global.php'); 

// #################### HARD CODE JAVASCRIPT PATHS ######################## 
$headinclude = str_replace('"clientscript', '"' . $vbulletin->options['bburl'] . '/clientscript', $headinclude); 

// ######################################################################## 
// ######################### START MAIN SCRIPT ############################ 
// ######################################################################## 


// change the line below to contain the name of the actual main output template used in your script 
eval('print_output("' . fetch_template('TEMPLATENAME') . '");'); 


?>
en donde el templatename es la plantilla de toda la web, estos son las variables a llamar

Ejem:
<html>
Temas: $totalthreads
Post: $totalposts
Miembros: $numbermembers |
Online: $totalonline
Nuevo miembro: $newuserid"
<a>$newusername</b></a> (Bienvenido!)<br />
Archivos: $ec_totaldownloads / $ec_totaldownloaded veces descargadas |
Ultima descarga: $ec_newdownload
</html>

Los marcados en negrita son las cosas que aparecen en el portal, ahora mi pregunta es si afectara o abrá mas carga en la web? Afectará haber puesto varios plugin en vBulletin global_start?
Bueno eso es todo saludos y espero me ayuden.
Por cierto se puede poner el plugin en el PORTAL.php?
 
Arriba