Sports 30 Posted August 30, 2014 Report Share Posted August 30, 2014 Привет форумчанам, собственно интересует вопрос: как изменить тайтл страницы пользователя в DLE. Сейчас он выглядит так: "Юзер", а нужно так: "Профиль пользователя Юзер". Благодарю за помощь Link to post Share on other sites
Gameer 3 Posted September 9, 2014 Report Share Posted September 9, 2014 Открыть /engine/engine.php найти: $metatags = <<<HTML <meta http-equiv="Content-Type" content="text/html; charset={$config['charset']}" /> <title>{$metatags['title']}</title> <meta name="description" content="{$metatags['description']}" /> <meta name="keywords" content="{$metatags['keywords']}" />{$disable_index} <meta name="generator" content="DataLife Engine (http://dle-news.ru)" />{$s_meta} <link rel="search" type="application/opensearchdescription+xml" href="{$config['http_home_url']}engine/opensearch.php" title="{$config['home_title']}" /> HTML; Заменить на: if ($subaction == 'userinfo') { $metatags = <<<HTML <meta http-equiv="Content-Type" content="text/html; charset={$config['charset']}" /> <title>Профиль пользователя {$metatags['title']}</title> <meta name="description" content="{$metatags['description']}" /> <meta name="keywords" content="{$metatags['keywords']}" />{$disable_index} <meta name="generator" content="DataLife Engine (http://dle-news.ru)" />{$s_meta} <link rel="search" type="application/opensearchdescription+xml" href="{$config['http_home_url']}engine/opensearch.php" title="{$config['home_title']}" /> HTML; } else { $metatags = <<<HTML <meta http-equiv="Content-Type" content="text/html; charset={$config['charset']}" /> <title>{$metatags['title']}</title> <meta name="description" content="{$metatags['description']}" /> <meta name="keywords" content="{$metatags['keywords']}" />{$disable_index} <meta name="generator" content="DataLife Engine (http://dle-news.ru)" />{$s_meta} <link rel="search" type="application/opensearchdescription+xml" href="{$config['http_home_url']}engine/opensearch.php" title="{$config['home_title']}" /> HTML; } Link to post Share on other sites
sproweba 2 Posted September 11, 2014 Report Share Posted September 11, 2014 А не проще ли просто в шаблоне прописать словами перед тегом {usertitle} ? "Профиль пользователя {usertitle}" Link to post Share on other sites
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now