Новости Joomla

Astroid обновился до версии 3.3.7!

Astroid обновился до версии 3.3.7!

Astroid — это мощный фреймворк для дизайнеров и разработчиков, позволяющий создавать адаптивные, быстрые и надежные веб-сайты и шаблоны на базе Joomla.

Главное в новой версии:

-   Исправлена загрузка файлов макетов

В предыдущем крупном релизе Astroid 3.3.6 были сделаны важные улучшения:

Основные моменты:

  • Улучшенный UI/UX в ключевых областях конфигурации
  • Повышенная стабильность и согласованность в Layout Builder и Form Builder
  • Исправления ошибок на основе отзывов сообщества
  • Улучшенная обработка визуальных эффектов, границ и шрифтов

Улучшения:

  • Обновленный UX Layout Builder
  • Улучшенный эффект предзагрузчика
  • Улучшенный стиль границ
  • Улучшенный UI/UX вкладки «Layout» в Template Options

Исправления ошибок:

  • Решены проблемы с некорректными динамическими значениями
  • Исправлен Color Transform при прокрутке
  • Устранены проблемы с работой Form Builder в Article Layout и Module Layout Builder
  • Исправлена проблема с созданием ненужных временных файлов при обработке шрифтов

Скачать: https://github.com/templaza/astroid-framework/releases/tag/v3.3.7

Как тестировать Joomla PHP-разработчику? Компонент Patch tester.

👩‍💻 Как тестировать Joomla PHP-разработчику? Компонент Patch tester.Joomla - open source PHP-фреймворк с готовой админкой. Его основная разработка ведётся на GitHub. Для того, чтобы международному сообществу разработчиков было удобнее тестировать Pull Requests был создан компонент Patch Tester, который позволяет "накатить" на текущую установку Joomla именно те изменения, которые необходимо протестировать. На стороне инфраструктуры Joomla для каждого PR собираются готовые пакеты, в которых находится ядро + предложенные изменения. В каждом PR обычно находятся инструкции по тестированию: куда зайти, что нажать, ожидаемый результат. Тестировщики могут предположить дополнительные сценарии, исходя из своего опыта и найти баги, о которых сообщить разработчику. Или не найти, и тогда улучшение или исправление ошибки быстрее войдёт в ядро Joomla. Напомню, что для того, чтобы PR вошёл в ядро Joomla нужны минимум 2 положительных теста от 2 участников сообщества, кроме автора. Видео на YouTubeВидео на VK ВидеоВидео на RuTubeКомпонент на GitHub https://github.com/joomla-extensions/patchtester@joomlafeed#joomla #php #webdev #community

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

Ту-154

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
Ребята,  ! Я сделала мультиязычность в сайте на Joomla 2.5 и тут такой облом - установленное SMenu стал искать картинки в каталогах вида а так стандартно обращается к

Что мне делать? Не хочется компонент искать новый, а нигде в инете нет решения :(

Вот код helper.php

Код
<?php

/**
 * mod_smenu_banner
 *
 * @version 2.0
 * @author Creative Pulse
 * @copyright Creative Pulse 2008
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link http://www.creativepulse.eu
 */

defined('_JEXEC') or die('Restricted access');


class ModSmenuBanner {

function instance_id($new = false) {
static $num = 0;

if ($new)
$num++;
else
return $num;
}

function json_esc($input, $esc_lt_gt = true) {
$result = '';
$input = (string) $input;
$conv = array( "'" => "'", '"' => '"', '&' => '&', '\\' => '\\', "\n" => 'n', "\r" => 'r', "\t" => 't', "\b" => 'b', "\f" => 'f' );

if ($esc_lt_gt)
$conv = array_merge($conv, array( '<' => 'u003C', '>' => 'u003E' ));

for ($i = 0, $len = strlen($input); $i < $len; $i++)
$result .= isset($conv[$input{$i}])? '\\' . $conv[$input{$i}] : $input{$i};

return $result;
}

function norm_class($prefix, $input, &$def_classes) {
$result = array();
$input = trim($input);
if ($input != '') {
$r1 = explode(',', $input);
foreach ($r1 as $v) {
$v = trim($v);
if ($v != '')
$result[] = $v;
}

$def_classes .= $prefix . ': "' . array_shift($result). '",' . "\n";
}
return $result;
}

function def_int($input, $default = 0) {
$input = trim($input);
return $input == '' || !ctype_digit($input)? $default : (int) $input;
}

function def_float($input, $default = 0.0) {
$input = trim($input);
return !preg_match('/^[0-9]+(\.[0-9]*)?$/', $input)? $default : (float) $input;
}

function prepare(&$params) {
$db =& JFactory::getDBO();

$where = array();

$where[] = 'state = 1';

$catid = (int) $params->get('catid');
if ($catid > 0)
$where[] = 'catid = ' . $catid;

$where[] = '(imptotal = 0 OR impmade < imptotal)';

$count = (int) $params->get('count');

$randomise = $params->get('ordering') == 'random';

$query = "SELECT *"
. ($randomise ? ', RAND() AS ordering' : '')
. ' FROM #__banners'
. ' WHERE ' . implode(' AND ', $where)
. ' ORDER BY sticky DESC, ordering ';

$db->setQuery($query, 0, $count);
$result = $db->loadObjectList();

$this->items = array();

$this->loadit = !empty($result);

if ($this->loadit) {
$this->instance_id(true);

$width = $this->def_int($params->get('width'));
$height = $this->def_int($params->get('height'));

if ($width == 0 && $height == 0)
$height = 100;

$this->div_str = '';

if ($width > 0)
$this->div_str .= 'width:' . $width . 'px;';

if ($height > 0)
$this->div_str .= 'height:' . $height . 'px;';

if ($this->div_str != '')
$this->div_str = ' style="' . $this->div_str . '"';

$this->interval = $this->def_int($params->get('interval'), 20);
$this->speed = $this->def_float($params->get('speed'), 3);
$this->minstep = $this->def_int($params->get('minstep'));
$this->maxstep = $this->def_int($params->get('maxstep'));
$this->hor = $params->get('orientation', 'horizontal') == 'horizontal' ? 'true' : 'false';
$this->align = $this->def_int($params->get('align'));
$this->movtype = $params->get('movtype', 'plastic');
$this->anitype = $params->get('anitype', 'static');
$this->min_size = $this->def_int($params->get('min_size'));
$this->large_size = $this->def_int($params->get('large_size'));
$this->sel_permanent = $this->def_int($params->get('sel_permanent'), 1)? 'true' : 'false';
$this->img_start = trim($params->get('img_start'));
$this->css_start = trim($params->get('css_start'));
$this->img_split = trim($params->get('img_split'));
$this->css_split = trim($params->get('css_split'));
$this->img_end = trim($params->get('img_end'));
$this->css_end = trim($params->get('css_end'));
$this->def_item = $this->def_int($params->get('def_item'));
$this->png_gif_substitution = (bool) $params->get('png_gif_substitution');

$this->def_classes = '';
$outer_class_norm_list = $this->norm_class(' def_outer_class_norm', $params->get('def_outer_class_norm'), $this->def_classes);
$outer_class_sel_list = $this->norm_class(' def_outer_class_sel', $params->get('def_outer_class_sel'), $this->def_classes);
$inner_class_norm_list = $this->norm_class(' def_inner_class_norm', $params->get('def_inner_class_norm'), $this->def_classes);
$inner_class_sel_list = $this->norm_class(' def_inner_class_sel', $params->get('def_inner_class_sel'), $this->def_classes);

$this->format = $params->get('format');
if (trim($this->format) == '')
$this->format = '<a href="{linkurl}">{img}</a> {title}<br/>{descr}';

$baseurl = JURI::base();

foreach ($result as $rec) {

$imgurl = $baseurl . 'images/banners/' . $rec->imageurl;
$imgpath = JPATH_SITE . '/images/banners/' . $rec->imageurl;
$imgurl_ie6 = '';
$imgpath_ie6 = '';

if ($this->png_gif_substitution && preg_match('/\.png$/i', $imgurl) > 0 && file_exists(substr($imgpath, 0, -3). 'gif')) {
$imgurl_ie6 = substr($imgurl, 0, -3). 'gif';
$imgpath_ie6 = substr($imgpath, 0, -3). 'gif';
}

$this->items[] = array(
'imgurl' => $imgurl,
'imgpath' => $imgpath,
'imgurl_ie6' => $imgurl_ie6,
'imgpath_ie6' => $imgpath_ie6,
'linkurl' => $rec->clickurl,
'format' => $rec->custombannercode,
'descr' => $rec->description,
'title' => $rec->name,
);
}
}
}
}

?>

А вот smenu.js:

Код
/**
 * smenu
 *
 * @package smenu
 * @version 2.0.1
 * @copyright Creative Pulse 2007-2009
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @link http://www.creativepulse.eu/goto/smenu
 */

function Smenu(iname, host_id) {
this.iname = iname;
this.host_id = host_id;
this.menuitems = new Array();

// look for IE6
var ver = navigator.userAgent.toLowerCase().match(/msie (\d(.\d*)?)/);
this.ie6 = ver && ver[1] && ver[1] < 7;
}

Smenu.prototype.init = function (params) {
// clean up from a previous initialization
if (this.menuitems.length > 0) {
this.host_obj = document.getElementById(this.host_id);
if (this.host_obj) {
for (var k in this.menuitems) if (this.menuitems.hasOwnProperty(k)) {
var mi = this.menuitems[k];
if (mi.outer_obj) {
mi.outer_obj.removeChild(mi.inner_obj);
this.host_obj.removeChild(mi.outer_obj);
}
}
}
this.menuitems = new Array();
}

if (this.itv)
clearTimeout(this.itv);

// initialize variables
this.host_obj = null;
this.interval = typeof params.interval != 'number' || params.interval < 1 ? 20 : params.interval;
this.itv = 0;
this.speed = typeof params.speed != 'number' || params.speed < 1 ? 1 : params.speed;
this.minstep = typeof params.minstep != 'number' || params.minstep < 0 ? 0 : params.minstep;
this.maxstep = typeof params.maxstep != 'number' || params.maxstep < 0 ? 0 : params.maxstep;
this.hor = typeof params.hor != 'boolean' ? true : params.hor;
this.align = typeof params.align != 'number' ? 0 : params.align;
this.movtype = typeof params.movtype != 'string' ? 'elastic' : params.movtype;
this.anitype = typeof params.anitype != 'string' ? 'static' : params.anitype;
this.small_size = 0;
this.standby_size = 0;
this.min_size = typeof params.min_size != 'number' || params.min_size < 0 ? 0 : params.min_size;
this.large_size = typeof params.large_size != 'number' || params.large_size < 0 ? 0 : params.large_size;
this.sel_permanent = typeof params.sel_permanent != 'boolean' ? true : params.sel_permanent;
this.def_item = typeof params.def_item != 'number' || params.def_item < 0 ? 0 : params.def_item;
this.def_outer_class_norm = typeof params.def_outer_class_norm != 'string' ? '' : params.def_outer_class_norm;
this.def_outer_class_sel = typeof params.def_outer_class_sel != 'string' ? '' : params.def_outer_class_sel;
this.def_inner_class_norm = typeof params.def_inner_class_norm != 'string' ? '' : params.def_inner_class_norm;
this.def_inner_class_sel = typeof params.def_inner_class_sel != 'string' ? '' : params.def_inner_class_sel;
this.sel_k = -1;
}

Smenu.prototype.add_item = function (params) {
var def_values = {
id: '',
outer_class_norm: '',
outer_class_sel: '',
inner_class_norm: '',
inner_class_sel: '',
html: '',
html_ie6: '',
html_srcid: '',
link: '',
linktype: 0,
bgimage: '',
bgimagerepeat: '',
bgcolor: '',
size: 0
}

// set defaults to undefined parameters
for (var k in def_values) if (def_values.hasOwnProperty(k)) {
if (typeof params[k] == 'undefined')
params[k] = def_values[k];
}

if (this.ie6 && params.html != '' && params.html_ie6 != '')
params.html = params.html_ie6;

if (params.outer_class_norm == '' && this.def_outer_class_norm != '')
params.outer_class_norm = this.def_outer_class_norm;

if (params.outer_class_sel == '' && this.def_outer_class_sel != '')
params.outer_class_sel = this.def_outer_class_sel;

if (params.inner_class_norm == '' && this.def_inner_class_norm != '')
params.inner_class_norm = this.def_inner_class_norm;

if (params.inner_class_sel == '' && this.def_inner_class_sel != '')
params.inner_class_sel = this.def_inner_class_sel;

// add item
this.menuitems.push(params);
}

Smenu.prototype.runit = function () {
this.host_obj = document.getElementById(this.host_id);
if (this.host_obj) {
this.size = this.hor ? this.host_obj.offsetWidth : this.host_obj.offsetHeight;

var elastic_size = this.size;
var static_size = 0;

var elastic_count = 0;
this.last_elastic_k = -1;
for (var k in this.menuitems) if (this.menuitems.hasOwnProperty(k)) {
var mi = this.menuitems[k];
if (mi.size == 0) {
elastic_count++;
this.last_elastic_k = k;
}
else {
elastic_size -= mi.size;
static_size += mi.size;
}
}
this.correction_k = this.last_elastic_k;

this.standby_size = elastic_count == 0 ? 0 : Math.floor(elastic_size / elastic_count);
this.last_standby_size = this.standby_size + (this.size - static_size - this.standby_size * elastic_count);

if (this.min_size > this.standby_size)
this.min_size = this.standby_size;

// count all except the selected item
elastic_count--;
if (elastic_count <= 0) {
this.large_size = elastic_size;
this.small_size = elastic_size;
}
else {
if (this.large_size == 0 && this.movtype == 'plastic')
this.small_size = 0;
else if (this.large_size == 0 || this.large_size >= elastic_size)
this.small_size = Math.floor(elastic_size * 0.3 / elastic_count);
else
this.small_size = Math.floor((elastic_size - this.large_size) / elastic_count);

if (this.small_size < this.min_size)
this.small_size = this.min_size;

this.large_size = elastic_size - elastic_count * this.small_size;
}

switch (this.movtype) {
case 'plastic':
// find open item
var def_item = this.def_item - 1;
var last_item = -1, open_item = -1;
for (var k in this.menuitems) if (this.menuitems.hasOwnProperty(k)) {
if (this.menuitems[k].size == 0) {
if (k == def_item) {
open_item = k;
break;
}
last_item = k;
}
}

if (open_item == -1)
open_item = last_item;

// update menu item properties
for (var k in this.menuitems) if (this.menuitems.hasOwnProperty(k)) {
var mi = this.menuitems[k];
if (mi.size == 0) {
if (k == open_item) {
mi.cursz = this.large_size;
mi.trgsz = this.large_size;
}
else {
mi.cursz = this.small_size;
mi.trgsz = this.small_size;
}
}
else {
mi.cursz = mi.size;
mi.trgsz = mi.size;
}
}

break;

case 'elastic':
default:
// update menu item properties
for (var k in this.menuitems) if (this.menuitems.hasOwnProperty(k)) {
var mi = this.menuitems[k];
if (mi.size == 0) {
if (k == this.last_elastic_k) {
mi.cursz = this.last_standby_size;
mi.trgsz = this.last_standby_size;
}
else {
mi.cursz = this.standby_size;
mi.trgsz = this.standby_size;
}
}
else {
mi.cursz = mi.size;
mi.trgsz = mi.size;
}
}
}

// load menu items
for (var k in this.menuitems) if (this.menuitems.hasOwnProperty(k)) {
var mi = this.menuitems[k];

mi.curspeed = 0;

mi.outer_obj = document.createElement('div');
this.host_obj.appendChild(mi.outer_obj);

mi.outer_obj.style.overflow = 'hidden';

if (this.hor) {
mi.outer_obj.style.cssFloat = 'left';
mi.outer_obj.style.styleFloat = 'left';
mi.outer_obj.style.width = mi.cursz + 'px';
mi.outer_obj.style.height = this.host_obj.offsetHeight + 'px';
}
else {
mi.outer_obj.style.width = this.host_obj.offsetWidth + 'px';
mi.outer_obj.style.height = mi.cursz + 'px';
}

mi.outer_obj.smenu_iname = this.iname;
mi.outer_obj.smenu_mik = k;

if (mi.link != '' && mi.linktype >= 0)
mi.outer_obj.style.cursor = 'pointer';

if (mi.id != '')
mi.outer_obj.id = mi.id;

mi.outer_obj.className = mi.outer_class_norm;

if (mi.size == 0) {
mi.outer_obj.onmouseover = function () {
document[this.smenu_iname].handle_mouseover(this.smenu_mik);
}

mi.outer_obj.onmouseout = function () {
document[this.smenu_iname].handle_mouseout(this.smenu_mik);
}
}

mi.inner_obj = document.createElement('div');
mi.outer_obj.appendChild(mi.inner_obj);

if (this.hor) {
mi.inner_obj.style.width = this.large_size + 'px';
mi.inner_obj.style.height = this.host_obj.offsetHeight + 'px';
}
else {
mi.inner_obj.style.width = this.host_obj.offsetWidth + 'px';
mi.inner_obj.style.height = this.large_size + 'px';
}

mi.inner_obj.className = mi.inner_class_norm;

if (mi.html != '')
mi.inner_obj.innerHTML = mi.html;

if (mi.html_srcid != '') {
var src_obj = document.getElementById(mi.html_srcid);
if (src_obj)
mi.inner_obj.innerHTML = src_obj.innerHTML;
}

if (mi.bgcolor != '')
mi.inner_obj.style.backgroundColor = mi.bgcolor;

if (mi.bgimage != '') {
mi.inner_obj.style.backgroundImage = 'url(' + mi.bgimage + ')';

if (mi.bgimagerepeat != '')
mi.inner_obj.style.backgroundRepeat = mi.bgimagerepeat;
}

if (this.align == 1) {
if (this.hor)
mi.outer_obj.scrollLeft = this.large_size - mi.cursz;
else
mi.outer_obj.scrollTop = this.large_size - mi.cursz;
}
}

if (this.movtype == 'plastic' && open_item > -1 && this.sel_permanent) {
this.sel_k = open_item;
var mi = this.menuitems[this.sel_k];
mi.outer_obj.className = mi.outer_class_sel;
mi.inner_obj.className = mi.inner_class_sel;
}

var obj = document.createElement('div');
this.host_obj.appendChild(obj);
obj.style.clear = 'both';
}
}

Smenu.prototype.handle_mouseover = function (mik) {
if (this.sel_k > -1) {
this.menuitems[this.sel_k].outer_obj.className = this.menuitems[this.sel_k].outer_class_norm;
this.menuitems[this.sel_k].inner_obj.className = this.menuitems[this.sel_k].inner_class_norm;
this.sel_k = -1;
}

var animate = false;
for (var k in this.menuitems) if (this.menuitems.hasOwnProperty(k)) {
var mi = this.menuitems[k];

if (mi.size == 0)
mi.trgsz = k == mik ? this.large_size : this.small_size;

if (mi.trgsz != mi.cursz)
animate = true;
}

this.correction_k = mik;
this.sel_k = mik;
this.menuitems[this.sel_k].outer_obj.className = this.menuitems[this.sel_k].outer_class_sel;
this.menuitems[this.sel_k].inner_obj.className = this.menuitems[this.sel_k].inner_class_sel;

if (animate && this.itv == 0)
this.itv = setTimeout('document["' + this.iname + '"].rhythm();', this.interval);
}

Smenu.prototype.handle_mouseout = function (mik) {
if (!this.sel_permanent && this.sel_k > -1) {
this.menuitems[this.sel_k].outer_obj.className = this.menuitems[this.sel_k].outer_class_norm;
this.menuitems[this.sel_k].inner_obj.className = this.menuitems[this.sel_k].inner_class_norm;
this.sel_k = -1;
}

if (this.movtype == 'elastic') {
var animate = false;
for (var k in this.menuitems) if (this.menuitems.hasOwnProperty(k)) {
var mi = this.menuitems[k];

if (mi.size == 0) {
if (k == this.last_elastic_k)
mi.trgsz = this.last_standby_size;
else
mi.trgsz = this.standby_size;
}

if (mi.trgsz != mi.cursz)
animate = true;
}

if (animate && this.itv == 0)
this.itv = setTimeout('document["' + this.iname + '"].rhythm();', this.interval);
}
}

Smenu.prototype.rhythm = function () {
this.itv = 0;
var animate = false;
var rsp, total = 0;
for (var k in this.menuitems) if (this.menuitems.hasOwnProperty(k)) {
var mi = this.menuitems[k];
if (mi.trgsz != mi.cursz) {
mi.prvsz = mi.cursz;

switch (this.anitype) {
case 'fastslow':
rsp = Smenu_rhythm_fastslow(mi.cursz, mi.trgsz, mi.curspeed, this.speed, this.minstep, this.maxstep);
break;

case 'slowfast':
rsp = Smenu_rhythm_slowfast(mi.cursz, mi.trgsz, mi.curspeed, this.speed, this.minstep, this.maxstep);
break;

case 'static':
default:
rsp = Smenu_rhythm_static(mi.cursz, mi.trgsz, mi.curspeed, this.speed, this.minstep, this.maxstep);
}

mi.cursz = rsp.new_size;
mi.curspeed = rsp.new_speed;

if (rsp.animate)
animate = true;
}

total += mi.cursz;
}

var diff = this.size - total;
if (diff != 0 && this.correction_k > -1)
this.menuitems[this.correction_k].cursz += diff;

for (var k in this.menuitems) if (this.menuitems.hasOwnProperty(k)) {
var mi = this.menuitems[k];
if (mi.prvsz != mi.cursz) {
if (mi.cursz <= 0) {
mi.outer_obj.style.display = 'none';
}
else {
if (mi.prvsz <= 0)
mi.outer_obj.style.display = 'block';

if (this.hor) {
mi.outer_obj.style.width = mi.cursz + 'px';
}
else {
mi.outer_obj.style.height = mi.cursz + 'px';
}
}
}
}

if (this.align == 1) {
for (var k in this.menuitems) if (this.menuitems.hasOwnProperty(k)) {
var mi = this.menuitems[k];
if (mi.cursz > 0) {
if (this.hor)
mi.outer_obj.scrollLeft = this.large_size - mi.cursz;
else
mi.outer_obj.scrollTop = this.large_size - mi.cursz;
}
}
}

if (animate && this.itv == 0)
this.itv = setTimeout('document["' + this.iname + '"].rhythm();', this.interval);
}


function Smenu_rhythm_static(cursz, trgsz, curspeed, speed, minstep, maxstep) {
if (cursz != trgsz) {
var diff = Math.round(speed);

if (diff < 1)
diff = 1;

if (minstep > 0 && diff < minstep)
diff = minstep;

if (maxstep > 0 && diff > maxstep)
diff = maxstep;

if (cursz < trgsz) {
cursz += diff;
if (cursz > trgsz)
cursz = trgsz;
}
else {
cursz -= diff;
if (cursz < trgsz)
cursz = trgsz;
}
}

return {
new_size: cursz,
new_speed: curspeed,
animate: cursz != trgsz
}
}

function Smenu_rhythm_fastslow(cursz, trgsz, curspeed, speed, minstep, maxstep) {
if (cursz != trgsz) {
var diff = Math.floor(Math.abs(trgsz - cursz) * speed / 100);

if (diff < 1)
diff = 1;

if (minstep > 0 && diff < minstep)
diff = minstep;

if (maxstep > 0 && diff > maxstep)
diff = maxstep;

if (cursz < trgsz) {
cursz += diff;
if (cursz > trgsz)
cursz = trgsz;
}
else {
cursz -= diff;
if (cursz < trgsz)
cursz = trgsz;
}
}

return {
new_size: cursz,
new_speed: curspeed,
animate: cursz != trgsz
}
}

function Smenu_rhythm_slowfast(cursz, trgsz, curspeed, speed, minstep, maxstep) {
if (cursz != trgsz) {
curspeed += speed;
var diff = Math.floor(curspeed);

if (diff < 1)
diff = 1;

if (minstep > 0 && diff < minstep)
diff = minstep;

if (maxstep > 0 && diff > maxstep)
diff = maxstep;

if (cursz < trgsz) {
cursz += diff;
if (cursz > trgsz)
cursz = trgsz;
}
else {
cursz -= diff;
if (cursz < trgsz)
cursz = trgsz;
}

if (cursz < 0)
cursz = 0;

if (cursz == trgsz)
curspeed = 0;
}

return {
new_size: cursz,
new_speed: curspeed,
animate: cursz != trgsz
}
}
*

Efanych

  • Глобальный модератор
  • 4683
  • 644 / 0
  • Меняю свою жизнь на 360°!
Re: Мультиязычность и компонент SMenu
« Ответ #1 : 20.02.2013, 13:38:26 »
Попробуйте удалить в этих строчках $baseurl . или (и) JPATH_SITE .
Цитировать
$imgurl = $baseurl . 'images/banners/' . $rec->imageurl;
$imgpath = JPATH_SITE . '/images/banners/' . $rec->imageurl;
Создание сайтов, шаблонов, помощь в решении проблем.
*

Ту-154

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
Re: Мультиязычность и компонент SMenu
« Ответ #2 : 20.02.2013, 13:40:12 »
Пробовала, всеравно выводит фигню :(
*

Ту-154

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
Re: Мультиязычность и компонент SMenu
« Ответ #3 : 20.02.2013, 13:43:13 »
Если просто удалить или вот если я меняю на жесткий адрес, всеравно адрес тот же
*

Efanych

  • Глобальный модератор
  • 4683
  • 644 / 0
  • Меняю свою жизнь на 360°!
Re: Мультиязычность и компонент SMenu
« Ответ #4 : 20.02.2013, 13:54:43 »
Пробовала, всеравно выводит фигню :(
Изменения происходят? Попробуйте слово images поменять на что-нибуть. И гляньте на сайте, отобразились ли изменения.
Создание сайтов, шаблонов, помощь в решении проблем.
*

Ту-154

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
Re: Мультиязычность и компонент SMenu
« Ответ #5 : 20.02.2013, 14:23:43 »
Точно, как я не додумалась :))) Слово images изменила, а путь все равно тот же выдает
*

Efanych

  • Глобальный модератор
  • 4683
  • 644 / 0
  • Меняю свою жизнь на 360°!
Re: Мультиязычность и компонент SMenu
« Ответ #6 : 20.02.2013, 14:27:03 »
Кеш может посмотрите или вообще не тот файл.
Создание сайтов, шаблонов, помощь в решении проблем.
*

Ту-154

  • Осваиваюсь на форуме
  • 11
  • 0 / 0
Re: Мультиязычность и компонент SMenu
« Ответ #7 : 20.02.2013, 14:30:41 »
Дело точно не в Кеше. Файл 100% этого компонента. Я вот что думаю, мы ж меняем строчку

Код
$imgurl = $baseurl . 'images/banners/' . $rec->imageurl;
$imgpath = JPATH_SITE . '/images/banners/' . $rec->imageurl;

так может он берет адрес из imageurl ?
 
хз... вроде остальные файлы смотрела и там ничего, но щас пересмотрю
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Компонент Commedia и плагин mp3browser для медиа-сайтов

Автор ecolora

Ответов: 557
Просмотров: 130846
Последний ответ 13.03.2023, 00:25:14
от ecolora
Компонент Commedia (неизвестный конфликт на сайте)

Автор Методист

Ответов: 2
Просмотров: 3670
Последний ответ 06.11.2022, 07:25:57
от ecolora
компонент Simple portfolio

Автор Evert

Ответов: 2
Просмотров: 2345
Последний ответ 27.02.2020, 12:23:57
от lyunya
Вывести на сайт компонент JoomShoping

Автор klipius

Ответов: 4
Просмотров: 1285
Последний ответ 22.09.2017, 08:49:11
от dmitry_stas
Компонент - allvideoshare, вывод иконок

Автор darkghost

Ответов: 1
Просмотров: 1175
Последний ответ 06.10.2016, 00:46:46
от darkghost