Unofficial modifications
nieoficjalne modyfikacje for?w phpBB by Przemo

Pomoc dla modyfikacji - Problem z przerabianiem moda...

seraphe - Wto 20 Lut, 2007
Temat postu: Problem z przerabianiem moda...
Witam, zachcia?o mi si? przerobi? moda z oryginalnego phpBB2 na przemo wszystkie 12 plik?w wyedytowa?em - wszystkie jak my?l? dobrze, jednak jeden plik narobi? szczeg?lnie du?o trudno?ci,mianowicie admin_board.php. Po wyedytowaniu i po wej?ci w [Konfiguracja] w PA pojawia si? bia?a strona. Dodam i? mod nazywa si? karma mod.

fragment instrukcji
Kod

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php

#
#-----[ FIND ]------------------------------------------
#
$avatars_upload_yes = ( $new['allow_avatar_upload'] ) ? "checked=\"checked\"" : "";
$avatars_upload_no = ( !$new['allow_avatar_upload'] ) ? "checked=\"checked\"" : "";

#
#-----[ AFTER, ADD ]------------------------------------
#
$simple_karma_yes = ($new['simple_karma']) ? 'checked="checked"' : '';
$simple_karma_no = (!$new['simple_karma']) ? 'checked="checked"' : '';

$admin_karma_yes = ($new['admin_karma']) ? 'checked="checked"' : '';
$admin_karma_no = (!$new['admin_karma']) ? 'checked="checked"' : '';

$lag_karmer_yes = ($new['lag_karmer']) ? 'checked="checked"' : '';
$lag_karmer_no = (!$new['lag_karmer']) ? 'checked="checked"' : '';

$karma_comments_yes = ($new['karma_comments']) ? 'checked="checked"' : '';
$karma_comments_no = (!$new['karma_comments']) ? 'checked="checked"' : '';

$karma_comments_obligatory_yes = ($new['karma_comments_obligatory']) ? 'checked="checked"' : '';
$karma_comments_obligatory_no = (!$new['karma_comments_obligatory']) ? 'checked="checked"' : '';

$karma_onoff_yes = ($new['karma_onoff']) ? 'checked="checked"' : '';
$karma_onoff_no = (!$new['karma_onoff']) ? 'checked="checked"' : '';

#
#-----[ FIND ]------------------------------------------
#
"L_AVATAR_GALLERY_PATH_EXPLAIN" => $lang['Avatar_gallery_path_explain'],

#
#-----[ AFTER, ADD ]------------------------------------
#
"L_KARMA_SETTINGS" => $lang['Karma_Settings'],
"L_SIMPLE_KARMA" => $lang['Simple_Karma'],
"L_SIMPLE_KARMA_EXPLAIN" => $lang['Simple_Karma_explain'],
"L_TIME_BETWEEN_KARMA" => $lang['Time_Between_Karma'],
"L_TIME_BETWEEN_KARMA_EXPLAIN" => $lang['Time_Between_Karma_explain'],
"L_ALLOW_ADMIN_KARMA" => $lang['Allow_Admin_Karma'],
"L_ALLOW_ADMIN_KARMA_EXPLAIN" => $lang['Allow_Admin_Karma_explain'],
"L_MIN_POST_KARMA" => $lang['Min_Post_Karma'],
"L_MIN_POST_KARMA_EXPLAIN" => $lang['Min_Post_Karma_explain'],
"L_LAG_KARMER" => $lang['Lag_Karmer'],
"L_LAG_KARMER_EXPLAIN" => $lang['Lag_Karmer_explain'],
"L_KARMA_COMMENTS" => $lang['Karma_Comments'],
"L_KARMA_COMMENTS_EXPLAIN" => $lang['Karma_Comments_explain'],
"L_KARMA_COMMENTS_OBLIGATORY" => $lang['Karma_Comments_Obligatory'],
"L_KARMA_COMMENTS_OBLIGATORY_EXPLAIN" => $lang['Karma_Comments_Obligatory_explain'],
"L_KARMA_COMMENTS_MAX" => $lang['Karma_Comments_Max'],
"L_KARMA_COMMENTS_MAX_EXPLAIN" => $lang['Karma_Comments_Max_explain'],
"L_KARMA_ONOFF" => $lang['Karma_OnOff'],
"L_KARMA_ONOFF_EXPLAIN" => $lang['Karma_OnOff_explain'],

#
#-----[ FIND ]------------------------------------------
#
"AVATAR_GALLERY_PATH" => $new['avatar_gallery_path'],

#
#-----[ AFTER, ADD ]------------------------------------
#
"SIMPLE_KARMA_YES" => $simple_karma_yes,
"SIMPLE_KARMA_NO" => $simple_karma_no,
"TIME_BETWEEN_KARMA" => $new['time_between_karma'],
"ADMIN_KARMA_YES" => $admin_karma_yes,
"ADMIN_KARMA_NO" => $admin_karma_no,
"MIN_POST_KARMA" => $new['min_post_karma'],
"LAG_KARMER_YES" => $lag_karmer_yes,
"LAG_KARMER_NO" => $lag_karmer_no,
"KARMA_COMMENTS_YES" => $karma_comments_yes,
"KARMA_COMMENTS_NO" => $karma_comments_no,
"KARMA_COMMENTS_OBLIGATORY_YES" => $karma_comments_obligatory_yes,
"KARMA_COMMENTS_OBLIGATORY_NO" => $karma_comments_obligatory_no,
"KARMA_COMMENTS_MAX" => $new['karma_comments_max'],
"KARMA_ONOFF_YES" => $karma_onoff_yes,
"KARMA_ONOFF_NO" => $karma_onoff_no,


I teraz jak ja to wyedytowa?em

Kod

'AVATARS_UPLOAD_YES' => ($new['allow_avatar_upload']) ? $checked : '',
'AVATARS_UPLOAD_NO' => (!$new['allow_avatar_upload']) ? $checked : '',
'SIMPLE_KARMA_YES' => ($new['simple_karma']) ? $checked : '';
'SIMPLE_KARMA_NO' => (!$new['simple_karma']) ? $checked : '';
'ADMIN_KARMA_YES' => ($new['admin_karma']) ? $checked : '';
'ADMIN_KARMA_NO' => (!$new['admin_karma']) ? $checked : '';
'LAG_KARMER_YES' => ($new['lag_karmer']) ? $checked : '';
'LAG_KARMER_NO' => (!$new['lag_karmer']) ? $checked : '';
'KARMA_COMMENTS_YES' => ($new['karma_comments']) ? $checked : '';
'KARMA_COMMENTS_NO' => (!$new['karma_comments']) ? $checked : '';
'KARMA_COMMENTS_OBLIGATORY_YES' => ($new['karma_comments_obligatory']) ? $checked : '';
'KARMA_COMMENTS_OBLIGATORY_YES' => (!$new['karma_comments_obligatory']) ? $checked : '';
'KARMA_ONOFF_YES' => ($new['karma_onoff']) ? $checked : '';
'KARMA_ONOFF_NO' => (!$new['karma_onoff']) ? $checked : '';


Kod

'L_AVATAR_GALLERY_PATH_EXPLAIN' => $lang['Avatar_gallery_path_explain'],
'L_KARMA_SETTINGS' => $lang['Karma_Settings'],
'L_SIMPLE_KARMA' => $lang['Simple_Karma'],
'L_SIMPLE_KARMA_EXPLAIN' => $lang['Simple_Karma_explain'],
'L_TIME_BETWEEN_KARMA' => $lang['Time_Between_Karma'],
'L_TIME_BETWEEN_KARMA_EXPLAIN' => $lang['Time_Between_Karma_explain'],
'L_ALLOW_ADMIN_KARMA' => $lang['Allow_Admin_Karma'],
'L_ALLOW_ADMIN_KARMA_EXPLAIN' => $lang['Allow_Admin_Karma_explain'],
'L_MIN_POST_KARMA' => $lang['Min_Post_Karma'],
'L_MIN_POST_KARMA_EXPLAIN' => $lang['Min_Post_Karma_explain'],
'L_LAG_KARMER' => $lang['Lag_Karmer'],
'L_LAG_KARMER_EXPLAIN' => $lang['Lag_Karmer_explain'],
'L_KARMA_COMMENTS' => $lang['Karma_Comments'],
'L_KARMA_COMMENTS_EXPLAIN' => $lang['Karma_Comments_explain'],
'L_KARMA_COMMENTS_OBLIGATORY' => $lang['Karma_Comments_Obligatory'],
'L_KARMA_COMMENTS_OBLIGATORY_EXPLAIN' => $lang['Karma_Comments_Obligatory_explain'],
'L_KARMA_COMMENTS_MAX' => $lang['Karma_Comments_Max'],
'L_KARMA_COMMENTS_MAX_EXPLAIN' => $lang['Karma_Comments_Max_explain'],
'L_KARMA_ONOFF' => $lang['Karma_OnOff'],
'L_KARMA_ONOFF_EXPLAIN' => $lang['Karma_OnOff_explain'],


Kod

'AVATAR_GALLERY_PATH' => $new['avatar_gallery_path'],
'SIMPLE_KARMA_YES' => $simple_karma_yes,
'SIMPLE_KARMA_NO' => $simple_karma_no,
'TIME_BETWEEN_KARMA' => $new['time_between_karma'],
'ADMIN_KARMA_YES' => $admin_karma_yes,
'ADMIN_KARMA_NO' => $admin_karma_no,
'MIN_POST_KARMA' => $new['min_post_karma'],
'LAG_KARMER_YES' => $lag_karmer_yes,
'LAG_KARMER_NO' => $lag_karmer_no,
'KARMA_COMMENTS_YES" => $karma_comments_yes,
'KARMA_COMMENTS_NO' => $karma_comments_no,
'KARMA_COMMENTS_OBLIGATORY_YES' => $karma_comments_obligatory_yes,
'KARMA_COMMENTS_OBLIGATORY_NO' => $karma_comments_obligatory_no,
'KARMA_COMMENTS_MAX' => $new['karma_comments_max'],
'KARMA_ONOFF_YES' => $karma_onoff_yes,
'KARMA_ONOFF_NO' => $karma_onoff_no,


Kto pomo?e? :D


Powered by phpBB modified by Przemo © 2003 phpBB Group