09-02-2021, 11:33 AM
4
¿Que hace el mod?
Extras:
(todo desde la administración)
Capturas
Ejecutar esta consulta
En c.admin.php --> inc --> class --> c.admin.php
Buscar:
Debajo agregar:
Buscar:
Después de:
Agregar:
Queda así:
En m.admin_configs.tpl --> themes --> default --> templates --> admin_mods --> m.admin_configs.tpl
Buscar:
Debajo agregar:
En main_header.tpl --> themes --> default --> templates --> sections --> main_header.tpl
Buscar:
Reemplazar por:
Buscar:
Reemplazar por:
Buscar:
Reemplazar por:
Creditos: Debes agradecer para ver el contenido...
- Cambiar logo de tu web
- Configurar el tamaño del logo
- Cambiar el título que sale a poner el mouse encima del logo
Extras:
- Cambiar Fondo De la web
- Cambiar Header de la web
(todo desde la administración)
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 esta consulta
Código PHP: ( Seleccionar Todo )
ALTER TABLE w_configuracion
ADD fondo_header tinytext NOT NULL,
ADD fondo_web tinytext NOT NULL,
ADD logo_url tinytext NOT NULL,
ADD logo_h tinytext NOT NULL,
ADD logo_w tinytext NOT NULL,
ADD logo_title tinytext NOT NULL;
En c.admin.php --> inc --> class --> c.admin.php
Buscar:
Código PHP: ( Seleccionar Todo )
'offline' => empty($_POST['offline']) ? 0 : 1,
Debajo agregar:
Código PHP: ( Seleccionar Todo )
'fondo_header' => $tsCore->setSecure($_POST['fondoheader']),
'fondo_web' => $tsCore->setSecure($_POST['fondoweb']),
'logo_url' => $tsCore->setSecure($_POST['logourl']),
'logo_h' => $tsCore->setSecure($_POST['logoh']),
'logo_w' => $tsCore->setSecure($_POST['logow']),
'logo_title' => $tsCore->setSecure($_POST['logotitle']),
Buscar:
Código PHP: ( Seleccionar Todo )
// UPDATE
if (db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE `w_configuracion` SET `titulo` = \'' . $c['titulo'] . '\', `slogan` = \'' .
$c['slogan'] . '\', `url` = \'' . $c['url'] . '\', `chat_id` = \'' . $c['chat'] .
Después de:
Código PHP: ( Seleccionar Todo )
. $c['chat'] .
Agregar:
Código PHP: ( Seleccionar Todo )
'\', `fondo_header` = \'' . $c['fondo_header'] . '\', `fondo_web` = \'' . $c['fondo_web'] . '\', `logo_url` = \'' . $c['logo_url'] . '\', `logo_h` = \'' . $c['logo_h'] . '\', `logo_w` = \'' . $c['logo_w'] . '\', `logo_title` = \'' . $c['logo_title'] .
Queda así:
Código PHP: ( Seleccionar Todo )
// UPDATE
if (db_exec(array(__FILE__, __LINE__), 'query', 'UPDATE `w_configuracion` SET `titulo` = \'' . $c['titulo'] . '\', `slogan` = \'' .
$c['slogan'] . '\', `url` = \'' . $c['url'] . '\', `chat_id` = \'' . $c['chat'] . '\', `fondo_header` = \'' . $c['fondo_header'] . '\', `fondo_web` = \'' . $c['fondo_web'] . '\', `logo_url` = \'' . $c['logo_url'] . '\', `logo_h` = \'' . $c['logo_h'] . '\', `logo_w` = \'' . $c['logo_w'] . '\', `logo_title` = \'' . $c['logo_title'] .
En m.admin_configs.tpl --> themes --> default --> templates --> admin_mods --> m.admin_configs.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
<dl>
<dt>
<label for="ai_slogan">Descripción del Sitio:</label>
</dt>
<dd>
<input type="text" id="ai_slogan" name="slogan" maxlength="32" value="{$tsConfig.slogan}" />
</dd>
</dl>
Debajo agregar:
Código PHP: ( Seleccionar Todo )
<dl>
<dt><label for="fondo_header">Fondo Del Header</label><br /><span>Introduce la URL de fondo que quieres para tu header.</span></dt>
<dd><input type="text" id="fondo_header" name="fondoheader" maxlength="300" value="{$tsConfig.fondo_header}" /></dd>
</dl>
<dl>
<dt><label for="fondo_web">Fondo De La Web</label><br /><span>Introduce la URL de fondo que quieres para tu web.</span></dt>
<dd><input type="text" id="fondo_web" name="fondoweb" maxlength="300" value="{$tsConfig.fondo_web}" /></dd>
</dl>
<hr />
<dl>
<dt><label for="logo_url">Logo</label><br /><span>Introduce la URL del fondo que quieres para tu web.</span></dt>
<dd><input type="text" id="logo_url" name="logourl" maxlength="300" value="{$tsConfig.logo_url}" /></dd>
</dl>
<dl>
<dt><label for="logo_h">Altura del logo</label><br /><span>Introduce la altura de tu logo en Pixeles.</span></dt>
<dd><input type="text" id="logo_h" name="logoh" style="width:10%" maxlength="4" value="{$tsConfig.logo_h}" /></dd>
</dl>
<dl>
<dt><label for="logo_w">Ancho del logo</label><br /><span>Introduce el ancho de tu logo en Pixeles.</span></dt>
<dd><input type="text" id="logo_w" name="logow" style="width:10%" maxlength="4" value="{$tsConfig.logo_w}" /></dd>
</dl>
<dl>
<dt><label for="logo_title">Titulo Del logo</label><br /><span>Introduce el título que quieres que salga al poner el mouse encima del logo.</span></dt>
<dd><input type="text" id="logo_title" name="logotitle" maxlength="300" value="{$tsConfig.logo_title}" /></dd>
</dl>
<hr />
En main_header.tpl --> themes --> default --> templates --> sections --> main_header.tpl
Buscar:
Código PHP: ( Seleccionar Todo )
<body>
Reemplazar por:
Código PHP: ( Seleccionar Todo )
<body style="background:url({$tsConfig.fondo_web});">
Buscar:
Código PHP: ( Seleccionar Todo )
<div id="head">
Reemplazar por:
Código PHP: ( Seleccionar Todo )
<div id="head" style="background:url({$tsConfig.fondo_header}) repeat-x top center #fff;">
Buscar:
Código PHP: ( Seleccionar Todo )
<a id="logoi" title="{$tsConfig.titulo}" href="{$tsConfig.url}">
Reemplazar por:
Código PHP: ( Seleccionar Todo )
<a id="logoi" style="background:url({$tsConfig.logo_url}) no-repeat; height: {$tsConfig.logo_h}px; width: {$tsConfig.logo_w}px;" title="{$tsConfig.logo_title}" href="{$tsConfig.url}">
Creditos: Debes agradecer para ver el contenido...