0
Capturas
Ejecutar esta consulta
En c.post.php --> inc --> class --> c.post.php
Buscar:
Debajo agregar:
Buscar:
Al lado agregar:
Buscar:
Al lado agregar:
Buscar:
Debajo agregar:
Buscar:
Al lado agregar:
En c.core.php --> inc --> class --> c.core.php
Buscar:
Debajo agregar:
Buscar:
Debajo agregar:
En m.posts_content.tpl --> themes --> default --> templates --> modules --> m.posts_content.tpl
Buscar:
Reemplazar por:
En m.posts_comments_form.tpl --> themes --> default --> templates --> modules --> m.posts_comments_form.tpl
Buscar:
Arriba agregar:
Al final en el último:
Agregar:
En m.agregar_form.tpl --> themes --> default --> templates --> modules --> m.agregar_form.tpl
Buscar:
Arriba 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]
[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: ( Seleccionar Todo )
ALTER TABLE `p_posts`
ADD `post_rangs1` int(1) NOT NULL DEFAULT '0',
ADD `post_rangs2` int(1) NOT NULL DEFAULT '0',
ADD `post_rangs3` int(1) NOT NULL DEFAULT '0',
ADD `post_rangs4` int(1) NOT NULL DEFAULT '0',
ADD `post_rangs5` int(1) NOT NULL DEFAULT '0',
ADD `post_rangs6` int(1) NOT NULL DEFAULT '0',
ADD `post_rangs7` int(1) NOT NULL DEFAULT '0',
ADD `post_rangs8` int(1) NOT NULL DEFAULT '0',
ADD `post_rangs9` int(1) NOT NULL DEFAULT '0',
ADD `post_rangs10` int(1) NOT NULL DEFAULT '0',
ADD `post_prangs1` int(1) NOT NULL DEFAULT '0',
ADD `post_prangs2` int(1) NOT NULL DEFAULT '0',
ADD `post_prangs3` int(1) NOT NULL DEFAULT '0',
ADD `post_prangs4` int(1) NOT NULL DEFAULT '0',
ADD `post_prangs5` int(1) NOT NULL DEFAULT '0',
ADD `post_prangs6` int(1) NOT NULL DEFAULT '0',
ADD `post_prangs7` int(1) NOT NULL DEFAULT '0',
ADD `post_prangs8` int(1) NOT NULL DEFAULT '0',
ADD `post_prangs9` int(1) NOT NULL DEFAULT '0',
ADD `post_prangs10` int(1) NOT NULL DEFAULT '0';
En c.post.php --> inc --> class --> c.post.php
Buscar:
Código PHP: ( Seleccionar Todo )
$postData['block_comments'] = empty($_POST['sin_comentarios']) ? 0 : 1;
Debajo agregar:
Código PHP: ( Seleccionar Todo )
$postData['rangs1'] = empty($_POST['rang1']) ? 0 : 1;
$postData['rangs2'] = empty($_POST['rang2']) ? 0 : 1;
$postData['rangs3'] = empty($_POST['rang3']) ? 0 : 1;
$postData['rangs4'] = empty($_POST['rang4']) ? 0 : 1;
$postData['rangs5'] = empty($_POST['rang5']) ? 0 : 1;
$postData['rangs6'] = empty($_POST['rang6']) ? 0 : 1;
$postData['rangs7'] = empty($_POST['rang7']) ? 0 : 1;
$postData['rangs8'] = empty($_POST['rang8']) ? 0 : 1;
$postData['rangs9'] = empty($_POST['rang9']) ? 0 : 1;
$postData['rangs10'] = empty($_POST['rang10']) ? 0 : 1;
$postData['prangs1'] = empty($_POST['prang1']) ? 0 : 1;
$postData['prangs2'] = empty($_POST['prang2']) ? 0 : 1;
$postData['prangs3'] = empty($_POST['prang3']) ? 0 : 1;
$postData['prangs4'] = empty($_POST['prang4']) ? 0 : 1;
$postData['prangs5'] = empty($_POST['prang5']) ? 0 : 1;
$postData['prangs6'] = empty($_POST['prang6']) ? 0 : 1;
$postData['prangs7'] = empty($_POST['prang7']) ? 0 : 1;
$postData['prangs8'] = empty($_POST['prang8']) ? 0 : 1;
$postData['prangs9'] = empty($_POST['prang9']) ? 0 : 1;
$postData['prangs10'] = empty($_POST['prang10']) ? 0 : 1;
Buscar:
Código PHP: ( Seleccionar Todo )
post_block_comments,
Al lado agregar:
Código PHP: ( Seleccionar Todo )
post_rangs1, post_rangs2, post_rangs3, post_rangs4, post_rangs5, post_rangs6, post_rangs7, post_rangs8, post_rangs9, post_rangs10, post_prangs1, post_prangs2, post_prangs3, post_prangs4, post_prangs5, post_prangs6, post_prangs7, post_prangs8, post_prangs9, post_prangs10,
Buscar:
Código PHP: ( Seleccionar Todo )
'\', \''.(int)$postData['block_comments'].
Al lado agregar:
Código PHP: ( Seleccionar Todo )
'\', \''.(int)$postData['rangs1'].'\', \''.(int)$postData['rangs2'].'\', \''.(int)$postData['rangs3'].'\', \''.(int)$postData['rangs4'].'\', \''.(int)$postData['rangs5'].'\', \''.(int)$postData['rangs6'].'\', \''.(int)$postData['rangs7'].'\', \''.(int)$postData['rangs8'].'\', \''.(int)$postData['rangs9'].'\', \''.(int)$postData['rangs10'].'\', \''.(int)$postData['prangs1'].'\', \''.(int)$postData['prangs2'].'\', \''.(int)$postData['prangs3'].'\', \''.(int)$postData['prangs4'].'\', \''.(int)$postData['prangs5'].'\', \''.(int)$postData['prangs6'].'\', \''.(int)$postData['prangs7'].'\', \''.(int)$postData['prangs8'].'\', \''.(int)$postData['prangs9'].'\', \''.(int)$postData['prangs10'].
Buscar:
Código PHP: ( Seleccionar Todo )
$postData['block_comments'] = empty($_POST['sin_comentarios']) ? 0 : 1;
Debajo agregar:
Código PHP: ( Seleccionar Todo )
$postData['rangs1'] = empty($_POST['rang1']) ? 0 : 1;
$postData['rangs2'] = empty($_POST['rang2']) ? 0 : 1;
$postData['rangs3'] = empty($_POST['rang3']) ? 0 : 1;
$postData['rangs4'] = empty($_POST['rang4']) ? 0 : 1;
$postData['rangs5'] = empty($_POST['rang5']) ? 0 : 1;
$postData['rangs6'] = empty($_POST['rang6']) ? 0 : 1;
$postData['rangs7'] = empty($_POST['rang7']) ? 0 : 1;
$postData['rangs8'] = empty($_POST['rang8']) ? 0 : 1;
$postData['rangs9'] = empty($_POST['rang9']) ? 0 : 1;
$postData['rangs10'] = empty($_POST['rang10']) ? 0 : 1;
$postData['prangs1'] = empty($_POST['prang1']) ? 0 : 1;
$postData['prangs2'] = empty($_POST['prang2']) ? 0 : 1;
$postData['prangs3'] = empty($_POST['prang3']) ? 0 : 1;
$postData['prangs4'] = empty($_POST['prang4']) ? 0 : 1;
$postData['prangs5'] = empty($_POST['prang5']) ? 0 : 1;
$postData['prangs6'] = empty($_POST['prang6']) ? 0 : 1;
$postData['prangs7'] = empty($_POST['prang7']) ? 0 : 1;
$postData['prangs8'] = empty($_POST['prang8']) ? 0 : 1;
$postData['prangs9'] = empty($_POST['prang9']) ? 0 : 1;
$postData['prangs10'] = empty($_POST['prang10']) ? 0 : 1;
Buscar:
Código PHP: ( Seleccionar Todo )
'\', post_block_comments = \''.$postData['block_comments'].
Al lado agregar:
Código PHP: ( Seleccionar Todo )
'\', post_rangs1 = \''.$postData['rangs1'].'\', post_rangs2 = \''.$postData['rangs2'].'\', post_rangs3 = \''.$postData['rangs3'].'\', post_rangs4 = \''.$postData['rangs4'].'\', post_rangs5 = \''.$postData['rangs5'].'\', post_rangs6 = \''.$postData['rangs6'].'\', post_rangs7 = \''.$postData['rangs7'].'\', post_rangs8 = \''.$postData['rangs8'].'\', post_rangs9 = \''.$postData['rangs9'].'\', post_rangs10 = \''.$postData['rangs10'].'\', post_prangs1 = \''.$postData['prangs1'].'\', post_prangs2 = \''.$postData['prangs2'].'\', post_prangs3 = \''.$postData['prangs3'].'\', post_prangs4 = \''.$postData['prangs4'].'\', post_prangs5 = \''.$postData['prangs5'].'\', post_prangs6 = \''.$postData['prangs6'].'\', post_prangs7 = \''.$postData['prangs7'].'\', post_prangs8 = \''.$postData['prangs8'].'\', post_prangs9 = \''.$postData['prangs9'].'\', post_prangs10 = \''.$postData['prangs10'].
En c.core.php --> inc --> class --> c.core.php
Buscar:
Código PHP: ( Seleccionar Todo )
$this->settings['js'] = $this->settings['tema']['t_url'].'/js';
Debajo agregar:
Código PHP: ( Seleccionar Todo )
$this->settings['rangs'] = $this->getRangosper();
Buscar:
Código PHP: ( Seleccionar Todo )
/*
getCategorias()
*/
function getCategorias()
{
// CONSULTA
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT cid, c_orden, c_nombre, c_seo, c_img FROM p_categorias ORDER BY c_orden');
// GUARDAMOS
$categorias = result_array($query);
//
return $categorias;
}
Debajo agregar:
Código PHP: ( Seleccionar Todo )
/*
getRangosper()
*/
function getRangosper()
{
// CONSULTA
$query = db_exec(array(__FILE__, __LINE__), 'query', 'SELECT r.rango_id, r.r_name, r.r_color FROM u_rangos AS r WHERE r.rango_id >2 ORDER BY r.rango_id ASC');
// GUARDAMOS
$rangs = result_array($query);
//
return $rangs;
}
En m.posts_content.tpl --> themes --> default --> templates --> modules --> m.posts_content.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
<span>
{$tsPost.post_body}
</span>
Reemplazar por:
Código PHP: ( Seleccionar Todo )
{if ($tsPost.post_prangs1==1 || $tsPost.post_prangs2==1 || $tsPost.post_prangs3==1 ||
$tsPost.post_prangs4==1 || $tsPost.post_prangs5==1 || $tsPost.post_prangs6==1 ||
$tsPost.post_prangs7==1 || $tsPost.post_prangs8==1 || $tsPost.post_prangs9==1 ||
$tsPost.post_prangs10==1) & $tsUser->is_member=='false'}
<br>
<div class="emptyData">
Para poder comentar necesitas estar <a title="Registrate!" onclick="registro_load_form(); return false" href="">Registrado.</a> O ya tienes usuario? <a title="Identificarme" href="javascript:open_login_box()">Logueate!</a>
</div>{else}
{if $tsPost.post_prangs1==1 & $tsUser->info.user_rango == 3 & $tsAutor.user_id != $tsUser->uid & $tsUser->is_member ||
$tsPost.post_prangs2==1 & $tsUser->info.user_rango == 4 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_prangs3==1 & $tsUser->info.user_rango == 5 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_prangs4==1 & $tsUser->info.user_rango == 6 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_prangs5==1 & $tsUser->info.user_rango == 7 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_prangs6==1 & $tsUser->info.user_rango == 8 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_prangs7==1 & $tsUser->info.user_rango == 9 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_prangs8==1 & $tsUser->info.user_rango == 10 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_prangs9==1 & $tsUser->info.user_rango == 11 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_prangs10==1 & $tsUser->info.user_rango == 12 & $tsAutor.user_id != $tsUser->uid}
<div class="alert alert-info">
<strong>El autor del post ha decidido no permitir ver el post a usuarios con tu rango.</strong>
</div>
{else}
<div class="relato-p">
<span>
{$tsPost.post_body}
</span>
</div>
{/if}
{/if}
En m.posts_comments_form.tpl --> themes --> default --> templates --> modules --> m.posts_comments_form.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
<div id="procesando"><div id="post"></div></div>
Arriba agregar:
Código PHP: ( Seleccionar Todo )
{if $tsPost.post_rangs1==1 & $tsUser->info.user_rango == 3 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_rangs2==1 & $tsUser->info.user_rango == 4 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_rangs3==1 & $tsUser->info.user_rango == 5 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_rangs4==1 & $tsUser->info.user_rango == 6 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_rangs5==1 & $tsUser->info.user_rango == 7 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_rangs6==1 & $tsUser->info.user_rango == 8 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_rangs7==1 & $tsUser->info.user_rango == 9 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_rangs8==1 & $tsUser->info.user_rango == 10 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_rangs9==1 & $tsUser->info.user_rango == 11 & $tsAutor.user_id != $tsUser->uid ||
$tsPost.post_rangs10==1 & $tsUser->info.user_rango == 12 & $tsAutor.user_id != $tsUser->uid}
<div class="emptyData" style="margin-bottom:5px;">
El Autor del Posts ha decidido no permitir comentarios con tu rango.
</div>
{else}
Al final en el último:
Código PHP: ( Seleccionar Todo )
</div>
Agregar:
Código PHP: ( Seleccionar Todo )
{/if}
En m.agregar_form.tpl --> themes --> default --> templates --> modules --> m.agregar_form.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
</ul>
Arriba agregar:
Código PHP: ( Seleccionar Todo )
{include file='modules/m.opciones_users.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