Board Statistics

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
The Sting
Berichten: 762
Lid geworden op: 11 okt 2004, 16:12
Locatie: Brabant

Board Statistics

Bericht door The Sting » 17 jan 2005, 19:42

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');
Met groet, The Sting

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 18 jan 2005, 15:44

Heb je ook alle bestanden geupload?
Zo niet: staat in het bestand ook includes/functions_admin.php geinclude?
Afbeelding

The Sting
Berichten: 762
Lid geworden op: 11 okt 2004, 16:12
Locatie: Brabant

Re: Board Statistics

Bericht door The Sting » 18 jan 2005, 16:25

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();
Met groet, The Sting

The Sting
Berichten: 762
Lid geworden op: 11 okt 2004, 16:12
Locatie: Brabant

Bericht door The Sting » 18 jan 2005, 18:48

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?.
Met groet, The Sting

Gebruikersavatar
Luuk
Berichten: 7311
Lid geworden op: 22 okt 2003, 10:07
Locatie: Delft

Bericht door Luuk » 18 jan 2005, 20:35

Nee ik ken de mod niet, maar ik dacht dat daar de functie renumberorder in gedefineerd stond. Maar dat is niet zo.
Afbeelding

Gesloten