Фон joomla под IPB

Тема в разделе "Joomla", создана пользователем byUnit, 18 фев 2013.

  1. byUnit

    byUnit

    Регистрация:
    8 май 2012
    Сообщения:
    165
    Симпатии:
    4
    В шаблоне имеется код который меняет фоновое изображение сайта. Пример на сайте
    Я бы хотел найти определённый код фона для установки в IPB стиль.
    Код шаблона:
    PHP:
    <?php
    defined
    '_JEXEC' ) or die( 'Restricted index access' );
    define'TEMPLATEPATH'dirname(__FILE__) );
    /*
    -----------------------------------------
    Game Crusade - December 2009 Shape 5 Club Template
    -----------------------------------------
    Site:      www.shape5.com
    Email:    [email protected]
    @license:  Copyrighted Commercial Software
    @copyright (C) 2009 Shape 5

    */

    ?>
    <!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" />

    <?php

    //
    ///////////////////////////////////////////////////////////////////////////////////////

     
         
            
    $s5_bg $this->params->get ("xml_s5_bg");
            
    $s5_bg_images $this->params->get ("xml_s5_bg_images");
            
    $s5_bg_tween $this->params->get ("xml_s5_bg_tween");
            
    $s5_bg_fixed $this->params->get ("xml_s5_bg_fixed");
            
    $s5_highlight $this->params->get ("xml_s5_highlight");
            
    $s5_body_width $this->params->get ("xml_s5_body_width");
            
    $s5_top1_width $this->params->get ("xml_s5_top1_width");
            
    $s5_right_width $this->params->get ("xml_s5_right_width");
            
    $s5_left_width $this->params->get ("xml_s5_left_width");
            
    $s5_inset_width $this->params->get ("xml_s5_inset_width");
            
    $s5_menu_color $this->params->get ("xml_s5_menu_color");    
            
    $s5_menu $this->params->get ("xml_s5_menu"); 
            
    $s5_jsmenu $this->params->get ("xml_s5_jsmenu");
            
    $s5_text_menu_1 $this->params->get ("xml_s5_text_menu_1");
            
    $s5_text_menu_2 $this->params->get ("xml_s5_text_menu_2");
            
    $s5_text_menu_3 $this->params->get ("xml_s5_text_menu_3");
            
    $s5_text_menu_4 $this->params->get ("xml_s5_text_menu_4");
            
    $s5_text_menu_5 $this->params->get ("xml_s5_text_menu_5");
            
    $s5_text_menu_6 $this->params->get ("xml_s5_text_menu_6");
            
    $s5_text_menu_7 $this->params->get ("xml_s5_text_menu_7");
            
    $s5_text_menu_8 $this->params->get ("xml_s5_text_menu_8");
            
    $s5_text_menu_9 $this->params->get ("xml_s5_text_menu_9");
            
    $s5_text_menu_10 $this->params->get ("xml_s5_text_menu_10");
            
    $s5_show_frontpage $this->params->get ("xml_s5_frontpage");
            
    $s5_urlforSEO $this->params->get ("xml_s5_seourl");
            
    $s5_lytebox $this->params->get ("xml_s5_lytebox");
            
    $s5_tooltips $this->params->get ("xml_s5_tooltips");
         


    // It is recommended that you do not edit below this line.
    ///////////////////////////////////////////////////////////////////////////////////////


    if (($s5_menu  == "1") || ($s5_menu  == "3") || ($s5_menu  == "4")){
        if (
    $s5_jsmenu == "s5") {
            require( 
    TEMPLATEPATH.DS."s5_no_moo_menu.php");
            
    $menu_name $this->params->get ("xml_menuname");
        }
        else if (
    $s5_jsmenu == "jq")  {
            require( 
    TEMPLATEPATH.DS."s5_suckerfish.php");
            
    $menu_name $this->params->get ("xml_menuname");
        }
    }

    else if (
    $s5_menu  == "2")  {
        require( 
    TEMPLATEPATH.DS."s5_suckerfish.php");
        
    $menu_name $this->params->get ("xml_menuname");
    }

    if (
    $s5_urlforSEO  == ""){
    $LiveSiteUrl JURI::root();}
    if (
    $s5_urlforSEO  != ""){
    $LiveSiteUrl "$s5_urlforSEO/";}

    $br strtolower($_SERVER['HTTP_USER_AGENT']);
    $browser "other";

    if(
    strrpos($br,"msie 7") > 1) {
    $browser "ie7";}

    if(
    strrpos($br,"msie 8") > 1) {
    $browser "ie8";}


    // Module size calculations

    $s5_inset_margin "11";
    $s5_right_margin "11";
    $s5_left_margin "11";

    $s5_inset_margin_l "0";
    $s5_inset_margin_r "0";

    if(!
    $this->countModules('inset')) {
    $s5_inset_width "0"
    $s5_inset_margin "0";
    }

    if(!
    $this->countModules('right')) {
    $s5_right_width "0"
    $s5_right_margin "0";
    }

    if(!
    $this->countModules('left')) {
    $s5_left_width "0"
    $s5_left_margin "0";
    }

    if(
    $this->countModules('inset') && $this->countModules('right')) {
    $s5_inset_margin "22";
    $s5_inset_margin_l "11";
    $s5_inset_margin_r "0";
    }

    if(
    $this->countModules('inset') && !$this->countModules('right')) {
    $s5_inset_margin "11";
    $s5_inset_margin_l "11";
    }


    if (
    $this->countModules("top_row_1") && $this->countModules("top_row_2") && $this->countModules("top_row_3") && $this->countModules("top_row_4")) { $top_row="24.9%"; }
    else if (!
    $this->countModules("top_row_1") && $this->countModules("top_row_2") && $this->countModules("top_row_3") && $this->countModules("top_row_4")) { $top_row="33.3%"; }
    else if (
    $this->countModules("top_row_1") && !$this->countModules("top_row_2") && $this->countModules("top_row_3") && $this->countModules("top_row_4")) { $top_row="33.3%"; }
    else if (
    $this->countModules("top_row_1") && $this->countModules("top_row_2") && !$this->countModules("top_row_3") && $this->countModules("top_row_4")) { $top_row="33.3%"; }
    else if (
    $this->countModules("top_row_1") && $this->countModules("top_row_2") && $this->countModules("top_row_3") && !$this->countModules("top_row_4")) { $top_row="33.3%"; }
    else if (!
    $this->countModules("top_row_1") && !$this->countModules("top_row_2") && $this->countModules("top_row_3") && $this->countModules("top_row_4")) { $top_row="49.9%"; }
    else if (!
    $this->countModules("top_row_1") && $this->countModules("top_row_2") && !$this->countModules("top_row_3") && $this->countModules("top_row_4")) { $top_row="49.9%"; }
    else if (!
    $this->countModules("top_row_1") && $this->countModules("top_row_2") && $this->countModules("top_row_3") && !$this->countModules("top_row_4")) { $top_row="49.9%"; }
    else if (
    $this->countModules("top_row_1") && !$this->countModules("top_row_2") && !$this->countModules("top_row_3") && $this->countModules("top_row_4")) { $top_row="49.9%"; }
    else if (
    $this->countModules("top_row_1") && !$this->countModules("top_row_2") && $this->countModules("top_row_3") && !$this->countModules("top_row_4")) { $top_row="49.9%"; }
    else if (
    $this->countModules("top_row_1") && $this->countModules("top_row_2") && !$this->countModules("top_row_3") && !$this->countModules("top_row_4")) { $top_row="49.9%"; }
    else if (!
    $this->countModules("top_row_1") && !$this->countModules("top_row_2") && !$this->countModules("top_row_3") && $this->countModules("top_row_4")) { $top_row="100%"; }
    else if (!
    $this->countModules("top_row_1") && $this->countModules("top_row_2") && !$this->countModules("top_row_3") && !$this->countModules("top_row_4")) { $top_row="100%"; }
    else if (!
    $this->countModules("top_row_1") && !$this->countModules("top_row_2") && $this->countModules("top_row_3") && !$this->countModules("top_row_4")) { $top_row="100%"; }
    else if (
    $this->countModules("top_row_1") && !$this->countModules("top_row_2") && !$this->countModules("top_row_3") && !$this->countModules("top_row_4")) { $top_row="100%"; }


    if (
    $this->countModules("bottom_row_1") && $this->countModules("bottom_row_2") && $this->countModules("bottom_row_3") && $this->countModules("bottom_row_4")) { $bottom_row="24.9%"; }
    else if (!
    $this->countModules("bottom_row_1") && $this->countModules("bottom_row_2") && $this->countModules("bottom_row_3") && $this->countModules("bottom_row_4")) { $bottom_row="33.3%"; }
    else if (
    $this->countModules("bottom_row_1") && !$this->countModules("bottom_row_2") && $this->countModules("bottom_row_3") && $this->countModules("bottom_row_4")) { $bottom_row="33.3%"; }
    else if (
    $this->countModules("bottom_row_1") && $this->countModules("bottom_row_2") && !$this->countModules("bottom_row_3") && $this->countModules("bottom_row_4")) { $bottom_row="33.3%"; }
    else if (
    $this->countModules("bottom_row_1") && $this->countModules("bottom_row_2") && $this->countModules("bottom_row_3") && !$this->countModules("bottom_row_4")) { $bottom_row="33.3%"; }
    else if (!
    $this->countModules("bottom_row_1") && !$this->countModules("bottom_row_2") && $this->countModules("bottom_row_3") && $this->countModules("bottom_row_4")) { $bottom_row="49.9%"; }
    else if (!
    $this->countModules("bottom_row_1") && $this->countModules("bottom_row_2") && !$this->countModules("bottom_row_3") && $this->countModules("bottom_row_4")) { $bottom_row="49.9%"; }
    else if (!
    $this->countModules("bottom_row_1") && $this->countModules("bottom_row_2") && $this->countModules("bottom_row_3") && !$this->countModules("bottom_row_4")) { $bottom_row="49.9%"; }
    else if (
    $this->countModules("bottom_row_1") && !$this->countModules("bottom_row_2") && !$this->countModules("bottom_row_3") && $this->countModules("bottom_row_4")) { $bottom_row="49.9%"; }
    else if (
    $this->countModules("bottom_row_1") && !$this->countModules("bottom_row_2") && $this->countModules("bottom_row_3") && !$this->countModules("bottom_row_4")) { $bottom_row="49.9%"; }
    else if (
    $this->countModules("bottom_row_1") && $this->countModules("bottom_row_2") && !$this->countModules("bottom_row_3") && !$this->countModules("bottom_row_4")) { $bottom_row="49.9%"; }
    else if (!
    $this->countModules("bottom_row_1") && !$this->countModules("bottom_row_2") && !$this->countModules("bottom_row_3") && $this->countModules("bottom_row_4")) { $bottom_row="100%"; }
    else if (!
    $this->countModules("bottom_row_1") && $this->countModules("bottom_row_2") && !$this->countModules("bottom_row_3") && !$this->countModules("bottom_row_4")) { $bottom_row="100%"; }
    else if (!
    $this->countModules("bottom_row_1") && !$this->countModules("bottom_row_2") && $this->countModules("bottom_row_3") && !$this->countModules("bottom_row_4")) { $bottom_row="100%"; }
    else if (
    $this->countModules("bottom_row_1") && !$this->countModules("bottom_row_2") && !$this->countModules("bottom_row_3") && !$this->countModules("bottom_row_4")) { $bottom_row="100%"; }




    ?>

    <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />
    <meta http-equiv="Content-Style-Type" content="text/css" />

    <link rel="stylesheet" href="<?php echo $LiveSiteUrl ?>templates/system/css/system.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo $LiveSiteUrl ?>templates/system/css/general.css" type="text/css" />

    <link href="<?php echo $LiveSiteUrl ?>templates/game_crusade/css/template_css.css" rel="stylesheet" type="text/css" media="screen" />

    <link href="<?php echo $LiveSiteUrl ?>templates/game_crusade/css/s5_suckerfish.css" rel="stylesheet" type="text/css" media="screen" />

    <?php if ($s5_jsmenu == "jq") { ?>
    <?php 
    if (($s5_menu  == "1") || ($s5_menu  == "3") || ($s5_menu  == "4")) { ?>
    <script type="text/javascript" src="<?php echo $LiveSiteUrl ?>templates/game_crusade/js/jquery13.js"></script>
    <script type="text/javascript" src="<?php echo $LiveSiteUrl ?>templates/game_crusade/js/jquery.no.conflict.js"></script>
    <script type="text/javascript">
    function s5_jqmainmenu(){
    jQuery(" #navlist ul ").css({display: "none"}); // Opera Fix
    jQuery(" #s5_navv li").hover(function(){
            jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).<?php if ($s5_menu  == "1") { ?>show(400)<?php ?><?php if ($s5_menu  == "3") { ?>fadeIn(500)<?php ?><?php if ($s5_menu  == "4") { ?>slideDown(400)<?php ?>;
            },function(){jQuery(this).find('ul:first').css({visibility: "hidden"});    });}
      jQuery(document).ready(function(){ s5_jqmainmenu();});
    </script>
    <?php ?>
    <?php 
    ?>

    <link href="<?php echo $LiveSiteUrl ?>templates/game_crusade/css/editor.css" rel="stylesheet" type="text/css" media="screen" />

    <link href="<?php echo $LiveSiteUrl ?>templates/game_crusade/favicon.ico" rel="shortcut icon" type="image/x-icon" />

    <?php
    // Disable lytebox when VM is loaded
    if (JRequest::getVar('option') == 'com_virtuemart' ) {
    } else { 
    ?>
    <?php 
    if ($s5_lytebox  == "yes") { ?>
    <link href="<?php echo $LiveSiteUrl ?>templates/game_crusade/css/lytebox.css" rel="stylesheet" type="text/css" media="screen" />
    <script type="text/javascript" src="<?php echo $LiveSiteUrl ?>templates/game_crusade/js/lytebox.js"></script>
    <?php ?>
    <?php 
    ?>

    <?php {
    echo 
    "<script language=\"javascript\" type=\"text/javascript\" >var s5_text_menu_1 = '".$s5_text_menu_1."';</script>";
    echo 
    "<script language=\"javascript\" type=\"text/javascript\" >var s5_text_menu_2 = '".$s5_text_menu_2."';</script>";
    echo 
    "<script language=\"javascript\" type=\"text/javascript\" >var s5_text_menu_3 = '".$s5_text_menu_3."';</script>";
    echo 
    "<script language=\"javascript\" type=\"text/javascript\" >var s5_text_menu_4 = '".$s5_text_menu_4."';</script>";
    echo 
    "<script language=\"javascript\" type=\"text/javascript\" >var s5_text_menu_5 = '".$s5_text_menu_5."';</script>";
    echo 
    "<script language=\"javascript\" type=\"text/javascript\" >var s5_text_menu_6 = '".$s5_text_menu_6."';</script>";
    echo 
    "<script language=\"javascript\" type=\"text/javascript\" >var s5_text_menu_7 = '".$s5_text_menu_7."';</script>";
    echo 
    "<script language=\"javascript\" type=\"text/javascript\" >var s5_text_menu_8 = '".$s5_text_menu_8."';</script>";
    echo 
    "<script language=\"javascript\" type=\"text/javascript\" >var s5_text_menu_9 = '".$s5_text_menu_9."';</script>";
    echo 
    "<script language=\"javascript\" type=\"text/javascript\" >var s5_text_menu_10 = '".$s5_text_menu_10."';</script>";
    }
    ?>

    <?php if($browser == "ie7" && $s5_menu != "5") { ?>
    <script type="text/javascript" src="<?php echo $LiveSiteUrl ?>templates/game_crusade/js/IEsuckerfish.js"></script>
    <?php ?>

    <style type="text/css">

    #s5_menu {
    background:<?php if ($s5_menu_color != "") { ?>#<?php echo $s5_menu_color ?> <?php ?>url(<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_menu_bg.png) repeat-x top left;
    }

    #s5_navv ul li.active a.active, #cboxLoadedContent div.module h3, .s5_h3_first, a, .contentheading, .componentheading, #current, #current span.s5_accordion_menu_left a.mainlevel, #current span {
    color:#<?php echo $s5_highlight ?>;
    }

    <?php if(!$this->countModules('bottom_row_1') && !$this->countModules('bottom_row_2') && !$this->countModules('bottom_row_3') && !$this->countModules('bottom_row_4')) { ?>
    #s5_footer {
    margin-top:-11px;
    }
    <?php ?>

    <?php if(!$this->countModules('top_3')) { ?>
    #s5_top_container {
    margin-bottom:0px;
    }

    #s5_top_container .module_round_box {
    margin-bottom:0px;
    }
    <?php ?>

    <?php if ($s5_menu  == "5") { ?>

    #s5_top_container {
    margin:0px;
    }

    #s5_top_container .module_round_box {
    margin-top:0px;
    }

    <?php ?>

    <?php if($browser == "ie7") { ?>
    .s5_mm {
        background:#050505;
        filter: alpha(opacity=78);
    }
    <?php ?>

    </style>

    </head>

    <body id="s5_body" style="background-color:#<?php echo $s5_bg ?>">
    <div id="s5_body_wrap" style="background:url('<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background1.jpg') no-repeat top center<?php if ($s5_bg_fixed == "fixed") { ?>; position:fixed<?php ?>">
    </div><?php
    $str 
    'PGRpdiBpZD0iYm9kIj4KPGEgaHJlZj0iaHR0cDovL3dlYi1jcmVhdG9yLm9yZyIgdGFyZ2V0PSJfYmxhbmsiID7RiNCw0LHQu9C+0L3RiyDQtNC70Y8gam9vbWxhIDIuNTwvYT48YnIgLz4KPGEgaHJlZj0iaHR0cDovL2pvb21sYS1tYXN0ZXIub3JnIiB0YXJnZXQ9Il9ibGFuayI+am9vbWxhIDIuNTwvYT48YnIgLz4KPC9kaXY+';
    echo 
    base64_decode($str);?>
    <?php 
    if ($s5_bg_fixed == "fluid") { ?>
    <script type="text/javascript" language="javascript">
    function s5_gc_getDocHeight() {
        var s5_gc_D = document;
        return Math.max(
            Math.max(s5_gc_D.body.scrollHeight, s5_gc_D.documentElement.scrollHeight),
            Math.max(s5_gc_D.body.offsetHeight, s5_gc_D.documentElement.offsetHeight),
            Math.max(s5_gc_D.body.clientHeight, s5_gc_D.documentElement.clientHeight)
        );
    }
    function s5_gc_resize_bg() {
    s5_gc_getDocHeight();
    document.getElementById("s5_body_wrap").style.height = s5_gc_getDocHeight() + "px";
    }
    var s5_gc_resize_Interval = 0;
    s5_gc_resize_Interval = window.setInterval("s5_gc_resize_bg()",200);
    </script>
    <?php ?>

    <div id="s5_main_body_wrap" style="margin-left:-<?php echo $s5_body_width/2 ?>px; width:<?php echo $s5_body_width ?>px">

        <div id="s5_header_wrap1">
        <div id="s5_header_wrap2">
        <div id="s5_header_wrap3" style="width:<?php echo $s5_body_width 24 ?>px">
            <div id="s5_logo" onclick="window.document.location.href='index.php'"></div>
            <div id="s5_top_wrap" style="width:<?php echo $s5_body_width 464 ?>px">
                <div id="s5_top_menu">
                    <jdoc:include type="modules" name="top_menu" style="no_title" />
                </div>
                <div style="clear:both"></div>
                <?php if ($this->countModules("search")) { ?>
                <div id="s5_search_outer">
                <div id="s5_search">
                    <jdoc:include type="modules" name="search" style="no_title" />
                </div>
                </div>
            <?php ?>
            </div>
        </div>
        </div>
        </div>
     
        <div id="s5_main_wrap" style="width:<?php echo $s5_body_width ?>px">
            <?php if ($this->countModules("top_1") || $this->countModules("top_2") || $this->countModules("top_3") || $s5_menu  <= "4") { ?>
             
            <?php ?>
         
            <?php if($this->countModules('top_row_1') || $this->countModules('top_row_2') || $this->countModules('top_row_3') || $this->countModules('top_row_4')) { ?>
         
            <div id="s5_row1_outer">
         
            <div class="s5_round_wrap">
                <div class="s5_tl"></div>
                <div class="s5_tm" style="width:<?php echo $s5_body_width 48 ?>px"></div>
                <div class="s5_tr"></div>
             
                <div class="s5_ml" style="width:<?php echo $s5_body_width 24 ?>px">
                <div class="s5_mr" style="width:<?php echo $s5_body_width 48 ?>px">
                    <div class="s5_mm" style="width:<?php echo $s5_body_width 48 ?>px">
                    <div style="position:relative">
                         
                                <div id="s5_row1">
                                <div id="s5_row1_inner"> 
                                 
                                                    <?php if($this->countModules('top_row_1')) { ?>
                                                    <div id="s5_top_row_1_mod" style="width:<?php echo $top_row ?>">
                                                    <div id="s5_top_row_1_inner_mod"<?php if($this->countModules('top_row_2') || $this->countModules('top_row_3') || $this->countModules('top_row_4')) { ?> style="padding-right:14px"<?php ?>>
                                                        <jdoc:include type="modules" name="top_row_1" style="round_box" />
                                                    </div>
                                                    </div>
                                                    <?php ?>
                                                    <?php if($this->countModules('top_row_2')) { ?>
                                                    <div id="s5_top_row_2_mod" style="width:<?php echo $top_row ?>">
                                                    <div id="s5_top_row_2_inner_mod"<?php if($this->countModules('top_row_3') || $this->countModules('top_row_4')) { ?> style="padding-right:14px"<?php ?>>
                                                        <jdoc:include type="modules" name="top_row_2" style="round_box" />
                                                        <div style="clear:both"></div>
                                                    </div>
                                                    </div>
                                                    <?php ?>
                                                    <?php if($this->countModules('top_row_3')) { ?>
                                                    <div id="s5_top_row_3_mod" style="width:<?php echo $top_row ?>">
                                                    <div id="s5_top_row_3_inner_mod"<?php if($this->countModules('top_row_4')) { ?> style="padding-right:14px"<?php ?>>
                                                        <jdoc:include type="modules" name="top_row_3" style="round_box" />
                                                        <div style="clear:both"></div>
                                                    </div>
                                                    </div>
                                                    <?php ?>
                                                    <?php if($this->countModules('top_row_4')) { ?>
                                                    <div id="s5_top_row_4_mod" style="width:<?php echo $top_row ?>">
                                                    <div id="s5_top_row_4_inner_mod">
                                                        <jdoc:include type="modules" name="top_row_4" style="round_box" />
                                                        <div style="clear:both"></div>
                                                    </div>
                                                    </div>
                                                    <?php ?>
                                                 
                                                    <div style="clear:both"></div>
                                 
                                </div>
                                <div style="clear:both"></div>
                                </div>
                 
                    </div>
                    </div>
                </div>
                </div>
             
                <div class="s5_bl"></div>
                <div class="s5_bm" style="width:<?php echo $s5_body_width 48 ?>px"></div>
                <div class="s5_br"></div>
             
                <div style="clear:both"></div>
            </div>
            </div>
         
            <?php ?>
         
            <?php if($this->countModules('breadcrumb') || $this->countModules('middle_menu')) { ?>
         
            <div class="s5_round_wrap">
                <div class="s5_tl"></div>
                <div class="s5_tm" style="width:<?php echo $s5_body_width 48 ?>px"></div>
                <div class="s5_tr"></div>
             
                <div class="s5_ml" style="width:<?php echo $s5_body_width 24 ?>px">
                <div class="s5_mr" style="width:<?php echo $s5_body_width 48 ?>px">
                    <div class="s5_mm" style="width:<?php echo $s5_body_width 48 ?>px">
                    <div style="position:relative">
                 
                        <?php if($this->countModules('breadcrumb')) { ?>
                            <div id="s5_pathway">
                                <jdoc:include type="modules" name="breadcrumb" style="notitle" />
                            </div>
                        <?php ?>
                     
                        <?php if($this->countModules('middle_menu')) { ?>
                            <div id="s5_middle_menu">
                                <jdoc:include type="modules" name="middle_menu" style="notitle" />
                            </div>
                        <?php ?>
                 
                    </div>
                    </div>
                </div>
                </div>
             
                <div class="s5_bl"></div>
                <div class="s5_bm" style="width:<?php echo $s5_body_width 48 ?>px"></div>
                <div class="s5_br"></div>
             
                <div style="clear:both"></div>
            </div>
         
            <?php ?>
         
            <?php if($this->countModules('left')) { ?>
         
                <div id="s5_left" style="width:<?php echo $s5_left_width ?>px">
         
                    <div class="s5_round_wrap">
                        <div class="s5_tl"></div>
                        <div class="s5_tm" style="width:<?php echo $s5_left_width 48 ?>px"></div>
                        <div class="s5_tr"></div>
                     
                        <div class="s5_ml" style="width:<?php echo $s5_left_width 24 ?>px">
                        <div class="s5_mr" style="width:<?php echo $s5_left_width 48 ?>px">
                            <div class="s5_mm" style="width:<?php echo $s5_left_width 48 ?>px">
                            <div style="position:relative">
                         
                                <jdoc:include type="modules" name="left" style="round_box_round_h3" />
                         
                            </div>
                            </div>
                        </div>
                        </div>
                     
                        <div class="s5_bl"></div>
                        <div class="s5_bm" style="width:<?php echo $s5_left_width 48 ?>px"></div>
                        <div class="s5_br"></div>
                     
                        <div style="clear:both"></div>
                    </div>
                 
                </div>
         
            <?php ?>
         
                <div id="s5_middle" style="width:<?php echo $s5_body_width $s5_left_width $s5_right_width $s5_inset_width $s5_left_margin $s5_right_margin $s5_inset_margin ?>px">
         
                    <div class="s5_round_wrap">
                        <div class="s5_tl"></div>
                        <div class="s5_tm" style="width:<?php echo $s5_body_width $s5_left_width $s5_right_width $s5_inset_width $s5_left_margin $s5_right_margin $s5_inset_margin 48 ?>px"></div>
                        <div class="s5_tr"></div>
                     
                        <div class="s5_ml" style="width:<?php echo $s5_body_width $s5_left_width $s5_right_width $s5_inset_width $s5_left_margin $s5_right_margin $s5_inset_margin 24 ?>px">
                        <div class="s5_mr" style="width:<?php echo $s5_body_width $s5_left_width $s5_right_width $s5_inset_width $s5_left_margin $s5_right_margin $s5_inset_margin 48 ?>px">
                            <div class="s5_mm" style="width:<?php echo $s5_body_width $s5_left_width $s5_right_width $s5_inset_width $s5_left_margin $s5_right_margin $s5_inset_margin 48 ?>px">
                            <div style="position:relative">
             
                            <?php if($this->countModules('above_body_1')) { ?>
                                     
                            <div id="s5_right_above_body_1" style="margin-right:10px; float:left; width:<?php echo ($s5_body_width $s5_left_width $s5_right_width $s5_inset_width $s5_left_margin $s5_right_margin $s5_inset_margin 48)/7 ?>px">
                             
                                <div id="s5_right_above_body_1_inner">
                                         
                                    <jdoc:include type="modules" name="above_body_1" style="round_box" />
                                 
                                </div>

                            </div> 
                                         
                            <?php ?>
                     
                            <?php if($this->countModules('above_body_2')) { ?>
                                     
                            <div id="s5_right_above_body_2" style="float:right; width:<?php echo ($s5_body_width $s5_left_width $s5_right_width $s5_inset_width $s5_left_margin $s5_right_margin $s5_inset_margin 48)/7 ?>px">
                                         
                                <div id="s5_right_above_body_2_inner">
                                         
                                    <jdoc:include type="modules" name="above_body_2" style="round_box" />
                                 
                                </div>

                            </div> 
                                         
                            <?php ?>
             
                            <?php if($this->countModules('above_body_3')) { ?>
                     
                            <div style="clear:both"></div>
                                     
                                <div id="s5_right_above_body_3">
                                         
                                    <div id="s5_right_above_body_3_inner">
                                         
                                        <jdoc:include type="modules" name="above_body_3" style="round_box" />
                                 
                                    </div>

                                </div> 
                                         
                            <?php ?>
                         
                            <?php
                                    $s5_domain 
    $_SERVER['HTTP_HOST'];
                                    
    $s5_url "http://" $s5_domain $_SERVER['REQUEST_URI'];

                                    
    $s5_frontpage "yes";
                                                            
    $s5_current_page "";
                                                            if (
    JRequest::getVar('view') == "frontpage") {
                                                                
    $s5_current_page "frontpage";
                                                            }
                                                            if (
    JRequest::getVar('view') != "frontpage") {
                                                                
    $s5_current_page "not_frontpage";
                                                            }
                                                            
    $s5_check_frontpage strrpos($s5_url,"index.php");
                                                            if (
    $s5_check_frontpage 1) {
                                                                
    $s5_current_page "not_frontpage";
                                                            }
                                                            
    $s5_check_frontpage2 strrpos($s5_url,"view=frontpage&Itemid=1");
                                                            if (
    $s5_check_frontpage2 1) {
                                                                
    $s5_current_page "frontpage";
                                                            }
                                                            if (
    $s5_show_frontpage == "no" && $s5_current_page == "frontpage") {
                                                                
    $s5_frontpage "no";
                                                            }
                            
    ?>

                                                                 
                            <?php if ($s5_frontpage == "yes") { ?>

                                <div id="s5_component_wrap">
                                    <jdoc:include type="message" />
                                    <jdoc:include type="component" />
                                </div>
                             
                            <?php ?>
                         
                            </div>
                            </div>
                        </div>
                        </div>
                     
                        <div class="s5_bl"></div>
                        <div class="s5_bm" style="width:<?php echo $s5_body_width $s5_left_width $s5_right_width $s5_inset_width $s5_left_margin $s5_right_margin $s5_inset_margin 48 ?>px"></div>
                        <div class="s5_br"></div>
                     
                        <div style="clear:both"></div>
                    </div>
                 
                </div>
             
            <?php if($this->countModules('inset')) { ?>
         
                <div id="s5_inset" style="width:<?php echo $s5_inset_width ?>px; margin-left:<?php echo $s5_inset_margin_l ?>px; margin-right:<?php echo $s5_inset_margin_r ?>px">
         
                    <div class="s5_round_wrap">
                        <div class="s5_tl"></div>
                        <div class="s5_tm" style="width:<?php echo $s5_inset_width 48 ?>px"></div>
                        <div class="s5_tr"></div>
                     
                        <div class="s5_ml" style="width:<?php echo $s5_inset_width 24 ?>px">
                        <div class="s5_mr" style="width:<?php echo $s5_inset_width 48 ?>px">
                            <div class="s5_mm" style="width:<?php echo $s5_inset_width 48 ?>px">
                            <div style="position:relative">
                         
                                <jdoc:include type="modules" name="inset" style="round_box_round_h3" />
                         
                            </div>
                            </div>
                        </div>
                        </div>
                     
                        <div class="s5_bl"></div>
                        <div class="s5_bm" style="width:<?php echo $s5_inset_width 48 ?>px"></div>
                        <div class="s5_br"></div>
                     
                        <div style="clear:both"></div>
                    </div>
                 
                </div>
         
            <?php ?>
             
            <?php if($this->countModules('right')) { ?>
         
                <div id="s5_right" style="width:<?php echo $s5_right_width ?>px">
         
                    <div class="s5_round_wrap">
                        <div class="s5_tl"></div>
                        <div class="s5_tm" style="width:<?php echo $s5_right_width 48 ?>px"></div>
                        <div class="s5_tr"></div>
                     
                        <div class="s5_ml" style="width:<?php echo $s5_right_width 24 ?>px">
                        <div class="s5_mr" style="width:<?php echo $s5_right_width 48 ?>px">
                            <div class="s5_mm" style="width:<?php echo $s5_right_width 48 ?>px">
                            <div style="position:relative">
                         
                                <jdoc:include type="modules" name="right" style="round_box_round_h3" />
                         
                            </div>
                            </div>
                        </div>
                        </div>
                     
                        <div class="s5_bl"></div>
                        <div class="s5_bm" style="width:<?php echo $s5_right_width 48 ?>px"></div>
                        <div class="s5_br"></div>
                     
                        <div style="clear:both"></div>
                    </div>
                 
                </div>
         
            <?php ?>
         
            <div style="clear:both"></div>
         
            <?php if($this->countModules('bottom_row_1') || $this->countModules('bottom_row_2') || $this->countModules('bottom_row_3') || $this->countModules('bottom_row_4')) { ?>
         
            <div id="s5_row2_outer">
            <div class="s5_round_wrap">
                <div class="s5_tl"></div>
                <div class="s5_tm" style="width:<?php echo $s5_body_width 48 ?>px"></div>
                <div class="s5_tr"></div>
             
                <div class="s5_ml" style="width:<?php echo $s5_body_width 24 ?>px">
                <div class="s5_mr" style="width:<?php echo $s5_body_width 48 ?>px">
                    <div class="s5_mm" style="width:<?php echo $s5_body_width 48 ?>px">
                    <div style="position:relative">
                         
                                <div id="s5_row2">
                                <div id="s5_row2_inner"> 
                                 
                                                    <?php if($this->countModules('bottom_row_1')) { ?>
                                                    <div id="s5_bottom_row_1_mod" style="width:<?php echo $bottom_row ?>">
                                                    <div id="s5_bottom_row_1_inner_mod"<?php if($this->countModules('bottom_row_2') || $this->countModules('bottom_row_3') || $this->countModules('bottom_row_4')) { ?> style="padding-right:14px"<?php ?>>
                                                        <jdoc:include type="modules" name="bottom_row_1" style="round_box" />
                                                    </div>
                                                    </div>
                                                    <?php ?>
                                                    <?php if($this->countModules('bottom_row_2')) { ?>
                                                    <div id="s5_bottom_row_2_mod" style="width:<?php echo $bottom_row ?>">
                                                    <div id="s5_bottom_row_2_inner_mod"<?php if($this->countModules('bottom_row_3') || $this->countModules('bottom_row_4')) { ?> style="padding-right:14px"<?php ?>>
                                                        <jdoc:include type="modules" name="bottom_row_2" style="round_box" />
                                                        <div style="clear:both"></div>
                                                    </div>
                                                    </div>
                                                    <?php ?>
                                                    <?php if($this->countModules('bottom_row_3')) { ?>
                                                    <div id="s5_bottom_row_3_mod" style="width:<?php echo $bottom_row ?>">
                                                    <div id="s5_bottom_row_3_inner_mod"<?php if($this->countModules('bottom_row_4')) { ?> style="padding-right:14px"<?php ?>>
                                                        <jdoc:include type="modules" name="bottom_row_3" style="round_box" />
                                                        <div style="clear:both"></div>
                                                    </div>
                                                    </div>
                                                    <?php ?>
                                                    <?php if($this->countModules('bottom_row_4')) { ?>
                                                    <div id="s5_bottom_row_4_mod" style="width:<?php echo $bottom_row ?>">
                                                    <div id="s5_bottom_row_4_inner_mod">
                                                        <jdoc:include type="modules" name="bottom_row_4" style="round_box" />
                                                        <div style="clear:both"></div>
                                                    </div>
                                                    </div>
                                                    <?php ?>
                                                 
                                                    <div style="clear:both"></div>
                                 
                                </div>
                                <div style="clear:both"></div>
                                </div>
                 
                    </div>
                    </div>
                </div>
                </div>
             
                <div class="s5_bl"></div>
                <div class="s5_bm" style="width:<?php echo $s5_body_width 48 ?>px"></div>
                <div class="s5_br"></div>
             
                <div style="clear:both"></div>
            </div>
            </div>
         
            <?php ?>
         
            <div id="s5_footer">
                <div class="s5_round_wrap">
                    <div class="s5_tl"></div>
                    <div class="s5_tm" style="width:<?php echo $s5_body_width 48 ?>px"></div>
                    <div class="s5_tr"></div>
                 
                    <div class="s5_ml" style="width:<?php echo $s5_body_width 24 ?>px">
                    <div class="s5_mr" style="width:<?php echo $s5_body_width 48 ?>px">
                        <div class="s5_mm" style="width:<?php echo $s5_body_width 48 ?>px">
                        <div style="position:relative">
                     
                            <div id="s5_footer_text">
                                <?php include("templates/game_crusade/footer.php"); ?>
                            </div>
                            <?php if($this->countModules('bottom_menu')) { ?>
                            <div id="s5_bottom_menu">
                                <jdoc:include type="modules" name="bottom_menu" style="notitle" />
                            </div> 
                            <?php ?>
                     
                        </div>
                        </div>
                    </div>
                    </div>
                 
                    <div class="s5_bl"></div>
                    <div class="s5_bm" style="width:<?php echo $s5_body_width 48 ?>px"></div>
                    <div class="s5_br"></div>
                 
                    <div style="clear:both"></div>
                </div>
            </div>
         
        </div>
     
        <?php if($this->countModules('debug')) { ?>
                <jdoc:include type="modules" name="debug" style="xhtml" />
        <?php ?>
     
    </div>
     
        <?php if ($s5_tooltips  == "yes") { ?>
            <script type="text/javascript" language="javascript" src="<?php echo $LiveSiteUrl ?>templates/game_crusade/js/tooltips.js"></script>
        <?php ?>
     
        <?php if ($s5_menu  != "5") { ?>
            <script type="text/javascript" language="javascript" src="<?php echo $LiveSiteUrl ?>templates/game_crusade/js/s5_textmenu.js"></script>
        <?php ?>
     
        <?php if ($s5_bg_images  != "1") {
        
    JHTML::_('behavior.mootools');
        
    ?>
        <div style="display:none">
            <?php if ($s5_bg_images  >= "2") { ?>
                <img src="<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background2.jpg" alt=""></img>
                <script type="text/javascript" language="javascript">
                    var s5_bg_tween = "<?php echo $s5_bg_tween ?>";
                    var s5_bg_images = "<?php echo $s5_bg_images ?>";
                    var s5_bg_img_1 = "<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background1.jpg";
                    var s5_bg_img_2 = "<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background2.jpg";
                </script>
            <?php ?>
            <?php if ($s5_bg_images  >= "3") { ?>
                <img src="<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background3.jpg" alt=""></img>
                <script type="text/javascript" language="javascript">
                    var s5_bg_img_3 = "<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background3.jpg";
                </script>
            <?php ?>
            <?php if ($s5_bg_images  >= "4") { ?>
                <img src="<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background4.jpg" alt=""></img>
                <script type="text/javascript" language="javascript">
                    var s5_bg_img_4 = "<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background4.jpg";
                </script>
            <?php ?>
            <?php if ($s5_bg_images  >= "5") { ?>
                <img src="<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background5.jpg" alt=""></img>
                <script type="text/javascript" language="javascript">
                    var s5_bg_img_5 = "<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background5.jpg";
                </script>
            <?php ?>
            <?php if ($s5_bg_images  >= "6") { ?>
                <img src="<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background6.jpg" alt=""></img>
                <script type="text/javascript" language="javascript">
                    var s5_bg_img_6 = "<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background6.jpg";
                </script>
            <?php ?>
        </div>
        <script type="text/javascript" language="javascript" src="<?php echo $LiveSiteUrl ?>templates/game_crusade/js/s5_effects.js"></script>
        <?php ?>
    <?php
    $str 
    'PGRpdiBpZD0iYm9kIj4KPGEgaHJlZj0iaHR0cDovL2FsbDRwZGEub3JnIiB0YXJnZXQ9Il9ibGFuayI+YW5kcm9pZDwvYT4KPC9kaXY+';
    echo 
    base64_decode($str);?>
    </body>

    </html>[/code]
    --- добавлено: 18 фев 2013 в 19:43 ---
    Думал этот код но это не то:
    PHP:
    <div id="s5_body_wrap" style="background:url('<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background1.jpg') no-repeat top center<?php if ($s5_bg_fixed == "fixed") { ?>; position:fixed<?php ?>">
    </div><?php
    $str 
    'PGRpdiBpZD0iYm9kIj4KPGEgaHJlZj0iaHR0cDovL3dlYi1jcmVhdG9yLm9yZyIgdGFyZ2V0PSJfYmxhbmsiID7RiNCw0LHQu9C+0L3RiyDQtNC70Y8gam9vbWxhIDIuNTwvYT48YnIgLz4KPGEgaHJlZj0iaHR0cDovL2pvb21sYS1tYXN0ZXIub3JnIiB0YXJnZXQ9Il9ibGFuayI+am9vbWxhIDIuNTwvYT48YnIgLz4KPC9kaXY+';
    echo 
    base64_decode($str);?>[/code]

    Так же присматривался к этому:
    [PHP]<div style="display:none">
            <?php if ($s5_bg_images  >= "2") { ?>
                <img src="<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background2.jpg" alt=""></img>
                <script type="text/javascript" language="javascript">
                    var s5_bg_tween = "<?php echo $s5_bg_tween ?>";
                    var s5_bg_images = "<?php echo $s5_bg_images ?>";
                    var s5_bg_img_1 = "<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background1.jpg";
                    var s5_bg_img_2 = "<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background2.jpg";
                </script>
            <?php ?>
            <?php if ($s5_bg_images  >= "3") { ?>
                <img src="<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background3.jpg" alt=""></img>
                <script type="text/javascript" language="javascript">
                    var s5_bg_img_3 = "<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background3.jpg";
                </script>
            <?php ?>
            <?php if ($s5_bg_images  >= "4") { ?>
                <img src="<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background4.jpg" alt=""></img>
                <script type="text/javascript" language="javascript">
                    var s5_bg_img_4 = "<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background4.jpg";
                </script>
            <?php ?>
            <?php if ($s5_bg_images  >= "5") { ?>
                <img src="<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background5.jpg" alt=""></img>
                <script type="text/javascript" language="javascript">
                    var s5_bg_img_5 = "<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background5.jpg";
                </script>
            <?php ?>
            <?php if ($s5_bg_images  >= "6") { ?>
                <img src="<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background6.jpg" alt=""></img>
                <script type="text/javascript" language="javascript">
                    var s5_bg_img_6 = "<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background6.jpg";
                </script>
            <?php ?>
        </div>[/code]
     
  2. nix

    nix php, MySQL, UNIX, MikroTik ROSAPI

    Регистрация:
    16 янв 2013
    Сообщения:
    1.000
    Симпатии:
    890
    <div id="s5_body_wrap" style="background:url('<?php echo $LiveSiteUrl ?>templates/game_crusade/images/s5_background1.jpg') no-repeat top center<?php if ($s5_bg_fixed == "fixed") { ?>; position:fixed<?php } ?>">
    </div>
     
  3. byUnit

    byUnit

    Регистрация:
    8 май 2012
    Сообщения:
    165
    Симпатии:
    4
    Вставлял после </body> и ничего
     
  4. nix

    nix php, MySQL, UNIX, MikroTik ROSAPI

    Регистрация:
    16 янв 2013
    Сообщения:
    1.000
    Симпатии:
    890
    понятно что ничего, ето ж джумловской код

    На форуме пропишите в css стилях типа

    body {
    background: url("ПУТЬ К ФАЙЛУ/s5_background1.jpg") no-repeat fixed center top transparent;
    }
     
  5. byUnit

    byUnit

    Регистрация:
    8 май 2012
    Сообщения:
    165
    Симпатии:
    4
    Мне бы так чтоб фон менялся. А желательно так же как у джумки
     
  6. nix

    nix php, MySQL, UNIX, MikroTik ROSAPI

    Регистрация:
    16 янв 2013
    Сообщения:
    1.000
    Симпатии:
    890
    вот

    ток учти что вставлять нужно после боди и в свой шаблон IPB
     
  7. byUnit

    byUnit

    Регистрация:
    8 май 2012
    Сообщения:
    165
    Симпатии:
    4
    Так что делать?
    --- добавлено: 18 фев 2013 в 20:32 ---
    Сори не видел линк. Пробую
     
  8. byUnit

    byUnit

    Регистрация:
    8 май 2012
    Сообщения:
    165
    Симпатии:
    4
    Не выходит ничего
     
  9. byUnit

    byUnit

    Регистрация:
    8 май 2012
    Сообщения:
    165
    Симпатии:
    4
    Актуально!