Изменение фона в Youstudio

Discussion in 'Изменение шаблона (кастомизация)' started by Infoto, May 22, 2012.

  1. Offline

    Infoto Недавно здесь

    Joined:
    May 22, 2012
    Messages:
    8
    Likes Received:
    0
    Gender:
    Female
    У меня шаблон youstudio. Всем хорош, но попросили сменить цвет фона. Я уже изменила фоновую картинку, но никак не сменить сам фон, он светло-серый. Перелопатила все css, но воз и ныне там. Не подскажете? Без этого не могу двигаться дальше(((

    Адрес сайта тут, http://www.nvideopress.eu/

    как видите, боковины серые, я уже полдня убиваюсь.
     
  2.  
  3. Offline

    Infoto Недавно здесь

    Joined:
    May 22, 2012
    Messages:
    8
    Likes Received:
    0
    Gender:
    Female
    я сейчас просто картинку поставила на повторение, но это не вариант(((
     
  4. Offline

    Novosadov Недавно здесь

    Joined:
    Aug 17, 2011
    Messages:
    6
    Likes Received:
    0
    Gender:
    Male
    Попробуй изменить в шаблоне html там будет что то типа color = FFFFFF. Попробуй поменять. Вот таблица с цветами http://scriptic.narod.ru/html/color2.htm
     
  5. OlegK
    Offline

    OlegK Russian Joomla! Team Staff Member ⇒ Профи ⇐

    Joined:
    Jan 17, 2011
    Messages:
    7,812
    Likes Received:
    771
    Gender:
    Male
    Может ты поучишь html/css ?
    что может только в свойствах background
     
  6. Offline

    Infoto Недавно здесь

    Joined:
    May 22, 2012
    Messages:
    8
    Likes Received:
    0
    Gender:
    Female
    ))) Это не совсем то)
     
  7. Offline

    Infoto Недавно здесь

    Joined:
    May 22, 2012
    Messages:
    8
    Likes Received:
    0
    Gender:
    Female
    не дает( в template.css заменила, не дало результатов, перебрала все остальные файлы - не найти никак(
     
  8. Offline

    teleman Недавно здесь

    Joined:
    Dec 19, 2008
    Messages:
    54
    Likes Received:
    8
    Gender:
    Male
    дык фон прописан прямо в теге
    <body id="stylef6" style="background-color:#eeeeee;
    что мешает поменять?
     
  9. Offline

    Infoto Недавно здесь

    Joined:
    May 22, 2012
    Messages:
    8
    Likes Received:
    0
    Gender:
    Female
    пардон меня, но я туплю, ГДЕ это вообще можно найти. Я над этой строкой сразу зависла, но не могу найти этот файл. Иначе бы уже давно все заменила. если подскажете, как это сделать, буду очень признательна
     
  10. Offline

    teleman Недавно здесь

    Joined:
    Dec 19, 2008
    Messages:
    54
    Likes Received:
    8
    Gender:
    Male
    по-идее в шаблоне в index.php файле
    строка №67
     
  11. Offline

    Infoto Недавно здесь

    Joined:
    May 22, 2012
    Messages:
    8
    Likes Received:
    0
    Gender:
    Female
    у меня все index.php index.html файлы пустые практически. Насколько я понимаю, в этих шаблонах они не записываются в том виде, в каком пишется обычный html. Сейчас опять все перерыла - в index.php непосредственно шаблона только это записано

    <?php
    /*======================================================================*\
    || #################################################################### ||
    || # Youjoomla LLC - YJ- Licence Number 3145JD463
    || # Licensed to - Siarhei Matusevich
    || # ---------------------------------------------------------------- # ||
    || # Package - Joomla Template based on YJSimpleGrid Framework ||
    || # Copyright (C) 2010 Youjoomla LLC. All Rights Reserved. ||
    || # license - PHP files are licensed under GNU/GPL V2 ||
    || # license - CSS - JS - IMAGE files are Copyrighted material ||
    || # bound by Proprietary License of Youjoomla LLC ||
    || # for more information visit http://www.youjoomla.com/license.html ||
    || # Redistribution and modification of this software ||
    || # is bounded by its licenses ||
    || # websites - http://www.youjoomla.com | http://www.yjsimplegrid.com ||
    || #################################################################### ||
    \*======================================================================*/
    defined( '_JEXEC' ) or die( 'Restricted index access' );
    define( 'TEMPLATEPATH', dirname(__FILE__) );
    require( TEMPLATEPATH.DS."yjsgcore/yjsg_core.php");/* YJSG Framework main functions*/
    require(TEMPLATEPATH.DS."yjsgcore/".$yjsg_getmain.""); /* 2 default views | yjsg_main.php = desktop | yjsg_mobile.php = mobile devices */
    ?>
     
  12. OlegK
    Offline

    OlegK Russian Joomla! Team Staff Member ⇒ Профи ⇐

    Joined:
    Jan 17, 2011
    Messages:
    7,812
    Likes Received:
    771
    Gender:
    Male
    адрес сайта или список файлов CSS напиши
     
  13. Offline

    teleman Недавно здесь

    Joined:
    Dec 19, 2008
    Messages:
    54
    Likes Received:
    8
    Gender:
    Male
    а тут: yjsg_main.php? yjsg_mobile.php?
     
  14. Offline

    Infoto Недавно здесь

    Joined:
    May 22, 2012
    Messages:
    8
    Likes Received:
    0
    Gender:
    Female
    www.nvideopress.eu

    user_pages.css
    typo.css
    template_rtl.css
    template.css
    rounded.css
    red.css
    newsitems.css
    menus.css
    lime.css
    layout.css
    index.html
    ifie.php
    iepngfix.htc
    editor_content.css
    dark_bg.css
    compress.php
    blue.css
    blank.gif

    это перечень файлов в папке css шаблона youstudio (за исключением папок admin и mobile, их не стала). Я там копалась везде, в template стоит цвет фона, но изменение в нем цвета не дает никаких результатов. И, как видно, есть айл dark_bg.css, отвечающий за темную разновидность шаблона. Но ведь тогда где-то должна быть и light версия? )) В общем, для меня это шарада.
     
  15. Offline

    Infoto Недавно здесь

    Joined:
    May 22, 2012
    Messages:
    8
    Likes Received:
    0
    Gender:
    Female
    нет, ничего похожего, увы

    вот main

    <?php
    /*======================================================================*\
    || #################################################################### ||
    || # Package - Joomla Template based on YJSimpleGrid Framework ||
    || # Copyright (C) 2010 Youjoomla LLC. All Rights Reserved. ||
    || # license - PHP files are licensed under GNU/GPL V2 ||
    || # license - CSS - JS - IMAGE files are Copyrighted material ||
    || # bound by Proprietary License of Youjoomla LLC ||
    || # for more information visit http://www.youjoomla.com/license.html ||
    || # Redistribution and modification of this software ||
    || # is bounded by its licenses ||
    || # websites - http://www.youjoomla.com | http://www.yjsimplegrid.com ||
    || #################################################################### ||
    \*======================================================================*/
    defined( '_JEXEC' ) or die( 'Restricted index access' );
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
    <head>
    <?php require( TEMPLATEPATH.DS."yjsgcore/yjsg_head.php");/* <head> files containing css , js and php */?>
    </head>
    <body id="stylef<?php echo $default_font_family ?>" style="<?php echo $bg_file ?>">
    <?php if ($yjsg_mobile):/*back to mobile view visible on mobile devices*/
    require( TEMPLATEPATH.DS."layouts/mobile/yjm_switch.php");
    endif; ?>
    <div id="sitehold" style="font-size:<?php echo $css_font; ?>; width:<?php echo $css_width.$css_widthdefined; ?>;">
    <div id="centertop" style="font-size:<?php echo $css_font; ?>; width:<?php echo $css_width.$css_widthdefined; ?>;">
    <?php require( TEMPLATEPATH.DS."layouts/grids/yjsg1.php"); /* above header grid */ ?>
    <?php require( TEMPLATEPATH.DS."yjsgcore/yjsg_headerblock.php");/* header - header grid located in this file */?>

    <?php require( TEMPLATEPATH.DS."layouts/grids/yjsg2.php");/* grid 2 adv1-adv5*/ ?>
    <?php require( TEMPLATEPATH.DS."layouts/grids/yjsg3.php");/*grid 3 user1-user5*/ ?>
    <?php require( TEMPLATEPATH.DS."layouts/grids/yjsg4.php");/* grid4 user6-user10*/ ?>
    </div> <!-- end centartop-->
    <div id="centerbottom" style="font-size:<?php echo $css_font; ?>; width:<?php echo $css_width.$css_widthdefined; ?>;">
    <?php require( TEMPLATEPATH.DS."layouts/layout".$site_layout.".php");/* mid grid - mainbody grids located in layout1.php - layout3.php*/?>
    <?php require( TEMPLATEPATH.DS."layouts/grids/yjsg5.php");/* grid 5 user11-user15*/ ?>
    <?php require( TEMPLATEPATH.DS."yjsgcore/yjsg_pathway.php");/* pathway including breadcrumb module position */ ?>

    <?php if ($show_tools == 1): ?>
    <?php include TEMPLATEPATH.DS."yjsgcore/yjsg_tools.php";/* site tools , font resizer , rtl switch */?>
    <?php endif;?>
    </div> <!-- end centerbottom-->
    </div> <!-- end sitehold-->
    <?php require( TEMPLATEPATH.DS."layouts/grids/yjsg6.php");/* grid 6 user16-user20*/ ?>
    <?php require( TEMPLATEPATH.DS."layouts/grids/yjsg7.php");/* grid 7 user21-user25*/ ?>
    <?php require( TEMPLATEPATH.DS."yjsgcore/yjsg_footer.php");/* footer - footer menu , copyright , YJSG logo , validation links*/?>
    <?php require( TEMPLATEPATH.DS."yjsgcore/yjsg_notices.php");/* IE6 and nonscript notices*/?>
    </body>
    </html>

    и вот mobile

    <?php
    /*======================================================================*\
    || #################################################################### ||
    || # Package - Joomla Template based on YJSimpleGrid Framework ||
    || # Copyright (C) 2010 Youjoomla LLC. All Rights Reserved. ||
    || # license - PHP files are licensed under GNU/GPL V2 ||
    || # license - CSS - JS - IMAGE files are Copyrighted material ||
    || # bound by Proprietary License of Youjoomla LLC ||
    || # for more information visit http://www.youjoomla.com/license.html ||
    || # Redistribution and modification of this software ||
    || # is bounded by its licenses ||
    || # websites - http://www.youjoomla.com | http://www.yjsimplegrid.com ||
    || #################################################################### ||
    \*======================================================================*/
    defined( '_JEXEC' ) or die( 'Restricted index access' );
    global $mainframe;
    $midblock = $leftcolumn + $rightcolumn + $maincolumn.$widthdefined;
    $css_width = '100%';
    $css_widthdefined = '';
    $page_title = $mainframe->getPageTitle();
    $document = &JFactory::getDocument();
    $renderer = $document->loadRenderer( 'module' );
    $options = array( 'style' => "raw" );
    $module = JModuleHelper::getModule( 'mod_mainmenu' );
    $topmenu = false; $subnav = false; $sidenav = false;
    $module->params = "menutype=$menu_name\nstartLevel=0\nendLevel=1\nclass_sfx=split";
    $topmenu = $renderer->render( $module, $options );
    $menuclass = 'horiznav';
    $topmenuclass ='top_menu';
    ?>
    <?php
    if ($iphones && $iphone_default==1 || $android && $android_default==1 || $handhelds && $handheld_default==1 ){
    require( TEMPLATEPATH.DS."layouts/mobile/yjsg_iphone.php");
    }elseif($iphones && $iphone_default==2 || $android && $android_default==2 || $handhelds && $handheld_default==2 ){
    require( TEMPLATEPATH.DS."layouts/mobile/yjsg_handheld.php");
    }else{
    require( TEMPLATEPATH.DS."layouts/mobile/yjsg_iphone.php");
    }
    ?>

    первый раз с подобным сталкиваюсь
     
  16. Offline

    teleman Недавно здесь

    Joined:
    Dec 19, 2008
    Messages:
    54
    Likes Received:
    8
    Gender:
    Male
    <body id="stylef<?php echo $default_font_family ?>" style="<?php echo $bg_file ?>

    В админке, посмотрите настройки свойств шаблона.
    Или в файле templateDetails.xml раздел params
     
  17. OlegK
    Offline

    OlegK Russian Joomla! Team Staff Member ⇒ Профи ⇐

    Joined:
    Jan 17, 2011
    Messages:
    7,812
    Likes Received:
    771
    Gender:
    Male
    А это что <body id="stylef<?php echo $default_font_family ?>" style="<?php echo $bg_file ?>">
    ищи в параметрах шаблона изменение фона
     
  18. Offline

    Vorzhev Недавно здесь

    Joined:
    Dec 13, 2012
    Messages:
    2
    Likes Received:
    0
    Gender:
    Male
    Здравствуйте! У вас получилось решить проблему?

    У меня сейчас тоже самое. =(

    http://mega-stroy.com.ua/
     
    Last edited by a moderator: Dec 13, 2012
  19. Offline

    Vorzhev Недавно здесь

    Joined:
    Dec 13, 2012
    Messages:
    2
    Likes Received:
    0
    Gender:
    Male
    Хух, нашел наконец-то, фон шаблона меняется в файле: /templates/youstudio/yjsgcore/yjsg_stylesw.php (в самом низу, начиная с 296 строки)

    Код (CODE):
    1. //* BACGROUND CONTROL /
    2. switch ($bg_file) {
    3.     case 'dark':
    4.     $bg_file             = 'background-color:#090909;background-image:url('.$yj_site.'/images/dark/bg_dark.jpg);color:#717171;';
    5.     $bg_css              = '<link href="'.$yj_site.'/css/dark_bg.css" rel="stylesheet" type="text/css" />';
    6.     $logo_dark           ='_dark';
    7.     $ie_6                ='dark';
    8.     break;
    9.     case 'light':
    10.     $bg_file             = 'background-color:#ffffff;background-image:url('.$yj_site.'/images/light/bg_gray.jpg);color:#555555;';
    11.     $bg_css              = '';
    12.     $logo_dark           ='';
    13.     $ie_6                ='light';
    14.     break;
    15.     default:
    16.     $bg_file             = 'background-color:#ffffff;background-image:url('.$yj_site.'/images/light/bg_gray.jpg);color:#555555;';
    17.     $bg_css              = '';
    18.     $logo_dark           ='';
    19.     $ie_6                ='light';
    20. }
    21. ?>


    Может кому пригодиться)
     

Share This Page

Loading...