Код: Выделить всё
##############################################################
## MOD Title: IP in topic
## MOD Author: R@ < meos@mail.ru > (Kirill) http://osdev.ru
## MOD Description: Show poster ip, when Administrator or Moderator looking topic
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 4 Minutes
## Files To Edit: viewtopic.php
## language/lang_english/lang_main.php
## templates/subSilver/viewtopic_body.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbbguru.net/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum.
##############################################################
## MOD History:
##
## 2004-06-27 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$poster_ip = ( $is_auth['auth_mod'] ) ? $lang['IP'] . ': ' . decode_ip($postrow[$i]['poster_ip']) : '';
#
#-----[ FIND ]------------------------------------------
#
'POSTER_FROM' => $poster_from,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'POSTER_IP' => $poster_ip,
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Location'] = 'Location';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['IP'] = 'IP';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_FROM}
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<br />{postrow.POSTER_IP}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM