aushops
03-14-2007, 04:50 AM
Hi All,
I have followed the instructions to enable Transmenu 2
I have made the change in index.php option 3
I'm not sure if there is missing code from my index.php so i have included the code below, would appreciate if someone could check it out for me
Regards
Tony
Index.php Code
<?php
/*------------------------------------------------------------------------
# JA Villadi 1.0 - Mar, 2007
# ------------------------------------------------------------------------
# Copyright (C) 2004-2007 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
-------------------------------------------------------------------------*/
defined( '_VALID_MOS' ) or die( 'Restricted access' );
$iso = split( '=', _ISO );
/*echo "<?xml version=\"1.0\" encoding=\"'. $iso[1] .'\"?' .'>";*/
global $ja_color_themes, $ja_header_images, $ja_width_default, $ja_color_default, $ja_font_size_default, $ja_tool, $ja_menutype, $ja_template_path, $ja_template_absolute_path, $ja_headerimg, $ja_color, $ja_width, $ja_font_size, $ja_template_name;
$ja_template_name = 'ja_villadi';
# BEGIN: TEMPLATE CONFIGURATIONS ##########
####################################
#support extra color themes
$ja_color_themes = array('default', 'orange', 'green'); // You can add more color array if needed
####################################
# Change the width of the template
$ja_width_default = 'wide'; // 'narrow': 800x600; 'wide': 1024x768; 'auto': fluid width
# default color
$ja_color_default = 'default'; //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 = 7; // 0: disable all; 1: Screen tool; 2: font tool; 3: screen + font; 4: color tool; 5: screen + color; 6: font + color; 7: all;
# Choose your prefer Menu Type
$ja_menutype = 3; // 1: Split Menu; 2: Son of Suckerfish Dropdown Menu; 3: Transmenu; 4: Script Dropline Menu;
# END: TEMPLATE CONFIGURATIONS ##########
# Define the template path ##########
$ja_template_path = $mosConfig_live_site.'/templates/'.$ja_template_name;
$ja_template_absolute_path = $mosConfig_absolute_path.'/templates/'.$ja_template_name;
include ($ja_template_absolute_path."/ja_templatetools.php");
$topnav = "";
$subnav = "";
if ($ja_menutype == 1) {
require($ja_template_absolute_path."/ja_splitmenu.php");
$topnav = ja_topNav('mainmenu', array('default'));
$subnav = ja_subNav('mainmenu');
} else if ($ja_menutype == 4) {
require($ja_template_absolute_path."/ja_scriptdlmenu.php");
$topnav = $jamenu->menuObj->main;
$subnav = $jamenu->menuObj->sub;
}
# Auto Collapse Divs Functions ##########
$ja_left = mosCountModules( 'left' );
$ja_right = mosCountModules( 'right' );
if ( $ja_left && $ja_right ) {
$divid = '';
} elseif ( $ja_left ) {
$divid = '-fr';
} elseif ( $ja_right ) {
$divid = '-fl';
} else {
$divid = '-f';
}
?>
I have followed the instructions to enable Transmenu 2
I have made the change in index.php option 3
I'm not sure if there is missing code from my index.php so i have included the code below, would appreciate if someone could check it out for me
Regards
Tony
Index.php Code
<?php
/*------------------------------------------------------------------------
# JA Villadi 1.0 - Mar, 2007
# ------------------------------------------------------------------------
# Copyright (C) 2004-2007 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
-------------------------------------------------------------------------*/
defined( '_VALID_MOS' ) or die( 'Restricted access' );
$iso = split( '=', _ISO );
/*echo "<?xml version=\"1.0\" encoding=\"'. $iso[1] .'\"?' .'>";*/
global $ja_color_themes, $ja_header_images, $ja_width_default, $ja_color_default, $ja_font_size_default, $ja_tool, $ja_menutype, $ja_template_path, $ja_template_absolute_path, $ja_headerimg, $ja_color, $ja_width, $ja_font_size, $ja_template_name;
$ja_template_name = 'ja_villadi';
# BEGIN: TEMPLATE CONFIGURATIONS ##########
####################################
#support extra color themes
$ja_color_themes = array('default', 'orange', 'green'); // You can add more color array if needed
####################################
# Change the width of the template
$ja_width_default = 'wide'; // 'narrow': 800x600; 'wide': 1024x768; 'auto': fluid width
# default color
$ja_color_default = 'default'; //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 = 7; // 0: disable all; 1: Screen tool; 2: font tool; 3: screen + font; 4: color tool; 5: screen + color; 6: font + color; 7: all;
# Choose your prefer Menu Type
$ja_menutype = 3; // 1: Split Menu; 2: Son of Suckerfish Dropdown Menu; 3: Transmenu; 4: Script Dropline Menu;
# END: TEMPLATE CONFIGURATIONS ##########
# Define the template path ##########
$ja_template_path = $mosConfig_live_site.'/templates/'.$ja_template_name;
$ja_template_absolute_path = $mosConfig_absolute_path.'/templates/'.$ja_template_name;
include ($ja_template_absolute_path."/ja_templatetools.php");
$topnav = "";
$subnav = "";
if ($ja_menutype == 1) {
require($ja_template_absolute_path."/ja_splitmenu.php");
$topnav = ja_topNav('mainmenu', array('default'));
$subnav = ja_subNav('mainmenu');
} else if ($ja_menutype == 4) {
require($ja_template_absolute_path."/ja_scriptdlmenu.php");
$topnav = $jamenu->menuObj->main;
$subnav = $jamenu->menuObj->sub;
}
# Auto Collapse Divs Functions ##########
$ja_left = mosCountModules( 'left' );
$ja_right = mosCountModules( 'right' );
if ( $ja_left && $ja_right ) {
$divid = '';
} elseif ( $ja_left ) {
$divid = '-fr';
} elseif ( $ja_right ) {
$divid = '-fl';
} else {
$divid = '-f';
}
?>