Forum Support

Shape 5
March 28, 2024, 05:05:39 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Bottom Row 1 - 3 modules (50%, 25%, 25%)?  (Read 388 times)
tcdllc
Jr. Member
**
Offline Offline

Posts: 54



« on: September 17, 2009, 09:31:36 PM »

What's the easiest way to utilize only 3 of the 4 modules but make the spacing 50%, 25% and 25% instead of it making all 3 33%?

Thanks in advance!!!
Logged
tcdllc
Jr. Member
**
Offline Offline

Posts: 54



« Reply #1 on: September 17, 2009, 09:37:20 PM »

uhggg. I should really look a little more before I ask.


I see all the code at the top of the index.php page.

Sorry about that!
Logged
tcdllc
Jr. Member
**
Offline Offline

Posts: 54



« Reply #2 on: September 17, 2009, 09:52:12 PM »

Well I guess it doesn't matter because I can't figure out what to add to make it the way I want it... any suggestions?
Logged
tcdllc
Jr. Member
**
Offline Offline

Posts: 54



« Reply #3 on: September 17, 2009, 09:59:02 PM »

Figured it out. All done in the index.php file

Stating around line 100. I added the % for all 4 positions
Code:
if ($this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="24.9%"; }
else if (!$this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="33.3%"; }
else if ($this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one_1="49.9%"; $bot_row_one_3="24.9%"; $bot_row_one_4="24.9%";  }
else if ($this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="33.3%"; }
else if ($this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="33.3%"; }
else if (!$this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if (!$this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if (!$this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if ($this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if ($this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if ($this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if (!$this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="100%"; }
else if (!$this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="100%"; }
else if (!$this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="100%"; }
else if ($this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="100%"; }


In the module position I added the new width name:
Code:
<?php if($this->countModules('bottom_row_one_2')) { ?>
<div id="s5_bottom_row_one_2_mod" style="width:<?php echo $bot_row_one_2 ?>">
<div id="s5_bottom_row_one_2_inner_mod"<?php if($this->countModules('bottom_row_one_3') || $this->countModules('bottom_row_one_4')) { ?> style="padding-right:14px"<?php ?>>
<jdoc:include type="modules" name="bottom_row_one_2" style="round_box" />
<div style="clear:both"></div>
</div>
</div>
<?php ?>
<?php if($this->countModules('bottom_row_one_3')) { ?>
<div id="s5_bottom_row_one_3_mod" style="width:<?php echo $bot_row_one_3 ?>">
<div id="s5_bottom_row_one_3_inner_mod"<?php if($this->countModules('bottom_row_one_4')) { ?> style="padding-right:14px"<?php ?>>
<jdoc:include type="modules" name="bottom_row_one_3" style="round_box" />
<div style="clear:both"></div>
</div>
</div>
<?php ?>
<?php if($this->countModules('bottom_row_one_4')) { ?>
<div id="s5_bottom_row_one_4_mod" style="width:<?php echo $bot_row_one_4 ?>">
<div id="s5_bottom_row_one_4_inner_mod">
<jdoc:include type="modules" name="bottom_row_one_4" style="round_box" />
<div style="clear:both"></div>
</div>
</div>
<?php ?>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.