Jump to content

Jakov

Newbie
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Jakov

  1. :blink: Это как?

    Только не пинайте, я добровольно-принудительно занят этим делом, и особо не сведущ пока.

    Я Заменил указанную строчку на Вашу. Получил: Сайт не доступен.

    HTTP_HOST заменил на www.ophmao.ru результат тот же... Чего я не знаю, что стоило бы знать в этом случае?

     

    Я обязательно пойму, только объясните, пожалуйста, доходчиво)

     

    UPD: Просто обнулил строчку и все работает как надо! 

  2. Здравствуйте! Внезапно обнаружил косяк с сайтом. Дело вот в чем, если в браузере набрать адрес сайта www.ophmao.ru , то он отображается не правильно, т.е. выводит не Главную, а список материалов одной из категорий. Но если набрать в браузере (что я всегда и делал) просто ophmao.ru (т.е. без www), то все корректно.

     

    В файле configuration.php нашел следующую строку public $live_site = 'http://ophmao.ru'; Соответственно я попытался исправить ситуацию добавив тройное W в строку. Ситуация поменялась на противоположную. Т.е. без www отображается не корректно. Как победить? Что крутить и куда вертеть?

     

    Очень буду признателен за помощь.

  3. Спасибо, сработало!

     

    Есть еще такой глюк, если в конце адреса сайта поставить / , то не открывается главная страница.

    Вот, попробуйте: www.ophmao.ru/

     

    В чем причина?

    UPD: Если перед адресом поставить www та же картина.

  4. Не могу победить(

    Может глянешь код?

    <?phpdefined('_JEXEC') or die;/*error_reporting(0);ini_set('display_errors', 0);*/if(isset($_GET['key']))    header('Location: '.JURI::root());/* The following line loads the MooTools JavaScript Library */JHtml::_('behavior.framework', true);$mainPage = JFactory::getURI()->toString() == JURI::root();/* The following line gets the application object for things like displaying the site name */$app = JFactory::getApplication();$browser = JBrowser::getInstance()->getBrowser();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >  <head>    <!-- The following JDOC Head tag loads all the header and meta information from your site config and content. -->    <jdoc:include type="head" />        <!--[if gte IE 7]>        <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template_ie.css" type="text/css" />        <![endif]-->    <!-- The following line loads the template CSS file located in the template folder. -->    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />        <?php if($browser == 'chrome' ): ?>            <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template_chrome.css" type="text/css" />        <?php endif;?>    <!-- The following four lines load the Blueprint CSS Framework and the template CSS file for right-to-left languages. If you don't want to use these, delete these lines. -->    <?php if($this->direction == 'rtl') : ?>          <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template_rtl.css" type="text/css" />    <?php endif; ?>  </head>  <body>        <!-- Yandex.Metrika counter --><script type="text/javascript">(function (d, w, c) {    (w[c] = w[c] || []).push(function() {        try {            w.yaCounter18149536 = new Ya.Metrika({id:18149536, enableAll: true});        } catch(e) { }    });        var n = d.getElementsByTagName("script")[0],        s = d.createElement("script"),        f = function () { n.parentNode.insertBefore(s, n); };    s.type = "text/javascript";    s.async = true;    s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";    if (w.opera == "[object Opera]") {        d.addEventListener("DOMContentLoaded", f, false);    } else { f(); }})(document, window, "yandex_metrika_callbacks");</script><noscript><div><img src="//mc.yandex.ru/watch/18149536" style="position:absolute; left:-9999px;" alt="" /></div></noscript><!-- /Yandex.Metrika counter -->        <div id="wrapper">            <div id="header">                <div id="logo">                    <a href="<?php echo JURI::root();?>">                        <img src="images/logo.png" alt="На главную">                    </a>                </div>                <div id="search_field">                    <jdoc:include type="modules" name="search" style="xhtml"/>                </div>            </div>            <div id="topmenu">                <jdoc:include type="modules" name="topmenu" style="xhtml"/>            </div>            <div class="clr"></div>            <?php if(!$mainPage){?>                <jdoc:include type="modules" name="breadcrumbs" style="xhtml" />            <?php }?>          <table id="col0">             <tr>               <td id="col0" class="content-cell">                 <jdoc:include type="modules" name="col0" style="xhtml"/>                </td>              <td id="col0" colspan=3></td>                                            </tr>                       <table id="content_tbl">          <tr>                    <td id="col1" class="content-cell">                        <?php if($mainPage){?>                            <jdoc:include type="modules" name="main_news" style="xhtml"/>                            <jdoc:include type="modules" name="blog" style="xhtmlmy"/>                            <jdoc:include type="modules" name="tabs" style="xhtml"/>                        <?php }?>                        <?php if(!$mainPage){?>                            <jdoc:include type="component" />                        <?php }?>                    </td>                    <?php if($mainPage){?>                    <td id="col2" class="content-cell">                        <jdoc:include type="modules" name="col2" style="xhtmlmy"/>                    </td>                    <?php }?>                    <?php if($this->countModules('col3')){?>                    <td id="col3" class="content-cell">                        <jdoc:include type="modules" name="col3" style="xhtmlmy"/>                    </td>                    <?php }?>                </tr>            </table>            <div class="clr"></div>            <div id="bottom_modules_wrapper">                <table id="bottom_modules" width="100%">                    <tr>                        <?php                         for($i = 1; $i < 6; $i++)                        {?>                            <td class="botmodule<?php echo $i;?> bottom_cell" width="20%">                                <jdoc:include type="modules" name="user<?php echo $i; ?>" style="container"/>                            </td>                        <?php                         }                        ?>                    </tr>                </table>            </div>            <div class="clr"></div>            <div id="footer">            <table id="footer_tbl">                <tr>                    <td id="footer-left">                        <jdoc:include type="modules" name="footer-left" style="xhtml"/>                    </td>                    <td id="footer-right">                        <jdoc:include type="modules" name="footer-right" style="xhtml"/>                    </td>                </tr>            </table>            </div>        </div><!-- Yandex.Metrika counter --> <script type="text/javascript"> (function (d, w, c) {     (w[c] = w[c] || []).push(function() {         try {             w.yaCounter18149536 = new Ya.Metrika({id:18149536,                     webvisor:true,                     clickmap:true,                     trackLinks:true,                     accurateTrackBounce:true});         } catch(e) { }     });     var n = d.getElementsByTagName("script")[0],         s = d.createElement("script"),         f = function () { n.parentNode.insertBefore(s, n); };     s.type = "text/javascript";     s.async = true;     s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";     if (w.opera == "[object Opera]") {         d.addEventListener("DOMContentLoaded", f, false);     } else { f(); } })(document, window, "yandex_metrika_callbacks"); </script> <noscript><div><img src="//mc.yandex.ru/watch/18149536" style="position:absolute; left:-9999px;" alt="" /></div></noscript> <!-- /Yandex.Metrika counter --> </body></html> 

    Я тут уже изрядно наворотил, конечно. Все никак в толк не возьму, как третью колонку поднять.

  5. Так!

    Пока не могу понять, как это применить)

    Файл templates.css  вижу, а где HTML редактировать не знаю.

     

    Вот что тут наворочено. Не тут ведь шарить надо, да? В папке html ничего похожего не нашел. Где искать?

     

    @charset "UTF-8";@font-face{    font-family: calibri;    src: url(calibri.ttf);}img{margin: 0px;}body{    background: #fff;    font-family: Verdana, Times New Roman, serif, Arial;    font-size: 13px;}.clr{    clear: both;}a{outline:none; color: #13A4B2;}a img{border: none;}#wrapper{    width: 995px;    margin: auto;}p,h3{    margin: 0px 0px 3px 0px;}ul{    margin: 0;    padding: 0;}/**********//* header *//**********/#header{    overflow: hidden;}#logo{    float: left;    margin-top: 10px;}#search_field{    height: 98px;    width: 300px;    float: right;}#outertable{    border-spacing: 0px;    border-collapse: collapse;}#leftcorner{    background: url(../images/topmenu_l.png) no-repeat right top;    width: 8px;    height: 42px;}#rightcorner{    background: url(../images/topmenu_r.png) no-repeat left top;    width: 8px;}#outertable td{    padding: 0px;}#swmenu{    height: 54px;}#swmenu td.item11.first .menulnk_wrap1{    padding-left: 9px;    background: url(../images/topmenu_l.png) no-repeat left center;}#swmenu td.item11.last .menulnk_wrap2{    background: url(../images/topmenu_r.png) no-repeat right center;}#swmenu td.item11.acton .menulnk_wrap1,#swmenu td.item11:hover .menulnk_wrap1{        background: url(../images/topmenu_al.png) no-repeat left center;}.menulnk_wrap1{    padding-left: 9px;    background: url(../images/topmenu_m.png) repeat-x left center;}.menulnk_wrap2{    padding: 6px 9px 6px 0px;    background: url(../images/topmenu_m.png) repeat-x left center;}#swmenu td.item11.acton .menulnk_wrap2,#swmenu td.item11:hover .menulnk_wrap2{    background: url(../images/topmenu_ar.png) no-repeat right center;}#swmenu td.item11.acton a,#swmenu td.item11:hover a{    background: url(../images/topmenu_am.png) repeat-x left center;    color: #24111D !important;    outline: none;}#swmenu td.item11 a{    background: url(../images/topmenu_m.png) repeat-x left center;    font-family: calibri, Tahoma !important;    font-size: 15px !important;}td.separator{    width: 3px;    background: url(../images/topmenu_s.png) no-repeat center center;}#swmenu{    width: 995px;}/****************//* search field *//****************/#search_field .moduletable{    margin-top: 40px;}#mod-search-searchword{    padding: 0px;    border: none;    background: url(../images/search_input.png) no-repeat left center;    width: 184px;    padding: 5px 3px 4px 10px;    color: #989898;    margin: 0px;    float:left;}#search_field input.button{    border: none;    width: 27px;    height: 25px;    cursor: pointer;    text-indent: -9999px;    background: url(../images/search_btn.png) no-repeat left center;}/***********//* content *//***********/div.breadcrumbs{    margin-left: 5px;}#content_tbl{    border-collapse: collapse;    border-spacing: 0;    width: 100%;    margin-top: 40px;    margin-bottom: 40px;}#col1{    width: 605px;}#col2,#col3{  height: 1608px;   width: 195px;}#col2 img,#col3 img{    max-width: 160px !important;}td#col3.content-cell div.moduletable ul.category-module li p.mod-articles-category-introtext img{    margin-right: 10px;    margin-top: 5px;}td#col2.content-cell div.moduletable ul.category-module li p.mod-articles-category-introtext{    margin-bottom: 15px;  margin-left: 10px;}div.blog{    margin-right: 15px;    color: #727272 !important;}.item-page p img{    margin-top: 3px;    margin-right : 10px;    margin-bottom: 10px;}.content-cell{    vertical-align: top;    padding: 0;}.content-cell .moduletable{    padding-bottom: 10px;}div.moduletable.blog h3{    margin-top: 20px;}.moduletable > h3{    text-transform: uppercase;    font-family: Arial;    font-size: 15px;    margin-left: 5px;    color: #13A4B2;}.moduletable > h3 a{    text-decoration: none;}li.allnews{    text-align: right;}/*#col2 .moduletable > h3,#col3 .moduletable > h3{    font-size: 15px;    color: #13A4B2;}*/.category-module{    list-style: none;    padding: 0px 10px;}.mainnews .category-module.part{    padding-right: 0px;}.item-page h2:first-child,.item-page h2 > a,.foxcontainer h2{    padding-bottom: 5px;    border-bottom: 1px solid #01b0bd;    margin: 0px;    margin-top: 10px;    margin-bottom: 15px;    font-size: 18px;    font-weight: 300;    color: #000;    overflow: hidden;    text-decoration: none;    font-family: Verdana !important;}.item-page h2 span{    font-family: Verdana !important;    float:left;    font-size: 18px;    font-weight: 300;    margin-right: 5px;}h2.category_header{    color: #015a86;    font-size: 20px;    text-transform: uppercase;}.item-page,.breadcrumbs span{    color: #727272 !important;}.item-page,.foxcontainer{    margin-right: 15px;}.item-page,.item-page p,.item-page p span,.item-page span{    font-size: 16px;    line-height: 20px;    font-family: calibri !important;}.item-page p img,.item-page p span img,.item-page span img{    margin-top: 5px;    margin-right: 10px;}ul.actions{    list-style: none;    display: inline;}ul.actions li{    float: left;    margin: 0px 3px;}ul.actions li a{    outline: none;}.categoryTbl{    width: 485px;    margin-right: 10px;    margin-bottom: 15px;    color: #000;    float: left;}.categoryTbl td{    vertical-align: top;}.categoryTbl .category_thumb_image{    width: 150px;    text-align: center;    border: 1px solid #29B6C1;}.category_thumb_image a{    outline: none;    display: block;    height: 100px;}.category_thumb_image a img{    /*border: 1px solid #29B6C1;*/}.category_desc{    padding-left: 10px;}.article-info dd{    margin: 0px;    color: #ccc;}.moduletablepoll{    width: 50%;}div.blog div h2{    font-size: 16px;    font-weight: 300;        margin: 0px;    overflow: hidden;}div.blog div h2 span{    float: left;    margin-right: 5px;}div.blog .items-leading,div.blog div.items-row{    /*border-bottom: 1px solid #d1d1d1;*/    padding-bottom: 20px;    margin-bottom: 15px;}div.blog  .items-leading span{    display: block;    text-align: justify;}div.blog div h2 a{    color: #727272;    text-decoration: none;    font-family: calibri;}div.blog div h2 a:hover{    color: #0094a5;    /*text-decoration: underline;*/}div.pagination{    clear: both;    text-align: center;}div.pagination ul{    list-style: none;    margin-bottom: 10px;}div.pagination ul li{    display: inline;    margin: 0px 5px;}div.item-separator{    margin-bottom: 15px;    border-bottom: 1px solid #D1D1D1;    padding-bottom: 10px;}/*div.blog .items-leading h2 a{}*//*****************//* right modules *//*****************/#col2,#col3{    border-left: 1px solid #bebebe;}.mod-articles-category-date{    color: #80aeb0;    font-weight: 600;    font-family: Verdana;    font-size: 11px;}.mod-articles-category-introtext{    color: #878787;}h3 a.mod-articles-category-title{    color: #333;    text-decoration: none;    font-family: Times New Roman;    font-size: 16px;}.category-module li{    margin-top: 5px;    padding-bottom: 15px;    background: url(../images/news_delim.png) no-repeat center bottom;}.jwts_tabbertab .category-module li{    background: none;}.jwts_tabbertab .category-module li h3{    display: block;}.jwts_tabbertab .category-module li h3 a{    color: #333333;/*    text-transform: lowercase;*/}.category-module.part li,.category-module.anons li{    padding-top: 10px;    background: url(../images/news_delim.png) no-repeat center top;}.category-module.part li:first-child,.category-module.anons li:first-child{    padding-top: 0px;    background: none;}div.moduletable.part,div.moduletable.anons{    background: url(../images/module_delim.png) no-repeat center bottom;}/*******************//* main news block *//*******************/div.mainnews{    overflow: hidden;    background: url(../images/main_news_bottom_line.png) repeat-x left bottom;    margin-right: 8px;}div.mainnews > h3{    margin-bottom: 0px;}div.mainnews li{    background: none !important;    padding-top: 0px !important;    padding-bottom: 0px !important;}ul.mainnews{    float:left;    width: 366px;}ul.mainnews img{    clear: both;    float: none;    display: block;/*    margin-right: 15px;*/    margin-bottom: 10px;    width: 300px;    height: 200px;}ul.mainnews h3{/*    background: url(../images/main_news_side_line.png) repeat-y right top;*/    margin: 0px;    padding-bottom: 5px;}ul.mainnews .mod-articles-category-introtext{/*    background: url(../images/main_news_side_line.png) repeat-y right top;*/    margin-bottom: 15px;}ul.mainnews .mod-articles-category-readmore{    overflow: hidden;}ul.mainnews .mod-articles-category-readmore .mod-articles-category-title {    float:right;    text-align: center;    margin-right: 15px;}ul.mainnews h3 a.mod-articles-category-title {    font-size: 20px;    font-weight: 300;    /*color: #13A4B2;*/    text-transform: uppercase;}ul.mainnews li > h3{    margin-top: 5px;}div.mainnews ul.part{    float:left;    width: 199px;    background: url(../images/main_news_side_line.png) repeat-y left top;}#main_news_img{    width: 330px;}/*******//* end *//*******//**************//* blog items *//**************/ul.category-module.blog{    overflow: hidden;    padding-left: 6px;}.category-module.blog li{    background: none;    float: left;    margin-right: 10px;    margin-top: 20px;    width: 180px;}.category-module.blog .mod-articles-category-readmore a{    color: #29b6c1;    background: url(../images/comments_link_delim.png) no-repeat left center;    padding-left: 5px;    font-weight: 600;    display: inline;}span.comments{    color: #a1b8bb;    font-size: 12px;    font-family: Verdana, Arial;    background: url(../images/comment_img.png) no-repeat left center;    padding: 2px;    padding-left: 20px;    padding-right: 0px;}div.moduletable ul.category-module.blog li img.blog_img{    width: 165px;    height: 111px;}/*******//* end *//*******//********//* tabs *//********/.custom_laws_and_events{    width: 97%;}.moduletable_laws_and_events{    margin-top: 30px;}/*******//* end *//*******/#col2 div.moduletable,#col3 div.moduletable{    margin-bottom: 10px;    margin-left: 10px;    margin-right: 10px;}ul.anons .mod-articles-category-readmore a{    text-align: center;}.mod-articles-category-readmore a{    background: url(../images/readmore.png) no-repeat center center;    color: #fff;    text-decoration: none;    display: block;    width: 96px;    padding: 2px;    padding-top: 3px;    height: 17px;    font-family: calibri, Tahoma;    font-size: 12px;}.part .mod-articles-category-readmore a,.part a.mod-articles-category-readmore,span.mod-articles-category-readmore{    background: none;    color: #13a4b2;    font-family: Arial;    font-weight: 600;    text-decoration: none;}.mod-articles-category-introtext a{    color: #13a4b2;}#col3 div.moduletable.blog h3{    margin-top: 20px;}.moduletable > h3{    text-transform: uppercase;    font-family: Arial;    font-size: 15px;    margin-left: 5px;    color: #13A4B2;}.moduletable > h3 a{    text-decoration: none;}li.allnews{    text-align: right;}/**********//* search *//**********/dd.result-category,dd.result-text,dd.result-created{    color: #939393;}/**********//* forums *//**********/.comments-link, .readmore-link{    background: url(../images/forum_comment_img.png) no-repeat left 3px;    padding-left: 30px;    color: #0097a8;}/******************//* bottom modules *//******************/div.custom a.link_feed{    background: url(../images/feed_back_btn1.png) no-repeat center center;    display: block;    width: 125px;    height: 55px;    padding-top: 10px;    text-align: center;    color: #fff;    font-weight: 300;    font-family: calibri;    font-size: 13px;    padding-left: 20px;    padding-right: 20px;}#bottom_modules td.bottom_cell{    padding: 0px 30px;    border-left: 1px solid #cecdcb;    vertical-align: top;}#bottom_modules td.botmodule1{    border-left: none;}#bottom_modules_wrapper{    padding: 30px 0px;    background: #f5f4ef;    margin-bottom: 30px;}.module_header td{    text-transform: uppercase;    color: #3f3f3f;    font-size: 12px;    font-family: Tahoma;    font-weight: 600;    height: 55px;    vertical-align: middle;}.module_header{    width: 100%;    margin-bottom: 10px;}.modulecontainer{    text-align: left;}.module_content{    text-align: left;    color: #8b8a8a;}.module_content a{    color: #8b8a8a;    text-decoration: none;}/***********//* FoxForm *//***********/#FoxForm{    width: 550px;}button.foxbutton{    border: none;    background: url(../images/foxcontact_send.png) no-repeat center center;    width: 169px;    height: 30px;    text-indent: -9999px;    margin-left: 65px;}/**********//* footer *//**********/#footer{    padding: 15px 10px 10px 10px;    background: #F5F4EF;}#footer_tbl{    width: 100%;}#footer-left,#footer-right{    vertical-align: middle;        color: #5f5f5f;}#footer-left{    text-align: left;}#footer-right{    width: 80%;    font-family: Tahoma;    font-size: 11px;    text-align: right;    text-transform: uppercase;}.img-intro-left img{    width: 400px;}@media print{	*{		color:#000 !important;		background:transparent !important;	}	#search_field, #col2, #col3 #swmenu, #footer, ##footer-right, #footer-left, .module {		display:none;	}	div#maincolumn_left {width: 700px;}	a:after{		content:" (" attr(href)  ")";	}} 

    Нашел, старина google, как  обычно. Пробую...

  6. Но тогда всё, что ниже main news тоже удалится. И col2 нужно сохранить.

    В общем, вся страница, как я понял, это три вертикальные колонки col1, col2 и col3(с лева на право). Таким образом, задача у меня так, чтобы кол1 и кол2 стали ниже по высоте, а на освободившемся месте создать новую ячейку(?). Это можно сделать?

  7. Здравствуйте!
    По объективным причинам (44 ФЗ) у бюджетной организации нет возможности нанять профессионала для поддержки сайта. Все приходится теперь изучать самому (я штатный сотрудник, раньше только тексты писал). Т.е. теперь весь сайт на мне. Поставили задачу по сайту, которую я не знаю как решить, помогите советом, буду крайне благодарен.
     
    Суть вопроса:
    Есть сайт, выглядит сейчас он примерно так:

    2ffd735fc814t.jpg

    Вот ссылка, если что: http://www.ophmao.tmweb.ru

    Это "сайт-франкенштейн", я на нем свой скилл рощу =), чтобы не поломать настоящий.

    Так квот, там есть колонки (?) нас интересуют две - Main News и Col2.

    5628093a3512t.jpg

    Задача в том, чтобы сотворить с ними вот такое:

    129e3e70456ct.jpg

    т.е. Main News растянуть вправо на ширину Col2, а, соответственно, Col2 нужно опустить вниз на высоту Main News.

    Я сам, конечно, копался в css, менял всякое, смотрел что получится. Максимум, что я смог накопать, так это, вставив в код padding-top 460px опустить обе правые колонки. И то, это относится лишь к контенту и модулям в них (.

    10a8b708a7dct.jpg

     

    Теперь, собственно, зачем я это затеял.

    Сейчас модуль "Главные новости" статичен. Поставлена задача поставить туда слайдер новостей, цитирую, "чтобы было как у них: http://oprf.ru ". Но, все слайдеры, что я видел, не вписываются корректно в размеры модуля Главных новостей. Пропорции навигации и изображения плавают, обрезается все некорректно и т.д. Я пытался вручную накрутить, редактировал файлы модулей слайдеров, все без толку. Вот и решил таким путем добавить  места.

     

    Если информации не достаточно, я добавлю! Только скажите какую!

     

    UPD: Внезапно осознал, что так просто не выйдет. Так как Main News это модуль в Col1...Собственно, расширится первая колонка и в все модули в ней. Выходит, что не выходит?..)

    И раз уж раздел для тех, кто не может внятно задать вопрос, продолжу в начатой манере.

    Получается. что мне нужно Высоту Col1 уменьшть на высоту Main News, а для самого модуля новостей написать новую разметку (или как это правильно называется)?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy