09-06-2022, 11:33 AM
0
Captura
Ejecutar esta consulta
En c.tops.php --> inc --> class --> c.tops.php
Buscar:
Después de:
Agregar:
Buscar:
Debajo agregar:
Buscar:
Debajo agregar:
Buscar:
Después de:
Agregar:
En ajax.posts.php --> inc --> php --> ajax --> ajax.posts.php
Buscar:
Debajo agregar:
Buscar:
Debajo agregar:
En funciones.js --> themes --> default --> js --> funciones.js
Al final agregar:
En t.home.tpl --> themes --> default --> templates --> t.home.tpl
Buscar:
Debajo agregar:
Y subir esta carpeta
Mega
Debes agradecer para ver el contenido...
Google Drive
Debes agradecer para ver el contenido...
Mediafire
Debes agradecer para ver el contenido...
Uptobox
Debes agradecer para ver el contenido...
4shared
Debes agradecer para ver el contenido...
Creditos: Debes agradecer para ver el contenido...
[img]Registrate o inicia tu sesión para ver este contenido[/img]
Ejecutar esta consulta
Código PHP: ( Seleccionar Todo )
ALTER TABLE `w_stats` ADD `stats_visitas` int(11) NOT NULL;
En c.tops.php --> inc --> class --> c.tops.php
Buscar:
Código PHP: ( Seleccionar Todo )
// OBTENEMOS LAS ESTADISTICAS
$return = db_exec('fetch_assoc', db_exec(array(__FILE__, __LINE__), 'query', 'SELECT stats_max_online, stats_max_time, stats_time, stats_time_cache, stats_miembros, stats_posts, stats_fotos, stats_comments, stats_foto_comments FROM w_stats WHERE stats_no = \'1\''));
Después de:
Código PHP: ( Seleccionar Todo )
, stats_foto_comments
Agregar:
Código PHP: ( Seleccionar Todo )
, stats_visitas
Buscar:
Código PHP: ( Seleccionar Todo )
$q5 = db_exec('fetch_row', db_exec(array(__FILE__, __LINE__), 'query', 'SELECT COUNT(cid) AS fc FROM f_comentarios'));
Debajo agregar:
Código PHP: ( Seleccionar Todo )
$q6 = db_exec('fetch_row', db_exec(array(__FILE__, __LINE__), 'query', 'SELECT COUNT(id) AS pu FROM w_visitas'));
Buscar:
Código PHP: ( Seleccionar Todo )
$return['stats_foto_comments'] = $q5[0];
Debajo agregar:
Código PHP: ( Seleccionar Todo )
$return['stats_visitas'] = $q6[0];
Buscar:
Código PHP: ( Seleccionar Todo )
$ndat = ', stats_time_cache = \''.time().'\', stats_miembros = \''.$return['stats_miembros'].'\', stats_posts = \''.$return['stats_posts'].'\', stats_fotos = \''.$return['stats_fotos'].'\', stats_comments = \''.$return['stats_comments'].'\', stats_foto_comments = \''.$return['stats_foto_comments'].'\'';
Después de:
Código PHP: ( Seleccionar Todo )
, stats_foto_comments = \''.$return['stats_foto_comments'].'\'
Agregar:
Código PHP: ( Seleccionar Todo )
, stats_visitas = \''.$return['stats_visitas'].'\'
En ajax.posts.php --> inc --> php --> ajax --> ajax.posts.php
Buscar:
Código PHP: ( Seleccionar Todo )
require('../class/c.posts.php');
$tsPosts = new tsPosts();
Debajo agregar:
Código PHP: ( Seleccionar Todo )
require('../class/c.tops.php');
$tsTops = new tsTops();
Buscar:
Código PHP: ( Seleccionar Todo )
case 'posts-last-comentarios':
//<--
$smarty->assign("tsComments",$tsPosts->getLastComentarios());
//-->
break;
Debajo agregar:
Código PHP: ( Seleccionar Todo )
case 'posts-update_stats':
//<--
$stats = $tsTops->getStats();
echo json_encode($stats);
//-->
break;
En funciones.js --> themes --> default --> js --> funciones.js
Al final agregar:
Código PHP: ( Seleccionar Todo )
$(document).ready(function(){
setInterval(function() {
var vis = parseInt($('#stat-vis').text());
$.ajax({
type: 'GET',
url: global_data.url + '/posts-update_stats.php',
dataType: 'json',
success: function(h){
if(vis != h['stats_visitas']) $('#stat-vis').text(h['stats_visitas']);
}
});
}, 2000);
});
En t.home.tpl --> themes --> default --> templates --> t.home.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
{include file='modules/m.home_stats.tpl'}
Debajo agregar:
Código PHP: ( Seleccionar Todo )
{include file='modules/m.home_visitas.tpl'}
Y subir esta carpeta
Mega
Debes agradecer para ver el contenido...
Google Drive
Debes agradecer para ver el contenido...
Mediafire
Debes agradecer para ver el contenido...
Uptobox
Debes agradecer para ver el contenido...
4shared
Debes agradecer para ver el contenido...
Creditos: Debes agradecer para ver el contenido...


Facebook
Twitter
Reddit
Digg
del.icio.us
Tumblr
Pinterest
Blogger
Fark
LinkedIn
Mix
Google