|
Unofficial modifications nieoficjalne modyfikacje for?w phpBB by Przemo |
|
Modyfikacje mniejsze - Logo Changer
regua - Sob 27 Maj, 2006 Temat postu: Logo Changer Jako ?e wiele user?w ma z tym problem, oto prosty modzik do zmiany pliku z logo forum (tzn. wgrywasz sobie nowy plik do /templates/STYL/images/ i ustawiasz w PA => Konfiguracja => Strony G??wnej ?e to on ma by? logo) - wiem, ?e mo?na po prostu podmieni? ten domy?lny, ale nooby chcia?y zmienia? logo, to niech zmieniaj?!
Instrukcja:
Kod | #
#-----[ SQL ]--------------------------------------------
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('logo', 'logo_phpbb.gif');
#
#-----[ OPEN ]--------------------------------------------
#
/admin/admin_board.php
#
#-----[ FIND ONLY ONCE! ]---------------------------------
#
$template->assign_vars(array(
#
#-----[ AFTER, ADD ]-------------------------------------
#
'LOGO_CH' => $lang['logo_ch'],
'LOGO_CH' => $lang['logo_ch_ask'],
'LOGO' => $new['logo'],
#
#-----[ OPEN ]--------------------------------------------
#
/language/lang_polish/lang_main.php
#
#-----[ FIND ]--------------------------------------------
#
$lang['FAQ'] = 'FAQ';
#
#-----[ AFTER, ADD ]------------------------------------
#
$lang['logo_ch'] = 'Logo Changer';
$lang['logo_ch_ask'] = 'Wpisz nazwe pliku z logo forum - musi on znajdowac sie w katalogu /templates/STYL/images !!!';
#
#-----[ OPEN ]--------------------------------------------
#
/templates/STYL/admin/board_config_body_main_page.tpl
#
#-----[ FIND ]--------------------------------------------
#
<tr>
<th class="thHead" colspan="2">{L_ADDON_MAIN_PAGE}</th>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------
#
<tr>
<td class="row1">{L_CENTER}<br /><span class="gensmall">{L_CENTER_ASK}</span></td>
<td class="row2" width="50%">
<input type="text" name="logo" value="{LOGO}" {LOGO} /></td>
</tr>
#
#-----[ OPEN ]--------------------------------------------
#
/includes/page_header.php
#
#-----[ FIND ONLY ONCE! ]---------------------------------
#
$template->assign_vars(array(
#
#-----[ AFTER, ADD ]------------------------------------
#
'LOGO' => $board_config['logo'],
#
#-----[ OPEN ]--------------------------------------------
#
/templates/STYL/overall_header.tpl
#
#-----[ FIND ]--------------------------------------------
#
<img src="templates/subSilver/images/logo_phpBB.gif"
#
#-----[ REPLACE WITH ]--------------------------------------------
#
<img src="templates/subSilver/images/{LOGO}"
#
#-----[ SAVE / CLOSE ALL FILES ]--------------------------------
# |
|
|