Сега отваряте styles/prosilver/template/index_body.html или със който style сте и търсите :Tachev wrote:Здравейте,отново..
Днес ще ви покажа как да настроите top_five във вашият форум
Като за началото разархивирате папката top_five след като я отворите във нея има така наречената папка root.
Копирате я и я поставяте във Filezilla.
Да започнем със инсталацията .
1. Отваряте index.php и намирате:
Под него слагате :Code: Select all
// Assign index specific vars $template->assign_vars(array(
Code: Select all
//-- mod: top five ---------------------------------------------------------// include($phpbb_root_path . 'includes/top_five.' . $phpEx); //-- end: top five ---------------------------------------------------------//
Отваряте includes/functions_user.php и намирате :
Code: Select all
set_config('newest_user_colour', $row['user_colour'], true); }
Над него добавяте:
Code: Select all
//-- mod: top five ---------------------------------------------------------// // destroy the top_five cache global $cache; $cache->purge('_top_five_newest_users'); $cache->purge('_top_five_posters'); //-- end: top five ---------------------------------------------------------//
Във същата директория търсите:
Code: Select all
// Because some tables/caches use username-specific data we need to purge this here. $cache->destroy('sql', MODERATOR_CACHE_TABLE);
Под него добавяте:
Code: Select all
//-- mod: top five ---------------------------------------------------------// // destroy the top_five cache $cache->purge('_top_five_newest_users'); $cache->purge('_top_five_posters'); //-- end: top five ---------------------------------------------------------//
Отново във същата директория търсите:
Code: Select all
// Reset newest user info if appropriate if ($config['newest_user_id'] == $user_id)
Под него добавяте:Code: Select all
//-- mod: top five ---------------------------------------------------------// // Reset newest user info if appropriate if ($config['newest_user_id'] != $user_id) { // destroy the top_five cache $cache->purge('_top_five_newest_users'); $cache->purge('_top_five_posters'); } //-- end: top five ---------------------------------------------------------//
Отново във същата търсите:
Code: Select all
// Because some tables/caches use usercolour-specific data we need to purge this here. $cache->destroy('sql', MODERATOR_CACHE_TABLE);
Под него добавяте:
Code: Select all
//-- mod: top five ---------------------------------------------------------// // destroy the top_five cache $cache->purge('_top_five_newest_users'); $cache->purge('_top_five_posters'); //-- end: top five ---------------------------------------------------------//
Отново във същата папка търсите:
Code: Select all
update_foes(array($group_id)); }
Под него добавяте :Code: Select all
//-- mod: top five ---------------------------------------------------------// include($phpbb_root_path . 'includes/top_five.' . $phpEx); //-- end: top five ---------------------------------------------------------//
Сега отваряте styles/prosilver/template/index_body.html или със който style сте и търсите :
Code: Select all
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
Под него добавяте :
Code: Select all
<!-- INCLUDE top_five_body.html -->
Накрая остава само да рефрешните стила.
Тоест влизате във ACP->Styles->template->refresh и кеша е изчистен
Това е от мен дано съм ви помогнал.
Ако имате някакви въпроси относно урока питайте
Code: Select all
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->