Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 11 Ответов
  • 2058 Просмотров
*

najdera

  • Захожу иногда
  • 70
  • 0 / 0
На денвере все супер, а на сервере все стили куда-то пропали...
В админпанеле все в порядке

Сайт http://85.31.101.139/

В чем загвоздка?
*

dynamit

  • Завсегдатай
  • 1744
  • 265 / 0
  • Winter Is Coming
Re: Не отображаються стили на сервере
« Ответ #1 : 31.08.2010, 13:31:00 »
в configuration.php
Код
var $live_site = ' ';
адрес сайта прописан?
ТАМ ГДЕ ТЫ НИЧЕГО НЕ МОЖЕШЬ, ТЫ НЕ ДОЛЖЕН НИЧЕГО ХОТЕТЬ
==========================================================
Сайты на Joomla!. Верстка. Консультации.  ||  Яндекс уже не ищет, он уже продает (с)  ||    Создание шаблона для Joomla 2.5
*

SmokerMan

  • Гуру
  • 5293
  • 720 / 26
Re: Не отображаються стили на сервере
« Ответ #2 : 31.08.2010, 13:33:55 »
а файл стилей то есть на сервере? такое впечатление что его там просто нет.
И еще в шаблоне прописана неизвестная константа "_LANGUAGE"
*

najdera

  • Захожу иногда
  • 70
  • 0 / 0
Re: Не отображаються стили на сервере
« Ответ #3 : 31.08.2010, 13:35:26 »
Стили есть точно, Language... даже и не знаю - может это что-то от Джумфиша?
*

danik.html

  • Живу я здесь
  • 2650
  • 353 / 4
Re: Не отображаються стили на сервере
« Ответ #4 : 31.08.2010, 13:39:57 »
файл стилей есть - http://85.31.101.139//templates/turist/css/main.css
Все наверно изза _LANGUAGE, потому как тег HTML страдает. Еще у вас мутулз кажется дважды грузится..
【Мегапак Virtuemart:
 • метатеги (description,keywords)
 • заголовки (title)
 • красивые алиасы (чпу) без тормозов и дублей!
*

SmokerMan

  • Гуру
  • 5293
  • 720 / 26
Re: Не отображаються стили на сервере
« Ответ #5 : 31.08.2010, 13:42:00 »
в общем index.php в студию, у вас там бредятина походу написана.
*

najdera

  • Захожу иногда
  • 70
  • 0 / 0
Re: Не отображаються стили на сервере
« Ответ #6 : 31.08.2010, 13:43:49 »
 :D index.php  :D

Код
<?php defined( '_JEXEC' ) or die( 'Restricted access' ); $pageview = JRequest::getVar('view', ''); ?> 
<!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" lang="<?php echo _LANGUAGE; ?>"xml:lang=" <?php echo _LANGUAGE; ?>">
<head>
<jdoc:include type="head" />
<?php JHTML::_('behavior.mootools'); ?>
<title>Латвийский туристический портал</title>
<meta name="description" content="туристическая информация, походы и путешествия, инвентарь туристов" />
<meta name="keywords" content="туризм, турист" />
<meta name="generator" content="Karina - Copyright (C) 2010 Open Source Matters. All rights reserved." />
<meta name="robots" content="index, follow" />
<base href="http://turist" />
<link href="/templates/<?php echo $this->template;?>/images/icon.ico" rel="shortcut icon" />
<link href="/templates/<?php echo $this->template;?>/css/main.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" background="/templates/<?php echo $this->template;?>/images/body_bg.jpg">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" background="/templates/<?php echo $this->template;?>/images/table_bg.jpg" class="main_table">
  <tr>
<td height="350" background="/templates/<?php echo $this->template;?>/images/right_pic.jpg" class="main_td">
<table width="100%" height="350" border="0" cellpadding="0" cellspacing="0">
  <tr>
<td height="250">
<table width="100%" height="250" border="0" cellpadding="0" cellspacing="0">
  <tr>
<td width="290" height="250" valign="top" background="/templates/<?php echo $this->template;?>/images/left_pic.jpg">
                        <div class="main_div">
   <?php if ($this->countModules('logo')): ?>
                           <jdoc:include type="modules" name="logo"  style="logo"  />
   <?php endif; ?>
                           </div>
                        </td>
<td valign="top">
                           <?php if ($this->countModules('turist')): ?>
                           <jdoc:include type="modules" name="turist"  style="turist"  />
   <?php endif; ?>
    </td>
  </tr>
</table> </td>
  </tr>
  <tr>
<td height="100" class="main_td2">
                <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0" background="/templates/<?php echo $this->template;?>/images/glass-bg.jpg">
                  <tr>
                    <td valign="top" class="main_td3" width="1px;"><img src="/templates/<?php echo $this->template;?>/images/glass_delimiter.jpg"></td>
                    <td width="50%" class="main_td4" background="/templates/<?php echo $this->template;?>/images/legs_blur.jpg">
                        <div id="fotodiv">
                           <?php if ($this->countModules('foto')): ?>
                           <jdoc:include type="modules" name="foto"  style="foto"  />
   <?php endif; ?>
                        </div>
                        <div id="showdiv">
                           <?php if ($this->countModules('show')): ?>
                           <jdoc:include type="modules" name="show"  style="show"  />
   <?php endif; ?>
                        </div>
                        </td>
<td width="121px;"><img src="/templates/<?php echo $this->template;?>/images/album_icon.jpg" alt="album" width="121" height="100"></td>
                    <td valign="top" class="main_td3" width="1px;"><img src="/templates/<?php echo $this->template;?>/images/glass_delimiter.jpg"></td>
                    <td width="50%">
                        <div id="fotodiv">
                           <?php if ($this->countModules('story')): ?>
                           <jdoc:include type="modules" name="story"  style="story"  />
   <?php endif; ?>
                        </div>
                        <div id="showdiv">
                           <?php if ($this->countModules('tall')): ?>
                           <jdoc:include type="modules" name="tall"  style="tall"  />
   <?php endif; ?>
                        </div>
                        </td>
<td width="121px;"><img src="/templates/<?php echo $this->template;?>/images/story_icon.jpg" alt="storys" width="121" height="100"></td>
                  </tr>
                </table></td>
  </tr>
  </table> </td>
  </tr>
  <tr>
<td valign="top" class="main_td2">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td rowspan="2" valign="top">
                <div id="cont">
              <jdoc:include type="component" />
                </div>
            </td>
            <td width="230px" valign="top" nowrap="nowrap" class="main_td5">
                <div id="menudiv">
                           <?php if ($this->countModules('menu')): ?>
                           <jdoc:include type="modules" name="menu"  style="menu"  />
   <?php endif; ?>
                </div>
            </td>
          </tr>
          <tr>
            <td valign="top">
  <table width="100%" border="0" cellpadding="0" cellspacing="0"  class="main_table2">
  <tr>
<td class="main_td6" background="/templates/<?php echo $this->template;?>/images/diagonal_bg.gif" >
                <div class="logindiv">
                           <?php if ($this->countModules('login')): ?>
                           <jdoc:include type="modules" name="login"  style="login"  />
   <?php endif; ?>
                </div>
                <div class="logindiv2">
                           <?php if ($this->countModules('loginmenu')): ?>
                           <jdoc:include type="modules" name="loginmenu"  style="loginmenu"  />
   <?php endif; ?>
                </div>
                        </td>
  </tr>
  <tr height="30px">
  <td height="30px">&nbsp;</td>
  </tr>
  <tr>
<td class="main_td6" background="/templates/<?php echo $this->template;?>/images/diagonal_bg.gif" >
                <div class="searchdiv">
                           <?php if ($this->countModules('search')): ?>
                           <jdoc:include type="modules" name="search"  style="search"  />
   <?php endif; ?>
                </div>
                <div class="image">
                           <?php if ($this->countModules('image')): ?>
                           <jdoc:include type="modules" name="image"  style="image"  />
   <?php endif; ?>
                </div>
</td>
  </tr>
  </table>
            </td>
          </tr>
        </table>
    </td>
  </tr>
  <tr>
<td height="130" align="center" valign="middle">
                           <?php if ($this->countModules('banner')): ?>
                           <jdoc:include type="modules" name="banner"  style="banner"  />
   <?php endif; ?>
        </td>
  </tr>
  <tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
<td height="30" valign="bottom" class="white_h">Последние обновления на форуме: </td>
  </tr>
  <tr>
<td bgcolor="#BAEC98" class="main_td8">
                <div id="theme">
                Извините! В данный момент форум не работает. Приносим глубочайшие извинения. Администрация Turist.lv
                           <?php if ($this->countModules('theme')): ?>
                           <jdoc:include type="modules" name="theme"  style="theme"  />
   <?php endif; ?>
                </div>
</td>
  </tr>
  <tr>
<td height="175" valign="top" background="/templates/<?php echo $this->template;?>/images/footer_bg.jpg"><table width="100%" height="175" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="50%" valign="top" class="main_td9">
   <?php if ($this->countModules('corn')): ?>
                           <jdoc:include type="modules" name="corn"  style="corn"  />
   <?php endif; ?>
                           <br/>
   <?php if ($this->countModules('count')): ?>
                           <jdoc:include type="modules" name="count"  style="count"  />
   <?php endif; ?>
</td>
            <td width="50%" align="right" valign="bottom" background="/templates/<?php echo $this->template;?>/images/footer_bg1.jpg" class="main_td">
                           <div id="designed">
   <?php if ($this->countModules('design')): ?>
                           <jdoc:include type="modules" name="design"  style="design"  />
   <?php endif; ?>
                           </div>
            </td>
          </tr>
        </table></td>
  </tr>
</table>
</body>
</html>
*

najdera

  • Захожу иногда
  • 70
  • 0 / 0
Re: Не отображаються стили на сервере
« Ответ #7 : 31.08.2010, 13:45:11 »
<link href="/templates/<?php echo $this->template;?>/images/icon.ico" rel="shortcut icon" />

Меня смущает правильность написания этой строки...
*

Lex

  • Завсегдатай
  • 1615
  • 274 / 1
Re: Не отображаються стили на сервере
« Ответ #8 : 31.08.2010, 13:47:23 »
А меня вот этой
<base href="http://turist" />
Жизнь заставила учиться.
В личке на вопросы не отвечаю.
*

najdera

  • Захожу иногда
  • 70
  • 0 / 0
Re: Не отображаються стили на сервере
« Ответ #9 : 31.08.2010, 13:48:15 »
Блин, токо счас заметила. Все, спасибо! Теперь стили есть!
 ^-^
« Последнее редактирование: 31.08.2010, 13:52:24 от najdera »
*

SmokerMan

  • Гуру
  • 5293
  • 720 / 26
Re: Не отображаються стили на сервере
« Ответ #10 : 31.08.2010, 13:52:11 »
1. изменить
Код
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
2.убрать, он и так автоматически подгружается.
Код
<?php JHTML::_('behavior.mootools'); ?>
3. убрать
Код
<base href="http://turist" />
4. убрать, это все загружается здесь <jdoc:include type="head" />
Код
<title>Латвийский туристический портал</title>
<meta name="description" content="туристическая информация, походы и путешествия, инвентарь туристов" />
<meta name="keywords" content="туризм, турист" />
<meta name="generator" content="Karina - Copyright (C) 2010 Open Source Matters. All rights reserved." />

Делайте пока это.
*

najdera

  • Захожу иногда
  • 70
  • 0 / 0
Re: Не отображаються стили на сервере
« Ответ #11 : 31.08.2010, 14:02:59 »
Спасибо большое!! Теперь все как надо!
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Не работают стили на одной странице

Автор yyyuuu

Ответов: 1
Просмотров: 1026
Последний ответ 17.02.2023, 17:11:08
от marksetter
Не работают стили CSS в html

Автор ВикуЛя

Ответов: 1
Просмотров: 959
Последний ответ 27.05.2021, 12:31:15
от ShopES
Свои стили для мобильных устройств

Автор kik84

Ответов: 14
Просмотров: 3942
Последний ответ 05.10.2016, 00:18:04
от serjik
Стили галереи в мобильной версии

Автор balkan

Ответов: 0
Просмотров: 1240
Последний ответ 15.06.2016, 12:59:41
от balkan
не могу подключить свои стили

Автор intedant

Ответов: 2
Просмотров: 1183
Последний ответ 07.02.2016, 12:34:22
от intedant