Pagina 1 van 1

Board Statistics

Geplaatst: 17 jan 2005, 19:42
door The Sting
Hallo All,

Mod Title: Board Statistics
## Mod Version: 2.1.5

Heb de stats mod ingebouwd, lokaal goed, maar geupt krijg ik deze melding, in het acp linker menu komt niet, iemand??.

Fatal error: Cannot redeclare renumber_order() in /home/forum/public_html/admin/admin_statistics.php on line 119


Dit is de code

#################################################################
## Mod Title: Board Statistics
## Mod Version: 2.1.5
## Mod Author: Acyd Burn < acyd.burn@gmx.de > - Meik Sievertsen ( http://www.opentools.de/board )
## Mod Description:
# Copy/Upload all files to their respective Location
#
# statistics.php -> statistics.php
# admin/admin_statistics.php -> admin/admin_statistics.php
# includes/functions_stats.php -> includes/functions_stats.php
# includes/functions_module.php -> includes/functions_module.php
# templates/subSilver/statistics.tpl -> templates/subSilver/statistics.tpl
# templates/subSilver/admin/stat_config_body.tpl -> templates/subSilver/admin/stat_config_body.tpl
# templates/subSilver/admin/stat_edit_module.tpl -> templates/subSilver/admin/stat_edit_module.tpl
# templates/subSilver/admin/stat_manage_modules.tpl -> templates/subSilver/admin/stat_manage_modules.tpl
# templates/subSilver/images/icon_mini_statistics.png -> templates/subSilver/images/icon_mini_statistics.png
# stat_modules/* -> stat_modules (upload the complete directory and all sub directories)
#

#
# Upload the Language Files (English (German is optional)) provided with the Statistics Mod, located at the language folder
# to your language Directory.
#
# language/lang_english/lang_statistics.php -> language/lang_english/lang_statistics.php
#

#
# Installing the Statistics Mod (First Step -- Database):
#
# Upload this File to your phpBB2 Root Directory (where your config.php file is), it is only needed for installation:
#
# mod_table_inst.php -> mod_table_inst.php
#

#
# Now we want to create the tables, therefore we run mod_table_inst.php (http://www.yoursite.com/phpBB2/mod_table_inst.php)
# Contact me if you have questions or problems.
#

#
# For Uninstallation:
# Upload mod_uninst.php -> mod_uninst.php
# Run the script and delete it after execution
#

#
# Now you have to alter existing phpBB2 files, read the instructions carefully and make sure you find the right lines.
#

#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php

#
#-----[ FIND ]------------------------------------------
#
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}

#
#-----[ AFTER, ADD ]------------------------------------------
#
define('MODULES_TABLE', $table_prefix . 'stats_modules');
define('STATS_CONFIG_TABLE', $table_prefix . 'stats_config');

Geplaatst: 18 jan 2005, 15:44
door Luuk
Heb je ook alle bestanden geupload?
Zo niet: staat in het bestand ook includes/functions_admin.php geinclude?

Re: Board Statistics

Geplaatst: 18 jan 2005, 16:25
door The Sting
The Sting schreef:Hallo All,

Mod Title: Board Statistics
## Mod Version: 2.1.5

Heb de stats mod ingebouwd, lokaal goed, maar geupt krijg ik deze melding, in het acp linker menu komt niet, iemand??.

Fatal error: Cannot redeclare renumber_order() in /home/forum/public_html/admin/admin_statistics.php on line 119
Het is als volgt opgelost. Hoop dat iemand er wat aan heeft.

Het bestand dat ik aangepast heb is:
admin/admin_statistics.php
Op regel 117 staat:

//Function name changed by Opweb.nl
function renumberorder()
{
global $db;

En op regel 162:
//Function name changed by Opweb.nl
renumberorder();

Geplaatst: 18 jan 2005, 18:48
door The Sting
Luuk schreef:Heb je ook alle bestanden geupload?
Zo niet: staat in het bestand ook includes/functions_admin.php geinclude?
Luuk heb jij ervaring met deze mod?.
In acp werkt ie nu goed, maar zet ik hem als link in de overal_head.tpl, breekt ie uit en bovendien laat ie alleen zien wat ik op all heb gezet, de gene die ik op reg heb gezet laat ie niet zien?.

Geplaatst: 18 jan 2005, 20:35
door Luuk
Nee ik ken de mod niet, maar ik dacht dat daar de functie renumberorder in gedefineerd stond. Maar dat is niet zo.