Phpost

Versión completa: Usuario Recomendado Administrable (Act 1.3)
Actualmente estas viendo una versión simplificada de nuestro contenido. Ver la versión completa con el formato correcto.
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]



Ejecutar estas consultas

Código PHP:
ALTER TABLE w_configuracion ADD u_reco VARCHAR15 NOT NULL AFTER offline_message 


Código PHP:
ALTER TABLE w_configuracion ADD u_reco_id VARCHAR15 NOT NULL AFTER u_reco 


En .htaccess

Buscar:

Código PHP:
#PERFIL 


Debajo agregar:

Código PHP:
RewriteRule ^([A-Za-z0-9_-]+)$ inc/php/perfil.php?user=$[QSA,L]
RewriteRule ^([A-Za-z0-9_-]+)/([0-9]+)$ inc/php/perfil.php?user=$1&pid=$[QSA,L


En c.admin.php --> inc --> class --> c.admin.php

Buscar:

Código PHP:
'titulo' => $tsCore->setSecure($tsCore->parseBadWords($_POST['titulo'])), 


Debajo agregar:

Código PHP:
'reco' => $tsCore->setSecure($_POST['reco']),
            
'ireco' => $tsCore->setSecure($_POST['ireco']), 


Buscar:

Código PHP:
$c['offline_message'] . '\' 


Al lado agregar:

Código PHP:
, `u_reco` = \'' $c['reco'] . '\', `u_reco_id` = \'' $c['ireco'] . '\' 


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['ur'] = $this->settings['u_reco']; 


En t.home.tpl --> themes --> default --> templates --> t.home.tpl

Buscar:

Código PHP:
{include file='modules/m.home_stats.tpl'


Debajo agregar:

Código PHP:
{include file='modules/m.home_u_reco.tpl'


En m.admin_configs.tpl --> themes --> default --> templates --> admin_mods --> m.admin_configs.tpl

Buscar:

Código PHP:
<dl>
                <
dt>
                    <
label for="ai_nfu">Cambio de rango:</label>
                    <
br /><span>Un usuario sube de rango cuando obtiene los puntos m&iacute;nimos en:</span></dt>
                <
dd>
                    <
label>
                        <
input name="newr" type="radio" id="ai_nfu" value="1" {if $tsConfig.c_newr_type==}checked="checked" {/if} class="radio" />Todos sus post</label>
                    <
label>
                        <
input name="newr" type="radio" id="ai_nfu" value="0" {if $tsConfig.c_newr_type !=}checked="checked" {/if} class="radio" />Solo en un post</label>
                </
dd>
            </
dl


Debajo agregar:

Código PHP:
<dl>
            <
hr />
            <
center><legend>Usuario recomendado</legend></center>
            <
dl>
                <
dt>
                    <
label for="ai_reco">Usuario recomendado</label>
                    <
br /><span>Ingrese el nombre del usuario. </span></dt>
                <
dd>
                    <
input type="text" name="reco" id="ai_reco" value="{$tsConfig.u_reco}/></dd>
            </
dl>
            <
dl>
                <
dt>
                    <
label for="ai_ireco">ID del usuario</label><br /><span>Ingrese el ID del UsuarioEJ1,5,8... </span>
                </
dt>
                <
dd>
                    <
input type="text" name="ireco" id="ai_ireco" value="{$tsConfig.u_reco_id}/>
                </
dd>
            </
dl



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: k_jupiter
Gracias