Может кто-то подскажет как сделать чтоб в профиле пользователя по умолчанию открывало не «информацию», а «стену»
Скорей всего это не сложно, но я человек далекий от этого всего и только начал знакомство с LS, так что если кто-то тыкнет носом буду очень признателен
Решение найдено благодаря
kerby Плюсаните ему, а то у меня рейтинг не позволяет
Если не совсем «по-быстрому», то… classes\actions\ActionProfile.class.php
if (Config::Get('general.reg.invite')) {
/**
* Получаем список тех кого пригласил юзер
*/
$aUsersInvite=$this->User_GetUsersInvite($this->oUserProfile->getId());
$this->Viewer_Assign('aUsersInvite',$aUsersInvite);
/**
* Получаем того юзера, кто пригласил текущего
*/
$oUserInviteFrom=$this->User_GetUserInviteFrom($this->oUserProfile->getId());
$this->Viewer_Assign('oUserInviteFrom',$oUserInviteFrom);
}
/**
* Получаем список юзеров блога
*/
$aBlogUsers=$this->Blog_GetBlogUsersByUserId($this->oUserProfile->getId(),ModuleBlog::BLOG_USER_ROLE_USER);
Меняеям на
if (Config::Get('general.reg.invite')) {
/**
* Получаем список тех кого пригласил юзер
*/
$aUsersInvite=$this->User_GetUsersInvite($this->oUserProfile->getId());
$this->Viewer_Assign('aUsersInvite',$aUsersInvite);
/**
* Получаем того юзера, кто пригласил текущего
*/
$oUserInviteFrom=$this->User_GetUserInviteFrom($this->oUserProfile->getId());
$this->Viewer_Assign('oUserInviteFrom',$oUserInviteFrom);
}
if (is_null(Router::GetParam(0)))
Router::Location($this->oUserProfile->getUserWebPath()."wall/");
/**
* Получаем список юзеров блога
*/
$aBlogUsers=$this->Blog_GetBlogUsersByUserId($this->oUserProfile->getId(),ModuleBlog::BLOG_USER_ROLE_USER);
После этого в файле /templates/skin/<шаблон>/action/ActionProfile/sidebar.tpl ищете что-то из серии
<section class="block block-type-profile-nav">
<ul class="nav nav-pills nav-profile">
{hook run='profile_sidebar_menu_item_first' oUserProfile=$oUserProfile}
<li {if $sAction=='profile' && ($aParams[0]=='whois' or $aParams[0]=='')}class="active"{/if}><a href="{$oUserProfile->getUserWebPath()}">{$aLang.user_menu_profile_whois}</a></li>
и вот там
<a href="{$oUserProfile->getUserWebPath()}">
поменять на
<a href="{$oUserProfile->getUserWebPath()}whois/">