Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • DreamWeb Friend
    #148731

    Hey everyone.

    I’m looking to add a new module position right above (inside) the content area.

    I’ve tried adding this

    <?php if($this->countModules(‘bannerimage’)) : ?>
    <jdoc:include type=”modules” name=”bannerimage” />
    <?php endif; ?>

    to various places inside of index.php but I always end up adding it above the content area, but also above the right/left columns. I’d like to add this position so that it doesn’t push down the menu I have published to the right column position.

    Any suggestions? I’d greatly apprecaite it, folks!

    David

    Anonymous Moderator
    #333759

    Hi DreamWeb

    Could you send me the code of templates/ja_nickel/index.php file so that i could have a closer look on the issue?

    DreamWeb Friend
    #333765

    Thanks for getting back to me. I’ve embedded the index.php as it currently stands on our website (we have modified it a little bit).

    David

    <?php
    /*------------------------------------------------------------------------
    # JA Nickel for Joomla 1.5.x - Version 1.0 - Licence Owner JA9208
    # ------------------------------------------------------------------------
    # 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');
    ?>

    <?php
    defined('_JEXEC') or die('Restricted access');
    JHTML::_('behavior.mootools');
    $this->baseurl = JURI::base();
    ?>

    <?php
    // no direct access
    defined( '_JEXEC' ) or die( 'Restricted index access' );
    define( 'YOURBASEPATH', dirname(__FILE__) );
    require( YOURBASEPATH.DS."styles.php");
    require( YOURBASEPATH.DS."rt_styleswitcher.php");
    JHTML::_( 'behavior.mootools' );
    global $template_real_width, $leftcolumn_width, $rightcolumn_width, $tstyle;
    global $js_compatibility, $menu_rows_per_column, $menu_columns, $menu_multicollevel;
    global $header_style, $body_style, $menu_name;
    global $f_enablejs, $f_enable_current, $f_subsoffset_top, $f_subsoffset_left, $f_vertical_animation;
    global $f_vertical_duration, $f_horizontal_animation, $f_horizontal_duration, $sm_enable_current;

    $live_site = $mainframe->getCfg('live_site');
    $template_path = $this->baseurl . '/templates/' . $this->template;

    $preset_style = $this->params->get("presetStyle", "style1");
    $header_style = $this->params->get("headerStyle", "style1");
    $body_style = $this->params->get("bodyStyle", "light");

    $frontpage_component = $this->params->get("enableFrontpage", "show");
    $enable_ie6warn = ($this->params->get("enableIe6warn", 0) == 0)?"false":"true";
    $font_family = $this->params->get("fontFamily", "optima");
    $enable_fontspans = ($this->params->get("enableFontspans", 1) == 0)?"false":"true";
    $enable_inputstyle = ($this->params->get("enableInputstyle", 1) == 0)?"false":"true";
    $inputs_exclusion = $this->params->get("inputsExclusion", "'.content_vote'");

    $template_width = $this->params->get("templateWidth", "982");
    $leftcolumn_width = $this->params->get("leftcolumnWidth", "260");
    $rightcolumn_width = $this->params->get("rightcolumnWidth", "260");
    $leftinset_width = $this->params->get("leftinsetWidth", "180");
    $rightinset_width = $this->params->get("rightinsetWidth", "180");
    $splitmenu_col = $this->params->get("splitmenuCol", "rightcol");
    $menu_name = $this->params->get("menuName", "mainmenu");
    $menu_type = $this->params->get("menuType", "fusion");
    $default_font = $this->params->get("defaultFont", "default");
    $show_logo = ($this->params->get("showLogo", 1) == 0)?"false":"true";
    $show_textsizer = ($this->params->get("showTextsizer", 1) == 0)?"false":"true";
    $show_date = ($this->params->get("showDate", 0) == 0)?"false":"true";
    $clientside_date = ($this->params->get("clientSideDate", 0) == 0)?"false":"true";
    $show_topbutton = ($this->params->get("showTopbutton", 1) == 0)?"false":"true";
    $show_copyright = ($this->params->get("showCopyright", 1) == 0)?"false":"true";
    $copyright_text = $this->params->get("copyrightText", "Copyright 2009, All Rights Reserved");
    $js_compatibility = ($this->params->get("jsCompatibility", 0) == 0)?"false":"true";

    // fusion menu
    $f_enablejs = ($this->params->get('roknavmenu_fusion_enable_js', 1) == 0)?"false":"true";
    $f_opacity = $this->params->get('roknavmenu_fusion_opacity', 1);
    $f_effect = $this->params->get('roknavmenu_fusion_effect', 'slidefade');
    $f_hidedelay = $this->params->get('roknavmenu_fusion_hidedelay', 500);
    $f_menu_animation = $this->params->get('roknavmenu_fusion_menu_animation', 'Quad.easeOut');
    $f_menu_duration = $this->params->get('roknavmenu_fusion_menu_duration', 400);
    $f_pill = $this->params->get('roknavmenu_fusion_pill', 0);
    $f_pill_animation = $this->params->get('roknavmenu_fusion_pill_animation', 'Back.easeOut');
    $f_pill_duration = $this->params->get('roknavmenu_fusion_pill_duration', 400 );
    $f_tweakInitial_x = $this->params->get('roknavmenu_fusion_tweakInitial_x', '0');
    $f_tweakInitial_y = $this->params->get('roknavmenu_fusion_tweakInitial_y', '0');
    $f_tweakSubsequent_x = $this->params->get('roknavmenu_fusion_tweakSubsequent_x', '0');
    $f_tweakSubsequent_y = $this->params->get('roknavmenu_fusion_tweakSubsequent_y', '0');
    $f_enable_current = ($this->params->get('roknavmenu_fusion_enable_current_id', 0) == 0)?"false":"true";

    // splitmenu
    $sm_enable_current = ($this->params->get('roknavmenu_splitmenu_enable_current_id', 0) == 0)?"false":"true";

    require(YOURBASEPATH . "/rt_styleloader.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/typo.css" type="text/css" />

    <script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js"></script>
    <?php if ($tmpTools->getParam('ja_cufon')) : ?>
    <script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/cufon/cufon.js"></script>
    <script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/cufon/Zrnic_400.font.js"></script>
    <script type="text/javascript">
    Cufon.replace('.componentheading, .contentheading, div.moduletable h3, div.moduletable_menu h3, div.moduletable_text h3,div.moduletable_highlight h3', { fontFamily: 'Zrnic' });
    </script>
    <?php endif; ?>
    <?php if ($tmpTools->getParam('usertool_modfunc')) : ?>
    <script language="javascript" type="text/javascript">
    var siteurl = '<?php echo $tmpTools->baseurl();?>';
    var tmplurl = '<?php echo $tmpTools->templateurl();?>';
    </script>

    <?php endif; ?>

    <!-- Menu head -->

    <?php if ($jamenu) { $jamenu->genMenuHead(); } ?>
    <link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/addons.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/ja.bulletin.css" type="text/css" />
    <script type="text/javascript">
    //<!]>
    </script>
    <link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo strtolower ($tmpTools->getParam(JA_TOOL_COLOR)); ?>.css" rel="stylesheet" type="text/css" />
    <?php if ($tmpTools->isIE()) { ?>
    <link href="<?php echo $tmpTools->templateurl(); ?>/css/ie.php" rel="stylesheet" type="text/css" />
    <link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo strtolower ($tmpTools->getParam(JA_TOOL_COLOR)); ?>-ie.php" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    window.addEvent ('load', makeTransBG);
    function makeTransBG() {
    makeTransBg($$('img'));
    }
    </script>
    <script type="text/javascript">
    var siteurl = '<?php echo $tmpTools->baseurl();?>';
    </script>
    <?php }?>

    <?php if ($tmpTools->isOP()) { ?>
    <link href="<?php echo $tmpTools->templateurl(); ?>/css/op.css" rel="stylesheet" type="text/css" />
    <?php } ?>
    <?php
    require(YOURBASEPATH . DS . "rt_utils.php");
    require(YOURBASEPATH . DS . "rt_head_includes.php");
    ?>
    </head>

    <body id="bd" class="<?php echo $tmpTools->getParam(JA_TOOL_LAYOUT);?> <?php echo $tmpTools->getParam(JA_TOOL_SCREEN);?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>">
    <a name="Top" id="Top"></a>
    <!-- HEADER -->
    <div id="ja-header" class="wrap">
    <div class="main 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'); ?>
    <div class="logo-text">
    <p class="site-slogan"><?php echo $sloganText;?></p>
    <h1>
    <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a>
    </h1>
    </div>
    <?php } ?>
    <?php if($this->countModules('ja-login')) : ?>
    <div id="ja-headtools" class="ja-headtool">
    <ul>
    <jdoc:include type="modules" name="ja-login" />
    </ul>
    </div>
    <?php endif; ?>
    </div>
    </div>
    <!-- //HEADER -->

    <!-- MAIN NAVIGATION -->
    <div id="ja-mainnav" class="wrap">
    <div class="main clearfix">
    <ul class="no-display">
    <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a></li>
    </ul>
    <div id="horiz-menu" class="<?php echo $mtype; ?>">
    <div id="horizmenu-surround">
    <?php echo $topnav; ?>
    </div>
    </div>

    <?php if ($this->countModules('user4')) { ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="user4" style="raw" />
    </div>
    <?php } ?>
    </div>
    </div>
    <?php if ($hasSubnav) : ?>
    <div id="ja-subnav" class="warp">
    <div class="main clearfix">
    <?php if ($jamenu) $jamenu->genMenu (1,1); ?>
    </div>
    </div>
    <?php endif; ?>
    <!-- //MAIN NAVIGATION -->

    <div id="ja-container<?php echo $divid; ?>" class="wrap">
    <div class="main clearfix">
    <?php if ( $ja_left) { ?>
    <!-- Left COLUMN -->
    <div id="ja-col1">
    <div class="ja-innerpad">
    <jdoc:include type="modules" name="left" style="jamodule" />
    </div>
    </div>
    <!-- //Left COLUMN -->
    <?php } ?>
    <!-- CONTENT -->
    <div id="ja-content">
    <div class="main clearfix">
    <jdoc:include type="message" />
    <?php if ($this->countModules('ja-slideshow') ) { ?>
    <!-- TOP SPOTLIGHT -->
    <div id="ja-topsl" class="wrap">
    <div class="main">
    <div class="inner clearfix">
    <div id="ja-slideshow">
    <jdoc:include type="modules" name="ja-slideshow" style="raw" />
    </div>
    </div>
    </div>
    </div>
    <!-- //TOP SPOTLIGHT -->
    <?php } ?>
    <div id="ja-current-content" class="clearfix">
    <jdoc:include type="component" />
    </div>
    <?php if ( $ja_right): ?>
    <div id="ja-col2">
    <jdoc:include type="modules" name="right" style="jamodule" />
    </div>
    <?php endif; ?>
    </div>
    <!-- //CONTENT -->
    </div></div>
    </div>
    <!-- PATHWAY -->
    <div id="ja-pathway" class="wrap">
    <div class="main">
    <div class="ja-pathway-text">
    <strong>You are here:</strong><jdoc:include type="module" name="breadcrumbs" />
    </div>
    </div>
    </div>
    <!-- //PATHWAY -->
    <?php
    $spotlight = array ('user6','user8','user9');
    $bots2 = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9);
    if( $bots2 ) {
    ?>
    <!-- BOTTOM SPOTLIGHT 2-->
    <div id="ja-botsl1" class="wrap">
    <div class="main clearfix">

    <?php if( $this->countModules('user6') ) {?>
    <div class="ja-box<?php echo $bots2['user6']['class']; ?>" style="width: <?php echo $bots2['user6']['width']; ?>;">
    <jdoc:include type="modules" name="user6" style="jamodule" />
    </div>
    <?php } ?>

    <?php if( $this->countModules('user8') ) {?>
    <div class="ja-box<?php echo $bots2['user8']['class']; ?>" style="width: <?php echo $bots2['user8']['width']; ?>;">
    <jdoc:include type="modules" name="user8" style="jamodule" />
    </div>
    <?php } ?>

    <?php if( $this->countModules('user9') ) {?>
    <div class="ja-box<?php echo $bots2['user9']['class']; ?>" style="width: <?php echo $bots2['user9']['width']; ?>;">
    <jdoc:include type="modules" name="user9" style="jamodule" />
    </div>
    <?php } ?>
    </div></div>
    <!-- //BOTTOM SPOTLIGHT 2 -->
    <?php } ?>
    <?php
    $spotlight = array ('user1','user2','user7');
    $botsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9);
    if( $botsl ) {
    ?>
    <!-- BOTTOM SPOTLIGHT 1-->
    <div id="ja-botsl2" class="wrap">
    <div class="main 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="jamodule" />
    </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="jamodule" />
    </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="jamodule" />
    </div>
    <?php } ?>
    </div></div>
    <!-- //BOTTOM SPOTLIGHT 1 -->
    <?php } ?>
    <!-- FOOTER -->
    <div id="ja-footer" class="wrap">
    <div class="main clearfix">

    <div class="salogo">
    <img src="<?php echo $tmpTools->templateurl(); ?>/images/<?php echo strtolower ($tmpTools->getParam(JA_TOOL_COLOR)); ?>/salogo-small.png" alt="SA Logo" />
    </div> <div class="ja-info">
    <jdoc:include type="modules" name="user3" />
    <jdoc:include type="modules" name="footer" />
    </div>
    </div>
    </div>
    <!-- //FOOTER -->

    <jdoc:include type="modules" name="debug" />
    <script type="text/javascript">
    addSpanToTitle();
    jaAddFirstItemToTopmenu();
    //jaRemoveLastContentSeparator();
    //jaRemoveLastTrBg();
    //moveReadmore();
    //addIEHover();
    //slideshowOnWalk ();
    //apply png ie6 main background
    </script>
    </body>

    </html>

    Anonymous Moderator
    #333942

    Hi DreamWeb

    I am sorry but i coud not find a problem with your index.php file. I think it is right

    For the reason, please send me your live url, admin account via PM so that i could have a closer look on the issue

Viewing 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