Вопрос относительно установки этого мода на версию 2.0.11
в интсталле написано, что он для 2.0.10., может кто-нибудь сталкивался с ним, подойдет ли для 11-й версии?
ALTER TABLE `phpbb2_users`
ADD `user_reg_ip` TEXT NULL,
ADD `user_reg_host` TEXT NULL;ALTER TABLE `phpbb2_users` ADD `user_reg_ip` TEXT NULL, ADD `user_reg_host` TEXT NULL
+++ Error: Table 'forum.phpbb2_users' doesn't existFelit писал(а):проверь в админке/конфигурация
Felit писал(а):оговорился.
в phpmyadmin загляни
я ж хз что он выбрал при установки phpbb форума
#################################################################
## Mod Title: Log IP's on Registration
## Mod Version: 1.1.2
## Author: Woody <scoobler@gmail.com>
## Description: This will log a users IP when they register.
## From the admin panel, you can search for a user
## you will be displayed with the username you
## searched for, the IP they registered at, their
## email address and any other username's that
## registered from that IP address.
##
## Installation Level: Easy
##
## Installation Time: 2-3 Minutes
##
## Files To Edit: includes/usercp_register.php
##
## Included Files: templates/subSilver/admin/user_ip_list.tpl
## admin/admin_reg_ip.php
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This
MOD
#################################################################
##
## Change Log:
##
## 30/09/04:
## Changed the code to work with 2.0.10.
## Amended the code to try and get round people who use
## proxy servers, so the IP you get is the users not the
## proxy box (With thanks to pootergeist from http://board.php-princess.net/).
##
#################################################################
#
#-----[ SQL / RUN ]---------------------------
#
ALTER TABLE `phpbb2_users`
ADD `user_reg_ip` TEXT NULL,
ADD `user_reg_host` TEXT NULL;
#
#-----[ COPY ]---------------------------
#
templates/xxxx/admin/user_ip_list.tpl
#
#-----[ COPY ]---------------------------
#
admin/admin_reg_ip.php
#
#-----[ OPEN ]------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
$user_id = $row['total'] + 1;
#
#-----[ AFTER ADD ]---------
#
//
// BEGIN - Registration IP Hack
//
if (isSet($_SERVER))
{
if (isSet($_SERVER["HTTP_X_FORWARDED_FOR"]))
{
$realip = $_SERVER["HTTP_X_FORWARDED_FOR"];
}
elseif (isSet($_SERVER["HTTP_CLIENT_IP"]))
{
$realip = $_SERVER["HTTP_CLIENT_IP"];
}
else
{
$realip = $_SERVER["REMOTE_ADDR"];
}
}
else
{
if ( getenv( 'HTTP_X_FORWARDED_FOR' ) )
{
$realip = getenv( 'HTTP_X_FORWARDED_FOR' );
}
elseif ( getenv( 'HTTP_CLIENT_IP' ) )
{
$realip = getenv( 'HTTP_CLIENT_IP' );
}
else
{
$realip = getenv( 'REMOTE_ADDR' );
}
}
$user_reg_id = $realip;
$user_reg_host = gethostbyaddr($realip);
//
// END - Registration IP Hack
//
#
#-----[ FIND ]--------------------
#
$sql = "INSERT INTO " . USERS_TABLE . " (
#
#-----[ IN-LINE AFTER ADD ]------------------------------------------
#
user_reg_ip, user_reg_host,
#
#-----[ FIND (next line down) ]------------------------------------
#
VALUES (
#
#-----[ IN-LINE AFTER ADD ]------------------------------
#
'" . str_replace("\'", "''", $user_reg_id) . "', '" .
str_replace("\'", "''", $user_reg_host) . "',
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#<?php
// phpBB 2.x auto-generated config file
// Do not change anything in this file!
$dbms = 'база данных';
$dbhost = 'хост базы данных';
$dbname = 'имя базы';
$dbuser = 'юзер';
$dbpasswd = 'пароль';
$table_prefix = 'phpbb_'; ========!"!!!!!!!!!!!!!!!!!! ВОТ ЭТА СТРОЧКА ТЕБЕ И НУЖНА!!!!
define('PHPBB_INSTALLED', true);
?><?php
// phpBB 2.x auto-generated config file
// Do not change anything in this file!
$dbms = 'mysql4';
$dbhost = 'localhost';
$dbname = 'forum';
$dbuser = 'root';
$dbpasswd = '';
$table_prefix = 'phpbb_';
define('PHPBB_INSTALLED', true);
?>Вернуться в Поддержка модов для phpBB 2.0.x
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0