Editar Footer en Joomla!
- 22 de Enero de 2008
- Tutoriales Joomla! 1.0.X
- Escrito por Molok
En este tutorial se mostrara como quitar del footer el mensaje:
"Joomla! is Free Software released under the GNU/GPL License."
Esto es necesario en sitios de clientes que no quieren que se muestren links o mensajes de copyright que no sean de ellos.
Para poder cambiar este mensaje hay que editar el archivo version.php que se encuentra en la carpeta:
joomlaroot/includes/version.php
el codigo es:
<?php
/**
* @version $Id: version.php 1843 2006-01-15 19:41:35Z stingrey $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
/**
* Version information
* @package Joomla
*/
class joomlaVersion {
/** @var string Product */
var $PRODUCT = 'Joomla!';
/** @var int Main Release Level */
var $RELEASE = '1.0';
/** @var string Development Status */
var $DEV_STATUS = 'Stable';
/** @var int Sub Release Level */
var $DEV_LEVEL = '7';
/** @var int build Number */
var $BUILD = '$Revision: 1843 $';
/** @var string Codename */
var $CODENAME = 'Sunburst';
/** @var string Date */
var $RELDATE = '15-Jan-2006';
/** @var string Time */
var $RELTIME = '20:00';
/** @var string Timezone */
var $RELTZ = 'UTC';
/** @var string Copyright Text */
var $COPYRIGHT = 'Copyright (C) 2005 Open Source Matters. All rights reserved.';
/** @var string URL */
var $URL = 'Joomla! is Free Software released under the GNU/GPL License.';
/**
* @return string Long format version
*/
function getLongVersion() {
return $this->PRODUCT .' '. $this->RELEASE .'.'. $this->DEV_LEVEL .' '
. $this->DEV_STATUS
.' [ '.$this->CODENAME .' ] '. $this->RELDATE .' '
. $this->RELTIME .' '. $this->RELTZ;
}
/**
* @return string Short version format
*/
function getShortVersion() {
return $this->RELEASE .'.'. $this->DEV_LEVEL;
}
/**
* @return string Version suffix for help files
*/
function getHelpVersion() {
if ($this->RELEASE > '1.0') {
return '.' . str_replace( '.', '', $this->RELEASE );
} else {
return '';
}
}
}
$_VERSION = new joomlaVersion();
$version = $_VERSION->PRODUCT .' '. $_VERSION->RELEASE .'.'. $_VERSION->DEV_LEVEL .' '
. $_VERSION->DEV_STATUS
.' [ '.$_VERSION->CODENAME .' ] '. $_VERSION->RELDATE .' '
. $_VERSION->RELTIME .' '. $_VERSION->RELTZ;
?>
Lo que debemos editar es la linea 40:
/** @var string URL */
var $URL = 'Joomla! is Free Software released under the GNU/GPL License.';
Esto lo cambiamos por lo que queramos por ejemplo:
/** @var string URL */
var $URL = '©2006Mi sitio - Todos los derechos Reservados.';
Una vez que tengamos lo que queremos es hora de editar el archivo footer.php que se encuentra en el mismo directorio que el archivo version.php:
joomlaroot/includes/footer.php
el codigo es:
<?php
/**
* @version $Id: footer.php 85 2005-09-15 23:12:03Z eddieajau $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
global $_VERSION;
// NOTE - You may change this file to suit your site needs
?>
(C) <?php echo mosCurrentDate( '%Y' ) . ' ' . $GLOBALS['mosConfig_sitename'];?>
<?php echo $_VERSION->URL; ?>
Este archivo lo editariamos para que quede de la siguiente manera:
<?php
/**
* @version $Id: footer.php 85 2005-09-15 23:12:03Z eddieajau $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_VALID_MOS' ) or die( 'Restricted access' );
global $_VERSION;
// NOTE - You may change this file to suit your site needs
?>
<?php echo $_VERSION->URL; ?>
Nota: NUNCA quites el copyright del código de ningún archivo de Joomla! o de componentes, modulos, mambots, etc.
Eso es todo!
Espero que este pequeño tutorial les haya sido util.
Molok