12-21-2021, 05:59 PM
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]
[img]Registrate o inicia tu sesión para ver este contenido[/img]
Ejecutar esta consulta
Código PHP: ( Seleccionar Todo )
ALTER TABLE u_miembros ADD user_fondog VARCHAR(500) NOT NULL AFTER user_email
En c.cuenta.php --> inc --> class --> c.cuenta.php
Buscar:
Código PHP: ( Seleccionar Todo )
'email' => $tsCore->setSecure($_POST['email'], true),
Debajo agregar:
Código PHP: ( Seleccionar Todo )
'fondog' => $tsCore->setSecure($_POST['fondog']),
Buscar:
Código PHP: ( Seleccionar Todo )
// ACTUALIZAR
if($save == 1) {
db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE u_miembros SET user_email = \''.$tsCore->setSecure($perfilData['email'], true).'\' WHERE user_id = \''.$tsUser->uid.'\'');
array_splice($perfilData, 0, 1); // HACK
Reemplazar por:
Código PHP: ( Seleccionar Todo )
// ACTUALIZAR
if($save == 1) {
db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE u_miembros SET user_email = \''.$tsCore->setSecure($perfilData['email'], true).'\', user_fondog = \''.$tsCore->setSecure($perfilData['fondog']).'\' WHERE user_id = \''.$tsUser->uid.'\'');
array_splice($perfilData, 0, 2); // HACK
En main_header.tpl --> themes --> default --> templates --> sections --> main_header.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
</head>
Arriba agregar:
Código PHP: ( Seleccionar Todo )
{if $tsUser->info.user_fondog != ''}
<style type="text/css">
/* {literal} */
body {
background-attachment: fixed;
/* {/literal} */background-image:url({$tsUser->info.user_fondog}) !important;/* {literal} */
}
/* {/literal} */
</style>
{/if}
En m.cuenta_cuenta.tpl --> themes --> default --> templates --> modules --> m.cuenta_cuenta.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
{if $tsConfig.c_allow_firma}
Arriba agregar:
Código PHP: ( Seleccionar Todo )
<div class="field">
<label for="fondo">Fondo:</label>
<input type="text" name="fondog" class="cuenta-save-1" value="{$tsUser->info.user_fondog}" size="60" />
</div>
Nota: Si tienen el mod Fondo de perfil y cabecera tipo facebook instalado hagan el siguiente paso.
Mod Fondo de perfil y cabecera tipo facebook
Debes agradecer para ver el contenido...
En t.perfil.tpl --> themes --> default --> templates --> t.perfil.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
<body style="background-image:url('{$tsInfo.p_fondo}');background-attachment: fixed; background-repeat: no-repeat;-webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover;background-position: center;">
Reemplazar por:
Código PHP: ( Seleccionar Todo )
{if $tsInfo.p_fondo != ''}
<style type="text/css">
/* {literal} */
body {
background-attachment: fixed;
/* {/literal} */background-image:url({$tsInfo.p_fondo}) !important;/* {literal} */
}
/* {/literal} */
</style>
{/if}
Creditos: Debes agradecer para ver el contenido...


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