Foros del Web » Creando para Internet » Sistemas de gestión de contenidos » Joomla »

¿Cómo quitar lo de ampliar /reducir tamaño de letra?

Estas en el tema de ¿Cómo quitar lo de ampliar /reducir tamaño de letra? en el foro de Joomla en Foros del Web. Buenas: Utilizo la plantilla JA_Purity y en la cabecera aparecen las 3 famosas A para incrementar el tamaño de letra. Necesitaría saber como se quita. ...
  #1 (permalink)  
Antiguo 30/04/2009, 11:26
Avatar de umdraiga  
Fecha de Ingreso: diciembre-2001
Ubicación: Aragón España
Mensajes: 128
Antigüedad: 22 años, 4 meses
Puntos: 0
¿Cómo quitar lo de ampliar /reducir tamaño de letra?

Buenas: Utilizo la plantilla JA_Purity y en la cabecera aparecen las 3 famosas A para incrementar el tamaño de letra. Necesitaría saber como se quita. He quitado del css
ul.ja-usertools-font {
font-size: 11px;
position: absolute;
top: 8px;
right: 70px;
}

ul.ja-usertools-font li {
padding: 0;
margin: 0;
display: inline;
background: none;
}
ya que el codigo fuente llamaba a esa entrada

<ul class="ja-usertools-font">
<li><img style="cursor: pointer;" title="Aumentar fuente" src="http://web.umdraiga.com/templates/ja_purity/images/user-increase.png" alt="Aumentar fuente" id="ja-tool-increase" onclick="switchFontSize('ja_purity_ja_font','inc') ; return false;" /></li>
<li><img style="cursor: pointer;" title="Fuente predeterminada" src="http://web.umdraiga.com/templates/ja_purity/images/user-reset.png" alt="Fuente predeterminada" id="ja-tool-reset" onclick="switchFontSize('ja_purity_ja_font',3); return false;" /></li>
<li><img style="cursor: pointer;" title="Disminuir fuente" src="http://web.umdraiga.com/templates/ja_purity/images/user-decrease.png" alt="Disminuir fuente" id="ja-tool-decrease" onclick="switchFontSize('ja_purity_ja_font','dec') ; return false;" /></li>
</ul>
Y con eso desaparece de arriba pero me va a la izquierda de la página
¿Alguien podria ayudarme a quitar esas tres malditas A
Muchas gracias de antemano
__________________
http://www.umdraiga.com
Una causa justa :arriba:
  #2 (permalink)  
Antiguo 30/04/2009, 12:38
Avatar de pepebuitron  
Fecha de Ingreso: julio-2008
Ubicación: Veracruz, Ver. Mexico
Mensajes: 552
Antigüedad: 15 años, 9 meses
Puntos: 11
Respuesta: ¿Cómo quitar lo de ampliar /reducir tamaño de letra?

Amigo con desactivar el modulo tienes mas que suficiente para que no aparezca.
__________________
La fuerza mas grande del Universo es: La Voluntad Humana.
Página Web Principal
  #3 (permalink)  
Antiguo 30/04/2009, 13:27
Avatar de umdraiga  
Fecha de Ingreso: diciembre-2001
Ubicación: Aragón España
Mensajes: 128
Antigüedad: 22 años, 4 meses
Puntos: 0
Respuesta: ¿Cómo quitar lo de ampliar /reducir tamaño de letra?

Hola
¿qué módulo?
No veo ningún modulo que este ahora habilitado y que se encargue de eso. Ya lo he intentado
Sigo esperando esa ayuda.
Muchas gracias
__________________
http://www.umdraiga.com
Una causa justa :arriba:
  #4 (permalink)  
Antiguo 02/05/2009, 23:37
Avatar de hendrix  
Fecha de Ingreso: agosto-2003
Ubicación: chile lindo
Mensajes: 1.109
Antigüedad: 20 años, 8 meses
Puntos: 7
Respuesta: ¿Cómo quitar lo de ampliar /reducir tamaño de letra?

prueba el archivo ja_vars.php que debe estar en la carpeta de tu plantilla.

ahi se deberia configurar.

# BEGIN: TEMPLATE CONFIGURATIONS ##########
####################################
#support extra color themes
$ja_color_themes = array('green','blue'); // You can add more color array if needed
$ja_header_images_wide = array ('header1.jpg','header2.jpg','header3.jpg','header 4.jpg','header5.jpg');
$ja_header_images_narrow = array ('header1-n.jpg','header2-n.jpg','header3-n.jpg','header4-n.jpg','header5-n.jpg');
####################################
# Change the width of the template
$ja_width_default = 'wide'; // 'narrow': 800x600; 'wide': 1024x768
# default color
$ja_color_default = 'blue'; //blank for default, else pick one of in extra color themes $ja_color_themes
#font size default
$ja_font_size_default = 3;
# Enable users option
$ja_tool = 2; // 0: 0: disable all; 1: Screen tool; 2: font tool; 3: screen + font; 4: color tool; 5: screen + color; 6: font + color; 7: all;
# Choose your prefer Menu Type
$ja_menutype = 1; // 1: Split Menu; 2: Son of Suckerfish Dropdown Menu; 3: Moomenu
# END: TEMPLATE CONFIGURATIONS ##########

cuenta como te fue.
  #5 (permalink)  
Antiguo 03/05/2009, 02:42
Avatar de umdraiga  
Fecha de Ingreso: diciembre-2001
Ubicación: Aragón España
Mensajes: 128
Antigüedad: 22 años, 4 meses
Puntos: 0
Respuesta: ¿Cómo quitar lo de ampliar /reducir tamaño de letra?

Hola
En ja_vars.php sólo hay
********************************************
<?php
/**
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
* @license 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( '_JEXEC' ) or die( 'Restricted access' );

include_once (dirname(__FILE__).DS.'/ja_templatetools.php');

$tmpTools = new JA_Tools($this);

# Auto Collapse Divs Functions ##########
$ja_left = $this->countModules('left') || ($tmpTools->getParam(JA_TOOL_MENU) == 1);
$ja_right = $this->countModules('right');

if ( $ja_left && $ja_right ) {
$divid = '';
} elseif ( $ja_left ) {
$divid = '-fr';
} elseif ( $ja_right ) {
$divid = '-fl';
} else {
$divid = '-f';
}

$curidx = $tmpTools->getCurrentMenuIndex();
//if ($curidx) $curidx--;

//Calculate the width of template
$tmpWidth = '';
$tmpWrapMin = '100%';
switch ($tmpTools->getParam(JA_TOOL_SCREEN)){
case 'auto':
$tmpWidth = '97%';
break;
case 'fluid':
$tmpWidth = intval($tmpTools->getParam('ja_screen_width'));
$tmpWidth = $tmpWidth ? $tmpWidth.'%' : '90%';
break;
case 'fix':
$tmpWidth = intval($tmpTools->getParam('ja_screen_width'));
$tmpWrapMin = $tmpWidth ? ($tmpWidth+1).'px' : '751px';
$tmpWidth = $tmpWidth ? $tmpWidth.'px' : '750px';
break;
default:
$tmpWidth = intval($tmpTools->getParam(JA_TOOL_SCREEN));
$tmpWrapMin = $tmpWidth ? ($tmpWidth+1).'px' : '751px';
$tmpWidth = $tmpWidth ? $tmpWidth.'px' : '750px';
break;
}

?>
************************************************** *****
Hay otro ja_vars que quizás sea (no tengo ni idea)
************************************************** ****
<?php
define ('JA_TOOL_COLOR', 'ja_color');
define ('JA_TOOL_SCREEN', 'ja_screen');
define ('JA_TOOL_FONT', 'ja_font');
define ('JA_TOOL_MENU', 'ja_menu');

class JA_Tools {
var $_params_cookie = null; //Params will store in cookie for user select. Default: store all params
var $_tpl = null;
var $template = '';

function JA_Tools ($template, $_params_cookie=null) {
$this->_tpl = $template;
$this->template = $template->template;

if(!$_params_cookie) {
$this->_params_cookie = $this->_tpl->params->toArray();
} else {
foreach ($_params_cookie as $k) {
$this->_params_cookie[$k] = $this->_tpl->params->get($k);
}
}

$this->getUserSetting();
}

function getUserSetting(){
$exp = time() + 60*60*24*355;
if (isset($_COOKIE[$this->template.'_tpl']) && $_COOKIE[$this->template.'_tpl'] == $this->template){
foreach($this->_params_cookie as $k=>$v) {
$kc = $this->template."_".$k;
if (isset($_GET[$k])){
$v = $_GET[$k];
setcookie ($kc, $v, $exp, '/');
}else{
if (isset($_COOKIE[$kc])){
$v = $_COOKIE[$kc];
}
}
$this->setParam($k, $v);
}

}else{
setcookie ($this->template.'_tpl', $this->template, $exp, '/');
}
return $this;
}

function getParam ($param, $default='') {
if (isset($this->_params_cookie[$param])) {
return $this->_params_cookie[$param];
}
return $this->_tpl->params->get($param, $default);
}

function setParam ($param, $value) {
$this->_params_cookie[$param] = $value;
}

function getCurrentURL(){
$cururl = JRequest::getURI();
if(($pos = strpos($cururl, "index.php"))!== false){
$cururl = substr($cururl,$pos);
}
$cururl = JRoute::_($cururl, true, 0);
return $cururl;
}

function genToolMenu($_array_tools=null, $imgext = 'gif'){
if(!is_array($_array_tools)) $_array_tools = array($_array_tools);
if(!$_array_tools) $_array_tools = array_keys($this->_params_cookie);
if (in_array(JA_TOOL_FONT, $_array_tools)){//show font tools
?>
<ul class="ja-usertools-font">
<li><img style="cursor: pointer;" title="<?php echo JText::_('Increase font size');?>" src="<?php echo $this->templateurl();?>/images/user-increase.<?php echo $imgext;?>" alt="<?php echo JText::_('Increase font size');?>" id="ja-tool-increase" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>','inc'); return false;" /></li>
<li><img style="cursor: pointer;" title="<?php echo JText::_('Default font size');?>" src="<?php echo $this->templateurl();?>/images/user-reset.<?php echo $imgext;?>" alt="<?php echo JText::_('Default font size');?>" id="ja-tool-reset" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>',<?php echo $this->_tpl->params->get(JA_TOOL_FONT);?>); return false;" /></li>
<li><img style="cursor: pointer;" title="<?php echo JText::_('Decrease font size');?>" src="<?php echo $this->templateurl();?>/images/user-decrease.<?php echo $imgext;?>" alt="<?php echo JText::_('Decrease font size');?>" id="ja-tool-decrease" onclick="switchFontSize('<?php echo $this->template."_".JA_TOOL_FONT;?>','dec'); return false;" /></li>
</ul>
<script type="text/javascript">var CurrentFontSize=parseInt('<?php echo $this->getParam(JA_TOOL_FONT);?>');</script>
<?php
}
}

function getCurrentMenuIndex(){
$Itemid = JRequest::getInt( 'Itemid');
$database =& JFactory::getDBO();
$id = $Itemid;
$menutype = 'mainmenu';
$ordering = '0';
while (1){
$sql = "select parent, menutype, ordering from #__menu where id = $id limit 1";
$database->setQuery($sql);
$row = null;
$row = $database->loadObject();
if ($row) {
$menutype = $row->menutype;
$ordering = $row->ordering;
if ($row->parent > 0)
{
$id = $row->parent;
}else break;
}else break;
}

$user =& JFactory::getUser();
if (isset($user))
{
$aid = $user->get('aid', 0);
$sql = "SELECT count(*) FROM #__menu AS m"
. "\nWHERE menutype='". $menutype ."' AND published='1' AND access <= '$aid' AND parent=0 and ordering < $ordering";
} else {
$sql = "SELECT count(*) FROM #__menu AS m"
. "\nWHERE menutype='". $menutype ."' AND published='1' AND parent=0 and ordering < $ordering";
}
$database->setQuery($sql);

return $database->loadResult();
}

function calSpotlight ($spotlight, $totalwidth=100, $firstwidth=0) {

/********************************************
$spotlight = array ('position1', 'position2',...)
*********************************************/
$modules = array();
$modules_s = array();
foreach ($spotlight as $position) {
if( $this->_tpl->countModules ($position) ){
$modules_s[] = $position;
}
$modules[$position] = array('class'=>'-full', 'width'=>$totalwidth);
}

if (!count($modules_s)) return null;

if ($firstwidth) {
if (count($modules_s)>1) {
$width = round(($totalwidth-$firstwidth)/(count($modules_s)-1),1) . "%";
$firstwidth = $firstwidth . "%";
}else{
$firstwidth = $totalwidth . "%";
}
}else{
$width = round($totalwidth/(count($modules_s)),1) . "%";
$firstwidth = $width;
}

if (count ($modules_s) > 1){
$modules[$modules_s[0]]['class'] = "-left";
$modules[$modules_s[0]]['width'] = $firstwidth;
$modules[$modules_s[count ($modules_s) - 1]]['class'] = "-right";
$modules[$modules_s[count ($modules_s) - 1]]['width'] = $width;
for ($i=1; $i<count ($modules_s) - 1; $i++){
$modules[$modules_s[$i]]['class'] = "-center";
$modules[$modules_s[$i]]['width'] = $width;
}
}
return $modules;
}

function isIE6 () {
return $this->browser() == 'IE6';
}

function baseurl(){
return JURI::base();
}

function templateurl(){
return JURI::base()."templates/".$this->template;
}

function getRandomImage ($img_folder) {
$imglist=array();

mt_srand((double)microtime()*1000);

//use the directory class
$imgs = dir($img_folder);

//read all files from the directory, checks if are images and ads them to a list (see below how to display flash banners)
while ($file = $imgs->read()) {
if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
$imglist[] = $file;
}
closedir($imgs->handle);

if(!count($imglist)) return '';

//generate a random number between 0 and the number of images
$random = mt_rand(0, count($imglist)-1);
$image = $imglist[$random];

return $image;
}

function isFrontPage(){
return (JRequest::getCmd( 'view' ) == 'frontpage') ;
}

function sitename() {
$config = new JConfig();
return $config->sitename;
}

function browser () {
$agent = $_SERVER['HTTP_USER_AGENT'];
if ( strpos($agent, 'Gecko') )
{
if ( strpos($agent, 'Netscape') )
{
$browser = 'NS';
}
else if ( strpos($agent, 'Firefox') )
{
$browser = 'FF';
}
else
{
$browser = 'Moz';
}
}
else if ( strpos($agent, 'MSIE') && !preg_match('/opera/i',$agent) )
{
$msie='/msie\s(7\.[0-9]).*(win)/i';
if (preg_match($msie,$agent)) $browser = 'IE7';
else $browser = 'IE6';
}
else if ( preg_match('/opera/i',$agent) )
{
$browser = 'OPE';
}
else
{
$browser = 'Others';
}
return $browser;
}
}
?>
************************************************** **
No sé donde introducir el cambio
Muchas gracias amigo
__________________
http://www.umdraiga.com
Una causa justa :arriba:
  #6 (permalink)  
Antiguo 04/05/2009, 09:25
Avatar de hendrix  
Fecha de Ingreso: agosto-2003
Ubicación: chile lindo
Mensajes: 1.109
Antigüedad: 20 años, 8 meses
Puntos: 7
Respuesta: ¿Cómo quitar lo de ampliar /reducir tamaño de letra?

mira por aca, este debe ser el ja_vars.php link
  #7 (permalink)  
Antiguo 04/05/2009, 10:21
Avatar de pepebuitron  
Fecha de Ingreso: julio-2008
Ubicación: Veracruz, Ver. Mexico
Mensajes: 552
Antigüedad: 15 años, 9 meses
Puntos: 11
Respuesta: ¿Cómo quitar lo de ampliar /reducir tamaño de letra?

Amigos que no es mas facil cambiar la plantilla ????
__________________
La fuerza mas grande del Universo es: La Voluntad Humana.
Página Web Principal
  #8 (permalink)  
Antiguo 23/07/2012, 03:14
Avatar de hobnil  
Fecha de Ingreso: noviembre-2011
Ubicación: Madrid, Spain, Spain
Mensajes: 3
Antigüedad: 12 años, 5 meses
Puntos: 0
Respuesta: ¿Cómo quitar lo de ampliar /reducir tamaño de letra?

Amigos creo que se está complicando, eliminar el Fontsize es tan sencillo como ir al fichero index.php que está dentro de la plantilla bezz, lo abres con tu editor favorito, buscas el div: <div id="fontsize"></div> y lo eliminas.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 20:46.