| | |
| Stránka: 1 z 1
| [ Príspevkov: 3 ] | |
Autor | Správa |
---|
Registrovaný: 06.06.07 Prihlásený: 16.02.08 Príspevky: 131 Témy: 10 |
nainstaloval som si na júmlu vlastny template, ale napisalo mi toto ked ju spustim
Citácia: Warning: include() [function.include]: Unable to access /home/free/tym.sk/v/vladio/root/www/templates/ja_sargas/ja_templatetools.php in /home/free/tym.sk/v/vladio/root/www/templates/madeyourweb/index.php on line 39
Warning: include(/home/free/tym.sk/v/vladio/root/www/templates/ja_sargas/ja_templatetools.php) [function.include]: failed to open stream: No such file or directory in /home/free/tym.sk/v/****/root/www/templates/madeyourweb/index.php on line 39
Warning: include() [function.include]: Failed opening '/home/free/tym.sk/v/****/root/www/templates/ja_sargas/ja_templatetools.php' for inclusion (include_path='/usr/share/php/smarty/libs:/usr/share/fpdf:/usr/share/php/:.') in /home/free/tym.sk/v/*****/root/www/templates/madeyourweb/index.php on line 39
Fatal error: Call to undefined function getCurrentMenuIndex() in /home/free/tym.sk/v/****/root/www/templates/madeyourweb/index.php on line 41 Všetko je dobre nastavené, ale neviem čo to hce.. tu je index.php subor Citácia: <?php
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_sargas';
#support extra color themes, font styles $ja_color_themes = array('default','green','orange'); // You can add more color array if needed #Header-deco images: you can add more images. $ja_header_images = array('leftcol-deco1.gif','leftcol-deco2.gif','leftcol-deco3.gif'); // Each sub header image will be assigned to each menu ####################################
# Change the width of the template $ja_width_default = 'wide'; // 'narrow': 800x600; 'wide': 1024x768;
# 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 = 3; // 0: disable all; 1: disable color, enable screen; 2: enable color, disable screen; 3: enable all.
# Choose your prefer Menu Type $ja_menutype = 1; // 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");
$ja_headerimg = count($ja_header_images)? $ja_header_images [getCurrentMenuIndex() % count($ja_header_images)]:'';
$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 = ''; $divwrapid = ''; } elseif ( $ja_left ) { $divid = '-fr'; $divwrapid = ''; } elseif ( $ja_right ) { $divid = '-fl'; $divwrapid = '-fl'; } else { $divid = '-f'; $divwrapid = '-f'; }
# Top Spotlight ########## $topmodule = 0; if (mosCountModules('user8')) $topmodule++; if (mosCountModules('user9')) $topmodule++;
if ($topmodule == 2) { $divtopwidth = '48.5%'; } else if ($topmodule == 1) { $divtopwidth = '100%'; }
$user8divstyle = ""; $user9divstyle = "box-ended"; if ( !mosCountModules('user9') ) { $user8divstyle = "box-ended"; }
# Bottom Spotlight ########## $bottommodule = 0; if (mosCountModules('user1')) $bottommodule++; if (mosCountModules('user2')) $bottommodule++; if (mosCountModules('top')) $bottommodule++;
if ( $bottommodule == 3 ) { $divbotwidth = '32%'; } else if ($bottommodule == 2) { $divbotwidth = '49%'; } else if ($bottommodule == 1) { $divbotwidth = '99%'; }
$user1divstyle = ""; $user2divstyle = ""; $topdivstyle = " box-ended"; if ( !mosCountModules('top') ) { $user2divstyle = " box-ended"; } if ( !mosCountModules('user2') ) { $user1divstyle = " box-ended"; }
?>
<!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" /> <link href="<?php echo $ja_template_path;?>/css/template_css.css" rel="stylesheet" type="text/css" /> <script language="javascript" type="text/javascript" src="<?php echo $ja_template_path;?>/scripts/ja.script.js"></script> <link href="<?php echo $ja_template_path;?>/css/colors/<?php echo $ja_color; ?>.css" rel="stylesheet" type="text/css" /> <?php genMenuHead(); ?>
<?php //genColorHead(); ?>
<?php if ( $my->id ) { initEditor(); } ?>
<!--[if lte IE 6]> <style type="text/css"> .clearfix { height: 1%;} </style> <![endif]-->
<!--[if gte IE 7.0]> <style type="text/css"> .clearfix { display: inline-block;} </style> <![endif]-->
<script type="text/javascript" src="<?php echo $ja_template_path;?>/scripts/opacity.js"></script> <?php global $_MAMBOTS; $_MAMBOTS->trigger( 'onAfterHead' ); ?> </head>
<body id="bd" class="<?php echo "$ja_width fs".$ja_font_size;?>"> <a title="Skip to content" href="<?php echo getCurrentURL();?>#Content" style="display: none;">Skip to content</a>
<!-- BEGIN: HEADER --> <a name="Top" id="Top"></a>
<div id="ja-headerwrap"> <div id="ja-header" class="clearfix"> <h1> <a href="index.php"> <script type="text/javascript"> od_displayImage('sitelogo', '<?php echo $ja_template_path;?>/images/logo', 228, 63, '', '<?php echo $mosConfig_sitename?>'); </script> </a> </h1>
<div id="ja-sh"> <?php if ($ja_tool || mosCountModules('user4')) {?> <div id="ja-usertoolswrap"> <div id="ja-usertools"> <?php genToolMenu($ja_tool & 1); /*screen tool*/ ?> <?php genToolMenu($ja_tool & 2); /*color tool*/ ?> <?php if (mosCountModules('user4')) {?> <div id="ja-search"> <?php mosLoadModules ( 'user4', -1 ); ?> </div> <?php } ?> </div> </div> <?php } ?> <!-- BEGIN: MAIN NAVIGATION --> <div id="ja-mainnav"> <?php switch ($ja_menutype) { case 1: echo $topnav; break; case 2: include($ja_template_absolute_path."/ja_cssmenu.php"); break; case 3: include($ja_template_absolute_path."/ja_transmenu.php"); break; case 4: echo $topnav; break; } ?>
<?php if ($ja_menutype==1 && $subnav) { ?> <div id="ja-subnav"> <?php echo $subnav; ?> </div> <?php } ?> <?php if ($ja_menutype==4 && $subnav) { ?> <div id="ja-subnavdl"> <?php echo $subnav; ?> </div> <?php } ?> </div> <!-- END: MAIN NAVIGATION --> </div>
</div> </div> <!-- END: HEADER -->
<div id="ja-containerwrap"> <div id="ja-container<?php echo $divwrapid; ?>" class="clearfix">
<!-- BEGIN: CONTENT --> <div id="ja-mainbody<?php echo $divid; ?>"> <a name="Content" id="Content"></a>
<div id="ja-contentwrap"> <!-- BEGIN: JA COOLADS MODULE --> <?php if (mosCountModules('user5')) { ?> <div id="ja-coolads"> <?php mosLoadModules('user5', -3); ?> </div> <?php } ?> <!-- END: JA COOLADS MODULE --> <!-- BEGIN: TOP SPOTLIGHT --> <?php if ( mosCountModules('user8') ) { ?> <div class="<?php echo $user8divstyle; ?>" style="float: left; width: <?php echo $divtopwidth ?>;"> <?php mosLoadModules ( 'user8', -3 ); ?> </div> <?php } ?> <?php if ( mosCountModules('user8') ) { ?> <div class="<?php echo $user9divstyle; ?>" style="float: right; width: <?php echo $divtopwidth ?>;"> <?php mosLoadModules ( 'user9', -3 ); ?> </div> <?php } ?> <!-- END: TOP SPOTLIGHT -->
<div id="ja-pathway"> <?php mosPathway(); ?> </div>
<div id="ja-content"> <?php mosMainBody(); ?> </div>
</div>
<?php if ($ja_left) { ?> <!-- BEGIN: LEFT COLUMN --> <div id="ja-leftcol" style="background: url(<?php echo "$ja_template_path/images/$ja_color/header-deco/$ja_headerimg"; ?>) no-repeat top center;"> <?php echo mosLoadModules ( 'left',-2 ); ?> </div> <!-- END: LEFT COLUMN --> <?php } ?>
</div> <!-- END: CONTENT -->
<?php if ($ja_right) { ?> <!-- BEGIN: RIGHT COLUMN --> <div id="ja-rightcol"> <?php echo mosLoadModules ( 'right',-3 ); ?> </div> <br /> <!-- END: RIGHT COLUMN --> <?php } ?>
</div> </div>
<!-- BEGIN: FOOTER --> <div id="ja-botnavwrap"> <div id="ja-botnav"> <?php mosLoadModules ( 'user3',-1 ); ?> <a title="Go to Top" href="<?php echo getCurrentURL();?>#Top" class="gotop-button">Top</a> </div> </div>
<?php if ($bottommodule) { ?> <!-- BEGIN: BOTTOM SPOTLIGHT --> <div id="ja-botslwrap"> <div id="ja-botsl" class="ja-spotlight clearfix">
<?php if ( mosCountModules('user1') ) { ?> <div class="ja-box<?php echo $user1divstyle; ?>" style="width: <?php echo $divbotwidth ?>;"> <?php mosLoadModules ( 'user1', -2 ); ?> </div> <?php } ?>
<?php if ( mosCountModules('user2') ) { ?> <div class="ja-box<?php echo $user2divstyle; ?>" style="width: <?php echo $divbotwidth ?>;"> <?php mosLoadModules ( 'user2', -2 ); ?> </div> <?php } ?>
<?php if ( mosCountModules('top') ) { ?> <div class="ja-box<?php echo $topdivstyle; ?>" style="width: <?php echo $divbotwidth ?>;"> <?php mosLoadModules ( 'top', -2 ); ?> </div> <?php } ?>
</div> </div> <!-- END: BOTTOM SPOTLIGHT --> <?php } ?>
<div id="ja-footerwrap"> <div id="ja-footer">
<p id="ja-bottomline"> <?php include_once( $ja_template_absolute_path.'/footer.php' ); ?> </p>
<div id="ja-cert"> <a href="<?php echo $mosConfig_live_site ?>/index.php?option=com_rss&feed=RSS2.0&no_html=1" target="_blank" title="RSS 2.0" style="text-decoration: none;"> <img src="<?php echo $ja_template_path;?>/images/but-rss.png" alt="RSS 2.0" /> </a> <?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" style="text-decoration: none;"> <img src="<?php echo $ja_template_path;?>/images/but-css.png" alt="Valid CSS" /> </a> <?php } ?> <a href="http://validator.w3.org/check/referer" target="_blank" title="Our site is valid XHTML 1.0 Transitional" style="text-decoration: none;"> <img src="<?php echo $ja_template_path;?>/images/but-xhtml10.png" alt="Valid XHTML 1.0 Transitional" /> </a> </div>
</div> </div> <!-- END: FOOTER -->
<?php mosLoadModules( 'debug', -1 );?> </body>
</html>
Tie hrube riadky su ten 39. a 41. čo mi tam vypisuje..
dakujem
|
|
Registrovaný: 24.01.08 Prihlásený: 13.09.17 Príspevky: 14572 Témy: 66 Bydlisko: Žilina |
no sak tam mas napisane problemy :
Citácia: Warning: include() [function.include]: Unable to access Warning: failed to open stream: No such file or directory in Warning: include() [function.include]: Failed opening Warning: include() [function.include]: Unable to access Fatal error: Call to undefined function getCurrentMenuIndex()
1.) tipujem ze mas zle nastavene prava a ak nie, tak
2.) chybne linkovanie
3.) nedefinovana funkcia...
_________________ C#, PHP, ... |
|
Registrovaný: 21.02.07 Prihlásený: 21.02.10 Príspevky: 3984 Témy: 96 |
rovno ti poviem, že nevim čo si chcel poveď týmto
Kód: $ja_headerimg = count($ja_header_images)? $ja_header_images [getCurrentMenuIndex() % count($ja_header_images)]:'';
buď v prvom riadku bodkočiarku alebo zmaž nový riadok alebo tú dvojbodku máš chybne ALEBO je chyba niekde inde
|
|
| Stránka: 1 z 1
| [ Príspevkov: 3 ] | |
| Nemôžete zakladať nové témy v tomto fóre Nemôžete odpovedať na témy v tomto fóre Nemôžete upravovať svoje príspevky v tomto fóre Nemôžete mazať svoje príspevky v tomto fóre
|
|