Проблема с модулем с отоб ражение на главной

(Ответов: 10, Просмотров: 1333)
Страница 1 из 2 12 Последняя
  1. Дипломник Аватар для real2012
    • Регистрация: 22.05.2012
    • Сообщений: 103
    • Репутация: 1
    Как сделать чтоб модуль б ыл только на главной, в а минке отмечаю позицию от бражения только на главн й, проблема в том что по  умолчанию главная у меня  стоит компонент объявлени й, и отображается модуль  олько на главной и у все  объявлениях, а нужно тол ько на главной. Помогите  ожалуйста.
    Последний раз редактировалось real2012; 26.08.2012 в 13:47.
    • 0
  2. Дипломник
    • Регистрация: 19.02.2012
    • Сообщений: 236
    • Репутация: 39
    1.Ищешь какой пункт меню у тебя выбран по умолчанию.
    2.Идешь в настройки модуля. В группе "Назначение меню" ставишь галочку "Выбрать из списка" и выделяешь только пункт меню, который выбран в п.1 по умолчанию.
    3.Все.
    • 0
  3. Дипломник Аватар для real2012
    • Регистрация: 22.05.2012
    • Сообщений: 103
    • Репутация: 1
    ordozz,
    Код HTML:
    дело в том что по умолчанию стоит компонент объявлений,
     и этот модуль дублируется во всех объявлениях, а это не нужно.
     как сделать чтоб этот модуль был только на главной?
    Последний раз редактировалось real2012; 27.08.2012 в 16:38.
    • 0
  4. Новичок Аватар для Andy_ham
    • Регистрация: 02.10.2008
    • Сообщений: 17
    • Репутация: 10
    Существует способ с минимальными знаниями сделать это на уровне шаблона. Сразу после тега body объявляем переменные:
    PHP код:
    <?php
    $Itemid 
    JRequest::getInt'Itemid'1'get' );
    $option JRequest::getVar('option'null); 
    $view JRequest::getVar('view'null); 
    $document = & JFactory::getDocument();
    $user = & JFactory::getUser();
    ?>
    Потом в нужном месте шаблона добавляем код:
    PHP код:
    <?php if ($option == 'com_content' && $view == 'frontpage') { ?>
    тут код того, что нужно только на главной странице
    <?php } else { ?>
    а тут код того, что нужно везде, КРОМЕ главной страницы
    <?php ?>
    Соотвественно, легко сообразить, что будет при таком раскладе:
    PHP код:
    <?php if ($option == 'com_content' && $view == 'frontpage') { ?>
    <jdoc:include type="modules" name="user1" />
    <?php } else { ?>
    <jdoc:include type="modules" name="user2" />
    <?php ?>
    user1 выведется только на главной странице, а user2 на всех, кроме главной.
    Последний раз редактировалось Andy_ham; 27.08.2012 в 17:04.
    • 0
  5. Дипломник Аватар для real2012
    • Регистрация: 22.05.2012
    • Сообщений: 103
    • Репутация: 1
    Andy_ham,
    Код HTML:
    не знаю что не так, что-то не получается вот сайт на котором это делаю http://doba.rv.ua
    • 0
  6. Новичок Аватар для Andy_ham
    • Регистрация: 02.10.2008
    • Сообщений: 17
    • Репутация: 10
    Там версия 1.5, к которой этот код подходит 100% ( у версии 2.5 все намного хуже в этом плане ). Код надо вставлять в нужном месте шаблона по фтп, тут помочь вряд ли кто сможет на расстоянии.
    • 0
  7. Дипломник Аватар для real2012
    • Регистрация: 22.05.2012
    • Сообщений: 103
    • Репутация: 1
    Andy_ham,
    Можна если сделать так
    PHP код:
    <?php
    // no direct access
    defined'_JEXEC' ) or die( 'Restricted index access' );
    ?>
    <?php
    /*------ Template Variables --------*/
    $panelMenu $this->params->get("panelMenu"0); 
    $superfish $this->params->get("superfish"1); 
    $templateWidth $this->params->get("templateWidth","980px");
    $logoStyle $this->params->get("logoStyle","Blue");
    $openPanel $this->params->get("openPanel""Open Panel");
    $bgStyle $this->params->get("bgStyle""complexWhite");
    $hilite $this->params->get("hilite""Red");
    $sfEffect $this->params->get("sfEffect""5");
    $ie6Warning $this->params->get("ie6Warning""1");

    if (
    $sfEffect == "1") {
    $sfType 'height:"show"';
    }
    else if (
    $sfEffect == "2") {
    $sfType 'width:"show"';
    }
    else if (
    $sfEffect == "3") {
    $sfType 'opacity:"show"';
    }
    else if (
    $sfEffect == "4") {
    $sfType 'width:"show", opacity:"show"';
    }
    else if (
    $sfEffect == "5") {
    $sfType 'height:"show",opacity:"show"';
    }
    else if (
    $sfEffect == "6") {
    $sfType 'height:"show", width:"show",opacity:"show" ';
    }
    else if (
    $sfEffect == "7") {
    $sfType 'height:"show", width:"show"';
    }

    ?>
    <!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" xml:lang="<?php echo $this->language?>" lang="<?php echo $this->language?>" >
    <head>




    <jdoc:include type="head" />
    <link rel="shortcut icon" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/favicon.ico" />
    <!-- Import Style Sheets-->
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
    <link href="templates/<?php echo $this->template ?>/css/template_css.css" rel="stylesheet" type="text/css" media="screen" />    
    <link href="templates/<?php echo $this->template ?>/css/style<?php echo $hilite ?>.css" rel="stylesheet" type="text/css" media="screen" />

    <meta name="google-site-verification" content="msfmSG_gLsYXv0SoYukiUUugpBXkARAlPFLLXYGsB1o" />
    <meta name='yandex-verification' content='6c96881ff19587c3' />
    <meta name='yandex-verification' content='74b36d829a5c3053' />



    <script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-29563669-1']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();

    </script>








    <!--[if lte IE 6]>
        <link rel="stylesheet" type="text/css" href="templates/<?php echo $this->template ?>/css/ie_6.css" media="screen, projection" />
        <script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/DD_belatedPNG0.0.7a-min.js"></script>
    <script>
        DD_belatedPNG.fix('#topShadow,#leftCol ul li a,#rightCol ul li a,#leftCol ul li span.separator,#rightCol ul li span.separator,#leftCol ul li a:hover,#rightCol ul li a:hover,blockquote,#logo img,.search,a.readon,a#open,#leftCol h3,#rightCol h3,.trigger img, .nopopup img'); 
    </script>
    <![endif]-->

    <!--[if IE 7]>
            <link rel="stylesheet" type="text/css" href="templates/<?php echo $this->template ?>/css/ie_7.css" media="screen, projection" />
        <![endif]-->
            
        
    <?php if ($superfish) { ?>
    <script type="text/JavaScript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/superfish.js"></script>
    <?php ?>
    <?php 
    if($this->countModules('panel1') or $this->countModules('panel2') or $this->countModules('panel3') or $this->countModules('panel4')) { ?>
    <script type="text/JavaScript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/jquery.popup.js"></script>
    <?php ?>

    <?php if ($panelMenu) { ?>
    <!-- Panel Menu-->
    <script type="text/JavaScript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/accordionMenu.js"></script>
    <?php }?>

    <?php if ($this->CountModules('search') <= 0) { ?>
    <style type="text/css" media="screen">
    #nav {width:98%}
    </style>
    <?php ?>


    <?php
    define
    'YOURBASEPATH'dirname(__FILE__) );
    require(
    YOURBASEPATH .DS."vars.php");
    ?>

    <script type="text/javascript">
    jQuery.noConflict();
    jQuery(document).ready(function(){
        
        <?php if ($superfish == "yes") : ?>
                jQuery("#nav ul")
                .superfish({
                    animation : {<?php echo $sfType ?>},
                    delay : 1000
                });    
        <?php endif; ?>
        

    jQuery("toggle").click(function () {
          jQuery("p.hidden").toggle("slow");
        });

    });
    </script>
    </head>
    <body>







    <div id="fold"></div>
        <div id="outsideWrap">
            <div id="theme" class="<?php echo $bgStyle ?>">
                <div id="topShadow">
                    <div id="container" style="width:<?php echo $templateWidth?>">
                        <div class="outerWrapperNone" style="width:<?php echo $templateWidth?>">
                            
                                <div id="topWrapper">
                                    <div class="innerContainer">
                                        <div id ="veryTopWrapper">
                                                <div id="veryTopLeft">
                                                    <jdoc:include type="modules" name="topleft" style="xhtml"/>




    <form action="http://www.google.com.ua" id="cse-search-box" target="_blank">
      <div>
        <input type="hidden" name="cx" value="partner-pub-2305550072620721:7577944343" />
        <input type="hidden" name="ie" value="UTF-8" />
        <input type="text" name="q" size="55" />
        <input type="submit" name="sa" value="Search" />
      </div>
    </form>

    <script type="text/javascript" src="http://www.google.com.ua/coop/cse/brand?form=cse-search-box&amp;lang=uk"></script>



                                        </div>
                                                <div id="veryTopRight">
                                                    <jdoc:include type="modules" name="topright" style="xhtml"/>
                                                </div>
                                        </div>


                                    
                                        <div id="headerWrap">    
                                                <div id="logo">
                                                        <a href="index.php"><img src="<?php echo $this->baseurl?>/templates/<?php echo $this->template ?>/images/logo.png" alt="<?php echo $mainframe->getCfg('sitename');?>" /></a>
                                                </div>
                                                <div id="navWrap">
                                                        <div id="nav">
                                                                <jdoc:include type="modules" name="menu" style="xhtml" />




                                                        </div>    
                                                </div>    







    <div align="right" overflow:auto;">






    <!-- Put this script tag to the <head> of your page -->
    <script type="text/javascript" src="http://userapi.com/js/api/openapi.js?48"></script>

    <script type="text/javascript">
      VK.init({apiId: 2411311, onlyWidgets: true});
    </script>



    <!-- Put this div tag to the place, where the Like block will be -->
    <div id="vk_like"></div>
    <script type="text/javascript">
    VK.Widgets.Like("vk_like", {type: "button"});
    </script>






    </div>    




                                                <div class="clear"></div>
                                        </div>
                                    </div>
                                </div>
                        </div>
                        <div class='clear'></div>
                        <?php if($this->countModules('banner') or $this->countModules('breadcrumb')) : ?>
                            <div class="outerWrapper" style="width:<?php echo $templateWidth?>">
                                <div class="innerWrapper" style="width:<?php echo $templateWidth-60?>px">
                                    
                                        <?php if($this->countModules('banner')) : ?>    
                                        
                                            <div id="banner">



                                                <jdoc:include type="modules" name="banner" style="xhtml" />
                                            </div>
                                        
                                        <?php endif; ?>
                                        
                                        <?php if($this->countModules('breadcrumb')) : ?>
                                        <!-- Breadcrumb -->
                                        <div id="pathwayWrap">
                                            <div class="pathway">
                                                    <jdoc:include type="modules" name="breadcrumb" style="xhtml" />
                                            </div>
                                        </div>
                                        <!-- Breadcrumb -->
                                        <?php endif; ?>
                                    
                                </div>
                            </div>
                            <div class="clear"></div>
                        <?php endif; ?>
                        <?php if ($topGrid1 "0") : ?>
                            <div class="outerWrapper" style="width:<?php echo $templateWidth?>">
                                <div class="innerWrapper" style="width:<?php echo $templateWidth-60?>px">
                                    <div class="gridWrap">
                                        <div id="topgrid1">
                                            <?php if($this->countModules('grid1')) : ?>
                                                    <div id="topgrid1Left_<?php echo $grid1Width ?>">
                                                            <jdoc:include type="modules" name="grid1" style="xhtml" />
                                                    </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('grid2')) : ?>
                                                    <div id="topgrid1Mid1_<?php echo $grid1Width ?>">
                                                            <jdoc:include type="modules" name="grid2" style="xhtml" />
                                                    </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('grid3')) : ?>
                                                    <div id="topgrid1Mid2_<?php echo $grid1Width ?>">
                                                            <jdoc:include type="modules" name="grid3" style="xhtml" />
                                                    </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('grid4')) : ?>
                                                    <div id="topgrid1Right_<?php echo $grid1Width ?>">
                                                            <jdoc:include type="modules" name="grid4" style="xhtml" />
                                                    </div>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="clear"></div>
                        <?php endif; ?>
                        <?php if ($topGrid2 "0") : ?>
                            <div class="outerWrapper" style="width:<?php echo $templateWidth?>">
                                <div class="innerWrapper" style="width:<?php echo $templateWidth-60?>px">
                                    <div class="gridWrap">
                                            <div id="topgrid2">
                                                <?php if($this->countModules('grid5')) : ?>
                                                        <div id="topgrid2Left_<?php echo $grid2Width ?>">
                                                                <jdoc:include type="modules" name="grid5" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('grid6')) : ?>
                                                        <div id="topgrid2Mid1_<?php echo $grid2Width ?>">
                                                                <jdoc:include type="modules" name="grid6" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('grid7')) : ?>
                                                        <div id="topgrid2Mid2_<?php echo $grid2Width ?>">
                                                                <jdoc:include type="modules" name="grid7" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('grid8')) : ?>
                                                        <div id="topgrid2Right_<?php echo $grid2Width ?>">
                                                                <jdoc:include type="modules" name="grid8" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                            </div>
                                    </div>
                                </div>
                            </div>
                            <div class="clear"></div>
                        <?php endif; ?>
                        <?php if ($topGrid3 "0") : ?>
                            <div class="outerWrapper" style="width:<?php echo $templateWidth?>">
                                <div class="innerWrapper" style="width:<?php echo $templateWidth-60?>px">
                                    <div class="gridWrap">
                                        <div id="topgrid3">
                                            <?php if($this->countModules('grid9')) : ?>
                                                    <div id="topgrid3Left_<?php echo $grid3Width ?>">
                                                            <jdoc:include type="modules" name="grid9" style="xhtml" />
                                                    </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('grid10')) : ?>
                                                    <div id="topgrid3Mid1_<?php echo $grid3Width ?>">
                                                            <jdoc:include type="modules" name="grid10" style="xhtml" />
                                                    </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('grid11')) : ?>
                                                    <div id="topgrid3Mid2_<?php echo $grid3Width ?>">
                                                            <jdoc:include type="modules" name="grid11" style="xhtml" />
                                                    </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('grid12')) : ?>
                                                    <div id="topgrid3Right_<?php echo $grid3Width ?>">
                                                            <jdoc:include type="modules" name="grid12" style="xhtml" />
                                                    </div>
                                            <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="clear"></div>
                        <?php endif; ?>
                        <?php if($this->countModules('top')) : ?>
                            <div class="outerWrapper" style="width:<?php echo $templateWidth?>">
                                <div class="innerWrapper" style="width:<?php echo $templateWidth-60?>px">                            
                                    <!-- Top -->
                                        <div id="top">
                                                <jdoc:include type="modules" name="top" style="xhtml" />
                                        </div>





                                    <!-- End Top -->    








                            
                                </div>
                            </div>






                            <div class="clear"></div>




                        <?php endif; ?>
                        <!-- MainWrap -->
                        <div class="outerWrapper" style="width:<?php echo $templateWidth?>">
                            <div class="innerWrapper" style="width:<?php echo $templateWidth-60?>px">
                                <div id="mainWrap_<?php echo $mainWidth ?>">
                                    <?php if($this->countModules('left')) : ?>
                                    <!-- Left Column -->
                                        <div id="leftCol_<?php echo $mainWidth ?>" class="column">
                                                <div id="leftCol">
                                                        <jdoc:include type="modules" name="left" style="xhtml" />





    <div align="left" overflow:auto;">
    <script type="text/javascript" src="http://userapi.com/js/api/openapi.js?48"></script>

    <!-- VK Widget -->
    <div id="vk_groups"></div>
    <script type="text/javascript">
    VK.Widgets.Group("vk_groups", {mode: 0, width: "200", height: "290"}, 16981583);
    </script>



    </center>
    </center>
    </div>




                                                </div>
                                        </div>





                                    <!-- End Left Column -->








                                    <?php endif; ?>



                                    <!-- Main Content -->



                                        <div id="midCol_<?php echo $mainWidth ?>" class="column">
                                            <?php if($this->countModules('advert1')) : ?>
                                            <div id="advert1">
                                                    <jdoc:include type="modules" name="advert1" style="xhtml" />
                                            </div>
                                            <?php endif; ?>






                                            <div class="clear"></div>

                                            <div id="mainContent">
                                                    <jdoc:include type="message" />
                                                    <jdoc:include type="component" />
                                            </div>








                                            <div class="clear"></div>





                                            <?php if($this->countModules('advert2')) : ?>
                                            <div id="advert2">
                                                    <jdoc:include type="modules" name="advert2" style="xhtml" />
                                            </div>
                                            <?php endif; ?>
                                        </div>
                                    <!-- End Main Content -->

                                    <?php if($this->countModules('right')) : ?>
                                    <!-- Right Column -->
                                        <div id="rightCol_<?php echo $mainWidth ?>" class="column">
                                        
                                                <div id="rightCol">
                                                        <jdoc:include type="modules" name="right" style="xhtml" />
                                                </div>
                                        </div>
                                    <!-- End Right Column -->
                                    <?php endif; ?>
                                </div><!-- End MainWrap -->
                            </div>
                        </div>
                        <div class='clear'>&nbsp;</div>
                        
            
                        <?php if($this->countModules('below')) : ?>
                        <!-- Below -->
                            <div class="outerWrapper" style="width:<?php echo $templateWidth?>">
                                <div class="innerWrapper" style="width:<?php echo $templateWidth-60?>px">
                                    <div id="below">
                                            <jdoc:include type="modules" name="below" style="xhtml" />
                                    </div>                                    
                                </div>
                            </div>
                        <!-- End Below -->
                        <div class="clear"></div>
                        <?php endif; ?>
                                            
                        <?php if ($botGrid4 "0") { ?>
                            <div class="outerWrapper" style="width:<?php echo $templateWidth?>">
                                <div class="innerWrapper" style="width:<?php echo $templateWidth-60?>px">
                                    <div class="gridWrap">
                                        <div id="botGrid4">
                                                <?php if($this->countModules('grid13')) : ?>
                                                        <div id="botgrid1Left_<?php echo $grid4Width ?>">
                                                                <jdoc:include type="modules" name="grid13" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('grid14')) : ?>
                                                        <div id="botgrid1Mid1_<?php echo $grid4Width ?>">
                                                                <jdoc:include type="modules" name="grid14" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('grid15')) : ?>
                                                        <div id="botgrid1Mid2_<?php echo $grid4Width ?>">
                                                                <jdoc:include type="modules" name="grid15" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('grid16')) : ?>
                                                        <div id="botgrid1Right_<?php echo $grid4Width ?>">
                                                                <jdoc:include type="modules" name="grid16" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            </div>






                            <div class="clear"></div>





                    <?php ?>

                        <?php if ($botGrid5 "0") { ?>
                            <div class="outerWrapper" style="width:<?php echo $templateWidth?>">
                                <div class="innerWrapper" style="width:<?php echo $templateWidth-60?>px">
                                    <div class="gridWrap">
                                        <div id="botGrid5">
                                                <?php if($this->countModules('grid17')) : ?>
                                                        <div id="botgrid2Left_<?php echo $grid5Width ?>">
                                                                <jdoc:include type="modules" name="grid17" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('grid18')) : ?>
                                                        <div id="botgrid2Mid1_<?php echo $grid5Width ?>">
                                                                <jdoc:include type="modules" name="grid18" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('grid19')) : ?>
                                                        <div id="botgrid2Mid2_<?php echo $grid5Width ?>">
                                                                <jdoc:include type="modules" name="grid19" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('grid20')) : ?>
                                                        <div id="botgrid2Right_<?php echo $grid5Width ?>">
                                                                <jdoc:include type="modules" name="grid20" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            </div>







                            <div class="clear"></div>
                        <?php ?>

                        <?php if ($botGrid6 "0") { ?>
                            <div class="outerWrapper" style="width:<?php echo $templateWidth?>">
                                <div class="innerWrapper" style="width:<?php echo $templateWidth-60?>px">
                                    <div class="gridWrap">
                                        <div id="botGrid6">
                                                <?php if($this->countModules('grid21')) : ?>
                                                        <div id="botgrid2Left_<?php echo $grid6Width ?>">
                                                                <jdoc:include type="modules" name="grid21" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('grid22')) : ?>
                                                        <div id="botgrid2Mid1_<?php echo $grid6Width ?>">
                                                                <jdoc:include type="modules" name="grid22" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('grid23')) : ?>
                                                        <div id="botgrid2Mid2_<?php echo $grid6Width ?>">
                                                                <jdoc:include type="modules" name="grid23" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                                <?php if($this->countModules('grid24')) : ?>
                                                        <div id="botgrid2Right_<?php echo $grid6Width ?>">
                                                                <jdoc:include type="modules" name="grid24" style="xhtml" />
                                                        </div>
                                                <?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                            </div>









                            <div class="clear"></div>
                        <?php ?>
                        
                        <div id="bottomWrap">
                            <div class="innerWrapper" style="width:<?php echo $templateWidth-60?>px">
                                <?php if($this->countModules('bottom')) : ?>
                                          <jdoc:include type="modules" name="bottom" style="xhtml" />
                                <?php endif; ?>
                            </div>
                        </div>





                        <div id="footerWrap">
                            <div class="innerWrapper" style="width:<?php echo $templateWidth-60?>px">
                                <?php if ($botmods_mod "0") { ?>
                                    <div id="botmodsWrap" style="width:<?php echo $templateWidth ?>px">
                                        <div id="botMods">
                                            <?php if($this->countModules('bottom1')) : ?> 
                                                <div id="botmodsLeft_<?php echo $botmodsWidth ?>">
                                                    <jdoc:include type="modules" name="bottom1" style="xhtml" />
                                                </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('bottom2')) : ?> 
                                                <div id="botmodsMid1_<?php echo $botmodsWidth ?>">
                                                    <jdoc:include type="modules" name="bottom2" style="xhtml" />
                                                </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('bottom3')) : ?> 
                                                <div id="botmodsMid2_<?php echo $botmodsWidth ?>">
                                                    <jdoc:include type="modules" name="bottom3" style="xhtml" />
                                                </div>
                                            <?php endif; ?>
                                            <?php if($this->countModules('bottom4')) : ?> 
                                                <div id="botmodsRight_<?php echo $botmodsWidth ?>">
                                                    <jdoc:include type="modules" name="bottom4" style="xhtml" />
                                                </div>    

                                            <?php endif; ?>            
                                        </div>
        




                            
        </div>









                                <?php ?>
                                <div id="footerShadow">
                                    <div id="footerLeft">
                                        <?php if($this->countModules('footer')) : ?>
                                                <jdoc:include type="modules" name="footer" style="xhtml" />
                                        <?php endif; ?>
                                        <div class="clearfix"></div>
                                    </div>
                                    <div id="footerRight">
                                        <img class="jbLogo" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/jb.png" alt="" />
                                    </div>




                                </div>



                            </div>

    <div align="center" overflow:auto;">

    <script type="text/javascript"><!--
    google_ad_client = "ca-pub-2305550072620721";
    /* Реклама от Гугол на Луцк */
    google_ad_slot = "7451439821";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    </div>

    <div align="center" overflow:auto;">
    <!-- Ukrainian Banner Network 468x60 START -->
    <center><script>
    //<!--
    ubn_user = "96776";
    ubn_page = "1";
    ubn_pid = Math.round((Math.random() * (10000000 - 1)));
    document.write("<iframe src='http://banner.kiev.ua/cgi-bin/bi.cgi?h" +
    ubn_user + "&amp;"+ ubn_pid + "&amp;" + ubn_page + 
    "' frameborder=0 vspace=0 hspace=0 " +
    " width=468 height=60 marginwidth=0 marginheight=0 scrolling=no>");
    document.write("<a href='http://banner.kiev.ua/cgi-bin/bg.cgi?" +
    ubn_user + "&amp;"+ ubn_pid + "&amp;" + ubn_page + "' target=_top>");
    document.write("<img border=0 src='http://banner.kiev.ua/" +
    "cgi-bin/bi.cgi?i" + ubn_user + "&amp;" + ubn_pid + "&amp;" + ubn_page +
    "' width=468 height=60 alt='Украинская Баннерная Сеть'></a>");
    document.write("</iframe>");
    //-->
    </script><br>
    <small><a href="https://www.bannerka.ua/" target="_top">Интернет реклама
    </a></small>
    </center>
    <!-- Ukrainian Banner Network 468x60 END -->

    </div>



                        </div><!--end #footerWrap -->                
                    </div><!--end #container -->
                    <?php if($this->countModules('panel1') or $this->countModules('panel2') or $this->countModules('panel3') or $this->countModules('panel4')) : ?>
                    








        <!-- Login -->
                        <div id="toppanel">
                        <!-- The tab on top -->    







                                <div class="tab">






                                    <a id="open" rel="#panelInner" href="#"><?php echo $openPanel ?></a>
                                </div> <!-- / top -->
                            <div id="panelInner"  class="overlay">
                                <div id="panel">
                                    <?php if($this->countModules('panel1')) : ?>
                                        <div id="panelLeft_<?php echo $panelWidth ?>">
                                            <jdoc:include type="modules" name="panel1" style="xhtml"/>
                                        </div>
                                    <?php endif; ?> 
                                    <?php if($this->countModules('panel2')) : ?>
                                        <div id="panelMidLeft_<?php echo $panelWidth ?>">
                                            <jdoc:include type="modules" name="panel2" style="xhtml"/>
                                        </div>
                                    <?php endif; ?> 
                                    <?php if($this->countModules('panel3')) : ?>
                                        <div id="panelMidRight_<?php echo $panelWidth ?>">
                                            <jdoc:include type="modules" name="panel3" style="xhtml"/>
                                        </div>
                                    <?php endif; ?> 
                                    <?php if($this->countModules('panel4')) : ?>
                                        <div id="panelRight_<?php echo $panelWidth ?>">
                                            <jdoc:include type="modules" name="panel4" style="xhtml"/>
                                        </div>
                                    <?php endif; ?> 
                                </div> <!-- /login -->    




                
                                <div class="close"></div>
                            </div>





                            <div id="backgroundPopup"></div>
                        </div> <!--panel -->
                    <?php endif; ?>                   
                </div><!--end #topShadow -->
            </div><!--end #theme -->
        </div><!--end #outsideWrap -->
     


    <div align="right" overflow:auto;">

    <a href="http://mysad.kiev.ua"title="Ландшафтный Дизайн Киев">Ландшафтный Дизайн Киев</a> 




    <a href="http://doba.rv.ua" ><img src="http://doba.rv.ua/images/doba.ua.rovno.gif"></a>




    <a href="http://artflora.rv.ua"><img src="http://artflora.rv.ua/artfloraimage.png" border="0" /></a>


    <!--LiveInternet counter--><script type="text/javascript"><!--
    document.write("<a href='http://www.liveinternet.ru/click' "+
    "target=_blank><img src='//counter.yadro.ru/hit?t11.6;r"+
    escape(document.referrer)+((typeof(screen)=="undefined")?"":
    ";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
    screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
    ";"+Math.random()+
    "' alt='' title='LiveInternet: показано число просмотров за 24"+
    " часа, посетителей за 24 часа и за сегодня' "+
    "border='0' width='88' height='31'><\/a>")
    //--></script><!--/LiveInternet-->








    <!-- Yandex.Metrika informer -->
    <a href="http://metrika.yandex.ru/stat/?id=12832567&amp;from=informer"
    target="_blank" rel="nofollow"><img src="//bs.yandex.ru/informer/12832567/3_0_FFFFFFFF_FAFAFAFF_0_pageviews"
    style="width:88px; height:31px; border:0;" alt="Яндекс.Метрика" title="Яндекс.Метрика: данные за сегодня (просмотры, визиты и уникальные посетители)" onclick="try{Ya.Metrika.informer({i:this,id:12832567,type:0,lang:'ru'});return false}catch(e){}"/></a>
    <!-- /Yandex.Metrika informer -->

    <!-- Yandex.Metrika counter -->
    <div style="display:none;"><script type="text/javascript">
    (function(w, c) {
        (w[c] = w[c] || []).push(function() {
            try {
                w.yaCounter12832567 = new Ya.Metrika({id:12832567,
                        clickmap:true,
                        trackLinks:true});
            }
            catch(e) { }
        });
    })(window, "yandex_metrika_callbacks");
    </script></div>
    <script src="//mc.yandex.ru/metrika/watch.js" type="text/javascript" defer="defer"></script>
    <noscript><div><img src="//mc.yandex.ru/watch/12832567" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
    <!-- /Yandex.Metrika counter -->


    <!-- Top YandeG for: `doba.rv.ua` id: `234783` -->
    <a href="http://yandeg.ru/" target="_blank" 
    title="Статистика сайта. Показано: просмотров страниц за неделю, просмотров страниц сегодня, посетителей сегодня."  
    style="text-decoration:none; font-size: 8px;">
    <script type="text/javascript">
    <!--
    document.write('<img '+
    'src="http://count.yandeg.ru/cnt.php?id=234783&img=7&h='+escape(document.URL)+
    '&ref='+escape(document.referrer)+((typeof(screen)=='undefined')?'':
    '&s='+screen.width+'*'+screen.height+
    '*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+
    '&rand='+Math.random()+
    '" width="88" height="31" border="0"'+
    ' alt="Рейтинг Сайтов YandeG" />')
    //--></script></a><div 
    style="position:absolute;left:-2395px;"><a 
    href="http://delicious-cooks.com/">Best Recipes</a></div><!-- /Top YandeG -->



    <!-- MyCounter v.2.0 -->
    <script type="text/javascript"><!--
    my_id = 107915;
    my_width = 88;
    my_height = 41;
    my_alt = "MyCounter - счётчик и статистика";
    //--></script>
    <script type="text/javascript"
      src="http://scripts.mycounter.ua/counter2.0.js">
    </script><noscript>
    <a target="_blank" href="http://mycounter.ua/"><img
    src="http://get.mycounter.ua/counter.php?id=107915"
    title="MyCounter - счётчик и статистика"
    alt="MyCounter - счётчик и статистика"
    width="88" height="41" border="0" /></a></noscript>
    <!--/ MyCounter -->
    </div>


    <center>

    . Рекомендуем вам 
    <a href="http://podobovo.in"title="аренда квартира на сутки"><img src="http://podobovo.in/posutochno.png">аренда квартиры на сутки</a> 
    в Украине без посредников <a href="http://podobovo.in/quicksearch/main/mainsearch?apType=3&objType=1&rooms=0&price=&squareMin=0&squareMax=240&floorMin=0&floorMax=30"title="гостиницы бронировине">гостиницы</a>, 
    <a href="http://podobovo.in/quicksearch/main/mainsearch?floorMin=0&floorMax=30&apType=3&squareMin=0&squareMax=240&objType=2&price=&rooms=0"title="дом посуточно">дом на сутки</a>, 
    <a href="http://podobovo.in/quicksearch/main/mainsearch?apType=3&objType=3&rooms=0&price=&squareMin=0&squareMax=240&floorMin=0&floorMax=30"title="квартиры посуточно">квартиры посуточно</a> напрямую от Владельцев.
    </center>












        <div class="clear"></div>
        <jdoc:include type="modules" name="debug" style="xhtml" />
        <jdoc:include type="modules" name="analytics" style="xhtml" />;
        
                                                    jdoc:include type=
    • 0
  8. Новичок Аватар для Andy_ham
    • Регистрация: 02.10.2008
    • Сообщений: 17
    • Репутация: 10
    Со строчки 139 видим тег <body>
    PHP код:
    <body







    <
    div id="fold"></div
    заменяем на
    PHP код:
    <body> 
    <?php 
    $Itemid 
    JRequest::getInt'Itemid'1'get' ); 
    $option JRequest::getVar('option'null);  
    $view JRequest::getVar('view'null);  
    $document = & JFactory::getDocument(); 
    $user = & JFactory::getUser(); 
    ?>
    <div id="fold"></div>
    Ну а куда нужно вставить модуль - я ж не знаю. Предположим, что он должен выводится выше основного контента. Ищем код
    PHP код:
    <div id="mainContent"
           <
    jdoc:include type="message" />
           <
    jdoc:include type="component" />
    </
    div
    и заменяем на
    PHP код:
    <div id="mainContent"> 
    <?php if ($option == 'com_content' && $view == 'frontpage') { ?> 
    <jdoc:include type="modules" name="user1" /> 
    <?php } else { ?> 
    <jdoc:include type="modules" name="user2" /> 
    <?php ?>
           <jdoc:include type="message" />
           <jdoc:include type="component" />
    </div>
    Не забываем прописать в xml файле шаблона позиции user1 и user2. Смотрим, корректируем, отлаживаем.
    Расписал аж по пунктам, больше даже не знаю чем помочь.
    • 0
  9. Дипломник Аватар для real2012
    • Регистрация: 22.05.2012
    • Сообщений: 103
    • Репутация: 1
    Код HTML:
    user1 так и не появился, всё сделал правильно(
    • 0
  10. Новичок Аватар для Andy_ham
    • Регистрация: 02.10.2008
    • Сообщений: 17
    • Репутация: 10
    real2012, user1 и user2 должны быть прописаны в xml файле шаблона, тогда они появятся в списке позиций.
    • 0
Страница 1 из 2 12 Последняя

Похожие темы

Темы Раздел Ответов Последний пост
Помощь с модулем.
Joomla 1 16.06.2012 15:19
Помощь с модулем SEO PRO v.4.0
DLE 5 02.06.2012 02:55
Проблемы с модулем dude Smart Leech
DLE 0 21.05.2012 04:13
Посоветуйте хостинг с конструктором/модулем интернет-магазина.
Хостинг и Серверы 9 22.08.2011 01:05

У кого попросить инвайт?

Вы можете попросить инвайт у любого модератора:

Информеры