DataLife Engine > Версия для печати > Переход на профиль пользователя из страницы поиска

Сабж добавляет возможность указывая имя профиля юзера переходить на профиль

Установка:

Редактируем /engine/modules/search.phpНайти:

                               
{$lang['s_mname']}

Добавить ниже:


                                                Открыть профиль
                                                

Найти:

  if( isset( $_REQUEST['searchuser'] ) ) $searchuser = dle_substr( $_REQUEST['searchuser'], 0, 40, $config['charset'] ); else $searchuser = "";

Добавить ниже:

     if( isset( $_REQUEST['userprofile'] ) ) $userprofile = dle_substr( $_REQUEST['userprofile'], 0, 40, $config['charset'] ); else $userprofile = "";
        if( $userprofile ) {
    header('Location: '.$config['http_home_url'].'user/'.$userprofile.'/');
    die;
  }

Вернуться назад