how do we display the different font size fonts wi

Memovie Joomla Template support forum for Joomla 1.5 only.
GK User
Tue May 11, 2010 7:01 pm
how do we display the different font size fonts without having to click on "tools" at the top right hand corner.

For e.g., now, we have to click on "tools" then the font size option appears, can we have the font size option appearing there upon page load?

thanks!
User avatar
Fresh Boarder

GK User
Tue May 11, 2010 7:20 pm
You can move font-size switcher from tools popup to selected place in the template.
User avatar
Administrator

GK User
Tue May 11, 2010 7:23 pm
hi dziudek , appreciate your prompt reply, but do you mean put it at another module position?

I would need it to be the same position but it shouldnt have to be "clicked" to show the font size increase options, i need the font size increase option to show directly and not the "tools" link.

thanks
User avatar
Fresh Boarder

GK User
Tue May 11, 2010 7:31 pm
you have in layouts/blocks/usertools/ file tools.php - you can move this code to place which you want.

you can also make some replacement in the file layouts/default.php:
Code: Select all
      <?php if( (($this->_tpl->params->get('login_button') == 1) && $this->countModules('login')) || $register_bool || ($this->_tpl->params->get('tools_button') == 1) ) : ?>
      <div id="gk-tools">
         <div>
            <?php if($this->_tpl->params->get('login_button') == 1 && $this->countModules('login')) : ?>
            <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><?php echo ($userID != 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></a>
            <?php endif; ?>
            
            <?php if($register_bool) : ?>
            <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=register" id="btn_register"><?php echo JText::_('GK_REGISTER'); ?></a>
            <?php endif; ?>
            
            <?php if($this->_tpl->params->get('tools_button') == 1) : ?>
            <a href="#" id="btn_tools"><?php echo JText::_('GK_TOOLS'); ?></a>
            
            <div class="gk_hide">
               <div class="gk_popup-hide" id="popup_tools">
                  <?php $this->loadBlock('usertools/tools') ?>
               </div>
            </div>
            <?php endif; ?>
         </div>
      </div>
      <?php endif; ?>


to:
Code: Select all
      <?php if( (($this->_tpl->params->get('login_button') == 1) && $this->countModules('login')) || $register_bool || ($this->_tpl->params->get('tools_button') == 1) ) : ?>
      <div id="gk-tools">
         <div>
            <?php if($this->_tpl->params->get('login_button') == 1 && $this->countModules('login')) : ?>
            <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=login" id="btn_login"><?php echo ($userID != 0) ? JText::_('GK_LOGOUT') : JText::_('GK_LOGIN'); ?></a>
            <?php endif; ?>
            
            <?php if($register_bool) : ?>
            <a href="<?php echo $this->baseurl(); ?>index.php?option=com_user&view=register" id="btn_register"><?php echo JText::_('GK_REGISTER'); ?></a>
            <?php endif; ?>
            
            <?php if($this->_tpl->params->get('tools_button') == 1) : ?>
            
            <div class="gk_tools">
                 <?php $this->loadBlock('usertools/tools') ?>
            </div>
            <?php endif; ?>
         </div>
      </div>
      <?php endif; ?>


but you have also add styling for .gk_tools
User avatar
Administrator


cron