Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 4:01 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 7 posts ] 
Author Message
Posted: Sun Sep 04, 2005 7:39 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 02, 2005 2:40 pm
Posts: 28
hi

i want to know can we possible to chage the size of the module which is diplay in front end of mambo website
ex: can we reduce the size of most download or latest one


Top
   
 
Posted: Sun Sep 04, 2005 9:02 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15089
Hi,

If I understand correct, you want to change height/width from modules? This is not done in the module itself, but in the template you are using on the site. The width is actually set there, through either div or table tags. Height depends on the data displayed in the module. Does this answer your question?

For the template, you need to look in:
/templates/your-default-template/index.php

_________________
Regards Robin


Top
   
 
Posted: Sun Sep 04, 2005 9:32 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 02, 2005 2:40 pm
Posts: 28
yes rob your right

well can we set default any size even the content big ? inside the module


Top
   
 
Posted: Mon Sep 05, 2005 6:10 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15089
Hi,

You would have to set this default size in the template again, with height/width settings for that module position.

_________________
Regards Robin


Top
   
 
Posted: Tue Sep 06, 2005 8:35 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 02, 2005 2:40 pm
Posts: 28
i wil try if i have any problem i get back to u


Top
   
 
Posted: Tue Jun 30, 2009 1:19 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Jul 11, 2008 5:24 pm
Posts: 58
HI, I am also having a same question.
I clicked on Extensions > Template Manager > chosed my template >>
clicked on edit HTML.

But in that, what I have to do ?
I want to reduce width of LEFT and RIGHT modules.
In my next post I am posting the data

_________________
Technology is calling ... Where are you ? | Hide yourself while surfing on Internet


Top
  E-mail  
 
Posted: Tue Jun 30, 2009 1:19 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Jul 11, 2008 5:24 pm
Posts: 58
Code:
<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); $style = ""; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="<?php echo _LANGUAGE; ?>">
<head>
   <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
   <meta http-equiv="Content-Style-Type" content="text/css" />
   <?php
if ( $my->id ) {
   initEditor();
}
mosShowHead();?>

<?php require_once($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/menus.php");?>
<?php require_once($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/js_template_config.php");?>
<?php
$user_positions = array('user4','user5','user6');
$user456width = getSplit($user_positions, 1);
$bottom_user_positions = array('user7','user8','user9');
$user789width = getSplit($bottom_user_positions, 1);
$style = getColumns();
?>

<link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate();?>/css/nav.css" media="screen" type="text/css" />
<link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate();?>/css/template_css.css" media="screen" type="text/css" />
<link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate();?>/js/slimbox/slimbox.css" media="screen" type="text/css" />



<!--[if IE]>
   <link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate();?>/css/ie.css" media="screen" type="text/css" />
<![endif]-->

<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate();?>/js/mootools.js"></script>
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate();?>/js/slimbox.js"></script>

<?php if ($cPanel) : ?>
<script type="text/javascript">
      window.onload = function(){
      //select the button
      var button1 = $('button');
      var content1 = $('cPanel');
      var content2 = $('inside');
      //The height transition we attach to 'cPanel'
      var b1Toggle = new Fx.Style('cPanel', 'height',{duration: <?php echo $cPanelSpeed; ?>});
      //add an onclick event listener to button1
      button1.addEvent('click', function(){
        //toggle height transition (hide-show)
        if(content1.getStyle('height').toInt() > 0){
          //hide
        b1Toggle.start(0);
        }else{
          //show
          b1Toggle.start(c1Height);
        }
        button1.toggleClass('button1_');
        return false;
      });
      //set css display:block for the contentElements
      content1.setStyle('display','block');
      //get the scrollSize of the contentElements
      var c1Height = content1.getSize().scrollSize.y;
      };
</script>
<?php endif; ?>
</head>


<body>
<div id="main-wrapper">      
   <div id="header_<?php echo $headerstyle; ?>">
      <div class="inside">
         <div id="headermod"><?php mosLoadModules ( 'newsflash',-2 ); ?></div>
         <h1><a href="<?php echo $mosConfig_live_site;?>" title="<?php echo $headline; ?>"><?php echo $headline; ?></a></h1>
         <h2><?php echo $slogan;?></h2>   
         </div>
      </div>
   <div class="menubar">
      <div id="navmenu">
         <?php mosSuckerFish ( 'mainmenu' ); ?>
         <?php if (mosCountModules ('user1') || mosCountModules ('user2') || mosCountModules('user3') ) { ?>
         <ul id="cPanel_button">
            <li class="panel"><a id="button" class="button"><?php echo $cPanelText; ?></a></li>
         </ul>
         <?php } ?>
      </div>
   </div>
   <?php if (mosCountModules ('user1') || mosCountModules ('user2') || mosCountModules('user3') ) { ?>
      <div id="cPanel" style="display:none;">
      <div class="top"></div>
               <!-- BEGIN PULLDOWN CONTENT -->
               <div style="height:<?php echo $cPanelheight;?>px;">
               <div class="inside">
               <table border="0" cellpadding="0" cellspacing="0" id="panel" align="center">
                    <tr>
                     <?php if(mosCountModules('user1')) : ?>
                      <td class="clm-a"><?php mosLoadModules ( 'user1',-2 ); ?></td>
                     <?php endif; ?>
                     <?php if(mosCountModules('user2')) : ?>
                      <td class="clm-b"><?php mosLoadModules ( 'user2',-2 ); ?></td>
                     <?php endif; ?>
                     <?php if(mosCountModules('user3')) : ?>
                      <td class="clm-c"><?php mosLoadModules ( 'user3',-2 ); ?></td>
                     <?php endif; ?>
                    </tr>
               </table>
               </div>
            </div>
               <!-- END PULLDOWN CONTENT -->
            <div class="bottom"></div>
      </div>
      <?php } ?>
      <div class="main-top"></div>
         <div id="mainbody">
      <?php if (mosCountModules ('user4') || mosCountModules ('user5') || mosCountModules('user6') ) { ?>
            <div id="showcase" style="margin-bottom: 18px;">
               <div class="module<?php echo $user456suffix; ?>">
                  <div>
                     <div>
                        <div>
            <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
            <tr>
            <?php if(mosCountModules('user4')) : ?>
            <td style="width: <?php echo $user456width; ?>;padding:5px; vertical-align:top;">
            <?php mosLoadModules ('user4', -2);?>
            </td>
            <?php endif; ?>
            <?php if(mosCountModules('user5')) : ?>
            <td style="width: <?php echo $user456width; ?>;padding:5px; vertical-align:top;">
            <?php mosLoadModules ('user5', -2);?>
            </td>
            <?php endif; ?>
            <?php if(mosCountModules('user6')) : ?>
            <td style="width: <?php echo $user456width; ?>;padding:5px; vertical-align:top;">
            <?php mosLoadModules ('user6', -2);?>
            </td>
            <?php endif; ?>
            </tr>
            </table>
               </div>
                  </div>
                     </div>
                        </div>
                           </div>
         <?php } ?>
            <?php if (mosCountModules('left')) { ?>
               <div id="leftcol">
                  <div class="left-inside">
                     <?php mosLoadModules ( 'left',-3 ); ?>
                  </div>
               </div>
            <?php } ?>
            <?php if (mosCountModules('right')) { ?>
               <div id="rightcol">
                  <div class="right-inside">
                     <?php mosLoadModules ( 'right',-3 ); ?>
                  </div>
               </div>
            <?php } ?>
            <?php if(mosCountModules('banner')) { ?>
            <div id="banner"><?php mosLoadModules ('banner', -1);?></div>
            <?php } ?>

            <div class="main<?php echo $style; ?>">
               <?php if (mosCountModules ('inset')) { ?>
                     <div id="inset">
                     <?php mosLoadModules ('inset', -3);?>
                     </div>
                  <?php } ?>
               <?php mosMainBody(); ?>
               <?php if (mosCountModules ('user7') || mosCountModules ('user8') || mosCountModules('user9') ) { ?>
               <div style="clear:both;"></div>
               <?php } ?>
            </div>
            <?php if (mosCountModules ('user7') || mosCountModules ('user8') || mosCountModules('user9') ) { ?>
                  <div id="bottom">
                     <div class="module<?php echo $user789suffix; ?>">
                        <div>
                           <div>
                              <div>
                  <table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
                  <tr>
                  <?php if(mosCountModules('user7')) : ?>
                  <td style="width: <?php echo $user789width; ?>;padding:5px; vertical-align:top;">
                  <?php mosLoadModules ('user7', -2);?>
                  </td>
                  <?php endif; ?>
                  <?php if(mosCountModules('user8')) : ?>
                  <td style="width: <?php echo $user789width; ?>;padding:5px; vertical-align:top;">
                  <?php mosLoadModules ('user8', -2);?>
                  </td>
                  <?php endif; ?>
                  <?php if(mosCountModules('user9')) : ?>
                  <td style="width: <?php echo $user789width; ?>;padding:5px; vertical-align:top;">
                  <?php mosLoadModules ('user9', -2);?>
                  </td>
                  <?php endif; ?>
                  </tr>
                  </table>
                     </div>
                        </div>
                           </div>
                              </div>
                                 </div>
               <?php } ?>
            <div style="clear:both;"></div>
         </div>
      <div id="footer"><?php mosLoadModules ('footer', -1);?></div>
   </div>
      <div class="copyright"></div>
      <?php require ($mosConfig_absolute_path."/templates/" . $mainframe->getTemplate() . "/js/template_css.php");?>
   <br />
</body>
</html>

_________________
Technology is calling ... Where are you ? | Hide yourself while surfing on Internet


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group