Jump to content


Photo
- - - - -

соц.Кнопки


Best Answer Cheren-dow , 02 April 2014 - 10:47

Попробуйте еще это

public function hasValue($params = array())
{
	return (bool) $this->get('value', $this->config->get('default'));
}

Заменить на

public function hasValue($params = array())
{
	return (bool) $this->get('value', $this->config->get('default', 1));
}

и еще один кусок

if (!$this->get('value', $this->config->get('default')))
{
	return '';
}

заменить на 

if (!$this->get('value', $this->config->get('default', 1)))
{
	return '';
}

Go to the full post


  • This topic is locked This topic is locked
4 replies to this topic

#1 nikolia

nikolia
  • JBZoo User (rus)
  • User rate: 4.7
  • posts: 378
  • topics: 53

Posted 02 April 2014 - 10:26

Здравствуйте!

Я конечно понимаю, что это вопрос не в тех поддержку, но победить сам не могу и на сайте производителя данного плагина чего то не отвечают.

В общем поставил плагин JL Like PRO вот сайт http://joomline.ru/r.../jllikepro.html Работает все отлично, настроил по инструкции http://joomline.ru/s...l-like-pro.html

Но по умолчанию данный плагин отключен

2014-04-02_192251.png

Помогите в коде найти место, что нужно изменить, что бы по умолчанию было включено!

Attached File  jllikeprozooel.php   2.83KB   63 downloadsAttached File  jllikeprozooel.xml   1.83KB   86 downloads

 


  • 0

#2 Cheren-dow

Cheren-dow
  • JBZoo User (rus)
  • User rate: 95.7
  • posts: 5060
  • topics: 31

Posted 02 April 2014 - 10:31

Попробуйте в php файле заменить этот кусок кода

public function edit()
{
	return $this->app->html->_('select.booleanlist', $this->getControlName('value'), '', $this->get('value', $this->config->get('default')));
}

На этот

public function edit()
{
	return $this->app->html->_('select.booleanlist', $this->getControlName('value'), '', $this->get('value', $this->config->get('default', 1)));
}

Не проверял, но возможно поможет


  • 1
Изображение
 

#3 nikolia

nikolia
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 4.7
  • posts: 378
  • topics: 53

Posted 02 April 2014 - 10:43

радио кнопка стала в положение "ДА" но кнопки на сайт не вывелись! Видимо где то еще надо править, за ответ большое спасибо!


  • 0

#4 Cheren-dow

Cheren-dow
  • JBZoo User (rus)
  • User rate: 95.7
  • posts: 5060
  • topics: 31

Posted 02 April 2014 - 10:47   Best Answer

Попробуйте еще это

public function hasValue($params = array())
{
	return (bool) $this->get('value', $this->config->get('default'));
}

Заменить на

public function hasValue($params = array())
{
	return (bool) $this->get('value', $this->config->get('default', 1));
}

и еще один кусок

if (!$this->get('value', $this->config->get('default')))
{
	return '';
}

заменить на 

if (!$this->get('value', $this->config->get('default', 1)))
{
	return '';
}


Edited by Cheren-dow, 02 April 2014 - 10:48.

  • 1
Изображение
 

#5 nikolia

nikolia
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 4.7
  • posts: 378
  • topics: 53

Posted 02 April 2014 - 10:53

Спасибо большое все заработало!!!!


  • 0




Click to return to top of page in style!