How to modify code to add right column? - Joomla! Forum - community, help and support
dear friends,
i bought template rockettheme. template name vividdesign. but, template doesn't have right column.
here website - http://www.visitcameronhighlands.com
i want add right column website 1 - http://www.petpeopleonline.com
here code below:
defined( '_valid_mos' ) or die( 'direct access location not allowed.' );
// needed seperate iso number language file constant _iso
$iso = split( '=', _iso );
// xml prolog
echo '';
?>
if ( $my->id ) {
initeditor();
}
mosshowhead();
?>
i bought template rockettheme. template name vividdesign. but, template doesn't have right column.
here website - http://www.visitcameronhighlands.com
i want add right column website 1 - http://www.petpeopleonline.com
here code below:
defined( '_valid_mos' ) or die( 'direct access location not allowed.' );
// needed seperate iso number language file constant _iso
$iso = split( '=', _iso );
// xml prolog
echo '';
?>
if ( $my->id ) {
initeditor();
}
mosshowhead();
?>
i not expert. have used tables in template works fine me. still have tried following code .. can try , see if works ofcourse after taking proper backup of template code.
the code :
** did not find footer in page...
revert if works..
the code :
code: select all
<?php
defined( '_valid_mos' ) or die( 'direct access location not allowed.' );
// needed seperate iso number language file constant _iso
$iso = split( '=', _iso );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!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">
<head>
<?php
if ( $my->id ) {
initeditor();
}
mosshowhead();
?>
<meta http-equiv="content-type" content="text/html; <?php echo _iso; ?>" />
<link href="<?php echo $mosconfig_live_site;?>/templates/<?php echo $mainframe->gettemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css"/>
</head>
<body class="mainbody">
<div id="center">
<div id="wrapper">
<div id="whitebg">
<div id="header">
<div id="header_frog"></div>
</div>
<div id="horizmenu">
<?php mospathway(); ?>
<?php mosloadmodules('user3', -1) ?>
</div>
<div id="padding">
<div id="divider">
<div id="sidebar">
<div id="sidebar_padding">
<?php mosloadmodules('left', -2); ?>
</div>
</div>
</div>
<div id="main">
<div id="main_padding">
<?php if (moscountmodules('user1')) { ?>
<?php mosloadmodules('user1', -2); ?>
<div id="horizsep"></div>
<?php } ?>
<?php mosmainbody(); ?>
<div class="clr"></div>
</div>
</div>
<div class="clr"></div>
</div>
//the code have added insert right coloums
<?php
if (moscountmodules( 'right' ) ){
?>
<div id="right_outer">
<div id="right_inner">
<?php mosloadmodules ( 'right', -2 ); ?>
</div>
</div>
<?php } ?>
//end of code
<div class="thinsep"></div>
<div id="footer">
<?php mosloadmodules('footer', -1); ?>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
** did not find footer in page...
revert if works..
Comments
Post a Comment