03-19-2022, 07:18 PM
2
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.posts.php --> inc --> class --> c.posts.php
Buscar:
Código PHP: ( Seleccionar Todo )
// NOTIFICAR SI FUE CITADO Y A LOS QUE SIGUEN ESTE POST, DUEÑO
$this->quoteNoti($post_id, $data['post_user'], $cid, $comentario);
Debajo agregar:
Código PHP: ( Seleccionar Todo )
// NOTIFICAR SI FUE MENCIONADO EN UN POST
$this->menTi($post_id, $data['post_user'], $cid, $comentario);
Buscar:
Código PHP: ( Seleccionar Todo )
/*
editComentario()
*/
Arriba agregar:
Código PHP: ( Seleccionar Todo )
/*
menTi()
:: Menciones notificacion.
*/
function menTi($post_id, $post_user, $cid, $comentario){
global $tsCore, $tsUser, $tsMonitor;
$ids = array();
$total = 0;
//
preg_match_all("/\B@([a-zA-Z0-9_-]{4,16}+)\b/",$comentario,$users);
//
if(!empty($users[1])) {
foreach($users[1] as $user){
# DATOS
$udata = explode('|',$user);
if(!is_array($udata)) {
$user = $user;
$lcid = $cid;
}
else {
$user = $udata[0];
$lcid = (int) $udata[1];
}
# COMPROBAR
if($user != $tsUser->nick){
$uid = $tsUser->getUserID($tsCore->setSecure($user));
if(!empty($uid) && $uid != $tsUser->uid && !in_array($uid, $ids)){
$ids[] = $uid;
$tsMonitor->setNotificacion(18, $uid, $tsUser->uid, $post_id, $lcid);
}
++$total;
}
}
}
//
return true;
}
En c.monitor.php --> inc --> class --> c.monitor.php
Buscar:
Código PHP: ( Seleccionar Todo )
17 => array('text' => 'Tu foto recibió una medalla', 'css' => 'medal'),
Debajo agregar:
Código PHP: ( Seleccionar Todo )
18 => array('text' => array('te mencionó en un', '_REP_ te mencionaron en un'), 'ln_text' => 'comentario', 'css' => 'blue_ball'),
Nota: Si ya tiene una notificación con número 18 cámbienlo por otro número.
Buscar:
Código PHP: ( Seleccionar Todo )
case 1:
case 2:
case 3:
case 5:
case 6:
case 7:
case 8:
case 9:
Debajo agregar:
Código PHP: ( Seleccionar Todo )
case 18:
Buscar:
Código PHP: ( Seleccionar Todo )
// PUEDEN SER MAS DE UNO
case 2:
case 6:
case 7:
case 8:
case 9:
Debajo agregar:
Código PHP: ( Seleccionar Todo )
case 18:
Buscar:
Código PHP: ( Seleccionar Todo )
if($no_type == 8 || $no_type == 9
Reemplazar por:
Código PHP: ( Seleccionar Todo )
if($no_type == 8 || $no_type == 9|| $no_type == 18
En m.monitor_sidebar.tpl --> themes --> default --> templates --> modules --> m.monitor_sidebar.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
<li><label><span class="monac_icons ma_comment_resp"></span><input type="checkbox" {if $tsData.filtro.f9 != true}checked="checked"{/if}onclick="notifica.filter('9', this)"/> Respuestas</label></li>
Debajo agregar:
Código PHP: ( Seleccionar Todo )
<li><label style="font-weight: bold; color: #006595;"><span class="monac_icons ma_blue_ball"></span><input type="checkbox" {if $tsData.filtro.f18 != true}checked="checked"{/if}onclick="notifica.filter('18', this)"/> Menciones</label></li>
Creditos: Debes agradecer para ver el contenido...


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