--------------------
оредактировал Вася 1.01.06 или что-то в этом духе?
и второй мод который бы показывал on или off чуловек на сайте

Добавлено спустя 1 час 4 минуты 29 секунд:
Код: Выделить всё
#############################################################
## MOD Title: Last edited admins and moderators control
## MOD Authors: Xpert < xpert@phpbbguru.net > (N/A) http://www.phpbbguru.net
## Meithar < meithar@nm.ru > (Dmitry) http://www.phpbbguru.net/
##
## MOD Description: Shows "edited by ..." message after admins or moderators post editing.
## MOD Version: 1.0.1 [phpBB 2.0.x]
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit (2): includes/functions_post.php
## viewtopic.php
## 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. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##
## 2004-11-08 - Version 1.0.0
## - Algorythm update, now that's a little bit faster.
##
## 2004-10-23 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
[sql]
ALTER TABLE `phpbb_posts` ADD `post_editor` VARCHAR( 25 ) NOT NULL ;
[open]
includes/functions_post.php
[find]
$edited_sql = ($mode == 'editpost' && !$post_data['last_post'] && $post_data['poster_post']) ? ", post_edit_time = $current_time, post_edit_count = post_edit_count + 1 " : "";
[replace with]
$edited_sql = ( ($mode == 'editpost' && !$post_data['last_post'] && $post_data['poster_post']) || ($mode == 'editpost' && !$post_data['poster_post']) ) ? ", post_edit_time = $current_time, post_edit_count = post_edit_count + 1" : "";
$edited_sql .= ($edited_sql && !$post_data['poster_post']) ? ", post_editor = '" . $userdata['username'] . "'" : '';
[open]
viewtopic.php
[find]
if ( $postrow[$i]['post_edit_count'] )
{
[after add]
$post_editor = ($postrow[$i]['post_editor']) ? $postrow[$i]['post_editor'] : $poster;
[find]
$l_edited_by = '<br /><br />' . sprintf($l_edit_time_total, $poster, create_date($board_config['default_dateformat'], $postrow[$i]['post_edit_time'], $board_config['board_timezone']), $postrow[$i]['post_edit_count']);
[in-line find]
$poster
[in-line replace]
$post_editor
[eom]