Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • peterca Friend
    #117462

    Hi

    I downloaded the (I presume) latest 3 colum version which would meet my needs however ithas/is messed up and I’m not skilled enough to fix it. :-[

    1. Notice: Undefined variable: ja_divwidth in /var/www/html/templates/ja_zibal/index.php on line 53

    If I’m correct thats because its a blank line??

    2. Followed the instructions for the sucker fish menu, nothing drops down? It will change to the main link target however but no sub menu.

    4. The Logo image (Top left) is missing just a red x with the site name.

    The only bits I have messed with are the size ‘wide’ and the menu ‘2’ not touched anything else.

    Can anyone help?


    Regards
    PeterC

    Khanh Le Moderator
    #211182

    Please try to uninstall the template, redownload and reinstall it. If the problem is not fixed, please post your url and your template index.php here.

    peterca Friend
    #211185

    Already re-installed template the images bit seems fixed now I’d like a slightly darker blue colour but beggars cant be choosers. I will set the site to live for a couple of hours.

    If I choose menu option 3 (Transmenu) I get loads of errors 🙁 I just want the drop down submenus.

    <?php
    /*————————————————————————
    # JA Zibal 1.0 – Oct, 2006
    # ————————————————————————
    # Copyright (C) 2004-2006 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.comhttp://www.joomlancers.com
    ————————————————————————-*/

    defined( ‘_VALID_MOS’ ) or die( ‘Restricted access’ );
    $iso = split( ‘=’, _ISO );
    /*echo “<?xml version=”1.0″ encoding=”‘. $iso[1] .'”?’ .’>”;*/

    # TEMPLATE CONFIGURATIONS ##########
    ####################################
    #support extra color themes
    $ja_color_themes = array(‘default’,’black’,’cyan’,’green’,’red’); // You can add more color array if needed
    #Header images: you can add more subheader images. Please refer to User Guide for full information
    $ja_header_images = array(‘sh01.jpg’,’sh02.jpg’,’sh03.jpg’); // Each sub header image will be assigned to each menu
    ####################################
    # Change the width of the template
    $ja_width_default = ‘wide’; // ‘narrow’: 800×600; ‘wide’: widescreen
    # default color
    $ja_color_default = ‘blue’; //blank for default, else pick one of in extra color themes $ja_color_themes
    #font size default
    $ja_font_size_default = 3;
    # Enable users option
    $ja_tool = 1; // 1: disable all; 1: disable color, enable screen; 2: enable color, disable screen; 3: enable all.
    # Choose your prefer Menu Type
    $ja_menutype = 2; // 1: Split Menu; 2: Son of Suckerfish Dropdown Menu; 3: Transmenu;
    # END: TEMPLATE CONFIGURATIONS ##########

    # Define the template path ##########
    $ja_template_path = $mosConfig_live_site.’/templates/ja_zibal’;
    $ja_template_absolute_path = $mosConfig_absolute_path.’/templates/ja_zibal’;
    include ($ja_template_absolute_path.”/ja_templatetools.php”);

    $ja_headerimg = $ja_header_images [getCurrentMenuIndex() % count($ja_header_images)];
    if (!is_file(“$ja_template_absolute_path/images/$ja_color/$ja_headerimg”)) $ja_headerimg = $ja_header_images [0];

    $topnav = “”;
    $subnav = “”;
    if ($ja_menutype == 1) {
    require($ja_template_absolute_path.”/ja_splitmenu.php”);
    $topnav = ja_topNav(‘mainmenu’, array(‘default’));
    $subnav = ja_subNav(‘mainmenu’);
    }

    # Auto Collapse Divs Functions ##########
    $ja_right = ( mosCountModules(‘right’) ) || ( mosCountModules(‘top’) );
    $ja_left = mosCountModules(‘left’) || ( $subnav );
    $ja_divwidth;

    if ( $ja_right && $ja_left ) {
    $divid = ‘content’;
    $divwrapid = ‘main’;
    } elseif ( $ja_left ) {
    $divid = ‘content-full-right’;
    $divwrapid = ‘main-full-right’;
    } elseif ( $ja_right ) {
    $divid = ‘content-full-left’;
    $divwrapid = ‘main-full-left’;
    } else {
    $divid = ‘content-f’;
    $divwrapid = ‘main-f’;
    }

    $footermodule = 0;
    if (mosCountModules(‘user1’)) $footermodule++;
    if (mosCountModules(‘user2’)) $footermodule++;

    if ($footermodule == 2) {
    $divwidth = ‘49%’;
    $divheight = ‘145px’;
    } else if ($footermodule == 1) {
    $divwidth = ‘99%’;
    $divheight = ‘auto’;
    }

    ?>

    <!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 mosShowHead(); ?>
    <meta http-equiv=”Content-Type” content=”text/html; <?php echo _ISO; ?>” />
    <meta http-equiv=”Content-Style-Type” content=”text/css” />
    <?php genMenuHead(); ?>

    <link href=”<?php echo $ja_template_path;?>/css/template_css.css” rel=”stylesheet” type=”text/css” />

    <link href=”<?php echo $ja_template_path;?>/css/colors/<?php echo $ja_color; ?>.css” rel=”stylesheet” type=”text/css” />
    <?php //genColorHead(); ?>

    <script type=”text/javascript” src=”<?php echo $ja_template_path;?>/scripts/opacity.js”></script>
    <script type=”text/javascript”>
    var objMyImg = null;
    function initPNGTrans() {
    objMyImg = new OpacityObject(‘ja-topnav’,'<?php echo $ja_template_path;?>/images/opaque’);
    objMyImg.setBackground();
    }
    </script>

    <?php if ( $my->id ) { initEditor(); } ?>

    <!–>
    <style type=”text/css”>
    .clearfix { height: 1%;}
    </style>
    <!–>

    <!–>
    <style type=”text/css”>
    .clearfix { display: inline-block;}
    </style>
    <!–>

    </head>

    <body id=”bd” class=”<?php echo “$ja_width fs”.$ja_font_size;?>”>

    <div id=”ja-wrapper”>

    <a name=”Top” id=”Top”></a>
    <a title=”Skip to content” href=”#Content” style=”display: none;”>Skip to content</a>

    <!– BEGIN: HEADER –>
    <div id=”ja-header-wrap1″>
    <div id=”ja-header-wrap2″>
    <div id=”ja-header-wrap3″>
    <div id=”ja-header” class=”clearfix”>

    <h1>
    <a href=”index.php”><img src=”<?php echo $ja_template_path;?>/images/logo-<?php echo $ja_color; ?>.jpg” alt=”<?php echo $mosConfig_fromname?>” /></a>
    </h1>

    <?php if ($ja_tool && mosCountModules(‘user4’)) {?>
    <div id=”ja-search”>
    <?php mosLoadModules ( ‘user4’, -1 ); ?>
    </div>
    <?php } ?>

    <?php if ($ja_tool || mosCountModules(‘user4’)) {?>
    <div id=”ja-usertoolswrap”>
    <div id=”ja-usertools”>
    <?php if ($ja_tool) { ?>
    <?php genToolMenu($ja_tool & 1); /*screen tool*/ ?>
    <?php genToolMenu($ja_tool & 2); /*color tool*/ ?>
    <?php } else { ?>
    <div id=”ja-search-tool”>
    <?php mosLoadModules ( ‘user4’, -1 ); ?>
    </div>
    <?php } ?>
    </div>
    </div>
    <?php } ?>
    </div>
    </div>
    </div>
    </div>
    <!– END: HEADER –>

    <!– BEGIN: SUBHEADER –>
    <div id=”ja-sh-wrap1″>
    <div id=”ja-sh-wrap2″>
    <div id=”ja-sh-wrap3″>
    <div id=”ja-sh” class=”clearfix” style=”background:url(<?php echo “$ja_template_path/images/$ja_color/$ja_headerimg”; ?>) no-repeat top right; “>

    <div id=”ja-topnav”>
    <?php
    switch ($ja_menutype) {
    case 1: echo $topnav;
    break;
    case 2:
    include(“ja_cssmenu.php”);
    break;
    case 3: include(“ja_transmenu.php”);
    break;
    case 4: include(“ja_droplinemenu.php”);
    break;
    }
    ?>
    </div>

    <script type=”text/javascript”>initPNGTrans();</script>

    </div>
    </div>
    </div>
    </div>
    <!– END: SUBHEADER –>

    <!– BEGIN: PATHWAY –>
    <div id=”ja-pathway-wrap1″>
    <div id=”ja-pathway-wrap2″>
    <div id=”ja-pathway-wrap3″>
    <div id=”ja-pathway”>
    <?php if (strtolower($option) != ‘com_frontpage’){ ?>
    <?php mosPathway(); ?>
    <?php } ?>
    </div>
    </div>
    </div>
    </div>
    <!– END: PATHWAY –>

    <!– BEGIN: MAIN CONTENT –>
    <div id=”ja-main-wrap1″>
    <div id=”ja-main-wrap2″>
    <div id=”ja-main-wrap3″>
    <div id=”ja-<?php echo $divwrapid; ?>” class=”clearfix”>

    <?php if( $ja_left ) {?>
    <!– BEGIN: LEFTCOL –>
    <div id=”ja-leftcol”>
    <?php if ($subnav) { ?>
    <div id=”ja-subnav”>
    <h3><?php echo $menuname; ?></h3>
    <?php echo $subnav; ?>
    </div>
    <?php } ?>

    <?php mosLoadModules ( ‘left’,-2 ); ?>
    </div>
    <!– END: LEFTCOL –>
    <?php }?>

    <!– BEGIN: CONTENT –>
    <div id=”ja-<?php echo $divid ?>”>

    <div id=”ja-mainbody”>

    <a name=”Content” id=”Content”></a>
    <?php mosMainBody(); ?>

    <?php if ($footermodule) { ?>
    <!– BEGIN: SPOTLIGHT –>
    <div id=”ja-spotlight” class=”clearfix”>

    <?php if ( mosCountModules(‘user1’) ) { ?>
    <div class=”ja-box” style=”width: <?php echo $divwidth ?>; height: <?php echo $divheight ?>;”>
    <?php mosLoadModules ( ‘user1’, -2 ); ?>
    </div>
    <?php } ?>

    <?php if ( mosCountModules(‘user2’) ) { ?>
    <div class=”ja-box” style=”width: <?php echo $divwidth ?>; height: <?php echo $divheight ?>;”>
    <?php mosLoadModules ( ‘user2’, -2 ); ?>
    </div>
    <?php } ?>

    </div>
    <!– END: SPOTLIGHT –>
    <?php } ?>

    </div>

    </div>
    <!– END: CONTENT –>

    <?php if ( $ja_right ) { ?>
    <!– BEGIN: RIGHT COLUMN –>
    <div id=”ja-rightcol”>
    <?php echo
    mosLoadModules ( ‘top’,-2 );
    mosLoadModules ( ‘right’,-2 );
    ?>
    </div>
    <br />
    <!– END: RIGHT COLUMN –>
    <?php } ?>

    </div>
    </div>
    </div>
    </div>
    <!– END: MAIN CONTENT –>

    <!– BEGIN: FOOTER –>
    <div id=”ja-footer-wrap1″>
    <div id=”ja-footer-wrap2″>
    <div id=”ja-footer-wrap3″>
    <div id=”ja-footer”>

    <?php mosLoadModules ( ‘user3’,-1 ); ?>

    <div id=”ja-cert”>
    <?php if ($ja_menutype != 3){ ?>
    <a href=”http://jigsaw.w3.org/css-validator/validator?uri=<?php echo $mosConfig_live_site;?>” target=”_blank” title=”Our site is valid CSS”>
    <img src=”<?php echo $ja_template_path;?>/images/butcss<?php echo $ja_color; ?>.gif” alt=”Our site is valid CSS” />
    </a>
    <?php } ?>
    <a href=”http://validator.w3.org/check/referer” target=”_blank” title=”Our site is valid XHTML 1.0 Transitional”>
    <img src=”<?php echo $ja_template_path;?>/images/butxhtml<?php echo $ja_color; ?>.gif” alt=”Our site is valid XHTML 1.0 Transitional” />
    </a>
    </div>

    <p id=”ja-bottomline”>
    <?php include_once( $GLOBALS[‘mosConfig_absolute_path’] . ‘/templates/ja_zibal/footer.php’ ); ?>
    </p>

    </div>
    </div>
    </div>
    </div>
    <!– END: FOOTER –>

    </div>
    <?php mosLoadModules( ‘debug’, -1 );?>

    </body>

    </html>

    peterca Friend
    #211186
    Buster Friend
    #211187

    did you develop this on JSAS before uploading?

    peterca Friend
    #211188

    did you develop this on JSAS before uploading?</blockquote>

    Um, no. Surely you should’nt need too? To be honest I don’t have the time which is the foundation of Joomla, ‘Ease of use’ ‘No HTML skills required’ all the other ja templates have just, worked. 🙂

    Khanh Le Moderator
    #211190

    Hi Peterca,

    We have just updated the template. Please redownload and reinstall again.

    peterca Friend
    #211193

    Hi Peterca,

    We have just updated the template. Please redownload and reinstall again.</blockquote>

    Aaaah, thats horrible and now its moaning about a differnt line 😮

    Notice: Undefined variable: ja_divwidth in /var/www/html/templates/ja_zibal/index.php on line 56

    PeterC

    Khanh Le Moderator
    #211199

    Hi PeterC,

    We have no used the variabe ja_divwidth in JA Zibal template. It’s quite strainge. Please completely remove the template and re-install. If the error is not fixed, please PM me a temporary admin account to access your server. I will try to fix the problem for you.

    Best regards,

    peterca Friend
    #211240

    I stuck 99% in the ja_divwidth; and the error message has gone away. I’m not sure the three columns are the correct width tho?

    The drop down menus refuse to drop down is there something else I need to install? I have unpublished the ‘Main Menu’ as per the install instructions.

    Regards
    PeterC

    peterca Friend
    #211241

    Hi Khanh

    First my apologies should have read the sticky at the top of the forum the transmenus now work (Helps if you create the sub menus in Joomla).

    Only one problem left the right hand column is wrong size wise and the modules positioning is wrong making the template look bad.

    My issue is 99% closed any advice so I can close this post off?

Viewing 11 posts - 1 through 11 (of 11 total)

This topic contains 11 replies, has 3 voices, and was last updated by  peterca 18 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum