Re: Would like for content - left -right columns even


  • Topic Author
  • Visitor
  • Visitor
14 years 3 months ago - 14 years 3 months ago #2756 by
my bad... the 3 columns are the same height---now ive got a huge space between what looks like the carousel and user2...

any idea what has happened...

trey
Last edit: 14 years 3 months ago by .

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 3 months ago #2758 by milos
On my computer the left, right and center columns are now equal. The empty space is caused by an empty DIV just before the USER2 position.

Please Log in to join the conversation.


  • Topic Author
  • Visitor
  • Visitor
14 years 3 months ago #2759 by
this is my index.php..... what is the empty div? i highlighted the mod position we created before user2 which is the gamcenter above the carousel right now

<?php
/*
# "Hot Sportal" Joomla template, Version 1.0 - August, 2010
# Copyright (C) 2010 Hot Joomla Templates. All Rights Reserved.
# License: Copyrighted Commercial Software
# Author: Hot Joomla Templates
# Website: www.hotjoomlatemplates.com
*/
defined( '_JEXEC' ) or die( 'Restricted access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
$template_path = $this->baseurl.'/templates/'.$this->template;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns=" www.w3.org/1999/xhtml " xml:lang="language; ?>" lang="language; ?>" >
<head>
<jdoc:include type="head" />

<?php // module states

$showadvert[1] = $this->countModules('advert1');
$showadvert[2] = $this->countModules('advert2');
$showadvert[3] = $this->countModules('advert3');
$showadvert[4] = $this->countModules('advert4');

$showuser[5] = $this->countModules('user5');
$showuser[6] = $this->countModules('user6');
$showuser[7] = $this->countModules('user7');
$showuser[8] = $this->countModules('user8');

$showleft = $this->countModules('left');
$showleft2 = $this->countModules('left2');
$showright = $this->countModules('right');
$showright2 = $this->countModules('right2');
$showuser1 = $this->countModules('user1');
$showuser2 = $this->countModules('user2');
$showuser3 = $this->countModules('user3');
$showbreadcrumbs = $this->countModules('breadcrumbs');
$showtoolbar = $this->countModules('toolbar');
$showinset = $this->countModules('inset');

$uppermodules = 0;
for ($loop = 1; $loop <= 4; $loop += 1) {
if($showadvert[$loop]) { $uppermodules++; }
}

$bottommodules = 0;
for ($loop = 5; $loop <= 8; $loop += 1) {
if($showuser[$loop]) { $bottommodules++; }
}
?>

<?php // template parameters

// template layout
$templateWidth = $this->params->get("templateWidth", "980");
$templateWidthOutside = $templateWidth + 60;
if ($showleft) {
$columnLeftWidth = $this->params->get("columnLeftWidth", "285");
$columnLeftPad = 8;
}else{
$columnLeftWidth = 0;
$columnLeftPad = 0;
}
if ($showright) {
$columnRightWidth = $this->params->get("columnRightWidth", "285");
$columnRightPad = 8;
}else{
$columnRightWidth = 0;
$columnRightPad = 0;
}
$contentWidth = $templateWidth - $columnLeftWidth - $columnLeftPad - $columnRightWidth - $columnRightPad;
$headerMenuWidth = $templateWidth - 410;
$overallWidth = $templateWidth;
$roundedWidth = $overallWidth - 52;

// add-ons
$imageReflectionLoad = $this->params->get("imageReflectionLoad", "1");
$scrollToLoad = $this->params->get("scrollToLoad", "1");

// template style

// check if in parameters
$templateStyle = $this->params->get("templateStyle", "1");

// check if it cookie
if(isset($_COOKIE))
{
$templateStyle = $_COOKIE;
}

$templateStyleTest = "";

// check if in link
if (isset($_GET)) {
$templateStyleTest = $_GET;
}

if ($templateStyleTest) {
$templateStyle = $templateStyleTest;
$Month = 2592000 + time();
setcookie("Style", $templateStyle, $Month);
}

if($templateStyle) {

require(YOURBASEPATH."/styles/style".$templateStyle.".php");

}else{

$columnLayout = $this->params->get("columnLayout", "mlr");
$mainFontSize = $this->params->get("mainFontSize", "12");
$modulesFontSize = $this->params->get("modulesFontSize", "11");
$bodyText = $this->params->get("bodyText", "#6D6D6D");
$linkColor = $this->params->get("linkColor", "#000000");
$backgroundImage = $this->params->get("backgroundImage", "1");
$backgroundColor = $this->params->get("backgroundColor", "#ffffff");
$transparentImage = $this->params->get("transparentImage", "black");
$contentBg = $this->params->get("contentBg", "#ffffff");
$columnLeftColor = $this->params->get("columnLeftColor", "#616161");
$columnRightColor = $this->params->get("columnRightColor", "#c10000");
$topMenuText = $this->params->get("topMenuText", "#ffffff");
$topMenuHoverText = $this->params->get("topMenuHoverText", "#FFD200");
$topMenuSubText = $this->params->get("topMenuSubText", "#ffffff");
$headerMenu = $this->params->get("headerMenu", "#ffffff");
$mainMenuText = $this->params->get("mainMenuText", "#6D6D6D");
$mainMenuHoverText = $this->params->get("mainMenuHoverText", "#A24500");
$mainMenuTextActive = $this->params->get("mainMenuTextActive", "#A24500");
$componentHeadingText = $this->params->get("componentHeadingText", "#FF7200");
$headingText = $this->params->get("headingText", "#6D6D6D");
$headingHoverText = $this->params->get("headingHoverText", "#FF7200");
$columnFirstWord = $this->params->get("columnFirstWord", "#A24500");
$columnHeading = $this->params->get("columnHeading", "#A24500");
$columnBottomText = $this->params->get("columnBottomText", "#FFFFFF");
$columnText = $this->params->get("columnText", "#6D6D6D");
$bottomModulesBg = $this->params->get("bottomModulesBg", "#460000");
$bottomModulesText = $this->params->get("bottomModulesText", "#ffffff");
$bottomModulesHeading = $this->params->get("bottomModulesHeading", "#FF7200");
$carouselTextColor = $this->params->get("carouselTextColor", "#ffffff");
$carouselLinkColor = $this->params->get("carouselLinkColor", "#DCFF1A");
$scrollerTextColor = $this->params->get("scrollerTextColor", "#ffffff");
$scrollerHeadingColor = $this->params->get("scrollerHeadingColor", "#FFDE25");

}

?>

<link rel="stylesheet" href="<?php echo $template_path ?>/css/template_css.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $template_path ?>/css/layout.css" type="text/css" />
<style type="text/css">
<!--
<?php require(dirname(__FILE__).DS.'/css/template_css.php'); ?>
-->
</style>

<script type="text/javascript" src="<?php echo $template_path ?>/js/jquery.min.js"></script>
<script type="text/javascript">
jQuery.noConflict();
</script>

<!-- top menu -->
<script type="text/javascript">
function mainmenu(){
jQuery("#nav ul").css({display: "none"}); // Opera Fix
jQuery('#nav > li.active').prev().css('border-right', 'none'); // removing border from the previous button of the active button
jQuery("#nav li ul li#current").parent().css({ visibility: "visible" }).show(); // if active link is in sublevel, make this submenu visible
jQuery("#nav li#current ul > li").parent().css({ visibility: "visible" }).show();
jQuery("#nav > li").hover(function() {
jQuery("#nav li ul li#current").parent().css({ visibility: "hidden" }).hide();
jQuery("#nav li#current ul > li").parent().css({ visibility: "hidden" }).hide();
jQuery(this).find('ul:first').css({ visibility: "visible",display: "none" }).show();
},function(){
jQuery(this).find('ul:first').css({ visibility: "hidden" });
jQuery("#nav li ul li#current").parent().css({ visibility: "visible" }).show();
jQuery("#nav li#current ul > li").parent().css({ visibility: "visible" }).show();
});
}
jQuery(document).ready(function(){ mainmenu();});
</script>

<?php if($uppermodules or $bottommodules) { ?>
<!-- equal heights -->
<script type="text/javascript" src="<?php echo $template_path ?>/js/equal_heights.js"></script>
<script type="text/javascript">
window.onload = function() {
<?php if($bottommodules) { ?>
BoxHeights.equalise(<?php if($showuser[5]) { ?>'c1'<?php } if($showuser[6]) { ?>,'c2'<?php } if($showuser[7]) { ?>,'c3'<?php } if($showuser[8]) { ?>,'c4'<?php } ?>);
<?php } ?>
<?php if($uppermodules) { ?>
BoxHeights.equalise(<?php if($showadvert[1]) { ?>'c5'<?php } if($showadvert[2]) { ?>,'c6'<?php } if($showadvert[3]) { ?>,'c7'<?php } if($showadvert[4]) { ?>,'c8'<?php } ?>);
<?php } ?>
}
</script>
<?php } ?>

<?php if($imageReflectionLoad) { ?>
<!-- reflection -->
<script type="text/javascript" src="<?php echo $template_path ?>/js/reflection.js"></script>
<?php } ?>

<?php if($scrollToLoad) { ?>
<!-- scrollTo -->
<link rel="stylesheet" href="<?php echo $template_path ?>/css/scrollTo.css" type="text/css" />
<script type="text/javascript" src="<?php echo $template_path ?>/js/scrollTo.js"></script>
<?php } ?>

<!-- equal heights -->
<script type="text/javascript" src="<?php echo $template_path ?>/js/equal_heights.js"></script>
<script type="text/javascript">
window.onload = function() {
BoxHeights.equalise('content_wrap','column_left_top','column_right_top');
}
</script>

</head>
<body>
<div class="wrapper1"><div class="wrapper_outside">
<div class="header">
<div class="logo">
<a href="index.php"><img src="<?php echo $template_path ?>/images/logo_<?php if($transparentImage=="white") { echo "black"; }else{ echo "white"; } ?>.png" width="980" height="130" alt="joomla restaurant template" /></a>
</div>
<div class="header_menu">
<jdoc:include type="modules" name="user9" />
</div>
</div>
<?php if ($showuser3) { ?>
<div id="topmenu"><div id="topmenu_l"><div id="topmenu_r"><div id="topmenu_c">
<div id="topmenu_pad">
<div style="float:left"><jdoc:include type="modules" name="user3" style="none" /></div>
<div style="float:right; padding-top:5px;"><jdoc:include type="modules" name="user4" style="none" /></div>
</div>
</div></div></div></div>
<?php } ?>

<div class="gamecenter_wrap">
<div class="gamecenter">
<div style="padding-left:20px; padding-top:5px; padding-bottom: 5px; width:980px; height:100px; float:left"><jdoc:include type="modules" name="gamecenter" style="xhtml" />
<div class="clr"></div>
</div>
</div>


<?php if ($showuser1 or $showuser2) { ?>
<div class="gallery">
<div class="gallery_pad">
<jdoc:include type="modules" name="user1" style="xhtml" />
<?php if ($showuser2) { ?>
<div class="user2">
<jdoc:include type="modules" name="user2" style="xhtml" />
</div>
<?php } ?>
<div class="clr"></div>
</div>
</div>
<?php } ?>


<?php if ($uppermodules) { ?>
<div class="upper">
<?php if($showadvert[1]) { ?>
<div class="modulerow<?php echo $uppermodules; ?>"><div id="c5"<?php if (!$showadvert[2] && !$showadvert[3] && !$showadvert[4]) { ?> class="last"<?php } ?>><jdoc:include type="modules" name="advert1" style="hot" /><div class="clr"></div></div></div>
<?php } if($showadvert[2]) { ?>
<div class="modulerow<?php echo $uppermodules; ?>"><div id="c6"<?php if (!$showadvert[3] && !$showadvert[4]) { ?> class="last"<?php } ?>><jdoc:include type="modules" name="advert2" style="hot" /><div class="clr"></div></div></div>
<?php } if($showadvert[3]) { ?>
<div class="modulerow<?php echo $uppermodules; ?>"><div id="c7"<?php if (!$showadvert[4]) { ?> class="last"<?php } ?>><jdoc:include type="modules" name="advert3" style="hot" /><div class="clr"></div></div></div>
<?php } if($showadvert[4]) { ?>
<div class="modulerow<?php echo $uppermodules; ?>"><div id="c8" class="last"><jdoc:include type="modules" name="advert4" style="hot" /></div></div>
<?php } ?>
<div class="clr"></div>
</div>
<?php } ?>
<div class="main_area">
<?php
if($columnLayout=="mlr") {
require(dirname(__FILE__).DS.'/inc/col_main.php');
require(dirname(__FILE__).DS.'/inc/col_left.php');
require(dirname(__FILE__).DS.'/inc/col_right.php');
} else if($columnLayout=="lrm") {
require(dirname(__FILE__).DS.'/inc/col_left.php');
require(dirname(__FILE__).DS.'/inc/col_right.php');
require(dirname(__FILE__).DS.'/inc/col_main.php');
} else {
require(dirname(__FILE__).DS.'/inc/col_left.php');
require(dirname(__FILE__).DS.'/inc/col_main.php');
require(dirname(__FILE__).DS.'/inc/col_right.php');
}
?>
<div class="clr"></div>
</div>

<?php if ($bottommodules) { ?>
<div class="bottom">
<?php if($showuser[5]) { ?>
<div class="modulerow<?php echo $bottommodules; ?>"><div id="c1"<?php if (!$showuser[6] && !$showuser[7] && !$showuser[8]) { ?> class="last"<?php } ?>><jdoc:include type="modules" name="user5" style="hot" /><div class="clr"></div></div></div>
<?php } if($showuser[6]) { ?>
<div class="modulerow<?php echo $bottommodules; ?>"><div id="c2"<?php if (!$showuser[7] && !$showuser[8]) { ?> class="last"<?php } ?>><jdoc:include type="modules" name="user6" style="hot" /><div class="clr"></div></div></div>
<?php } if($showuser[7]) { ?>
<div class="modulerow<?php echo $bottommodules; ?>"><div id="c3"<?php if (!$showuser[8]) { ?> class="last"<?php } ?>><jdoc:include type="modules" name="user7" style="hot" /><div class="clr"></div></div></div>
<?php } if($showuser[8]) { ?>
<div class="modulerow<?php echo $bottommodules; ?>"><div id="c4" class="last"><jdoc:include type="modules" name="user8" style="hot" /></div></div>
<?php } ?>
<div class="clr"></div>
</div>
<?php } ?>

<div class="sponsors_wrap">
<div class="sponsors">
<jdoc:include type="modules" name="sponsors" style="xhtml" />
<div class="clr"></div>
</div>
</div>

<div class="footer_wrap">
<div class="footer">
<div class="footer_pad">
<jdoc:include type="modules" name="footer" />
</div>
</div>
<div class="footer2">
<div class="footer_pad">
<jdoc:include type="modules" name="bottom" style="none" />
</div>
</div>
</div>
<div style="clear:both"></div>
</div></div>
<jdoc:include type="modules" name="debug" style="none" />
<?php if($scrollToLoad) { ?>
<div id="message">
<a href="#top" id="top-link"><img src="<?php echo $template_path ?>/images/top.png" width="53" height="53" alt="top" /></a>
</div>
<?php } ?>
</body>
</html>

Please Log in to join the conversation.


  • Topic Author
  • Visitor
  • Visitor
14 years 3 months ago #2761 by
milos it looks like the hosting company blew a gasket and had issues on their end... looks like they had some issues for about 15 minute's... just brought the site back up and everything looks fine...

knock on wood...

thanks for your help as always!!!

trey

Please Log in to join the conversation.


  • Topic Author
  • Visitor
  • Visitor
14 years 2 months ago - 14 years 2 months ago #3033 by
milos can you take another look--- it still isnt ending equally: main content | left and right margins...

www.govenom.com

any idea what might be going on..ive viewed it on 3 different computers using explorer and firefox and they arent the same height...

thanks again
trey
Last edit: 14 years 2 months ago by .

Please Log in to join the conversation.


  • Topic Author
  • Visitor
  • Visitor
14 years 2 months ago #3107 by
milos can you help me...

thanks
trey

Please Log in to join the conversation.

Time to create page: 0.089 seconds
Powered by Kunena Forum