¡Bienvenido! ¿Aún no estás registrado?, deberás registrarte antes de poder usar el Chat, Comentar y Descargar en el Foro. Usa un email válido para la activación.
Calificación:
  • 0 voto(s) - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5

COMPLEMENTOS Estados de Ánimo (Act 1.3)
#1

1
Mejor respuesta del mensaje Estados de Ánimo (Act 1.3)
[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

ALTER TABLE u_perfil ADD `user_animoint(11


En datos.php --> inc --> ext --> datos.php

Buscar:

'Comida basura',
        ), 

Debajo agregar:

/* Estados de Animos by LuchoPHP */
        
'animo' => array(
        
'Otro',
        
' <img src="Registrate o inicia tu sesión para ver este contenido"> Alegre ',
        
' <img src="Registrate o inicia tu sesión para ver este contenido"> Cansado/a',
        
' <img src="Registrate o inicia tu sesión para ver este contenido"> Enamorado/a ',
        
' <img src="Registrate o inicia tu sesión para ver este contenido"> Triste',
        
' <img src="Registrate o inicia tu sesión para ver este contenido"> Enfermo/a ',
        
' <img src="Registrate o inicia tu sesión para ver este contenido"> Enérgico/a ',
        
' <img src="Registrate o inicia tu sesión para ver este contenido"> Jugando/a ',
        
' <img src="Registrate o inicia tu sesión para ver este contenido"> Enojado/a',
        
' <img src="Registrate o inicia tu sesión para ver este contenido"> Música ',
        
'<img src="Registrate o inicia tu sesión para ver este contenido"> Borracho/a',
        
' <img src="Registrate o inicia tu sesión para ver este contenido"> Descansando/a ',
        
'<img src="Registrate o inicia tu sesión para ver este contenido"> Loco/a',
        
' <img src="Registrate o inicia tu sesión para ver este contenido"> Feliz',
        ), 


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

Buscar:

// BLOQUEADO 


Arriba agregar:

// Estados de Animo by LuchoPHP
        
$query db_exec(array(__FILE____LINE__), 'query''SELECT user_animo FROM u_perfil WHERE user_id = \''.(int)$user_id.'\' LIMIT 1');
        
$data['u_animo'] = db_exec('fetch_assoc'$query); 


Buscar:

'firma' => $tsCore->setSecure($tsCore->parseBadWords($_POST['firma']), true), 


Debajo agregar:

'animo' => $tsCore->setSecure($_POST['animo']), 


En perfil.php --> inc --> php --> perfil.php

Buscar:

$tsInfo $tsCuenta->loadHeadInfo($usuario['user_id']); 


Debajo agregar:

// Mod Estados de Animo By LuchoPHP
    
include('../ext/datos.php');
    
$smarty->assign("tsPData",$tsPerfilData);
    
$tsInfo['uid'] = $user_id


En m.cuenta_cuenta.tpl --> themes --> default --> templates --> modules --> m.cuenta_cuenta.tpl

Buscar:

<input type="text" style="display: none" value="{$tsUser->info.user_email}maxlength="35" name="email" id="email" class="text cuenta-save-1 input-hidden-email">
                                    </
div


Debajo agregar:

{*Animos por LuchoPHP*}
                                    <
div class="field">
                                        <
label for="animo">Tu Ánimo es: </label>
                                        <
select class="cuenta-save-1" name="animo" id="animo" >
                                            {foreach 
from=$tsPData.animo key=val item=text}
                                                <
option value="{$val}{if $tsPerfil.user_animo == $val}selected="selected"{/if}>{$text}</option>
                                            {/foreach}
                                        </
select>
                                    </
div


En m.perfil_headinfo.tpl --> themes --> default --> templates --> modules --> m.perfil_headinfo.tpl

Buscar:

<li>
                                    <
strong>{$tsInfo.stats.user_comentarios}</strong>
                                    <
span>Comentarios</span>
                                </
li


Debajo agregar:

{if $tsInfo.u_animo.user_animo}
                                <
li>
                                    <
strong>{$tsPData.animo[$tsInfo.u_animo.user_animo]}</strong>
                                    <
span>Estado</span>
                                </
li>
                                {/if} 



Creditos: Debes agradecer para ver el contenido...
Responder


Compartir en:

Salto de foro:


Usuarios navegando en este tema: