efra (User)
Senior Boarder
Posts: 17
|
|
Right position 2007/10/07 18:30
|
Karma: 0  
|
Hi from spain, is cool your template, but i would like to show the right position because i need this position to show more components. i have change some codes... this is the original.. | Code: | <?php defined( '_VALID_MOS' ) or die
( 'Direct Access to this location is not allowed.' ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/
DTD/
xhtml1-transitional.dtd">
<?php $iso = split( '=', _ISO ); echo '
<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/
html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<?php if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/
html; <?php echo _ISO; ?>" />
<link href="<?php echo
$GLOBALS[mosConfig_live_site]; ?>/templates/<?php
echo $GLOBALS[cur_template]; ?>/NiftyLayout.css"
rel="stylesheet" type="text/css" />
<link href="<?php echo
$GLOBALS[mosConfig_live_site]; ?>/templates/<?php
echo $GLOBALS[cur_template]; ?>/niftyCorners.css"
rel="stylesheet" type="text/css" />
<script defer type="text/javascript" src="<?php
echo $GLOBALS[mosConfig_live_site];?>/templates/<?
php echo $GLOBALS[cur_template];?>/niftycube.js"><
/script>
<script defer type="text/javascript" src="<?php
echo $GLOBALS[mosConfig_live_site];?>/templates/<?
php echo $GLOBALS[cur_template];?>/niftyLayout.js"
></script>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="<?php
echo $GLOBALS[mosConfig_live_site];?>/templates/<?
php echo $GLOBALS[cur_template];?>/pngfix.js"></
script>
<![endif]-->
</head>
<body>
<div id="header">
<div id="logo"><img src="<?php echo
$GLOBALS[mosConfig_live_site];?>/templates/<?php
echo $GLOBALS[cur_template];?>/images/logo.png"
alt="JoomlaBear" width="384" height="73" border="
0" class="floatlogo" />
</div>
<div id="menu">
<ul id="nav">
<?php mosLoadModules ( 'top', -1); ?>
</ul>
</div>
</div>
<div id="container">
<div id="content">
<?php mosMainBody(); ?>
</div>
<div id="left">
<?php if (mosCountModules('user1',-2)) { ?>
<div id="first" >
<?php mosLoadModules ( 'user1' ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user2')) { ?>
<div id="second" >
<?php mosLoadModules ( 'user2',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user3')) { ?>
<div id="third" >
<?php mosLoadModules ( 'user3',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user4')) { ?>
<div id="fourth" >
<?php mosLoadModules ( 'user4',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user5')) { ?>
<div id="fith" >
<?php mosLoadModules ( 'user5',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user6')) { ?>
<div id="sixth" >
<?php mosLoadModules ( 'user6',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user7')) { ?>
<div id="seventh" >
<?php mosLoadModules ( 'user7',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user8')) { ?>
<div id="eighth" >
<?php mosLoadModules ( 'user8',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user9')) { ?>
<div id="ninth" >
<?php mosLoadModules ( 'user9',-2 ); ?>
</div>
<?php } ?>
</div>
<div id="footer">
<p> </p>
<?php mosLoadModules ( 'footer,-2 ); ?>
</div>
</div>
</div>
</body>
</html>
|
and this comes with the changes in the index.php
| Code: | <?php defined( '_VALID_MOS' ) or die
( 'Direct Access to this location is not allowed.' ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/
DTD/
xhtml1-transitional.dtd">
<?php $iso = split( '=', _ISO ); echo '
<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/
html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<?php if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/
html; <?php echo _ISO; ?>" />
<link href="<?php echo
$GLOBALS[mosConfig_live_site]; ?>/templates/<?php
echo $GLOBALS[cur_template]; ?>/NiftyLayout.css"
rel="stylesheet" type="text/css" />
<link href="<?php echo
$GLOBALS[mosConfig_live_site]; ?>/templates/<?php
echo $GLOBALS[cur_template]; ?>/niftyCorners.css"
rel="stylesheet" type="text/css" />
<script defer type="text/javascript" src="<?php
echo $GLOBALS[mosConfig_live_site];?>/templates/<?
php echo $GLOBALS[cur_template];?>/niftycube.js"><
/script>
<script defer type="text/javascript" src="<?php
echo $GLOBALS[mosConfig_live_site];?>/templates/<?
php echo $GLOBALS[cur_template];?>/niftyLayout.js"
></script>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="<?php
echo $GLOBALS[mosConfig_live_site];?>/templates/<?
php echo $GLOBALS[cur_template];?>/pngfix.js"></
script>
<![endif]-->
</head>
<body>
<div id="header">
<div id="logo"><img src="<?php echo
$GLOBALS[mosConfig_live_site];?>/templates/<?php
echo $GLOBALS[cur_template];?>/images/logo.png"
alt="JoomlaBear" width="384" height="73" border="
0" class="floatlogo" />
</div>
<div id="menu">
<ul id="nav">
<?php mosLoadModules ( 'top', -1); ?>
</ul>
</div>
</div>
<div id="container">
<div id="content">
<?php mosMainBody(); ?>
</div>
<div id="left">
<?php if (mosCountModules('user1',-2)) { ?>
<div id="first" >
<?php mosLoadModules ( 'user1' ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user2')) { ?>
<div id="second" >
<?php mosLoadModules ( 'user2',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user3')) { ?>
<div id="third" >
<?php mosLoadModules ( 'user3',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user4')) { ?>
<div id="fourth" >
<?php mosLoadModules ( 'user4',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user5')) { ?>
<div id="fith" >
<?php mosLoadModules ( 'user5',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user6')) { ?>
<div id="sixth" >
<?php mosLoadModules ( 'user6',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user7')) { ?>
<div id="seventh" >
<?php mosLoadModules ( 'user7',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user8')) { ?>
<div id="eighth" >
<?php mosLoadModules ( 'user8',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user9')) { ?>
<div id="ninth" >
<?php mosLoadModules ( 'user9',-2 ); ?>
</div>
<?php } ?>
</div>
<div id="right">
<?php if (mosCountModules('derecha1',-2)) { ?>
<div id="first" >
<?php mosLoadModules ( 'derecha1' ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('derecha2')) { ?>
<div id="second" >
<?php mosLoadModules ( 'derecha2',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('derecha3')) { ?>
<div id="third" >
<?php mosLoadModules ( 'derecha3',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('derecha4')) { ?>
<div id="fourth" >
<?php mosLoadModules ( 'derecha4',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('derecha5')) { ?>
<div id="fith" >
<?php mosLoadModules ( 'derecha5',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('derecha6')) { ?>
<div id="sixth" >
<?php mosLoadModules ( 'derecha6',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user7')) { ?>
<div id="seventh" >
<?php mosLoadModules ( 'derecha',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('derecha8')) { ?>
<div id="eighth" >
<?php mosLoadModules ( 'derecha8',-2 ); ?>
</div>
<?php } ?>
<?php if (mosCountModules('user9')) { ?>
<div id="ninth" >
<?php mosLoadModules ( 'derecha9',-2 ); ?>
</div>
<?php } ?>
</div>
<div id="footer">
<p> </p>
<?php mosLoadModules ( 'footer,-2 ); ?>
</div>
</div>
</div>
</body>
</html>
|
Derecha is right in spanish. i don´t know what i need to change more...
Best regards
Post edited by: Big Bear, at: 2007/10/07 23:50 Post edited by: Big Bear, at: 2007/10/07 23:51
|
|
|
|
The administrator has disabled public write access. |
|
|
|
Re:Right position 2007/10/08 00:00
|
Karma: 17  
|
|
Hi Efra,
Do you want a right column instead of a left column or do you want both?
Most of the important code for this change would be in layout.css.
If you want the left column on the right you would simply change the float to right in the CSS and change the content div to float left. Then adjust the padding/margins.
If you want an additional column the only change you would need to make to index.php is to add another DIV, something like: <div id="rightColumn"> <?php mosLoadModules ( 'right', -2 ); ?> </div>
Then in the stylesheet (layout.css) add a rule for this div: #rightColumn { float:right;}
You will want to add some padding/margin and you will need to adjust the width of the content div - subtracting whatever width you have applied to the new right column.
Thats the jist of it anyway.
Hope this helps - If not we're releasing a pro version of the bear themes with 3 column options, colours, etc very soon.
|
|
|
|
The administrator has disabled public write access. |
efra (User)
Senior Boarder
Posts: 17
|
|
Re:Right position 2007/10/08 08:01
|
Karma: 0  
|
|
Thanks a lot, when i coming back of my job i´ll try this...
Best regards
|
|
|
|
The administrator has disabled public write access. |
|
|
|
Re:Right position 2007/10/09 08:54
|
Karma: 17  
|
|
How did you get on?
|
|
|
|
The administrator has disabled public write access. |
efra (User)
Senior Boarder
Posts: 17
|
|
Re:Right position 2007/10/13 20:30
|
Karma: 0  
|
|
thanks a lot, i can see the right side, but i am trying to put the background same color and the same limits that in left side... i hope i can do it...
|
|
|
|
The administrator has disabled public write access. |
efra (User)
Senior Boarder
Posts: 17
|
|
Re:Right position 2007/10/13 20:44
|
Karma: 0  
|
and i have make a new one like banner possition, now is on... Can you hep me with the backgrounf of the right position?¿?¿? best regards
|
|
|
|
The administrator has disabled public write access. |
|