hi there.
i purchased yootheme template. fine need menu on left stays same. i´ve been given solution:
initialize new yoomenu example 'othermenu' in joomla! example:
code:
$ytmainmenu = new ytsplitmenu("mainmenu", "mainmenu");
$ytothermenu = new ytsplitmenu("othermenu", "othermenu");
replace old left menu new $ytothermenu. example:
code:
$ytothermenu->setaccordionstyleforlevel(2);
$ytothermenu->setlistitembackgroundimage(true);
$ytothermenu->showmenu(1, -1);
$ytothermenu->setaccordionstyleforlevel(false);
$ytothermenu->setlistitembackgroundimage(false);
now, suppose goes in index.php, don´t know php. point out me put code in index.php? or where/which forum best find right solution?
i´ll give file, reads @ moment:
defined( '_valid_mos' ) or die( 'direct access location not allowed.' );
/**
* smoove yootheme template
*
* @author yootheme.com
* @copyright copyright (c) 2007 yootheme ltd & co. kg. rights reserved.
*/
include_once('lib/php/yt_settings.php');
include_once('lib/php/yt_splitmenu.php');
include_once('lib/php/yt_styleswitcher.php');
include_once('lib/php/yt_snap.php');
/*** template parameters ***/
$template_parameters = array(
/* layout */
"dogear" => true, /* true | false */
"toppanel" => true, /* true | false */
"styleswitcherfont" => true, /* true | false */
"styleswitcherwidth" => true, /* true | false */
"layout" => "left", /* left | right */
"snap" => false, /* true | false */
/* style switcher */
"fontdefault" => "font-medium", /* font-small | font-medium | font-large */
"widthdefault" => "width-wide", /* width-thin | width-wide | width-fluid */
"widththinpx" => 780, /* template width style "width-thin", (pixels) */
"widthwidepx" => 900, /* template width style "width-wide", (pixels) */
"widthfluidpx" => 0.9, /* template width style "width-fluid", (0.9 means 90%) */
/* slider menu */
"widthsliderpx" => 125, /* width of slider menu button, (pixels) */
"widthslideropenpx" => 215 /* width of expanded slider menu button on mouse on event, (pixels) */
);
// initialize settings, styleswitcher, splitmenu
$ytsettings = new ytsettings($template_parameters);
$ytstyleswitcher = new ytstyleswitcher($template_parameters);
$ytsplitmenu = new ytsplitmenu("mainmenu", "mainmenu");
// set css-class topbox
$topmodules = 0;
if(moscountmodules('user1')) $topmodules += 1;
if(moscountmodules('user2')) $topmodules += 1;
if(moscountmodules('user3')) $topmodules += 1;
switch ($topmodules) {
case 1:
$topboxwidth = "width100";
break;
case 2:
$topboxwidth = "width50";
break;
case 3:
$topboxwidth = "width33";
break;
default:
$topboxwidth = "";
}
// set css-class maintopbox
$maintopmodules = 0;
if(moscountmodules('user4')) $maintopmodules += 1;
if(moscountmodules('user5')) $maintopmodules += 1;
switch ($maintopmodules) {
case 1:
$maintopboxwidth = "width100";
break;
case 2:
$maintopboxwidth = "width50";
break;
default:
$maintopboxwidth = "";
}
// set css-class mainbottombox
$mainbottommodules = 0;
if(moscountmodules('user6')) $mainbottommodules += 1;
if(moscountmodules('user7')) $mainbottommodules += 1;
switch ($mainbottommodules) {
case 1:
$mainbottomboxwidth = "width100";
break;
case 2:
$mainbottomboxwidth = "width50";
break;
default:
$mainbottomboxwidth = "";
}
// set css-class bottombox
$bottommodules = 0;
if(moscountmodules('user8')) $bottommodules += 1;
if(moscountmodules('bottom')) $bottommodules += 1;
if(moscountmodules('user9')) $bottommodules += 1;
switch ($bottommodules) {
case 1:
$bottomboxwidth = "width100";
break;
case 2:
$bottomboxwidth = "width50";
break;
case 3:
$bottomboxwidth = "width33";
break;
default:
$bottomboxwidth = "";
}
// set css-class topbox seperators
$topbox12seperator = "";
$topbox23seperator = "";
if (moscountmodules('user1') && (moscountmodules('user2') || moscountmodules('user3'))) {
$topbox12seperator = "topboxseperator";
}
if (moscountmodules('user2') && moscountmodules('user3')) {
$topbox23seperator = "topboxseperator";
}
// set css-class bottombox seperators
$bottombox12seperator = "";
$bottombox23seperator = "";
if (moscountmodules('user8') && (moscountmodules('bottom') || moscountmodules('user9'))) {
$bottombox12seperator = "bottomboxseperator";
}
if (moscountmodules('bottom') && moscountmodules('user9')) {
$bottombox23seperator = "bottomboxseperator";
}
// set css-class layoutstyle
if(moscountmodules('left') || ($ytsplitmenu->getmenu(2, -1) != "")) {
if($ytsettings->get('layout') == "left") {
$layoutstyle = "layoutleft";
} else {
$layoutstyle = "layoutright";
}
} else {
$layoutstyle = "withoutleft";
}
// set css-class rightbackground
if(moscountmodules('right')) {
$rightbackground = "withright";
} else {
$rightbackground = "withoutright";
}
// needed seperate iso number language file constant _iso
$iso = explode( '=', _iso );
?>
if ( $my->id ) {
initeditor();
}
?>
if($ytsettings->get('snap')) {
$js_snap = new ytsnap();
$js_snap->enablesnap();
}
?>
/templates//lib/js/lightbox/css/slimbox.css" rel="stylesheet" type="text/css" />
get('dogear')) { ?>
get('toppanel') && moscountmodules('cpanel')) { ?>
cerrar
getmenu(2, -1) != "")) { ?>
getmenu(2, -1) != "") { ?>
thanks!!
i purchased yootheme template. fine need menu on left stays same. i´ve been given solution:
initialize new yoomenu example 'othermenu' in joomla! example:
code:
$ytmainmenu = new ytsplitmenu("mainmenu", "mainmenu");
$ytothermenu = new ytsplitmenu("othermenu", "othermenu");
replace old left menu new $ytothermenu. example:
code:
$ytothermenu->setaccordionstyleforlevel(2);
$ytothermenu->setlistitembackgroundimage(true);
$ytothermenu->showmenu(1, -1);
$ytothermenu->setaccordionstyleforlevel(false);
$ytothermenu->setlistitembackgroundimage(false);
now, suppose goes in index.php, don´t know php. point out me put code in index.php? or where/which forum best find right solution?
i´ll give file, reads @ moment:
defined( '_valid_mos' ) or die( 'direct access location not allowed.' );
/**
* smoove yootheme template
*
* @author yootheme.com
* @copyright copyright (c) 2007 yootheme ltd & co. kg. rights reserved.
*/
include_once('lib/php/yt_settings.php');
include_once('lib/php/yt_splitmenu.php');
include_once('lib/php/yt_styleswitcher.php');
include_once('lib/php/yt_snap.php');
/*** template parameters ***/
$template_parameters = array(
/* layout */
"dogear" => true, /* true | false */
"toppanel" => true, /* true | false */
"styleswitcherfont" => true, /* true | false */
"styleswitcherwidth" => true, /* true | false */
"layout" => "left", /* left | right */
"snap" => false, /* true | false */
/* style switcher */
"fontdefault" => "font-medium", /* font-small | font-medium | font-large */
"widthdefault" => "width-wide", /* width-thin | width-wide | width-fluid */
"widththinpx" => 780, /* template width style "width-thin", (pixels) */
"widthwidepx" => 900, /* template width style "width-wide", (pixels) */
"widthfluidpx" => 0.9, /* template width style "width-fluid", (0.9 means 90%) */
/* slider menu */
"widthsliderpx" => 125, /* width of slider menu button, (pixels) */
"widthslideropenpx" => 215 /* width of expanded slider menu button on mouse on event, (pixels) */
);
// initialize settings, styleswitcher, splitmenu
$ytsettings = new ytsettings($template_parameters);
$ytstyleswitcher = new ytstyleswitcher($template_parameters);
$ytsplitmenu = new ytsplitmenu("mainmenu", "mainmenu");
// set css-class topbox
$topmodules = 0;
if(moscountmodules('user1')) $topmodules += 1;
if(moscountmodules('user2')) $topmodules += 1;
if(moscountmodules('user3')) $topmodules += 1;
switch ($topmodules) {
case 1:
$topboxwidth = "width100";
break;
case 2:
$topboxwidth = "width50";
break;
case 3:
$topboxwidth = "width33";
break;
default:
$topboxwidth = "";
}
// set css-class maintopbox
$maintopmodules = 0;
if(moscountmodules('user4')) $maintopmodules += 1;
if(moscountmodules('user5')) $maintopmodules += 1;
switch ($maintopmodules) {
case 1:
$maintopboxwidth = "width100";
break;
case 2:
$maintopboxwidth = "width50";
break;
default:
$maintopboxwidth = "";
}
// set css-class mainbottombox
$mainbottommodules = 0;
if(moscountmodules('user6')) $mainbottommodules += 1;
if(moscountmodules('user7')) $mainbottommodules += 1;
switch ($mainbottommodules) {
case 1:
$mainbottomboxwidth = "width100";
break;
case 2:
$mainbottomboxwidth = "width50";
break;
default:
$mainbottomboxwidth = "";
}
// set css-class bottombox
$bottommodules = 0;
if(moscountmodules('user8')) $bottommodules += 1;
if(moscountmodules('bottom')) $bottommodules += 1;
if(moscountmodules('user9')) $bottommodules += 1;
switch ($bottommodules) {
case 1:
$bottomboxwidth = "width100";
break;
case 2:
$bottomboxwidth = "width50";
break;
case 3:
$bottomboxwidth = "width33";
break;
default:
$bottomboxwidth = "";
}
// set css-class topbox seperators
$topbox12seperator = "";
$topbox23seperator = "";
if (moscountmodules('user1') && (moscountmodules('user2') || moscountmodules('user3'))) {
$topbox12seperator = "topboxseperator";
}
if (moscountmodules('user2') && moscountmodules('user3')) {
$topbox23seperator = "topboxseperator";
}
// set css-class bottombox seperators
$bottombox12seperator = "";
$bottombox23seperator = "";
if (moscountmodules('user8') && (moscountmodules('bottom') || moscountmodules('user9'))) {
$bottombox12seperator = "bottomboxseperator";
}
if (moscountmodules('bottom') && moscountmodules('user9')) {
$bottombox23seperator = "bottomboxseperator";
}
// set css-class layoutstyle
if(moscountmodules('left') || ($ytsplitmenu->getmenu(2, -1) != "")) {
if($ytsettings->get('layout') == "left") {
$layoutstyle = "layoutleft";
} else {
$layoutstyle = "layoutright";
}
} else {
$layoutstyle = "withoutleft";
}
// set css-class rightbackground
if(moscountmodules('right')) {
$rightbackground = "withright";
} else {
$rightbackground = "withoutright";
}
// needed seperate iso number language file constant _iso
$iso = explode( '=', _iso );
?>
if ( $my->id ) {
initeditor();
}
?>
if($ytsettings->get('snap')) {
$js_snap = new ytsnap();
$js_snap->enablesnap();
}
?>
/templates//lib/js/lightbox/css/slimbox.css" rel="stylesheet" type="text/css" />
get('dogear')) { ?>
get('toppanel') && moscountmodules('cpanel')) { ?>
cerrar
clícame
getmenu(2, -1) != "")) { ?>
getmenu(2, -1) != "") { ?>
thanks!!
moderator note: moving joomlacode 3rd party, templates
Comments
Post a Comment