-
AuthorPosts
-
February 25, 2010 at 4:59 am #148999
Hi, I would like to add the module positions ‘USER 1 to USER 5’ from the KYANITE 2 template into the same position in the EDENITE template.
Who’s up to the task of walking me through that.
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
March 1, 2010 at 8:15 am #334173Hi you
open templates/ja_edenite/index.php file, find following code section:
<!-- BEGIN: MAIN NAVIGATION -->
<div id="ja-mainnavwrap"><div id="ja-mainnav">
<?php $jamenu->genMenu (0); ?>
</div><?php if ($this->countModules('user4')) { ?>
<div id="ja-search">
<jdoc:include type="modules" name="user4" style="raw" />
</div>
<?php } ?></div>
<?php if ($hasSubnav) { ?>
<div id="ja-subnav" class="clearfix">
<?php $jamenu->genMenu (1,1); ?>
</div>
<?php } ?>
<!-- END: MAIN NAVIGATION -->and add my code after this code:
<?php
$spotlight = array ('user1','user2','user3','user4','user5');
$botsl = $this->calSpotlight ($spotlight,100);
if( $botsl ) :
?>
<!-- TOP SPOTLIGHT -->
<div id="ja-topsl" class="wrap">
<div class="main">
<div class="inner clearfix">
<div class="ja-box-br"><div class="ja-box-bl"><div class="ja-box-tr"><div class="ja-box-tl clearfix"><?php if( $this->countModules('user1') ): ?>
<div class="ja-box column ja-box<?php echo $botsl['user1']['class']; ?>" style="width: <?php echo $botsl['user1']['width']; ?>;">
<jdoc:include type="modules" name="user1" style="JAxhtml" />
</div>
<?php endif; ?><?php if( $this->countModules('user2') ): ?>
<div class="ja-box column ja-box<?php echo $botsl['user2']['class']; ?>" style="width: <?php echo $botsl['user2']['width']; ?>;">
<jdoc:include type="modules" name="user2" style="JAxhtml" />
</div>
<?php endif; ?><?php if( $this->countModules('user3') ): ?>
<div class="ja-box column ja-box<?php echo $botsl['user3']['class']; ?>" style="width: <?php echo $botsl['user3']['width']; ?>;">
<jdoc:include type="modules" name="user3" style="JAxhtml" />
</div>
<?php endif; ?><?php if( $this->countModules('user4') ): ?>
<div class="ja-box column ja-box<?php echo $botsl['user4']['class']; ?>" style="width: <?php echo $botsl['user4']['width']; ?>;">
<jdoc:include type="modules" name="user4" style="JAxhtml" />
</div>
<?php endif; ?><?php if( $this->countModules('user5') ): ?>
<div class="ja-box column ja-box<?php echo $botsl['user5']['class']; ?>" style="width: <?php echo $botsl['user5']['width']; ?>;">
<jdoc:include type="modules" name="user5" style="JAxhtml" />
</div>
<?php endif; ?></div></div></div></div>
</div>
</div>
</div>
<!-- //TOP SPOTLIGHT -->
<?php endif; ?>March 3, 2010 at 4:26 am #334571<em>@JA Developer 166881 wrote:</em><blockquote>Hi you
open templates/ja_edenite/index.php file, find following code section:
<!-- BEGIN: MAIN NAVIGATION -->
<div id="ja-mainnavwrap"><div id="ja-mainnav">
<?php $jamenu->genMenu (0); ?>
</div><?php if ($this->countModules('user4')) { ?>
<div id="ja-search">
<jdoc:include type="modules" name="user4" style="raw" />
</div>
<?php } ?></div>
<?php if ($hasSubnav) { ?>
<div id="ja-subnav" class="clearfix">
<?php $jamenu->genMenu (1,1); ?>
</div>
<?php } ?>
<!-- END: MAIN NAVIGATION -->and add my code after this code:
<?php
$spotlight = array ('user1','user2','user3','user4','user5');
$botsl = $this->calSpotlight ($spotlight,100);
if( $botsl ) :
?>
<!-- TOP SPOTLIGHT -->
<div id="ja-topsl" class="wrap">
<div class="main">
<div class="inner clearfix">
<div class="ja-box-br"><div class="ja-box-bl"><div class="ja-box-tr"><div class="ja-box-tl clearfix"><?php if( $this->countModules('user1') ): ?>
<div class="ja-box column ja-box<?php echo $botsl['user1']['class']; ?>" style="width: <?php echo $botsl['user1']['width']; ?>;">
<jdoc:include type="modules" name="user1" style="JAxhtml" />
</div>
<?php endif; ?><?php if( $this->countModules('user2') ): ?>
<div class="ja-box column ja-box<?php echo $botsl['user2']['class']; ?>" style="width: <?php echo $botsl['user2']['width']; ?>;">
<jdoc:include type="modules" name="user2" style="JAxhtml" />
</div>
<?php endif; ?><?php if( $this->countModules('user3') ): ?>
<div class="ja-box column ja-box<?php echo $botsl['user3']['class']; ?>" style="width: <?php echo $botsl['user3']['width']; ?>;">
<jdoc:include type="modules" name="user3" style="JAxhtml" />
</div>
<?php endif; ?><?php if( $this->countModules('user4') ): ?>
<div class="ja-box column ja-box<?php echo $botsl['user4']['class']; ?>" style="width: <?php echo $botsl['user4']['width']; ?>;">
<jdoc:include type="modules" name="user4" style="JAxhtml" />
</div>
<?php endif; ?><?php if( $this->countModules('user5') ): ?>
<div class="ja-box column ja-box<?php echo $botsl['user5']['class']; ?>" style="width: <?php echo $botsl['user5']['width']; ?>;">
<jdoc:include type="modules" name="user5" style="JAxhtml" />
</div>
<?php endif; ?></div></div></div></div>
</div>
</div>
</div>
<!-- //TOP SPOTLIGHT -->
<?php endif; ?>
</blockquote>Hello, thank you for the code but I got this error (see attachment):
Is it because JAEdenite already has user1-5 module position names, and does it need to call any css styles?
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
March 4, 2010 at 4:16 am #334759Hi you
you backup templates/ja_edenite/index.php file and try to change templates/ja_edenite/index.php to my code:
[PHP]<?php
/*————————————————————————
# $JA#PRODUCT_NAME$ – Version $JA#VERSION$ – Licence Owner $JA#OWNER$
# ————————————————————————
# Copyright (C) 2004-2008 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
# @license – Copyrighted Commercial Software
# Author: J.O.O.M Solutions Co., Ltd
# Websites: http://www.joomlart.com – http://www.joomlancers.com
# This file may not be redistributed in whole or significant part.
————————————————————————-*/// no direct access
defined( ‘_JEXEC’ ) or die( ‘Restricted access’ );include_once (dirname(__FILE__).DS.’ja_vars_1.5.php’);
?>
<!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=”<?php echo $this->language; ?>” lang=”<?php echo $this->language; ?>”>
<head>
<jdoc:include type=”head” />
<?php JHTML::_(‘behavior.mootools’); ?><link rel=”stylesheet” href=”<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css” type=”text/css” />
<link rel=”stylesheet” href=”<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css” type=”text/css” />
<link rel=”stylesheet” href=”<?php echo $tmpTools->templateurl(); ?>/css/editor.css” type=”text/css” />
<link rel=”stylesheet” href=”<?php echo $tmpTools->templateurl(); ?>/css/template.css” type=”text/css” />
<link rel=”stylesheet” href=”<?php echo $tmpTools->templateurl(); ?>/css/typo.css” type=”text/css” /><script language=”javascript” type=”text/javascript” src=”<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js”></script>
<!– Menu head –>
<?php $jamenu->genMenuHead(); ?><link href=”<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo $tmpTools->getParam(JA_TOOL_COLOR); ?>.css” rel=”stylesheet” type=”text/css” />
<!–>
<style type=”text/css”>
.clearfix {height: 1%;}
img {border: none;}
</style>
<!–><!–>
<style type=”text/css”>
.clearfix {display: inline-block;}
</style>
<!–><?php if ($tmpTools->isIE6()) { ?>
<!–>
<script type=”text/javascript”>
var siteurl = ‘<?php echo $tmpTools->baseurl();?>’;
</script>
<!–>
<?php } ?><!–>
<link href=”<?php echo $tmpTools->templateurl(); ?>/css/ie8.css” rel=”stylesheet” type=”text/css” />
<!–>
</head><body id=”bd” class=”<?php echo $tmpTools->getParam(JA_TOOL_SCREEN);?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>” >
<a name=”Top” id=”Top”></a>
<ul class=”accessibility”>
<li><a href=”<?php echo $tmpTools->getCurrentURL();?>#ja-content” title=”<?php echo JText::_(“Skip to content”);?>”><?php echo JText::_(“Skip to content”);?></a></li>
<li><a href=”<?php echo $tmpTools->getCurrentURL();?>#ja-mainnav” title=”<?php echo JText::_(“Skip to main navigation”);?>”><?php echo JText::_(“Skip to main navigation”);?></a></li>
<li><a href=”<?php echo $tmpTools->getCurrentURL();?>#ja-col1″ title=”<?php echo JText::_(“Skip to 1st column”);?>”><?php echo JText::_(“Skip to 1st column”);?></a></li>
<li><a href=”<?php echo $tmpTools->getCurrentURL();?>#ja-col2″ title=”<?php echo JText::_(“Skip to 2nd column”);?>”><?php echo JText::_(“Skip to 2nd column”);?></a></li>
</ul><div id=”ja-wrapper”>
<!– BEGIN: HEADER –>
<div id=”ja-header” class=”clearfix”><?php
$siteName = $tmpTools->sitename();
if ($tmpTools->getParam(‘logoType’)==’image’) { ?>
<h1 class=”logo”>
<a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
</h1>
<?php } else {
$logoText = (trim($tmpTools->getParam(‘logoText’))==”) ? $config->sitename : $tmpTools->getParam(‘logoText’);
$sloganText = (trim($tmpTools->getParam(‘sloganText’))==”) ? JText::_(‘SITE SLOGAN’) : $tmpTools->getParam(‘sloganText’); ?>
<h1 class=”logo-text”>
<a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $logoText; ?></span></a>
</h1>
<p class=”site-slogan”><?php echo $sloganText;?></p>
<?php } ?><?php if ($this->countModules(‘top’)) { ?>
<div id=”ja-login”>
<jdoc:include type=”modules” name=”top” style=”raw” />
</div>
<?php } ?></div>
<!– END: HEADER –><!– BEGIN: MAIN NAVIGATION –>
<div id=”ja-mainnavwrap”><div id=”ja-mainnav”>
<?php $jamenu->genMenu (0); ?>
</div><?php if ($this->countModules(‘user4’)) { ?>
<div id=”ja-search”>
<jdoc:include type=”modules” name=”user4″ style=”raw” />
</div>
<?php } ?></div>
<?php if ($hasSubnav) { ?>
<div id=”ja-subnav” class=”clearfix”>
<?php $jamenu->genMenu (1,1); ?>
</div>
<?php } ?>
<!– END: MAIN NAVIGATION –><?php
$spotlight = array (‘user1′,’user2′,’user5′,’user6′,’user7′,’user8’);
$botsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9);
if( $botsl ) {
?>
<!– BEGIN: BOTTOM SPOTLIGHT –>
<div id=”ja-botsl” class=”clearfix”><?php if( $this->countModules(‘user1’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user1’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user1’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user1″ style=”xhtml” />
</div>
<?php } ?><?php if( $this->countModules(‘user2’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user2’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user2’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user2″ style=”xhtml” />
</div>
<?php } ?><?php if( $this->countModules(‘user5’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user5’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user5’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user5″ style=”xhtml” />
</div>
<?php } ?><?php if( $this->countModules(‘user6’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user6’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user6’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user6″ style=”xhtml” />
</div>
<?php } ?><?php if( $this->countModules(‘user7’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user7’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user7’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user7″ style=”xhtml” />
</div>
<?php } ?><?php if( $this->countModules(‘user8’) ) {?>
<div class=”ja-box<?php echo $botsl[‘user8’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user8’][‘width’]; ?>;”>
<jdoc:include type=”modules” name=”user8″ style=”xhtml” />
</div>
<?php } ?></div>
<!– END: BOTTOM SPOTLIGHT –>
<?php } ?><div id=”ja-containerwrap<?php echo $divid; ?>”>
<div id=”ja-container”>
<div id=”ja-container2″ class=”clearfix”><div id=”ja-mainbody” class=”clearfix”>
<!– BEGIN: CONTENT –>
<div id=”ja-content” class=”clearfix”><jdoc:include type=”message” />
<?php if($this->countModules(‘topsl’)) : ?>
<!– BEGIN: TOPSL –>
<div id=”ja-topsl”>
<jdoc:include type=”modules” name=”topsl” />
</div>
<!– END: TOPSL –>
<?php endif; ?><div id=”ja-current-content” class=”clearfix”>
<jdoc:include type=”component” />
<?php if($this->countModules(‘banner’)) : ?>
<!– BEGIN: BANNER –>
<div id=”ja-banner”>
<jdoc:include type=”modules” name=”banner” />
</div>
<!– END: BANNER –>
<?php endif; ?></div>
</div>
<!– END: CONTENT –><?php if ($ja_right) { ?>
<!– BEGIN: RIGHT COLUMN –>
<div id=”ja-col2″>
<jdoc:include type=”modules” name=”right” style=”xhtml” />
</div><br />
<!– END: RIGHT COLUMN –>
<?php } ?></div>
<?php if ($ja_left) { ?>
<!– BEGIN: LEFT COLUMN –>
<div id=”ja-col1″>
<jdoc:include type=”modules” name=”left” style=”xhtml” />
</div>
<!– END: LEFT COLUMN –>
<?php } ?></div></div></div>
<!– BEGIN: PATHWAY –>
<div id=”ja-pathway”>
<strong><?php echo JText::_(‘YOU ARE HERE:’);?> </strong><jdoc:include type=”module” name=”breadcrumbs” />
</div>
<!– END: PATHWAY –><!– BEGIN: FOOTER –>
<div id=”ja-footer” class=”clearfix”><jdoc:include type=”modules” name=”user3″ />
<jdoc:include type=”modules” name=”footer” /></div>
<!– END: FOOTER –></div>
<jdoc:include type=”modules” name=”debug” />
</body>
</html>
[/PHP]1 user says Thank You to JA Developer for this useful post
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 2 voices, and was last updated by Anonymous 14 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Copying part of Kyanite II into Edenite
Viewing 4 posts - 1 through 4 (of 4 total)