09-02-2021, 02:44 PM
0
Captura GIF
Ejecutar esta consulta
En c.user.php --> inc --> class --> c.user.php
Buscar:
Debajo agregar:
En main_header.tpl --> themes --> default --> templates --> sections --> main_header.tpl
Buscar:
Arriba agregar:
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...
Nota: No tiene diseño, tienen que adaptarselo al diseño de tu tema
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 )
CREATE TABLE IF NOT EXISTS `u_inicio` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) NOT NULL,
`read` int(11) NOT NULL,
`fecha` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCrEMENT=1 ;
En c.user.php --> inc --> class --> c.user.php
Buscar:
Código PHP: ( Seleccionar Todo )
// Cargamos la información del usuario
$this->loadUser(true);
Debajo agregar:
Código PHP: ( Seleccionar Todo )
///////////MOD TRON////////////
$time=time();
$sql= "INSERT INTO u_inicio (user,fecha) VALUES ('{$data['user_id']}','{$time}')";
$result = db_exec(array(__FILE__, __LINE__), 'query', $sql);
En main_header.tpl --> themes --> default --> templates --> sections --> main_header.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
</head>
Arriba agregar:
Código PHP: ( Seleccionar Todo )
{if $tsUser->is_member}
{literal}
<script>
$(document).ready(function() {
$("#recibeusuario").load("/inc/php/fichero.php");
var refreshId = setInterval(function() {
$("#recibeusuario").load('/inc/php/fichero.php');
}, 4000);
});
</script>
{/literal}
{/if}
Buscar:
Código PHP: ( Seleccionar Todo )
<div id="cuerpocontainer">
Debajo agregar:
Código PHP: ( Seleccionar Todo )
{if $tsUser->is_member}
<div id="recibeusuario"></div>
{/if}
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...
Nota: No tiene diseño, tienen que adaptarselo al diseño de tu tema
Creditos: Debes agradecer para ver el contenido...


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