Man
и в самом начале после строчки
if($_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest') { die(); }
вставляешь вот это:
header("Content-type: text/html; charset=windows-1251");
точно не подскажу, но кажется ссылки меняются именно при сохранении записи в базу в поле content_html.
текст прогоняется фильтром и ставится редирект.
Т.е убрать можно, но тогда редирект пропадет везде где есть bb коды.
или допилить немного ))
В клубах тоже bb-код, но там нет редиректа.
Вставить в фронтенд компонента перед
if ($rew['user_id'] > 0) {$rew_author = $inUser->loadUser($rew['user_id']);} $inPage->setTitle('Обзор '.$rew['target_title'].' от '.$rew['guestname'].$rew_author['nickname']);
// Отдаем в шаблон $smarty = $inCore->initSmarty('components', 'com_rew.tpl');
Да, помогло! Огромный + !
В 1.5 такого нет в админке.
Man, А в "Общих настройках сайта" не смотрел? как оно в J1.5 уже не помню, второй год с ней не работаю, а в 2,5 так:
Пока все работает! И эта переменная была только в этом шаблоне, в других все нормально было.
есть ещё и такой файл \libraries\joomla\document\html\renderer\head.php. В нём и вызывается та переменная которую ты удалил. А енто чревато ошибками РНР и дополнительными тормозами.
$this->setTitle($mainframe->getCfg('sitename').' - '.$this->getTitle());
в коде движка конечно-же не стоит ничего менять, а в самом шаблоне, собственно, сам бог велел ) на то он и шаблон
config.php находится как раз в шаблоне.
// set title and params $this->setTitle($mainframe->getCfg('sitename').' - '.$this->getTitle()); $this->params->bind($template->params->toArray());
покажите код индекс.пхп шаблона
<?php /** * @package yoo_royalplaza Template * @file index.php * @version 1.5.0 July 2010 * @author YOOtheme http://www.yootheme.com * @copyright Copyright (C) 2007 - 2010 YOOtheme GmbH */ // no direct access JHTML::_('behavior.mootools'); // include config ?> <!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; ?>" dir="<?php echo $this->direction; ?>" > <head> <jdoc:include type="head" /> <link rel="apple-touch-icon" href="<?php echo $template->url ?>/apple_touch_icon.png" /> </head> <body id="page" class="yoopage <?php echo $this->params->get('columns'); ?> <?php echo $this->params->get('itemcolor'); ?> <?php echo $this->params->get('toolscolor'); ?>"> <?php if ($this->countModules('absolute')) : ?> <div id="absolute"> <jdoc:include type="yoomodules" name="absolute" /> </div> <?php endif; ?> <div id="page-body"> <div class="page-body-2"> <div class="wrapper"> <div id="header"> <div id="toolbar"> <?php if ($this->countModules('toolbarleft')) : ?> <div class="left"> <jdoc:include type="yoomodules" name="toolbarleft" style="yoo" /> </div> <?php endif; ?> <?php if ($this->countModules('toolbarright')) : ?> <div class="right"> <jdoc:include type="yoomodules" name="toolbarright" style="yoo" /> </div> <?php endif; ?> </div> <div id="menubar"> <div class="menubar-1"> <div class="menubar-2"> <div class="menubar-3"> <div class="menubar-4"> </div> </div> </div> </div> </div> <?php if ($this->countModules('logo')) : ?> <div id="logo"> <jdoc:include type="yoomodules" name="logo" /> </div> <?php endif; ?> <?php if ($this->params->get('date')) : ?> <div id="date"> <?php echo JHTML::_('date', 'now', JText::_('DATE_FORMAT_LC')) ?> </div> <?php endif; ?> <?php if ($this->countModules('search')) : ?> <div id="search"> <jdoc:include type="yoomodules" name="search" /> </div> <?php endif; ?> <?php if ($this->countModules('menu + menuright')) : ?> <div id="menu"> <?php if ($this->countModules('menu')) : ?> <div class="left"> <jdoc:include type="yoomodules" name="menu" style="yoo" /> </div> <?php endif; ?> <?php if ($this->countModules('menuright')) : ?> <div class="right"> <jdoc:include type="yoomodules" name="menuright" style="yoo" /> </div> <?php endif; ?> </div> <?php endif; ?> <?php if ($this->countModules('banner')) : ?> <div id="banner"> <jdoc:include type="yoomodules" name="banner" /> </div> <?php endif; ?> </div> <!-- header end --> <div class="wrapper-t1"> <div class="wrapper-t2"> <div class="wrapper-t3"></div> </div> </div> <div class="wrapper-1"> <div class="wrapper-2"> <div class="wrapper-3"> <?php if ($this->countModules('top + topblock')) : ?> <div id="top"> <?php if($this->countModules('topblock')) : ?> <div class="topblock width100 float-left"> <jdoc:include type="yoomodules" name="topblock" style="yoo" /> </div> <?php endif; ?> <?php if ($this->countModules('top')) : ?> <jdoc:include type="yoomodules" name="top" wrapper="topbox float-left" layout="<?php echo $this->params->get('top'); ?>" style="yoo" /> <?php endif; ?> </div> <!-- top end --> <?php endif; ?> <div class="left-bg"> <div class="right-bg"> <div id="middle"> <div id="middle-expand"> <div id="main"> <div id="main-shift"> <?php if ($this->countModules('maintop')) : ?> <div id="maintop"> <jdoc:include type="yoomodules" name="maintop" wrapper="maintopbox float-left" layout="<?php echo $this->params->get('maintop'); ?>" style="yoo" /> </div> <!-- maintop end --> <?php endif; ?> <div class="contentleft-bg"> <div class="contentright-bg"> <div id="mainmiddle"> <div id="mainmiddle-expand"> <div id="content"> <div id="content-shift"> <?php if ($this->countModules('contenttop')) : ?> <div id="contenttop"> <jdoc:include type="yoomodules" name="contenttop" wrapper="contenttopbox float-left" layout="<?php echo $this->params->get('contenttop'); ?>" style="yoo" /> </div> <!-- contenttop end --> <?php endif; ?> <?php if ($this->countModules('breadcrumbs')) : ?> <div id="breadcrumbs"> <jdoc:include type="yoomodules" name="breadcrumbs" /> </div> <?php endif; ?> <div id="component" class="floatbox"> <jdoc:include type="message" /> <jdoc:include type="component" /> </div> <?php if ($this->countModules('contentbottom')) : ?> <div id="contentbottom"> <jdoc:include type="yoomodules" name="contentbottom" wrapper="contentbottombox float-left" layout="<?php echo $this->params->get('contentbottom'); ?>" style="yoo" /> </div> <!-- mainbottom end --> <?php endif; ?> </div> </div> <!-- content end --> <?php if($this->countModules('contentleft')) : ?> <div id="contentleft"> <jdoc:include type="yoomodules" name="contentleft" style="yoo" /> </div> <?php endif;
yoo_royalplaza
Шаблон какой?
Название шаблона и/или производителя