BitTorrent Трекер RusTrek.ru http://5.45.70.241/ |
|
Управление смайлами http://5.45.70.241/viewtopic.php?f=817&t=4265 |
Страница 1 из 1 |
Автор: | oartemka178 [ 2010-12-21 05:48 ] |
Заголовок сообщения: | Управление смайлами |
Мод позволяет управлять смайлами, выстраивать определенное количество смайлов в высоту и в ширину. Так же можно управлять размером popup - окна. Все это делается в админке. Очень удобно! Установка Незабываем делать бекапы # #-----[ SQL ]-------------------------------------------------- # Код: INSERT INTO `bb_config` ( `config_name` , `config_value` ) VALUES ('smilies_columns','4'); INSERT INTO `bb_config` ( `config_name` , `config_value` ) VALUES ('smilies_rows','5'); INSERT INTO `bb_config` ( `config_name` , `config_value` ) VALUES ('popup_columns','8'); INSERT INTO `bb_config` ( `config_name` , `config_value` ) VALUES ('popup_height','300'); INSERT INTO `bb_config` ( `config_name` , `config_value` ) VALUES ('popup_width','250'); # #-----[ OPEN ]-------------------------------------------------- # admin/admin_board.php # #-----[ FIND ]-------------------------------------------------- # Код: LOGIN_RESET_TIME' => $new['login_reset_time'], # #-----[ AFTER, ADD ]-------------------------------------------- # Код: //====================================================================== | //==== Start Admin Smilies Display ===================================== | //==== v1.0.0 ========================================================== | //==== "L_SMILIES_CONFIG" => $lang['Smilie_config'], "L_SMILIES_COLUMNS" => $lang['Smilie_columns'], "L_SMILIES_ROWS" => $lang['Smilie_rows'], "L_POPUP_COLUMNS" => $lang['Popup_columns'], "L_POPUP_HEIGHT" => $lang['Popup_height'], "L_POPUP_WIDTH" => $lang['Popup_width'], "SMILIES_COLUMNS" => $new['smilies_columns'], "SMILIES_ROWS" => $new['smilies_rows'], "POPUP_COLUMNS" => $new['popup_columns'], "POPUP_HEIGHT" => $new['popup_height'], "POPUP_WIDTH" => $new['popup_width'], //==== //==== Author: Disturbed One [http://rustrek.ru/] ==================== | //==== End Admin Smilies Display ======================================= | //====================================================================== | # #-----[ FIND ]-------------------------------------------------- # Код: "SMILIES_PATH" => $new['smilies_path'], # #-----[ AFTER, ADD ]-------------------------------------------- # Код: //====================================================================== | //==== Start Admin Smilies Display ===================================== | //==== v1.0.0 ========================================================== | //==== 'POPUP_HEIGHT' => $board_config['popup_height'], 'POPUP_WIDTH' => $board_config['popup_width'], //==== //==== Author: Disturbed One [http://rustrek.ru/] ==================== | //==== End Admin Smilies Display ======================================= | //====================================================================== | # #-----[ OPEN ]-------------------------------------------------- # includes/functions_post.php # #-----[ FIND ]-------------------------------------------------- # Код: $inline_columns = 4; $inline_rows = 5; $window_columns = 8; # #-----[ REPLACE WITH ]-------------------------------------------- # Код: //====================================================================== | //==== Start Admin Smilies Display ===================================== | //==== v1.0.0 ========================================================== | //==== /* $inline_columns = 4; $inline_rows = 5; $window_columns = 8; */ $inline_columns = $board_config['smilies_columns']; $inline_rows = $board_config['smilies_rows']; $window_columns = $board_config['popup_columns']; //==== //==== Author: Disturbed One [http://rustrek.ru/] ==================== | //==== End Admin Smilies Display ======================================= | //====================================================================== | # #-----[ OPEN ]-------------------------------------------------- # language/lang_russian/lang_admin.php # #-----[ в самый конец, добавить ]-------------------------------------------------- # Код: //====================================================================== | //==== Start Admin Smilies Display ===================================== | //==== v1.0.0 ========================================================== | //==== $lang['Smilie_config'] = 'Смайлик Viewtopic и Popup Настройка дисплея'; $lang['Smilie_columns'] = 'Viewtopic Smilie Columns'; $lang['Smilie_rows'] = 'Viewtopic Smilie Rows'; $lang['Popup_columns'] = 'Popup Smilie столбцы'; $lang['Popup_width'] = 'Popup Ширина'; $lang['Popup_height'] = 'Popup Высота'; //==== //==== Author: Disturbed One [http://rustrek.ru/] ==================== | //==== End Admin Smilies Display ======================================= | //====================================================================== | # #-----[ OPEN ]-------------------------------------------------- # templates/ваш стиль/posting.tpl # #-----[ FIND ]-------------------------------------------------- # Код: <td colspan="{S_SMILIES_COLSPAN}"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT=400,resizable=yes,scrollbars=yes,WIDTH=400'); return false;" target="_phpbbsmilies" class="med">{L_MORE_SMILIES}</a></td> # #-----[ REPLACE WITH ]-------------------------------------------------- # Код: <td colspan="{S_SMILIES_COLSPAN}"><span class="nav"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_phpbbsmilies', 'HEIGHT={POPUP_HEIGHT},resizable=yes,scrollbars=yes,WIDTH={POPUP_WIDTH}');return false;" target="_phpbbsmilies" class="nav">{L_MORE_SMILIES}</a></span></td> # #-----[ OPEN ]-------------------------------------------------- # templates/ваш стиль/admin/admin_board.tpl # #-----[ FIND ]-------------------------------------------------- # Код: <tr> <th class="thHead" colspan="2">{L_AVATAR_SETTINGS}</th> </tr> # #-----[ BEFORE, ADD ]-------------------------------------------------- # Код: <tr> <td>{L_SMILIES_COLUMNS}</td> <td><input class="post" type="text" maxlength="3" size="5" name="smilies_columns" value="{SMILIES_COLUMNS}" /></td> </tr> <tr> <td>{L_SMILIES_ROWS}</td> <td><input class="post" type="text" maxlength="3" size="5" name="smilies_rows" value="{SMILIES_ROWS}" /></td> </tr> <tr> <td>{L_POPUP_COLUMNS}</td> <td><input class="post" type="text" maxlength="3" size="5" name="popup_columns" value="{POPUP_COLUMNS}" /></td> </tr> <tr> <td>{L_POPUP_HEIGHT}</td> <td><input class="post" type="text" maxlength="3" size="5" name="popup_height" value="{POPUP_HEIGHT}" /></td> </tr> <tr> <td>{L_POPUP_WIDTH}</td> <td><input class="post" type="text" maxlength="3" size="5" name="popup_width" value="{POPUP_WIDTH}" /></td> </tr> # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # Все готово! |
Страница 1 из 1 | Часовой пояс: UTC + 3 часа |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |