Копался в шаблоне и где-то видимо что-то удалил . Сайт пишет , что ошибка на 119 линии (я включил на время отображение php ошибок) Код (CODE): <?php defined( '_JEXEC' ) or die( 'Restricted access' ); ?> <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <jdoc:include type="head" /> <?php if ($this->countModules("right_dost")){ ?> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/school/images/style.css"/> <?php } else{ ?> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/school/images/style1.css"/> <?php } ?> <link href="css/dropdown/dropdown.vertical.css" media="all" rel="stylesheet" type="text/css" /> <link href="css/dropdown/themes/default/default.ultimate.css" media="all" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/templates/school/images/IE7.js"></script> <!--[if lt IE 7]> <script type="text/javascript" src="js/jquery/jquery.js"></script> <script type="text/javascript" src="js/jquery/jquery.dropdown.js"></script> <![endif]--> </head> <body> <div class="page" align="center"> <div class="top"> <div class="content"> </div> </div> <div class="middle"> <div class="cover"> <div class="content"> <a href="/"><div class="header"> <div class="logo"></div> <div class="text_header"> <div class="info"></div> <div class="name"></div> </div></a> <div class="contact"> <div class="text"> <jdoc:include type="modules" name="top_contact" /> </div> </div> </div> <div class="all_part"> <div class="left_part"> <div class="main_menu"> <div class="top"></div> <div class="center"> <div class="border_left"></div> <div class="menu"> <jdoc:include type="modules" name="left_menu" /> </div> <div class="border_right"></div> </div> <div class="bottom"></div> </div> <div class="find"> <jdoc:include type="modules" name="left_search" /> </div> <?php if($this->countModules("left_link")) :?> <div class="header_part"><div class="header_text">Наши достижения</div></div> <div class="foto"><Br /> <jdoc:include type="modules" name="left_link" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if (($this->countModules("left_opros"))||($this->countModules("left_link"))||($this->countModules("right_banner"))) : ?> <div class="left_panel"> <?php if($this->countModules("left_opros")) :?> <jdoc:include type="modules" name="left_opros" /> <?php endif;?> <?php if($this->countModules("right_banner")) :?> <div class="header_part"><div class="header_text">Наш баннер</div></div> <div class="year_earth"> <jdoc:include type="modules" name="right_banner" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if($this->countModules("left_contact")) :?> <div class="header_part"><div class="header_text">2014-Год гостеприимства</div></div> <div class="year_earth"> <jdoc:include type="modules" name="left_contact" /> <div style="clear:both;"></div> </div> <?php endif;?> </div> <?php endif;?> </div> <div class="right_part"> <div class="img_school"> <div class="bachground_img"> <div class="label"><jdoc:include type="modules" name="top_slogan" /></div> </div> </div> <div> <a href="/index.php?option=com_content&view=category&layout=blog&id=40&Itemid=18" class="amu"><div class="btn1"><div class="button_link"></div></div></a> <a href="/index.php?option=com_content&view=category&layout=blog&id=38&Itemid=29&lang=ru" class="amu"><div class="btn2"><div class="button_link"></div></div></a> <a href="/index.php?option=com_content&view=category&layout=blog&id=31&Itemid=28&lang=ru" class="amu"><div class="btn3"><div class="button_link"></div></div></a> </div> <div class="main_content"> <div class="left_news"> <div class="header_link"><div class="text_link"><MARQUEE DIRECTION='Left' BEHAVIOR='Scroll' WIDTH='100%' SCROLLAMOUNT='2' SCROLLDELAY='90' ><jdoc:include type="modules" name="top_marque" />1</MARQUEE></div></div> <?php endif;?> <div class="header_link"><div class="text_link"><jdoc:include type="modules" name="top" /></div></div> <?php if($this->countModules("top_news")) :?> <div class="news_first"> <jdoc:include type="modules" name="top_news" /> </div> <jdoc:include type="component" /> <div style="clear:both;"></div> </div> <?php if($this->countModules("top_marque")) :?> <?php if (($this->countModules("right_dost"))||($this->countModules("right_foto"))||($this->countModules("right_year"))||($this->countModules("right_pogoda"))) : ?> <div class="right_news"> <div class="right_panel"> <?php if($this->countModules("right_dost")) :?> <div class="header_part"><div class="header_text">Наши достижения</div></div> <div class="progress"> <jdoc:include type="modules" name="right_dost" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if($this->countModules("right_year")) :?> <div class="header_part"><div class="header_text">Год родной Земли</div></div> <div class="year_earth"> <jdoc:include type="modules" name="right_year" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if($this->countModules("right_guest")) :?> <div class="header_part"><div class="header_text">Гостевая книга</div></div> <div class="foto"> <jdoc:include type="modules" name="right_guest" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if($this->countModules("right_pogoda")) :?> <div class="header_part"><div class="header_text">Погода</div></div> <div class="foto"> <jdoc:include type="modules" name="right_pogoda" /> <div style="clear:both;"></div> </div> <?php endif;?> </div> </div> <?php endif;?> </div> </div> <div style="clear:both;"></div> <jdoc:include type="modules" name="podval" /> </div> </div> </div> </div> <div class="bottom"></div> </div> </body> </html>
строка 118 - перед jdoc добавить if($this->countModules("top_marque")) :, строка 125 - endif добавить, строка 170 - endif а вообще советовал бы копии хранить
вот что получилось, но все равно ошибка на строке 119 Код (CODE): <?php defined( '_JEXEC' ) or die( 'Restricted access' ); ?> <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <jdoc:include type="head" /> <?php if ($this->countModules("right_dost")){ ?> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/school/images/style.css"/> <?php } else{ ?> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/school/images/style1.css"/> <?php } ?> <link href="css/dropdown/dropdown.vertical.css" media="all" rel="stylesheet" type="text/css" /> <link href="css/dropdown/themes/default/default.ultimate.css" media="all" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/templates/school/images/IE7.js"></script> <!--[if lt IE 7]> <script type="text/javascript" src="js/jquery/jquery.js"></script> <script type="text/javascript" src="js/jquery/jquery.dropdown.js"></script> <![endif]--> </head> <body> <div class="page" align="center"> <div class="top"> <div class="content"> </div> </div> <div class="middle"> <div class="cover"> <div class="content"> <a href="/"><div class="header"> <div class="logo"></div> <div class="text_header"> <div class="info">Официальный веб-сайт государственного учреждения образования</div> <div class="name">Cредняя школа № 32 г. Гомеля</div> </div></a> <div class="contact"> <div class="text"> <jdoc:include type="modules" name="top_contact" /> </div> </div> </div> <div class="all_part"> <div class="left_part"> <div class="main_menu"> <div class="top"></div> <div class="center"> <div class="border_left"></div> <div class="menu"> <jdoc:include type="modules" name="left_menu" /> </div> <div class="border_right"></div> </div> <div class="bottom"></div> </div> <div class="find"> <jdoc:include type="modules" name="left_search" /> </div> <?php if($this->countModules("left_link")) :?> <div class="header_part"><div class="header_text">Наши достижения</div></div> <div class="foto"><Br /> <jdoc:include type="modules" name="left_link" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if (($this->countModules("left_opros"))||($this->countModules("left_link"))||($this->countModules("right_banner"))) : ?> <div class="left_panel"> <?php if($this->countModules("left_opros")) :?> <jdoc:include type="modules" name="left_opros" /> <?php endif;?> <?php if($this->countModules("right_banner")) :?> <div class="header_part"><div class="header_text">Наш баннер</div></div> <div class="year_earth"> <jdoc:include type="modules" name="right_banner" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if($this->countModules("left_contact")) :?> <div class="header_part"><div class="header_text">2014-Год гостеприимства</div></div> <div class="year_earth"> <jdoc:include type="modules" name="left_contact" /> <div style="clear:both;"></div> </div> <?php endif;?> </div> <?php endif;?> </div> <div class="right_part"> <div class="img_school"> <div class="bachground_img"> <div class="label"><jdoc:include type="modules" name="top_slogan" /></div> </div> </div> <div> <a href="/index.php?option=com_content&view=category&layout=blog&id=40&Itemid=18" class="amu"><div class="btn1"><div class="button_link"></div></div></a> <a href="/index.php?option=com_content&view=category&layout=blog&id=38&Itemid=29&lang=ru" class="amu"><div class="btn2"><div class="button_link"></div></div></a> <a href="/index.php?option=com_content&view=category&layout=blog&id=31&Itemid=28&lang=ru" class="amu"><div class="btn3"><div class="button_link"></div></div></a> </div> <div class="main_content"> <div class="left_news"> <div class="header_link"><div class="text_link"><MARQUEE DIRECTION='Left' BEHAVIOR='Scroll' WIDTH='100%' SCROLLAMOUNT='2' SCROLLDELAY='90' ><if($this->countModules("top_marque")):jdoc:include type="modules" name="top_marque" />1</MARQUEE></div></div> <?php endif;?> <div class="header_link"><div class="text_link"><jdoc:include type="modules" name="top" /></div></div> <?php if($this->countModules("top_news")) :?> <div class="news_first"> <jdoc:include type="modules" name="top_news" /> </div> <?php endif;?> <jdoc:include type="component" /> <div style="clear:both;"></div> </div> <?php if($this->countModules("top_marque")) :?> <?php if (($this->countModules("right_dost"))||($this->countModules("right_foto"))||($this->countModules("right_year"))||($this->countModules("right_pogoda"))) : ?> <div class="right_news"> <div class="right_panel"> <?php if($this->countModules("right_dost")) :?> <div class="header_part"><div class="header_text">Наши достижения</div></div> <div class="progress"> <jdoc:include type="modules" name="right_dost" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if($this->countModules("right_year")) :?> <div class="header_part"><div class="header_text">Год родной Земли</div></div> <div class="year_earth"> <jdoc:include type="modules" name="right_year" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if($this->countModules("right_guest")) :?> <div class="header_part"><div class="header_text">Гостевая книга</div></div> <div class="foto"> <jdoc:include type="modules" name="right_guest" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if($this->countModules("right_pogoda")) :?> <div class="header_part"><div class="header_text">Погода</div></div> <div class="foto"> <jdoc:include type="modules" name="right_pogoda" /> <div style="clear:both;"></div> </div> <?php endif;?> </div> </div> <?php endif;?> </div> </div> <div style="clear:both;"></div> <jdoc:include type="modules" name="podval" /> </div> </div> </div> </div> <div class="bottom"></div> </div> </body> </html>
не думал что вы там банально возьмете и вставите код как текст.. Код (CODE): <?php defined( '_JEXEC' ) or die( 'Restricted access' ); ?> <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <jdoc:include type="head" /> <?php if ($this->countModules("right_dost")){ ?> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/school/images/style.css"/> <?php } else{ ?> <link rel="stylesheet" type="text/css" href="<?php echo $this->baseurl ?>/templates/school/images/style1.css"/> <?php } ?> <link href="css/dropdown/dropdown.vertical.css" media="all" rel="stylesheet" type="text/css" /> <link href="css/dropdown/themes/default/default.ultimate.css" media="all" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/templates/school/images/IE7.js"></script> <!--[if lt IE 7]> <script type="text/javascript" src="js/jquery/jquery.js"></script> <script type="text/javascript" src="js/jquery/jquery.dropdown.js"></script> <![endif]--> </head> <body> <div class="page" align="center"> <div class="top"> <div class="content"> </div> </div> <div class="middle"> <div class="cover"> <div class="content"> <a href="/"><div class="header"> <div class="logo"></div> <div class="text_header"> <div class="info"></div> <div class="name"></div> </div></a> <div class="contact"> <div class="text"> <jdoc:include type="modules" name="top_contact" /> </div> </div> </div> <div class="all_part"> <div class="left_part"> <div class="main_menu"> <div class="top"></div> <div class="center"> <div class="border_left"></div> <div class="menu"> <jdoc:include type="modules" name="left_menu" /> </div> <div class="border_right"></div> </div> <div class="bottom"></div> </div> <div class="find"> <jdoc:include type="modules" name="left_search" /> </div> <?php if($this->countModules("left_link")) :?> <div class="header_part"><div class="header_text">Наши достижения</div></div> <div class="foto"><Br /> <jdoc:include type="modules" name="left_link" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if (($this->countModules("left_opros"))||($this->countModules("left_link"))||($this->countModules("right_banner"))) : ?> <div class="left_panel"> <?php if($this->countModules("left_opros")) :?> <jdoc:include type="modules" name="left_opros" /> <?php endif;?> <?php if($this->countModules("right_banner")) :?> <div class="header_part"><div class="header_text">Наш баннер</div></div> <div class="year_earth"> <jdoc:include type="modules" name="right_banner" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if($this->countModules("left_contact")) :?> <div class="header_part"><div class="header_text">2014-Год гостеприимства</div></div> <div class="year_earth"> <jdoc:include type="modules" name="left_contact" /> <div style="clear:both;"></div> </div> <?php endif;?> </div> <?php endif;?> </div> <div class="right_part"> <div class="img_school"> <div class="bachground_img"> <div class="label"><jdoc:include type="modules" name="top_slogan" /></div> </div> </div> <div> <a href="/index.php?option=com_content&view=category&layout=blog&id=40&Itemid=18" class="amu"><div class="btn1"><div class="button_link"></div></div></a> <a href="/index.php?option=com_content&view=category&layout=blog&id=38&Itemid=29&lang=ru" class="amu"><div class="btn2"><div class="button_link"></div></div></a> <a href="/index.php?option=com_content&view=category&layout=blog&id=31&Itemid=28&lang=ru" class="amu"><div class="btn3"><div class="button_link"></div></div></a> </div> <div class="main_content"> <?php if($this->countModules("top_marque")) :?> <div class="left_news"> <div class="header_link"><div class="text_link"><MARQUEE DIRECTION='Left' BEHAVIOR='Scroll' WIDTH='100%' SCROLLAMOUNT='2' SCROLLDELAY='90' > <jdoc:include type="modules" name="top_marque" />1</MARQUEE></div></div> <?php endif;?> <div class="header_link"><div class="text_link"><jdoc:include type="modules" name="top" /></div></div> <?php if($this->countModules("top_news")) :?> <div class="news_first"> <jdoc:include type="modules" name="top_news" /> </div> <?php endif; ?> <jdoc:include type="component" /> <div style="clear:both;"></div> </div> <?php if($this->countModules("top_marque")) :?> <?php if (($this->countModules("right_dost"))||($this->countModules("right_foto"))||($this->countModules("right_year"))||($this->countModules("right_pogoda"))) : ?> <div class="right_news"> <div class="right_panel"> <?php if($this->countModules("right_dost")) :?> <div class="header_part"><div class="header_text">Наши достижения</div></div> <div class="progress"> <jdoc:include type="modules" name="right_dost" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if($this->countModules("right_year")) :?> <div class="header_part"><div class="header_text">Год родной Земли</div></div> <div class="year_earth"> <jdoc:include type="modules" name="right_year" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if($this->countModules("right_guest")) :?> <div class="header_part"><div class="header_text">Гостевая книга</div></div> <div class="foto"> <jdoc:include type="modules" name="right_guest" /> <div style="clear:both;"></div> </div> <?php endif;?> <?php if($this->countModules("right_pogoda")) :?> <div class="header_part"><div class="header_text">Погода</div></div> <div class="foto"> <jdoc:include type="modules" name="right_pogoda" /> <div style="clear:both;"></div> </div> <?php endif;?> </div> </div> <?php endif;?><?php endif; ?> </div> </div> <div style="clear:both;"></div> <jdoc:include type="modules" name="podval" /> </div> </div> </div> </div> <div class="bottom"></div> </div> </body> </html> --- добавлено: 19.09.2014 --- Отредактировал еще раз! пробуйте
ОГРОМНОЕ СПАСИБО. Я с джумлой знаком , но не на таком уровне к сожалению( Я уже думал бэкап запрашивать у хостера. И можете мне объяснить то , что вы сказали , что я вставил как текст. Я же добавил вроде как надо. Или нет...
Я рад что помог я написал php код, который используется между таких вот символом <?php code... ?>, я думал вы в курсе дела))
воу воу ))) про php я вкурсе ))) Я не думал, что if($this->countModules("top_marque")) : надо еще в теги одни заключать )