09-07-2022, 11:37 AM
1
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]
En c.cuenta.php --> inc --> class --> c.cuenta.php
Buscar:
Código PHP: ( Seleccionar Todo )
$data['p_socials']['t'] = $data['p_socials'][1];
Debajo agregar:
Código PHP: ( Seleccionar Todo )
$data['p_socials']['yt'] = $data['p_socials'][2];
Buscar:
Código PHP: ( Seleccionar Todo )
$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:
Código PHP: ( Seleccionar Todo )
$data['p_socials']['yt'] = $data['p_socials'][2];
Buscar:
Código PHP: ( Seleccionar Todo )
// EXTERNAS
$facebook = $tsCore->setSecure($tsCore->parseBadWords($_POST['facebook']), true);
$twitter = $tsCore->setSecure($tsCore->parseBadWords($_POST['twitter']), true);
Debajo agregar:
Código PHP: ( Seleccionar Todo )
$youtuber = $tsCore->setSecure($tsCore->parseBadWords($_POST['youtuber']), true);
Buscar:
Código PHP: ( Seleccionar Todo )
'socials' => serialize(array($facebook,$twitter)),
Después de:
Código PHP: ( Seleccionar Todo )
,$twitter
Agregar:
Código PHP: ( Seleccionar Todo )
,$youtuber
En m.cuenta_perfil_me.tpl --> themes --> default --> templates --> modules --> m.cuenta_perfil_me.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
<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:
Código PHP: ( Seleccionar Todo )
<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:
Código PHP: ( Seleccionar Todo )
{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:
Código PHP: ( Seleccionar Todo )
{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...


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