¡Bienvenido a PHPost!

Para participar en el foro, descargar complementos y acceder al chat, necesitas una cuenta activa. Usa un correo electrónico válido para completar la activación.

Crear cuenta gratis

¿Ya tienes cuenta? Inicia sesión aquí

Calificación:
  • 0 voto(s) - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5

COMPLEMENTOS Enlace al canal de YouTube en el perfil
#1

1
Mejor respuesta del mensaje Enlace al canal de YouTube en el perfilCapturas
[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.cuenta.php  --> inc --> class --> c.cuenta.php

Buscar:
$data['p_socials']['t'] = $data['p_socials'][1]; 


Debajo agregar:
$data['p_socials']['yt'] = $data['p_socials'][2]; 


Buscar:
$data['p_mensaje'] = $tsCore->setSecure($tsCore->parseBadWords($data['p_mensaje']), true);
        
$data['p_socials'] = unserialize($data['p_socials']);
        
$data['p_socials']['f'] = $data['p_socials'][0];
        
$data['p_socials']['t'] = $data['p_socials'][1]; 


Debajo agregar:
$data['p_socials']['yt'] = $data['p_socials'][2]; 


Buscar:
// EXTERNAS
                
$facebook $tsCore->setSecure($tsCore->parseBadWords($_POST['facebook']), true);
                
$twitter $tsCore->setSecure($tsCore->parseBadWords($_POST['twitter']), true); 


Debajo agregar:
$youtuber $tsCore->setSecure($tsCore->parseBadWords($_POST['youtuber']), true); 


Buscar:
'socials' => serialize(array($facebook,$twitter)), 


Después de:
,$twitter 


Agregar:
,$youtuber 


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

Buscar:    
<img src="{$tsConfig.default}/images/icons/twitter.png" width="16" height="16" style="margin:8px 5px 5px 160px; float:left" />
                                        <
strong>twitter.com/</strong><input type="text" value="{$tsPerfil.p_socials.t}maxlength="64" name="twitter" id="ft2" class="text cuenta-save-2" style="margin-top:3px; width:204px"><br /> 

                                                         
Debajo agregar:                            
<img src="{$tsConfig.default}/images/icons/ico_youtube.png" width="16" height="16" style="margin:8px 5px 5px 160px; float:left" />
                                        <
strong>youtube.com/</strong><input type="text" value="{$tsPerfil.p_socials.yt}maxlength="64" name="youtuber" id="ft2" class="text cuenta-save-2" style="margin-top:3px; width:204px"><br /> 

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

Buscar:                                        
{if $tsInfo.p_socials.f}
                            <
li style="float:right!important;" class="floatR">
                                <
a target="_blank" href="Registrate o inicia tu sesión para ver este contenido{$tsInfo.p_socials.f}title="Facebook"><img height="14" width="14" src="{$tsConfig.default}/images/icons/facebook.png"/></a>
                            </
li>
                            {/if} 
                                        
                                                              
Arriba agregar:                                    
{if $tsInfo.p_socials.yt}
                            <
li style="float:right!important;" class="floatR">
                                <
a target="_blank" href="Registrate o inicia tu sesión para ver este contenido{$tsInfo.p_socials.yt}title="Canal de YouTube"><img height="14" width="14" src="{$tsConfig.default}/images/icons/ico_youtube.png"/></a>
                            </
li>
                            {/if} 
                                
                                        

Y subir este icono a la carpeta icons con el nombre ico_youtube.png
                                                                                            
[img]Registrate o inicia tu sesión para ver este contenido[/img]                                        
                                        
                                        


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


Compartir en:

Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)