Últimos temas
-
Cómo funcionan las Mision...
Foro: Guías y Tutoriales
Último mensaje por: Tronlar
06-14-2026, 09:46 PM
» Respuestas: 0
» Vistas: 96 -
V6 Original/Dark/Memes (A...
Foro: Diseños Terminados
Último mensaje por: carlos007r
06-14-2026, 11:08 AM
» Respuestas: 26
» Vistas: 6,357 -
V5
Foro: Diseños Terminados
Último mensaje por: Aeikox
06-13-2026, 12:16 AM
» Respuestas: 8
» Vistas: 1,451 -
Risus 1.3 Actualizado jQu...
Foro: Risus 1.3
Último mensaje por: Tronlar
06-12-2026, 10:45 PM
» Respuestas: 55
» Vistas: 10,671 -
Preguntas Frecuentes y So...
Foro: Guías y Tutoriales
Último mensaje por: Tronlar
06-12-2026, 06:17 PM
» Respuestas: 0
» Vistas: 75 -
Cómo registrar tu comunid...
Foro: Guías y Tutoriales
Último mensaje por: Tronlar
06-12-2026, 05:32 PM
» Respuestas: 0
» Vistas: 62 -
Cómo monetizar tu comunid...
Foro: Guías y Tutoriales
Último mensaje por: Tronlar
06-11-2026, 07:19 PM
» Respuestas: 0
» Vistas: 57 -
Introducción al SEO para ...
Foro: Guías y Tutoriales
Último mensaje por: Tronlar
06-11-2026, 06:58 PM
» Respuestas: 0
» Vistas: 63 -
Guía completa de SEO para...
Foro: Guías y Tutoriales
Último mensaje por: Tronlar
06-11-2026, 06:48 PM
» Respuestas: 0
» Vistas: 65 -
Diccionario de términos b...
Foro: Guías y Tutoriales
Último mensaje por: Tronlar
06-11-2026, 01:41 PM
» Respuestas: 0
» Vistas: 89
Estadísticas del foro
- Mensajes del foro:1,957
- Temas del foro:614
- Miembros:1,036
- Último miembro:carlos007r
Cuando llegue a 100 puntos de acumulación de denuncias será baneado automáticamente.
- Staff Mensaje = 5 Puntos
- Prohibición = 10 Puntos
- Gif Mensaje = 15 Puntos
Captura
[img]Registrate o inicia tu sesión para ver este contenido[/img]
Ejecutar esta consulta
Código PHP:
ALTER TABLE `u_miembros` ADD `user_avl` INT( 11 ) NOT NULL
En c.user.php --> inc --> class --> c.user.php
Buscar:
Código PHP:
$this->actualizarPuntos();
Debajo agregar:
Código PHP:
$this->getptsBan();
Buscar:
Código PHP:
function actualizarPuntos()
{
// HORA EN LA CUAL RECARGAR PUNTOS 0 = MEDIA NOCHE DEL SERVIDOR
$ultimaRecarga = $this->info['user_nextpuntos'];
$tiempoActual = time();
// SI YA SE PASO EL TIEMPO RECARGAMOS...
if($ultimaRecarga < $tiempoActual){
// OPERACION SIG RECARGA A LAS 24 HRS
$horaActual = date("G",$tiempoActual);
$minActuales = date("i",$tiempoActual) * 60;
$segActuales = date("s",$tiempoActual);
$sigRecarga = 24 - $horaActual;
$sigRecarga = ($sigRecarga * 3600) - ($minActuales + $segActuales);
$sigRecarga = $tiempoActual + $sigRecarga;
// LA SIGUIENTE RECARGA SE HARA A MEDIA NOCHE DEL SIGUIENTE DIA LA HORA DEPENDE DEL SERVIDOR
//
db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE u_miembros SET user_puntosxdar = '.($tsCore->settings['c_keep_points'] == 0 ? $this->permisos['gopfd'] : 'user_puntosxdar + '.$this->permisos['gopfd']).', user_nextpuntos = '.$sigRecarga.' WHERE user_id = \''.$this->uid.'\'');
// VAMONOS
return true;
}
}
Debajo agregar:
Código PHP:
function getptsBan() {
global $tsCore;
//
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT * FROM u_miembros WHERE user_id = \''.$this->uid.'\' LIMIT 1');
$data = db_exec('fetch_assoc', $query);
if($data['user_avl'] > 100 AND $data['user_baneado'] == 0 OR $data['user_avl'] == 100) {
$b_time = 2;
$b_cant = 24;
$b_causa = "El sistema te ha baneado por acomulación de denuncias";
$vmod = 1;
$b_times = array(
0,
1,
3600,
86400);
$ahora = time();
$termina = ($b_cant * $b_times[$b_time]);
$termina = ($b_time >= 2) ? ($ahora + $termina) : $termina;
db_exec(array(__FILE__, __LINE__), 'query', 'INSERT INTO `u_suspension` (`user_id`, `susp_causa`, `susp_date`, `susp_termina`, `susp_mod`, `susp_ip`) VALUES (\'' .
$this->uid . '\', \'' . $b_causa . '\', \'' . (int)
$ahora . '\', \'' . (int)$termina . '\', \'' . $vmod . '\', \'' .
$tsCore->setSecure($_SERVER['REMOTE_ADDR']) . '\')');
db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE `u_miembros` SET `user_baneado` = \'1\' WHERE `user_id` = \'' .
$this->uid . '\'');
db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE `u_miembros` SET `user_avl` = \'0\' WHERE `user_id` = \'' .
$this->uid . '\'');
}
}
En c.monitor.php --> inc --> class --> c.monitor.php
Buscar:
Código PHP:
function setAviso($user_id = NULL, $subject = '(sin asunto)', $body = NULL, $type = 0){
global $tsCore;
# VERIFICAMOS QUE SE PUEDA ENVIAR EL AVISO
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT user_baneado FROM u_miembros WHERE user_id = \''.(int)$user_id.'\' LIMIT 1');
$data = db_exec('fetch_assoc', $query);
# NO PODEMOS ENVIAR A UN USUARIO BANEADO
if($data['user_baneado'] == 1) return true;
# INSERTAMOS EL AVISO
if(db_exec(array(__FILE__, __LINE__), 'query', 'INSERT INTO u_avisos (user_id, av_subject, av_body, av_date, av_type) VALUES (\''.(int)$user_id.'\', \''.$tsCore->setSecure($subject).'\', \''.$tsCore->setSecure($body).'\', \''.time().'\', \''.$type.'\' )')) return true;
else return false;
}
Debajo agregar:
Código PHP:
function puntosBans($user_id = NULL, $type = 0) {
if($type == 2) {
if(db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE u_miembros SET user_avl = user_avl + 5 WHERE user_id = \''.(int)$user_id.'\'')) return true;
else return false;
}
if($type == 3) {
if(db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE u_miembros SET user_avl = user_avl + 10 WHERE user_id = \''.(int)$user_id.'\'')) return true;
else return false;
}
if($type == 4) {
if(db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE u_miembros SET user_avl = user_avl + 15 WHERE user_id = \''.(int)$user_id.'\'')) return true;
else return false;
}
}
En ajax.moderacion.php --> inc --> php --> ajax --> ajax.moderacion.php
Buscar:
Código PHP:
else echo '1: El avioso fue enviado con éxito a <b>'.$username.'</b>.';
Reemplazar por:
Código PHP:
else echo '1: El aviso fue enviado con éxito a <b>'.$username.'</b>.';
$bpts = $tsMonitor->puntosBans($user_id, $_POST['av_type']);
if(!$bpts) echo '<br>0: Error al actualizar puntos de baneos';
else echo '<br>1: Puntos de baneos actualizados';
Creditos: Zohaaan
Capturas
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
En c.monitor.php --> inc --> class --> c.monitor.php
Buscar:
Código PHP:
17 => array('text' => 'Tu foto recibió una medalla', 'css' => 'medal'),
Debajo agregar:
Código PHP:
19 => array('text' => 'te recomendó a', 'ln_text' => 'Seguir a este usuario', 'css' => 'recommend'),
Buscar:
Código PHP:
// FOLLOW
case 4:
Arriba agregar:
Código PHP:
case 19:
return 'SELECT user_name FROM u_miembros WHERE user_id = \''.(int)$data['obj_uno'].'\'';
break;
Buscar:
Código PHP:
// PUBLICACION EN MURO
case 12:
Arriba agregar:
Código PHP:
case 19:
$oracion['text'] = $this->monitor[$no_type]['text'];
$oracion['link'] = $site_url.'/perfil/'.$data['user_name'].'" class="hovercard" uid="'.$data['obj_uno'];
$oracion['ltext'] = $data['user_name'];
break;
Buscar:
Código PHP:
/**
* @name setFiltro
* @access public
* @param none
* @return bool
* @info GUARDA LOS FILTROS DE LA ACTIVIDAD
*/
Arriba agregar:
Código PHP:
/**
* @name recomUser
* @access public
* @param none
* @return string
* @info ESTA FUNCION ES PARA REALIZAR RECOMENDACIONES DE USUARIOS
*/
public function recomUser(){
global $tsCore, $tsUser, $tsActividad;
//
$userid = $_POST['userid'];
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT follow_id FROM u_follows WHERE f_id = \''.(int)$userid.'\' AND f_user = \''.$tsUser->uid.'\' AND f_type = \'3\' LIMIT 1');
$recomendado = db_exec('num_rows', $query);
if($recomendado > 0) return '0-Ya Haz Recomendado este Usuario.';
//
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT user_name,user_id FROM u_miembros WHERE user_id = \''.(int)$userid.'\' LIMIT 1');
$data = db_exec('fetch_assoc', $query);
//
if($tsUser->uid != $data['user_name']){
db_exec(array(__FILE__, __LINE__), 'query', 'INSERT INTO u_follows (f_id, f_user, f_type, f_date) VALUES (\''.(int)$userid.'\', \''.$tsUser->uid.'\', \'3\', \''.time().'\') ');
if($this->setFollowNotificacion(19, 1, $tsUser->uid, $userid)) {
//
$tsActividad->setActividad(4, $postid);
return '1-La recomendación fue enviada.';
}
}
else return '0-No puedes recomendarte a ti Mismo.';
}
En ajax.notificaciones.php --> inc --> php --> ajax --> ajax.notificaciones.php
Buscar:
Código PHP:
case 'spam':
// <--
echo $tsMonitor->setSpam();
// -->
break;
Debajo agregar:
Código PHP:
case 'recomend':
// <--
echo $tsMonitor->recomUser();
// -->
break;
En m.monitor_sidebar.tpl --> themes --> default --> templates --> modules --> m.monitor_sidebar.tpl
Buscar:
Código PHP:
<li><strong>Usuarios que sigo</strong></li>
Debajo agregar:
Código PHP:
<li><label><span class="monac_icons ma_voto"></span><input type="checkbox" {if $tsData.filtro.f19 != true}checked="checked"{/if}onclick="notifica.filter('19', this)"/>Usuarios recomendados</label></li>
En m.perfil_headinfo.tpl --> themes --> default --> templates --> modules --> m.perfil_headinfo.tpl
Buscar:
Código PHP:
{if $tsUser->uid != $tsInfo.uid}
<li class="enviar-mensaje">
{if $tsUser->is_member}
<a href="#" onclick="mensaje.nuevo('{$tsInfo.nick}','','',''); return false"><span style="float:none; height:14px;width:16px;" class="systemicons mensaje"></span></a>
{/if}
</li>
{/if}
Reemplazar por:
Código PHP:
{if $tsUser->uid != $tsInfo.uid}
<li class="enviar-mensaje">
{if $tsUser->is_member}
<a href="#" onclick="mensaje.nuevo('{$tsInfo.nick}','','',''); return false"><span style="float:none; height:14px;width:16px;" class="systemicons mensaje"></span></a>
</li>
<li style="float:right!important;" class="floatR userInfoLogin">
<a href="javascript:notifica.shareUser('{$tsInfo.uid}');" title="Recomendar a {$tsInfo.nick}"><span style="float:none; height:14px;width:16px;"><img height="14" width="16" src="{$tsConfig.default}/images/icons/like.png"/></span></a>
</li>
{/if}
{/if}
En acciones.js --> themes --> default --> js --> acciones.js
Buscar:
Código PHP:
spamPostHandle: function (r) {
var x = r.split('-');
if (x.length == 2) mydialog.alert('Notificaciones', x[1]);
else mydialog.close();
},
Debajo agregar:
Código PHP:
userHandle: function (r) {
var x = r.split('-');
if (x.length == 2) mydialog.alert('Notificaciones', x[1]);
else mydialog.close();
},
Buscar:
Código PHP:
spam: function (id, cb) {
this.ajax(Array('action=spam', 'postid='+id), cb);
},
Debajo agregar:
Código PHP:
recomend: function(id, cb){
this.ajax(Array('action=recomend', 'userid='+id), cb);
},
Buscar:
Código PHP:
sharePost: function (id) {
mydialog.show();
mydialog.title('Recomendar');
mydialog.body('¿Quieres recomendar este post a tus seguidores?');
mydialog.buttons(true, true, 'Recomendar', 'notifica.spam('+id+', notifica.spamPostHandle)', true, true, true, 'Cancelar', 'close', true, false);
mydialog.center();
},
Debajo agregar:
Código PHP:
shareUser: function (id) {
mydialog.show();
mydialog.title('Recomendar');
mydialog.body('¿Quieres recomendar este Usuario?');
mydialog.buttons(true, true, 'Recomendar', 'notifica.recomend('+id+', notifica.userHandle)', true, true, true, 'Cancelar', 'close', true, false);
mydialog.center();
},
Y subir esta imagen con el nombre de like.png
[img]Registrate o inicia tu sesión para ver este contenido[/img]
Creditos: tutan-kabron
Capturas
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
Editar el archivo m.home_videos.tpl:
Código PHP:
<a href="javascript:cargarVideo('id-frame','ID del video');"><img src="Registrate o inicia tu sesión para ver este contenido del video/1.jpg" /><div>NOMBRE VIDEO</div></a>
URL video de youtube:
Cita:Registrate o inicia tu sesión para ver este contenidoxuI-m14DskE
ID del video:
xuI-m14DskE
Instalación:
Ejemplo en la home, pero lo pueden poner donde quieran, se adapta a cualquier sitio.
En t.home.tpl --> themes --> default --> templates --> t.home.tpl
Buscar:
Código PHP:
{include file='modules/m.home_last_posts.tpl'}
Arriba agregar:
Código PHP:
{include file='modules/m.home_videos.tpl'}
Y subir esta carpeta
Google Drive
http://Registrate o inicia tu sesión par... contenido
Mediafire
http://Registrate o inicia tu sesión par... contenido
Uptobox
http://Registrate o inicia tu sesión par... contenido
Solidfiles
http://Registrate o inicia tu sesión par... contenido
4shared
http://Registrate o inicia tu sesión par... contenido
Capturas
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
En c.tops.php --> inc --> class --> c.tops.php
Buscar:
Código PHP:
function getHomeTopPosts(){
// AYER
$data['ayer'] = $this->getHomeTopPostsQuery($this->setTime(2));
// SEMANA
$data['semana'] = $this->getHomeTopPostsQuery($this->setTime(3));
// MES
$data['mes'] = $this->getHomeTopPostsQuery($this->setTime(4));
// HISTÓRICO
$data['historico'] = $this->getHomeTopPostsQuery($this->setTime(5));
Debajo agregar:
Código PHP:
// 15 MINUTOS
$data['15min'] = $this->getHomeTopPostsQuery($this->setTime(9));
// 1HORA
$data['hora'] = $this->getHomeTopPostsQuery($this->setTime(6));
// 3HORAS
$data['3horas'] = $this->getHomeTopPostsQuery($this->setTime(7));
// 6HORAS
$data['6horas'] = $this->getHomeTopPostsQuery($this->setTime(8));
Buscar:
Código PHP:
// TODO EL TIEMPO
case 5:
//
$data['start'] = 0;
$data['end'] = $tiempo;
//
break;
Debajo agregar:
Código PHP:
// 15 Minutos
case 9:
//
$resta = $this->setSegs(1, '15min') + $this->setSegs(1, 'min') + $seg;
$data['start'] = $tiempo - $resta;
$data['end'] = $tiempo;
//
break;
// 30 Minutos
case 10:
//
$resta = $this->setSegs(1, '30min') + $this->setSegs(1, 'min') + $seg;
$data['start'] = $tiempo - $resta;
$data['end'] = $tiempo;
//
break;
// 1 HORA
case 6:
//
$resta = $this->setSegs(1, 'dia') + $this->setSegs(1, 'min') + $seg;
$data['start'] = $tiempo - $resta;
$data['end'] = $tiempo;
//
break;
// 3 HORAS
case 7:
//
$resta = $this->setSegs(1, '3horas') + $this->setSegs(1, 'min') + $seg;
$data['start'] = $tiempo - $resta;
$data['end'] = $tiempo;
//
break;
// 6 HORAS
case 8:
//
$resta = $this->setSegs(1, '6horas') + $this->setSegs(1, 'min') + $seg;
$data['start'] = $tiempo - $resta;
$data['end'] = $tiempo;
//
break;
Buscar:
Código PHP:
case 'mes' :
$segundos = $tiempo * 2592000;
break;
Debajo agregar:
Código PHP:
case 'hora' :
$segundos = $tiempo * 3600;
break;
case '3horas' :
$segundos = $tiempo * 10800;
break;
case '6horas' :
$segundos = $tiempo * 32400;
break;
case '15min' :
$segundos = $tiempo * 900;
break;
case '30min' :
$segundos = $tiempo * 1800;
break;
En t.home.tpl --> themes --> default --> templates --> t.home.tpl
Buscar:
Código PHP:
{include file='modules/m.home_last_comments.tpl'}
Debajo agregar:
Código PHP:
{if $tsUser->is_member}
{include file='modules/m.home_destacados.tpl'}
{/if}
En head_menu.tpl --> themes --> default --> templates --> sections --> head_menu.tpl
Buscar:
Código PHP:
{if $tsConfig.c_fotos_private == '1' && !$tsUser->is_member}{else}
<li class="tabbed {if $tsPage == 'fotos'}here{/if}" id="tabbedfotos">
<a title="Ir a Fotos" onclick="menu('fotos', this.href); return false;" href="{$tsConfig.url}/fotos/">Fotos <img alt="Drop Down" src="{$tsConfig.tema.t_url}/images/arrowdown.png"></a>
</li>
{/if}
Debajo agregar:
Código PHP:
<li class="tabbed {if $tsPage == 'destacados'}here{/if}" id="tabbedtops">
<a title="destacados" onclick="menu('tops', this.href); return false;" href="{$tsConfig.url}/destacados/">Destacados </a>
</li>
Buscar:
Código PHP:
<li class="tabbed {if $tsPage != 'home' && $tsPage != 'posts' && $tsPage != 'tops' && $tsPage != 'admin' && $tsPage != 'fotos'}here{/if}" id="tabbedhome">
Reemplazar por:
Código PHP:
<li class="tabbed {if $tsPage != 'home' && $tsPage != 'posts' && $tsPage != 'tops' && $tsPage != 'admin' && $tsPage != 'fotos' && $tsPage != 'destacados'}here{/if}" id="tabbedhome">
En head_submenu.tpl --> themes --> default --> templates --> sections --> head_submenu.tpl
Buscar:
Código PHP:
<div id="subMenuFotos" class="subMenu {if $tsPage == 'fotos'}here{/if}">
<ul class="floatL tabsMenu">
<li{if $tsAction == '' && $tsAction != 'agregar' && $tsAction != 'album' && $tsAction != 'favoritas' || $tsAction == 'ver'} class="here"{/if}><a href="{$tsConfig.url}/fotos/">Inicio</a></li>
{if $tsAction == 'album' && $tsFUser.0 != $tsUser->uid}<li class="here"><a href="{$tsConfig.url}/fotos/{$tsFUser.1}">Álbum de {$tsFUser.1}</a></li>{/if}
{if $tsUser->is_admod || $tsUser->permisos.gopf}<li{if $tsAction == 'agregar'} class="here"{/if}><a href="{$tsConfig.url}/fotos/agregar.php">Agregar Foto</a></li>{/if}
<li{if $tsAction == 'album' && $tsFUser.0 == $tsUser->uid} class="here"{/if}><a href="{$tsConfig.url}/fotos/{$tsUser->nick}">Mis Fotos</a></li>
</ul>
<div class="clearBoth"></div>
</div>
Debajo agregar:
Código PHP:
<div id="subMenuTops" class="subMenu {if $tsPage == 'destacados'}here{/if}">
<ul class="floatL tabsMenu">
<li{if $tsAction == 'posts'} class="here"{/if}><a href="{$tsConfig.url}/destacados/posts/">Posts</a></li>
<li{if $tsAction == 'usuarios'} class="here"{/if}><a href="{$tsConfig.url}/destacados/usuarios/">Usuarios</a></li>
</ul>
<div class="clearBoth"></div>
</div>
Y subir esta carpeta
Mega
http://Registrate o inicia tu sesión par... contenido
Googel Drive
http://Registrate o inicia tu sesión par... contenido
Mediafire
http://Registrate o inicia tu sesión par... contenido
Creditos: tutan-kabron
Capturas
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
Ejecutar esta consulta
Código PHP:
ALTER TABLE `p_categorias` ADD `p_pub728` text NOT NULL , ADD `p_pub300` text NOT NULL , ADD `p_active` int(1) NOT NULL DEFAULT '0';
En c.admin.php --> inc --> class --> c.admin.php
Buscar:
Código PHP:
function saveCat()
{
global $tsCore;
//
//$db = $this->getDBtypes();
$cid = $tsCore->setSecure($_GET['cid']);
//
$c_nombre = $tsCore->setSecure($tsCore->parseBadWords($_POST['c_nombre']));
$cimg = $tsCore->setSecure($tsCore->parseBadWords($_POST['c_img']));
if (db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE `p_categorias` SET c_nombre = \'' . $tsCore->setSecure($c_nombre) .
'\', c_seo = \'' . $tsCore->setSecure($tsCore->setSEO($c_nombre, true)) . '\', c_img = \'' .
$tsCore->setSecure($cimg) . '\' WHERE cid = \'' . (int)$cid . '\''))
return true;
}
Reemplazar por:
Código PHP:
function saveCat()
{
global $tsCore;
//
//$db = $this->getDBtypes();
$cid = $tsCore->setSecure($_GET['cid']);
//
$c_nombre = $tsCore->setSecure($tsCore->parseBadWords($_POST['c_nombre']));
$cimg = $tsCore->setSecure($tsCore->parseBadWords($_POST['c_img']));
$p_active = $tsCore->setSecure($tsCore->parseBadWords($_POST['p_active'] == 'n') ? 0 : 1);
$p_pub300 = html_entity_decode($_POST['p_pub300']);
$p_pub728 = html_entity_decode($_POST['p_pub728']);
if (db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE `p_categorias` SET c_nombre = \'' . $tsCore->setSecure($c_nombre) .
'\', c_seo = \'' . $tsCore->setSecure($tsCore->setSEO($c_nombre, true)) . '\', c_img = \'' .
$tsCore->setSecure($cimg) . '\', p_active = \'' .$tsCore->setSecure($p_active) .'\',p_pub300 = \'' . $tsCore->setSecure($p_pub300).'\',p_pub728 = \'' . $tsCore->setSecure($p_pub728).'\' WHERE cid = \'' . (int)$cid . '\''))
return true;
}
Buscar:
Código PHP:
function getCat()
{
global $tsCore;
//
//$db = $this->getDBtypes();
$cid = intval($_GET['cid']);
//
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT cid, c_orden, c_nombre, c_seo, c_img FROM p_categorias WHERE cid = \'' .
(int)$cid . '\' LIMIT 1');
$data = db_exec('fetch_assoc', $query);
//
return $data;
}
Reemplazar por:
Código PHP:
function getCat()
{
global $tsCore;
//
//$db = $this->getDBtypes();
$cid = intval($_GET['cid']);
//
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT cid, c_orden, c_nombre, c_seo, c_img, p_active, p_pub300, p_pub728 FROM p_categorias WHERE cid = \'' .
(int)$cid . '\' LIMIT 1');
$data = db_exec('fetch_assoc', $query);
//
return $data;
}
En c.posts.php --> inc --> class --> c.posts.php
Buscar:
Código PHP:
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT c.c_nombre, c.c_seo FROM p_categorias AS c WHERE c.cid = \''.$postData['post_category'].'\'');
Reemplazar por:
Código PHP:
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT c.c_nombre, c.c_seo, c.p_active, c.p_pub728, c.p_pub300 FROM p_categorias AS c WHERE c.cid = \''.$postData['post_category'].'\'');
En m.admin_cats.tpl --> themes --> default --> templates --> admin_mods --> m.admin_cats.tpl
Buscar:
Código PHP:
<p><input type="submit" name="save" value="Guardar cambios" class="btn_g"/ ></p>
Arriba agregar:
Código PHP:
<hr>
<dl>
<dt><label for="p_active">Activar Publicidad:</label><br /><span>Seleccione si desea usar la publicidad en la categoría.<b> Si no tomara la default</b></span></dt>
<label><input type="radio" value="s" name="p_active" class="radio cuenta-save-1" {if $tsCat.p_active == '1'}checked="checked"{/if}/><b>Sí</b></label>
<label><input type="radio" value="n" name="p_active" class="radio cuenta-save-1" {if $tsCat.p_active == '0'}checked="checked"{/if}/><b>No</b></label>
<br/>
</dl>
<hr>
<dl>
<dt><label for="p_pub728">Banner 728x90:</label></dt>
<dd><textarea name="p_pub728" id="p_pub728" rows="5" cols="50" onclick="select(this);">{$tsCat.p_pub728}</textarea></dd>
</dl>
<dl>
<dt><label for="p_pub300">Banner 300x250:</label></dt>
<dd><textarea name="p_pub300" id="p_pub300" rows="5" cols="50" onclick="select(this);">{$tsCat.p_pub300}</textarea></dd>
</dl>
En m.posts_content.tpl --> themes --> default --> templates --> modules --> m.posts_content.tpl
Buscar 2 veces:
Código PHP:
{include file='modules/m.global_ads_728.tpl'}
Reemplazar por:
Código PHP:
{if $tsPost.categoria.p_active==1 && $tsPost.categoria.p_pub728!=''}{$tsPost.categoria.p_pub728}{else}{include file='modules/m.global_ads_728.tpl'}{/if}
En m.posts_banner.tpl --> themes --> default --> templates --> modules --> m.posts_banner.tpl
Buscar:
Código PHP:
<div class="banner-300">
<center>{$tsConfig.ads_300}</center>
</div>
Reemplazar por:
Código PHP:
<div class="banner-300">
<center>{if $tsPost.categoria.p_active==1 && $tsPost.categoria.p_pub300!=''}
{$tsPost.categoria.p_pub300}
{else}{$tsConfig.ads_300}{/if}</center>
</div>
Creditos: Vellenger
Demo
http://Registrate o inicia tu sesión par... contenido
Capturas
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
Ejecutar esta consulta
Código PHP:
ALTER TABLE w_configuracion ADD c_cant_x_videos INT(11) NOT NULL
En c.videos.php --> inc --> class --> c.videos.php
Buscar:
Código PHP:
$vid = db_exec('insert_id');
Debajo agregar:
Código PHP:
// Puntos por Video by Lucho
db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE u_miembros SET user_puntos = user_puntos + \''.(int)$tsCore->settings['c_cant_x_videos'].'\' WHERE user_id = \''.(int)$tsUser->uid.'\'');
En c.admin.php --> inc --> class --> c.admin.php
Buscar:
Código PHP:
'offline' => empty($_POST['offline']) ? 0 : 1,
Debajo agregar:
Código PHP:
'cant_x_videos' => (int)$_POST['cant_x_videos'],
Buscar:
Código PHP:
'\', `offline` = \'' . $c['offline'] .
Al lado agregar:
Código PHP:
'\', `c_cant_x_videos` = \'' . $c['cant_x_videos'] .
En videos.php --> inc --> php --> videos.php
Buscar:
Código PHP:
$smarty->assign("tsAviso",array('titulo' => 'Video Agregado', 'mensaje' => "El video <b>".$titulo."</b> fue agregado.", 'but' => 'Ver video', 'link' => "{$tsCore->settings['url']}/videos/{$tsUser->nick}/{$result}/".$tsCore->setSEO($titulo).".html"));
Reemplazar por:
Código PHP:
$smarty->assign("tsAviso",array('titulo' => 'Video Agregado', 'mensaje' => "El video <b>".$titulo."</b> fue agregado. Has recibido una bonificación de: {$tsCore->settings['c_cant_x_videos']} Puntos", 'but' => 'Ver video', 'link' => "{$tsCore->settings['url']}/videos/{$tsUser->nick}/{$result}/".$tsCore->setSEO($titulo).".html"));
En m.admin_configs.tpl --> themes --> default --> templates --> admin_mods --> m.admin_configs.tpl
Buscar:
Código PHP:
<dl>
<dt>
<label for="ai_max_nots">Máximo de notificaciones:</label>
<br /><span>Cuantas notificaciones puede recibir un usuario.</span></dt>
<dd>
<input type="text" id="ai_max_nots" name="max_nots" style="width:10%" maxlength="3" value="{$tsConfig.c_max_nots}" />
</dd>
</dl>
Debajo agregar:
Código PHP:
<dl>
<dt>
<label for="cant_x_fotos">Puntos por Vídeos:</label>
<br /><span>Puntos que recibirá como bonificación un usuario al subir un video.</span></dt>
<dd>
<input type="text" id="cant_x_videos" name="cant_x_videos" style="width:10%" maxlength="3" value="{$tsConfig.c_cant_x_videos}" />
</dd>
</dl>
Creditos: Lucho
Capturas
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
En c.posts.php --> inc --> class --> c.posts.php
Buscar:
Código PHP:
/*
getFavoritos()
*/
Arriba agregar:
Código PHP:
/*
* listFavoritos()
* Posts favoritos en el monitor
* Kmario19
*/
function listFavoritos(){
global $tsCore, $tsUser;
//
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT p.post_id, p.post_title, c.c_seo, c.c_img FROM p_favoritos AS f LEFT JOIN p_posts AS p ON p.post_id = f.fav_post_id LEFT JOIN p_categorias AS c ON c.cid = p.post_category WHERE f.fav_user = \''.$tsUser->uid.'\' AND p.post_status = \'0\' ORDER BY f.fav_date DESC LIMIT 7');
$data['data'] = result_array($query);
//
$data['total'] = db_exec('num_rows', db_exec(array(__FILE__, __LINE__), 'query', 'SELECT fav_id FROM p_favoritos WHERE fav_user = \''.$tsUser->uid.'\''));
//
return $data;
}
En ajax.favoritos.php --> inc --> php --> ajax --> ajax.favoritos.php
Buscar:
Código PHP:
'favoritos-borrar' => array('n' => 2, 'p' => ''),
Debajo agregar:
Código PHP:
'favoritos-lista' => array('n' => 2, 'p' => 'lista'),
Buscar:
Código PHP:
case 'favoritos-borrar':
//<--
echo $tsPosts->delFavorito();
//-->
break;
Debajo agregar:
Código PHP:
case 'favoritos-lista':
// <!--
$smarty->assign("tsFavoritos",$tsPosts->listFavoritos());
// -->
break;
En acciones.js --> themes --> default --> js --> acciones.js
Buscar:
Código PHP:
mensaje.close();
Debajo agregar:
Código PHP:
favorito.close();
Buscar:
Código PHP:
notifica.close();
Debajo agregar:
Código PHP:
favorito.close();
Buscar:
Código PHP:
var timelib = {
Arriba agregar:
Código PHP:
var favorito = {
cache: {},
last: function () {
notifica.close();
mensaje.close();
//
if ($('#fav_list').css('display') != 'none') {
$('#fav_list').slideUp();
$('a[name=Favoritos]').parent('li').removeClass('monitor-notificaciones');
} else {
if (($('#fav_list').css('display') == 'none') || typeof favorito.cache.last == 'undefined') {
$('a[name=Favoritos]').children('span').addClass('spinner');
$('a[name=Favoritos]').parent('li').addClass('monitor-notificaciones');
$('#fav_list').slideDown();
favorito.ajax(function (r) {
favorito.cache['last'] = r;
favorito.show();
favorito.total();
notifica.close();
mensaje.close();
});
} else favorito.show();
}
},
ajax: function(fn){
$('#loading').fadeIn(250);
$.ajax({
type: 'POST',
url: global_data.url + '/favoritos-lista.php',
success: function(h){
fn(h);
$('#loading').fadeOut(350);
}
});
},
show: function () {
if (typeof favorito.cache.last != 'undefined') {
$('a[name=Favoritos]').parent('li').addClass('monitor-notificaciones');
$('a[name=Favoritos]').children('span').removeClass('spinner');
$('#fav_list').show().children('ul').html(favorito.cache.last);
$('#fav_list > ul > li > a[title]').tipsy({ gravity: 's' });
}
},
total: function () {
var total = parseInt($('#FTotal').text());
if(total > 0) {
$('#FavsTotal').html('Favoritos <span class="floatR">' + total + '</span>');
}
},
close: function(){
$('#fav_list').hide();
$('a[name=Favoritos]').parent('li').removeClass('monitor-notificaciones');
}
}
En head_menu.tpl --> themes --> default --> templates --> sections --> head_menu.tpl
Buscar:
Código PHP:
<li>
<a title="Mis Favoritos" href="{$tsConfig.url}/favoritos.php">
<span class="systemicons favoritos"></span>
</a>
</li>
Reemplazar por:
Código PHP:
<li class="favoritos" style="position:relative">
<a href="{$tsConfig.url}/favoritos.php" onclick="favorito.last(); return false" title="Posts favoritos" name="Favoritos">
<span class="systemicons favoritos"></span>
</a>
<div class="notificaciones-list" id="fav_list" style="width:270px">
<div style="padding: 10px 10px 0 10px;font-size:13px">
<strong style="cursor:pointer" onclick="location.href='{$tsConfig.url}/favoritos.php'" id="FavsTotal">Favoritos</strong>
</div>
<ul>
</ul>
<a href="{$tsConfig.url}/favoritos.php" class="ver-mas">Ver todos los posts favoritos</a>
</div>
</li>
Y subir esta carpeta
Mega
http://Registrate o inicia tu sesión par... contenido
Google Drive
http://Registrate o inicia tu sesión par... contenido
Mediafire
http://Registrate o inicia tu sesión par... contenido
Creditos: Kmario19
Captura
[img]Registrate o inicia tu sesión para ver este contenido[/img]
En c.tops.php --> inc --> class --> c.tops.php
Buscar:
Código PHP:
$array['medallas'] = result_array($query);
Debajo agregar:
Código PHP:
// POSTS
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT COUNT(p.post_id) AS total, u.user_id, u.user_name FROM p_posts AS p LEFT JOIN u_miembros AS u ON p.post_user = u.user_id WHERE p.post_status = 0 AND p.post_date ***** '.$data['start'].' AND '.$data['end'].' '.$category.' GROUP BY p.post_user ORDER BY total DESC LIMIT 10');
$array['posts'] = result_array($query);
En m.top_users.tpl --> themes --> default --> templates --> modules --> m.top_users.tpl
Buscar:
Código PHP:
<!--MEDALLAS-->
Arriba agregar:
Código PHP:
<!--POSTS-->
<div class="boxy xtralarge" style="height: 440px">
<div class="boxy-title">
<h3>Top usuario con más posts</h3>
<span class="icon-noti follow-n"></span>
</div>
<div class="boxy-content">
{if !$tsTops.posts}<div class="emptyData">Nada por aqui</div>
{else}
<ol>
{foreach from=$tsTops.posts item=p}
<li class="categoriaUsuario clearfix">
<img width="16" height="16" src="{$tsConfig.url}/files/avatar/{$p.user_id}_50.jpg"/>
<a href="{$tsConfig.url}/perfil/{$p.user_name}">{$p.user_name}</a> <span class="qtip" title="tiene un total de {$p.total} Posts">{$p.total}</span>
</li>
{/foreach}
</ol>
{/if}
</div>
</div>
Creditos: Nico
Capturas
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
Ejectar esta consulta
Código PHP:
CREATE TABLE IF NOT EXISTS `b_bugs` (
`bid` int(11) NOT NULL AUTO_INCREMENT,
`b_user` int(11) NOT NULL,
`b_nombre` varchar(60) NOT NULL,
`b_titulo` varchar(60) NOT NULL,
`b_cat` int(11) NOT NULL,
`b_cap` text NOT NULL,
`b_url` text NOT NULL,
`b_desc` text NOT NULL,
`b_estado` int(1) NOT NULL,
`b_fecha` int(10) NOT NULL,
PRIMARY KEY (`bid`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
En admin.php --> inc --> php --> admin.php
Buscar:
Código PHP:
if($action == ''){
Arriba agregar:
Código PHP:
$totalBugs = db_exec('num_rows', db_exec(array(__FILE__, __LINE__), 'query', 'SELECT * FROM b_bugs WHERE b_estado = \'2\''));
$smarty->assign("totalBugs",$totalBugs);
Buscar:
Código PHP:
// ESTADÍSTICAS
Arriba agregar:
Código PHP:
// REPORTE DE BUGS
} elseif($action == 'bugs'){
$smarty->assign("tsBugs",$tsAdmin->getBugs());
En c.admin.php --> inc --> class --> c.admin.php
Buscar:
Código PHP:
/****************** ADMINISTRACIÓN DE POSTS ******************/
Arriba agregar:
Código PHP:
function getBugs() {
global $tsCore;
//
$max = 20;
$limit = $tsCore->setPageLimit($max, true);
//
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT * FROM b_bugs ORDER BY bid DESC LIMIT '.$limit);
$data['data'] = result_array($query);
// PAGINAS
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT COUNT(*) FROM b_bugs WHERE bid > \'0\'');
list($total) = db_exec('fetch_row', $query);
//
$data['pages'] = $tsCore->pageIndex($tsCore->settings['url']."/admin/bugs?", $_GET['s'], $total, $max);
//
$cat = array( 1 => 'Home', 'Muro', 'Perfil', 'Posts', 'Mp\'s', 'Registro', 'Otro');
if(count($data['data']) > 0) {
$i = 0;
foreach($data['data'] as $key => $val) {
$data['data'][$i]['b_cat'] = $cat[$data['data'][$i]['b_cat']];
$i++;
}
}
//
return $data;
}
En c.swat.php --> inc --> class --> c.swat.php
Antes de la última llave } agregar:
Código PHP:
function setBug() {
global $tsCore, $tsUser;
$dato = array(
'nombre' => $tsCore->setSecure($_POST['nombre']),
'titulo' => $tsCore->setSecure($_POST['titulo'])
);
// Obligatorios
foreach($dato as $key => $val){
$val = trim(preg_replace('/[^ A-Za-z0-9]/', '', $val));
$val = str_replace(' ', '', $val);
if(empty($val)) return '2: Completa los campos obligatorios.';
}
// Opcionales
$dato['cat'] = intval($_POST['cat']);
$dato['cap'] = $tsCore->setSecure($_POST['cap']);
$dato['url'] = $tsCore->setSecure($_POST['url']);
$dato['desc'] = $tsCore->setSecure($_POST['desc']);
if(db_exec(array(__FILE__, __LINE__), 'query', 'INSERT INTO b_bugs (b_user, b_nombre, b_titulo, b_cat, b_cap, b_url, b_desc, b_estado, b_fecha) VALUES (\''.$tsUser->uid.'\', \''.$dato['nombre'].'\', \''.$dato['titulo'].'\', \''.$dato['cat'].'\', \''.$dato['cap'].'\', \''.$dato['url'].'\', \''.$dato['desc'].'\', \'2\', \''.time().'\')')) {
return '1: Reporte enviado con éxito, gracias por ayudar a mejorar el sitio.';
} else return '0: Ocurrió un error al enviar el reporte, intentalo de nuevo.';
}
function bugEstado() {
global $tsCore;
$bid = $tsCore->setSecure($_POST['bid']);
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT bid, b_estado FROM b_bugs WHERE bid = \''.(int)$bid.'\' LIMIT 1');
$data = db_exec('fetch_assoc', $query);
if($data['bid'] > 0) {
$estado = $data['b_estado'] == 3 ? 1 : $data['b_estado']+1;
if(db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE b_bugs SET b_estado = \''.(int)$estado.'\' WHERE bid = \''.(int)$bid.'\' LIMIT 1')) return '1: '.$estado;
else return '0: Intentalo de nuevo.';
} else return '0: El reporte no existe o fue eliminado.';
}
function bugBorrar() {
global $tsCore;
$bid = $tsCore->setSecure($_POST['bid']);
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT bid, b_estado FROM b_bugs WHERE bid = \''.(int)$bid.'\' LIMIT 1');
$data = db_exec('fetch_assoc', $query);
if($data['bid'] > 0) {
if(db_exec(array(__FILE__, __LINE__), 'query', 'DELETE FROM b_bugs WHERE bid = \''.(int)$bid.'\' LIMIT 1')) return '1: Reporte eliminado con exito.';
else return '0: Intentalo de nuevo.';
} else return '0: El reporte no existe o fue eliminado.';
}
En ajax.denuncia.php --> inc --> php --> ajax --> ajax.denuncia.php
Buscar:
Código PHP:
'denuncia-usuario' => array('n' => 2, 'p' => 'form'),
Debajo agregar:
Código PHP:
'denuncia-bug' => array('n' => 0, 'p' => ''),
'denuncia-bug_estado' => array('n' => 4, 'p' => ''),
'denuncia-bug_borrar' => array('n' => 4, 'p' => ''),
Después del último break; agregar:
Código PHP:
case 'denuncia-bug':
echo $tsSwat->setBug();
break;
case 'denuncia-bug_estado':
echo $tsSwat->bugEstado();
break;
case 'denuncia-bug_borrar':
echo $tsSwat->bugBorrar();
break;
En m.admin_sidemenu.tpl --> themes --> default --> templates --> admin_mods --> m.admin_sidemenu.tpl
Buscar:
Código PHP:
<li id="a_badwords"><span class="cat-title"><a href="{$tsConfig.url}/admin/badwords">Censuras</a></span></li>
Debajo agregar:
Código PHP:
<li id="a_badwords"><span class="cat-title"><a href="{$tsConfig.url}/admin/bugs">Reporte de bugs <strong class="floatR" style="color: red;">{$totalBugs}</strong></a></span></li>
En t.admin.tpl --> themes --> default --> templates --> t.admin.tpl
Buscar:
Código PHP:
{/if}
Arriba agregar:
Código PHP:
{elseif $tsAction == 'bugs'}
{include file='admin_mods/m.admin_bugs.tpl'}
En funciones.js --> themes --> default --> js --> funciones.js
Al final agregar:
Código PHP:
var bug = {
reportar: function() {
var html = '<input type="text" placeholder="Nombre" id="nombre" value="' + (global_data.user_key > 0 ? global_data.user_name : '') + '" size="60" class="require" /></br>';
html += '<input type="text" placeholder="Titulo" id="titulo" size="60" class="require" /></br>';
html += '<select id="cat" style="width: 330px;margin-bottom: 10px;"><option value="">Selecciona una categoría (Opcional)</option>';
html += '<option value="1">Home</option>';
html += '<option value="2">Muro</option>';
html += '<option value="3">Perfil</option>';
html += '<option value="4">Posts</option>';
html += '<option value="5">Mp\'s</option>';
html += '<option value="6">Registro</option>';
html += '<option value="7">Otro</option></select></br>';
html += '<input type="text" placeholder="URL de la imagen del problema" id="cap" size="60" class="require" /></br>';
html += '<input type="text" placeholder="URL asociado al bug (opcional)" id="url" size="60" /></br>';
html += '<textarea placeholder="Descripción (opcional)" id="desc" cols="42" rows="10"></textarea>';
mydialog.class_aux = 'RBugs';
mydialog.mask_close = false;
mydialog.close_button = true;
mydialog.show(true);
mydialog.title('Reporte de bugs');
mydialog.body(html);
mydialog.buttons(true, true, 'Aceptar', 'bug.verify()', true, true, true, 'Cancelar', 'close', true, false);
mydialog.center();
},
verify: function() {
var cont = false;
$('.require').each(function(){
if($(this).val() == '' || $(this).val() == 0 || $(this).length == 0) {
$(this).focus();
cont = false;
return false;
} else {
cont = true;
}
});
if(cont) bug.send();
else return false;
},
send: function() {
mydialog.procesando_inicio();
var nombre = $('.RBugs #nombre').val(),
titulo = $('.RBugs #titulo').val(),
cat = $('.RBugs #cat').val(),
cap = $('.RBugs #cap').val(),
url = $('.RBugs #url').val(),
desc = $('.RBugs #desc').val();
$.ajax({
type: 'POST',
url: global_data.url + '/denuncia-bug.php',
data: 'nombre='+nombre+'&titulo='+titulo+'&cat='+cat+'&cap='+cap+'&url='+url+'&desc='+desc,
success: function(h){
if(h.charAt(0) == '0') {
mydialog.alert('Error', h.substring(3));
} else if(h.charAt(0) == '1') {
mydialog.alert('Exito', h.substring(3));
} else if(h.charAt(0) == '2') {
alert('Completa los datos obligatorios.');
} else {
mydialog.alert('Error', h);
}
mydialog.procesando_fin();
}
});
},
ver: function(id) {
var titulo = $('#titulo_'+id).val(),
cap = $('#cap_'+id).val(),
url = $('#url_'+id).val(),
desc = '<p align="justify">',
text = $('#desc_'+id).val();
desc += '<a href="' + cap + '" target="_blank"><img src="' + cap + '" width="80" height="80" align="left" style="margin: 0 5px 5px 0;" /></a> '+text;
if(url.length > 0) {
desc += '</br></br><strong>URL:</strong> <a href="'+url+'" target="_blank">'+url+'</a>';
}
desc += '</p>';
mydialog.show(true);
mydialog.title(titulo);
mydialog.body(desc, 450);
mydialog.buttons(true, true, 'Aceptar', 'mydialog.close()', true, true);
mydialog.center();
},
estado: function(id) {
$('#loading').fadeIn(250);
$.ajax({
type: 'POST',
url: global_data.url + '/denuncia-bug_estado.php',
data: 'bid='+id,
success: function(h){
if(h.charAt(0) == '0') {
mydialog.alert('Error', h.substring(3));
} else if(h.charAt(0) == '1') {
switch(h.substring(3)) {
case '1': // Ignorado
result = '<font color="grey">Ignorado</font>';
break;
case '2': // Pendiente
result = '<font color="red">Pendiente</font>';
break;
case '3': // Solucionado
result = '<font color="green">Solucionado</font>';
break;
}
$('#estado_'+id).html(result);
} else {
mydialog.alert('Error', h);
}
$('#loading').fadeOut(250);
}
});
},
borrar: function(id) {
$('#loading').fadeIn(250);
$.ajax({
type: 'POST',
url: global_data.url + '/denuncia-bug_borrar.php',
data: 'bid='+id,
success: function(h){
if(h.charAt(0) == '0') {
mydialog.alert('Error', h.substring(3));
} else if(h.charAt(0) == '1') {
$('#bug_'+id).remove();
} else {
mydialog.alert('Error', h);
}
$('#loading').fadeOut(250);
}
});
},
}
En main_header.tpl --> themes --> default --> templates --> sections --> main_header.tpl
Buscar:
Código PHP:
user_key:'{$tsUser->uid}',
Debajo agregar:
Código PHP:
user_name:'{$tsUser->nick}',
En main_footer.tpl --> themes --> default --> templates --> sections --> main_footer.tpl
Buscar:
Código PHP:
<a href="{$tsConfig.url}/pages/protocolo/">Protocolo</a>
Debajo agregar:
Código PHP:
<a href="#" onclick="bug.reportar(); return false;" title="¿Encontraste un error en la web?">Reportar un bug</a>
Y subir esta carpeta
Mega
http://Registrate o inicia tu sesión par... contenido
Google Drive
http://Registrate o inicia tu sesión par... contenido
Mediafire
http://Registrate o inicia tu sesión par... contenido
Creditos: Kmario19
Capturas
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
Ejecutar esta consulta
Código PHP:
ALTER TABLE w_configuracion ADD c_fotosemana VARCHAR( 105 ) NOT NULL AFTER offline_message
En c.core.php --> inc --> class --> c.core.php
Buscar:
Código PHP:
$this->settings['js'] = $this->settings['tema']['t_url'].'/js';
Debajo agregar:
Código PHP:
$this->settings['yt'] = $this->settings['c_fotosemana'];
En c.admin.php --> inc --> class --> c.admin.php
Buscar:
Código PHP:
'url' => $tsCore->setSecure($tsCore->parseBadWords($_POST['url'])),
Debajo agregar:
Código PHP:
'fotosemana' => $tsCore->setSecure($_POST['fotosemana']),
Buscar:
Código PHP:
`offline_message` = \'' .
$c['offline_message'] . '\'
Al lado agregar:
Código PHP:
, `c_fotosemana` = \'' .
$c['fotosemana'] . '\'
En m.admin_configs.tpl --> themes --> default --> templates --> admin_mods --> m.admin_configs.tpl
Buscar:
Código PHP:
<dl>
<dt>
<label for="ai_slogan">Descripción del Sitio:</label>
</dt>
<dd>
<input type="text" id="ai_slogan" name="slogan" maxlength="32" value="{$tsConfig.slogan}" />
</dd>
</dl>
Debajo agregar:
Código PHP:
<dl>
<dt>
<label for="ai_fotosemana">Foto de la semana </label><br /><span>Ingrese el link de la foto. </span>
</dt>
<dd>
<input type="text" name="fotosemana" id="ai_fotosemana" value="{$tsConfig.yt}" />
</dd>
</dl>
En t.home.tpl --> themes --> default --> templates --> t.home.tpl
Donde quieran agregan:
Código PHP:
{include file='modules/m.foto_semana.tpl'}
Y suben esta carpeta
Mega
http://Registrate o inicia tu sesión par... contenido
Google Drive
http://Registrate o inicia tu sesión par... contenido
Mediafire
http://Registrate o inicia tu sesión par... contenido
Creditos: ALKACHEY

