Новости Joomla

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

jey

  • Захожу иногда
  • 101
  • 1 / 0
Кто все портит?
« : 03.01.2011, 04:03:10 »
Код
HTML xmlns="http://www.w3.org/1999/xhtml"  style="margin-top: 2px" >
  <HEAD></HEAD>
  <BODY>
    
    <META http-equiv="content-type"  content="text/html; charset=utf-8" >
    <META name="robots"  content="index, follow" >
                               ......
Шаблон переношу с одного сайта на другой, на первом все ok (
Код
<HEAD><META name="robots"  content="index, follow" ></HEAD>
и т.д.), на втором в коде этот бред.
*

doctorgrif

  • Давно я тут
  • 745
  • 82 / 1
  • Нудный доктор
Re: Кто все портит?
« Ответ #1 : 03.01.2011, 09:14:06 »
южно-африканские партизаны? alarm! partizanen!

может сразу писать шапку сайта в соответствии со стандартами?
или сменить пароль на ftp?
Омск-Екатеринбург-Челябинск...Feldzug gen Westen | Кафедра | GrayBox | Joostina 1.2.1 | Joostina Extensions | In Vino Veritas [в работе]
*

jey

  • Захожу иногда
  • 101
  • 1 / 0
Re: Кто все портит?
« Ответ #2 : 03.01.2011, 12:01:40 »
может сразу писать шапку сайта в соответствии со стандартами?
или сменить пароль на ftp?

Index шаблона написан правильно
Код
<?php
defined( '_JEXEC' ) or die( 'Restricted 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">
<head>
<meta name="....... />
Но на выводе кто то портит.
*

jey

  • Захожу иногда
  • 101
  • 1 / 0
Re: Кто все портит?
« Ответ #3 : 03.01.2011, 12:43:57 »
Подскажите где копать, не могу найти, стандартный шаблон все ok, этот же. Толи что то не подключилось?
*

Aleks_El_Dia

  • Moderator
  • 3671
  • 353 / 0
  • AEDStudio Joomla! Direction
Re: Кто все портит?
« Ответ #4 : 03.01.2011, 12:50:26 »
index.php шаблона приведите
В нем есть <jdoc:include type="head" /> ?
Спам придумали боги в отместку за наши молитвы (с) Рома Воронежский
На молоко: Z369038872422 || R210017695494 || U247040729215 || ЯД 410011288250383
Мигрирую сайты, переношу расширения J!1.0->J!1.5->J!2.5. Более 50 успешных миграций.
*

jey

  • Захожу иногда
  • 101
  • 1 / 0
Re: Кто все портит?
« Ответ #5 : 03.01.2011, 12:58:00 »
index.php шаблона приведите
В нем есть <jdoc:include type="head" /> ?
Код
<?php
defined( '_JEXEC' ) or die( 'Restricted 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">
<head>
<meta name="..." />
<jdoc:include type="head" />
<link href="/templates/aqualife/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link  href="/templates/aqualife/style.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
...
<![endif]-->
<?php

if (@$option=='com_virtuemart' ) { ?>

<script language="JavaScript" type="text/javascript" src="

<?php

echo $mainframe->getCfg('live_site'); ?>components/com_virtuemart/js/mootools/mootools-release-1.11.js">

    </script>

<script language="JavaScript" type="text/javascript" src="

<?php

echo $mainframe->getCfg('live_site'); ?>components/com_virtuemart/js/mootools/mooPrompt.js">

    </script>
          ...........
</head>
<body>
<div id="header">
<a href="/" id="logo" class="png-back"></a>
<jdoc:include type="modules" name="top" style="-1" />
</div>
<div id="header2">
<jdoc:include type="modules" name="top2" style="-1" />
</div>
...
*

Aleks_El_Dia

  • Moderator
  • 3671
  • 353 / 0
  • AEDStudio Joomla! Direction
Re: Кто все портит?
« Ответ #6 : 03.01.2011, 13:01:42 »
И что в исходном коде?
Спам придумали боги в отместку за наши молитвы (с) Рома Воронежский
На молоко: Z369038872422 || R210017695494 || U247040729215 || ЯД 410011288250383
Мигрирую сайты, переношу расширения J!1.0->J!1.5->J!2.5. Более 50 успешных миграций.
*

jey

  • Захожу иногда
  • 101
  • 1 / 0
Re: Кто все портит?
« Ответ #7 : 03.01.2011, 13:06:58 »
Это и есть исходный код.
*

jey

  • Захожу иногда
  • 101
  • 1 / 0
Re: Кто все портит?
« Ответ #8 : 03.01.2011, 13:10:43 »
Код
<?php
/**
* @version $Id: head.php 14401 2010-01-26 14:10:00Z louis $
* @package Joomla.Framework
* @subpackage Document
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

/**
 * JDocument head renderer
 *
 * @package Joomla.Framework
 * @subpackage Document
 * @since 1.5
 */
class JDocumentRendererHead extends JDocumentRenderer
{
/**
* Renders the document head and returns the results as a string
*
* @access public
* @param string $name (unused)
* @param array $params Associative array of values
* @return string The output of the script
*/
function render( $head = null, $params = array(), $content = null )
{
ob_start();

echo $this->fetchHead($this->_doc);

$contents = ob_get_contents();
ob_end_clean();

return $contents;
}

/**
* Generates the head HTML and return the results as a string
*
* @access public
* @return string
*/
function fetchHead(&$document)
{
// get line endings
$lnEnd = $document->_getLineEnd();
$tab = $document->_getTab();

$tagEnd = ' />';

$strHtml = '';

// Generate base tag (need to happen first)
$base = $document->getBase();
if(!empty($base)) {
$strHtml .= $tab.'<base href="'.$document->getBase().'" />'.$lnEnd;
}

// Generate META tags (needs to happen as early as possible in the head)
foreach ($document->_metaTags as $type => $tag)
{
foreach ($tag as $name => $content)
{
if ($type == 'http-equiv') {
$strHtml .= $tab.'<meta http-equiv="'.$name.'" content="'.$content.'"'.$tagEnd.$lnEnd;
} elseif ($type == 'standard') {
$strHtml .= $tab.'<meta name="'.$name.'" content="'.str_replace('"',"'",$content).'"'.$tagEnd.$lnEnd;
}
}
}

$strHtml .= $tab.'<meta name="description" content="'.$document->getDescription().'" />'.$lnEnd;
$strHtml .= $tab.'<meta name="generator" content="'.$document->getGenerator().'" />'.$lnEnd;

$strHtml .= $tab.'<title>'.htmlspecialchars($document->getTitle()).'</title>'.$lnEnd;

// Generate link declarations
foreach ($document->_links as $link) {
$strHtml .= $tab.$link.$tagEnd.$lnEnd;
}

// Generate stylesheet links
foreach ($document->_styleSheets as $strSrc => $strAttr )
{
$strHtml .= $tab . '<link rel="stylesheet" href="'.$strSrc.'" type="'.$strAttr['mime'].'"';
if (!is_null($strAttr['media'])){
$strHtml .= ' media="'.$strAttr['media'].'" ';
}
if ($temp = JArrayHelper::toString($strAttr['attribs'])) {
$strHtml .= ' '.$temp;;
}
$strHtml .= $tagEnd.$lnEnd;
}

// Generate stylesheet declarations
foreach ($document->_style as $type => $content)
{
$strHtml .= $tab.'<style type="'.$type.'">'.$lnEnd;

// This is for full XHTML support.
if ($document->_mime == 'text/html' ) {
$strHtml .= $tab.$tab.'<!--'.$lnEnd;
} else {
$strHtml .= $tab.$tab.'<![CDATA['.$lnEnd;
}

$strHtml .= $content . $lnEnd;

// See above note
if ($document->_mime == 'text/html' ) {
$strHtml .= $tab.$tab.'-->'.$lnEnd;
} else {
$strHtml .= $tab.$tab.']]>'.$lnEnd;
}
$strHtml .= $tab.'</style>'.$lnEnd;
}

// Generate script file links
foreach ($document->_scripts as $strSrc => $strType) {
$strHtml .= $tab.'<script type="'.$strType.'" src="'.$strSrc.'"></script>'.$lnEnd;
}

// Generate script declarations
foreach ($document->_script as $type => $content)
{
$strHtml .= $tab.'<script type="'.$type.'">'.$lnEnd;

// This is for full XHTML support.
if ($document->_mime != 'text/html' ) {
$strHtml .= $tab.$tab.'<![CDATA['.$lnEnd;
}

$strHtml .= $content.$lnEnd;

// See above note
if ($document->_mime != 'text/html' ) {
$strHtml .= $tab.$tab.'// ]]>'.$lnEnd;
}
$strHtml .= $tab.'</script>'.$lnEnd;
}

foreach($document->_custom as $custom) {
$strHtml .= $tab.$custom.$lnEnd;
}

return $strHtml;
}
}
*

Aleks_El_Dia

  • Moderator
  • 3671
  • 353 / 0
  • AEDStudio Joomla! Direction
Re: Кто все портит?
« Ответ #9 : 03.01.2011, 13:12:30 »
Мда
Спам придумали боги в отместку за наши молитвы (с) Рома Воронежский
На молоко: Z369038872422 || R210017695494 || U247040729215 || ЯД 410011288250383
Мигрирую сайты, переношу расширения J!1.0->J!1.5->J!2.5. Более 50 успешных миграций.
*

jey

  • Захожу иногда
  • 101
  • 1 / 0
Re: Кто все портит?
« Ответ #10 : 03.01.2011, 13:16:49 »
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Помогите решить ошибку

Автор azumi

Ответов: 21
Просмотров: 4610
Последний ответ 08.09.2020, 18:47:08
от gartes
Ошибка #1050 при переносе базы данных на хостинг

Автор Ksen

Ответов: 7
Просмотров: 24927
Последний ответ 16.03.2020, 17:47:29
от Petrovich
Не работает кнопка отправить ?

Автор warlocksp

Ответов: 6
Просмотров: 1659
Последний ответ 10.03.2017, 11:34:50
от warlocksp
Joomla 1.5.23 обновление до самой новой версии

Автор AlexeyPavlov

Ответов: 6
Просмотров: 3039
Последний ответ 12.08.2015, 16:30:53
от SeBun
Где найти перечень отличий версий Joomla 1.5?

Автор ABCroNews

Ответов: 3
Просмотров: 9829
Последний ответ 28.07.2015, 12:35:00
от ShniderHost