+0.51
Рейтинг
1.54
Сила
Ну, создаешь блог, и все новые пользователи в него вступают. А если создать блог после чего был зарегистрирован пользователь, то пользователь естественно в него не вступает автоматически.
Как быть с новыми блогами и пользователями которые ранее были зарегистрированы на сайт?
ряд 39,40,41, меняешь значение 'min' ;)
/classes/modules/topic/entity/Topic.entity.class.php

$this->aValidateRules[]=array('topic_text_source','string','max'=>Config::Get('module.topic.max_length'),'min'=>2,'allowEmpty'=>false,'label'=>$this->Lang_Get('topic_create_text'),'on'=>array('topic','photoset'));
$this->aValidateRules[]=array('topic_text_source','string','max'=>Config::Get('module.topic.link_max_length'),'min'=>10,'allowEmpty'=>false,'label'=>$this->Lang_Get('topic_create_text'),'on'=>array('link'));
$this->aValidateRules[]=array('topic_text_source','string','max'=>Config::Get('module.topic.question_max_length'),'allowEmpty'=>true,'label'=>$this->Lang_Get('topic_create_text'),'on'=>array('question'));
спасибо, я когда-то делал, но что не помню, возможно это и была перезагрузка мемкеша.
Используеться memory cache
/classes/actions/ActionSettings.class.php, ряд 594 (лс 1.0.3)
/**
 * Проверяем информацию о себе
 */
if (func_check(getRequestStr('profile_about'),'text',1,3000)) {
	$this->oUserCurrent->setProfileAbout($this->Text_Parser(getRequestStr('profile_about')));
} else {
	$this->oUserCurrent->setProfileAbout(null);
}


лс 2.0...
prokopov,
сам лс достаточно хорошо защищен, проблемы могут быть с плохо продуманными плагинами.
Соглашусь, если проводить добавленный контент через jevix то мало чего Вам будет грозить. Если не секрет
Закрыли найденную дырку в собственном плагине.
что было не так?
docs.livestreetcms.com/api/1.0/ActionBlog#EventShowTopic-detail

/**
 * Выставляем SEO данные
 */
$sTextSeo=strip_tags($oTopic->getText());
$this->Viewer_SetHtmlDescription(func_text_words($sTextSeo, Config::Get('seo.description_words_count')));
$this->Viewer_SetHtmlKeywords($oTopic->getTags());
classes/modules/topics/entity/Topic.entity.class.php, найди
$this->aValidateRules[]=array('topic_text_source','string','max'=>Config::Get('module.topic.max_length'),'min'=>2,'allowEmpty'=>false,'label'=>$this->Lang_Get('topic_create_text'),'on'=>array('topic','photoset'));


замени на
$this->aValidateRules[]=array('topic_text_source','string','max'=>Config::Get('module.topic.max_length'),'min'=>2,'allowEmpty'=>true,'label'=>$this->Lang_Get('topic_create_text'),'on'=>array('topic','photoset'));
Что не понятно? По умолчанию в меню сайта (то что на самом верху) присутствует статическая страница с названием «about». Данная страница имеет ссылку: site.ru/page/about/.

Далее читаем пост #comment261757 и потом #comment261762
if($this->sCurrentEvent=='about' and !$this->User_GetUserCurrent()){
    Router::Location(Config::Get('path.root.web').'/registration/');
}

about — ссылка на страницу (site.ru/page/about)
if(!$this->User_GetUserCurrent()){
    Router::Location(Config::Get('path.root.web').'/registration/');
}

простите, return лишний
или в plugins/page/classes/actions/ActionPage.class.php
находим
protected function EventShowPage() {

после, добавляем
if(!$this->User_GetUserCurrent()){
    return Router::Location(Config::Get('path.root.web').'/registration/');
}