Пока что мод выглядит так...
Код: Выделить всё
##############################################################
## MOD Title: Anonymous Guestless
## MOD Author: Vladson < dkflbk@nm.ru > (n/a) http://dkflbk.nm.ru/
## MOD Description: no description exists
## MOD Version: 0.0.3
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit: includes/functions.php
## viewtopic.php
## Included Files: (n/a)
##############################################################
## For Security Purposes, Please Check: http://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. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://phpbbguru.net/mods/
##############################################################
## Author Notes:
##
## - no Author notes exists
##
##############################################################
## MOD History:
##
## 2005-06-11 - Version 0.0.3
## - no version notes exists
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
#
function decode_ip($int_ip)
{
#
#-----[ BEFORE, ADD ]------------------------------------------
#
function decode_ip_masked($int_ip)
{
$hexipbang = explode('.', chunk_split($int_ip, 2, '.'));
return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.*.*';
}
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$poster_rank = '';
$rank_image = '';
if ( $postrow[$i]['user_id'] == ANONYMOUS )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
$poster_rank = $lang['Guest'] . ' ' . decode_ip_masked($postrow[$i]['poster_ip']);
#
#-----[ FIND ]------------------------------------------
#
if ( $poster_id == ANONYMOUS && $postrow[$i]['post_username'] != '' )
{
$poster = $postrow[$i]['post_username'];
$poster_rank = $lang['Guest'];
#
#-----[ REPLACE WITH ]------------------------------------------
#
if ( $poster_id == ANONYMOUS && $postrow[$i]['post_username'] != '' )
{
$poster = $postrow[$i]['post_username'];
$poster_rank = $lang['Guest'] . ' ' . decode_ip_masked($postrow[$i]['poster_ip']);
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM