Помощник
|
Проблема с картинками в Joomla, нужна помощь |
Silverspam
|
Сообщение
#1
|
||
|
|
||
|
|||
kahcepb |
15.1.2012, 21:35;
Ответить: kahcepb
Сообщение
#2
|
|
Попробуйне в configuration.php прописать var $live_site = урл сайта
Сообщение отредактировал kahcepb - 15.1.2012, 21:38 |
|
|
Silverspam
|
Сообщение
#3
|
|
Попробуйне в configuration.php прописать var $live_site = урл сайта А что это даст, можно подробнее? ) -------------------- |
|
|
SuperRomario |
15.1.2012, 23:55;
Ответить: SuperRomario
Сообщение
#4
|
|
А что это даст, можно подробнее? ) Это должно решит проблему сам недавно с таким сталкивался. Стоит какой-нить внешний компонент для ЧПУ? У меня по-моему такая фигня была при установке sh404sef. UPD хотя может ЧПУ тут не причем, вот пытаюсь вспомнить в чем же у меня была проблема, но знаю одно, что на любой странице сайта в теге head должно быть <head> <base href="http://имя-сайта.ру/" /> без всяких категорий. нашел где это сделать нужно в файле libraries/joomla/document/html/renderer/head.php $strHtml .= $tab.'<base href="'.$document->getBase().'"></base>'.$lnEnd; и заменяем на $strHtml .= $tab.'<base href="'.JURI::root().'" />'.$lnEnd; По крайней мере у меня заработало, также на просторах интернета пишут, что после таких манипуляций перестают работать якоря, но я такой проблемы не замечал. Сообщение отредактировал SuperRomario - 15.1.2012, 23:36 -------------------- |
|
|
anchous |
16.1.2012, 0:01;
Ответить: anchous
Сообщение
#5
|
|
я забил и стал ставить просто полный путь в хтмл
-------------------- |
|
|
Silverspam
|
Сообщение
#6
|
|
я забил и стал ставить просто полный путь в хтмл А так тоже нифига не катит. Обрезает и все тут. -------------------- |
|
|
SuperRomario |
16.1.2012, 10:10;
Ответить: SuperRomario
Сообщение
#7
|
|
А так тоже нифига не катит. Обрезает и все тут. Так а мой способ что не помог? -------------------- |
|
|
fobos |
16.1.2012, 11:13;
Ответить: fobos
Сообщение
#8
|
|
Кинь ссылку в ЛC.
Может сам редактор генерирует ссылку к картинки при сохранении? -------------------- |
|
|
Silverspam
|
Сообщение
#9
|
|
libraries/joomla/document/html/renderer/head.php У меня такой, даже подобной строки там нету ) -------------------- |
|
|
SuperRomario |
16.1.2012, 23:12;
Ответить: SuperRomario
Сообщение
#10
|
|
У меня такой, даже подобной строки там нету ) Так попробуйте добавить, должно помочь. Вот содержимое моего файла libraries/joomla/document/html/renderer/head.php joomla 1.5.25 Развернуть/Свернуть
<?php
/** * @version $Id: head.php 21074 2011-04-04 16:51:40Z dextercowley $ * @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) { // Trigger the onBeforeCompileHead event. $app = &JFactory::getApplication(); $app->triggerEvent('onBeforeCompileHead'); // 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="'.JURI::root().'" />'.$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; } } -------------------- |
|
|
|
Похожие темы
Тема | Ответов | Автор | Просмотров | Последний ответ | |
---|---|---|---|---|---|
Разработка сайтов Joomla Wordpress Opencart Разработка, верстка, оптимизация веб сайтов. |
77 | WoWeb | 40294 | 3.9.2023, 16:52 автор: Sawich |
|
[Продам] базы сайтов на CMS Wordpress/Joomla/Drupal/Magento/... | 14 | phosphoruss | 13673 | 16.8.2023, 15:27 автор: SmmPanelUS |
|
Техподдержка сайтов на движках Joomla, Netcat, Opencart | 5 | 54web | 4259 | 22.1.2023, 13:27 автор: kikimora17 |
|
Доработка сайта Joomla + VirtuMart | 0 | Intuit_Design | 1170 | 4.2.2021, 15:05 автор: Intuit_Design |
|
ВНИМАНИЕ: Комплекс услуг по движку Joomla и верстка 61site.ru - Верстаем и делаем сайты под ключ |
321 | lostprophet | 434635 | 1.7.2020, 12:02 автор: shamil918 |
Текстовая версия | Сейчас: 28.3.2024, 23:18 |