Jump to content
Aplicatiile pentru functia de "Helper" pentru serverul de Minecraft sunt deschise !

Ban List Mode Phpbb3


Guest Alex

Recommended Posts

Autor:Ivan Petre

Fisere de modificat:

includes/acp/acp_ban.php

includes/acp/acp_board.php

includes/acp/acp_users.php

includes/mcp/mcp_ban.php

includes/functions.php

includes/functions_user.php

styles/prosilver/subsilver2/template/index_body.html

Fisiere de uploadat: - http://www.phpbb.com/community/viewtopic.php?t=1214735

ban_list.php,

includes/ban_list.php,

includes/constants_ban_list.php,

styles/prosilver/template/ban_list_body.html,

language/en/mods/ban_list.php,

root/db_update.php

Instalare:

Deschideţi includes/acp/acp_ban.php:

Căutaţi:

$ban_give_reason = utf8_normalize_nfc(request_var('bangivereason', '', true)); 
Adăugaţi după:
// BEGIN Ban List Mod$ban_banner = (int) $user->data['user_id'];// END Ban List Mod [/code]
[/size][/font][/color]





[color=#336600][font=Georgia, Arial][size=4]Căutaţi:[/size][/font][/color]









[color=#336600][font=Georgia, Arial][size=4]
[code]user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reason, $ban_give_reason[/code]
[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]După: [/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]
[code]$ban_give_reason[/code]
[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]Adăugaţi:[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]
[code], $ban_banner[/code]
[/size][/font][/color] [b]Deschideţi includes/acp/acp_board.php[/b] [color=#336600][font=Georgia, Arial][size=4]Căutaţi:[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]
[code]$user->add_lang('acp/board' [/code]
[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]Adăugaţi după:[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]
[code]/ BEGIN Ban List Mod$user->add_lang('mods/ban_list');// END Ban List Mod[/code]
[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]Căutaţi:[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]
[code]'allow_birthdays' =>[/code]
[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]Adăugaţi după[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]
[code]/ BEGIN Ban List Mod'allow_ban_list' => array('lang' => 'ALLOW_BAN_LIST', 'validate' => 'int:0:3', 'type' => 'custom', 'method' => 'select_ban_list_check', 'explain' => true),// END Ban List Mod [/code]
[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]Căutaţi:[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]
[code]return h_radio('config[referer_validation]', $radio_ary, $value, $key);}[/code]
[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]Adăugaţi după:[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]// BEGIN Ban List Mod
[code]function select_ban_list_check($value, $key = ''){global $phpEx, $phpbb_root_path;include($phpbb_root_path . 'includes/constants_ban_list.' . $phpEx);$radio_ary = array(ALLOW_BAN_LIST_ALL_USERS => 'ALLOW_BAN_LIST_ALL_USERS', ALLOW_BAN_LIST_MODS_ADMINS => 'ALLOW_BAN_LIST_MODS_ADMINS', ALLOW_BAN_LIST_ADMINS => 'ALLOW_BAN_LIST_ADMINS');return h_radio('config[allow_ban_list]', $radio_ary, $value, $key);}// END Ban List Mod[/code]
[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]ProSilver[/size][/font][/color] [b]Deschideţi styles/prosilver/template/index_body.html:[/b] [color=#336600][font=Georgia, Arial][size=4]Căutaţi:[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]
[code]• {NEWEST_USER}[/code]
[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]Adăugaţi înainte:[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]
[code]<!-- IF TOTAL_BANNED_USERS -->&bull; {L_BANNED_USERS} <a href="{U_BANLIST}">{TOTAL_BANNED_USERS}</a> <!-- ENDIF -->[/code]
[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]SubSilver2[/size][/font][/color] [b]Deschideţi styles/subsilver2/template/index_body.html:[/b] [color=#336600][font=Georgia, Arial][size=4]Căutaţi:[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]
[code]| {NEWEST_USER}[/code]
[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]Adăugaţi înainte:[/size][/font][/color] [color=#336600][font=Georgia, Arial][size=4]
[CODE]<!-- IF TOTAL_BANNED_USERS -->| {L_BANNED_USERS} <a href="{U_BANLIST}">{TOTAL_BANNED_USERS}</a> <!-- ENDIF -->[/code]

[/size][/font][/color]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...