subfora fout
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

subfora fout
hallo, ik heb een fout met het installeren met de subfora mod in index.php:
Fatal error: Call to undefined function: board_stats() in /home/marrucc1/domains/marrucc.com/public_html/area 51/forum/index.php on line 149
ik heb het wel enkele keren opnieuw geprobeerd, maar steeds krijg ik dezelfde mod :S
dit is regel 149
wat ik dik gedrukt heb gemaakt, dat is regel 149
/-- mod : categories hierarchy --------------------------------------------------------------------
//-- delete
// $total_posts = get_db_stat('postcount');
// $total_users = get_db_stat('usercount');
//-- add
include_once($phpbb_root_path . 'includes/mods_settings/mod_categories_hierarchy.' . $phpEx);
if ( ($board_config['display_viewonline'] == 2) || ( ($viewcat < 0) && ($board_config['display_viewonline'] == 1) ) )
{
if ( empty($board_config['max_posts']) || empty($board_config['max_users']) )
{
board_stats();
}
$total_posts = $board_config['max_posts'];
$total_users = $board_config['max_users'];
//-- fin mod : categories hierarchy ----------------------------------------------------------------
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
$newest_uid = $newest_userdata['user_id'];
Fatal error: Call to undefined function: board_stats() in /home/marrucc1/domains/marrucc.com/public_html/area 51/forum/index.php on line 149
ik heb het wel enkele keren opnieuw geprobeerd, maar steeds krijg ik dezelfde mod :S
dit is regel 149
wat ik dik gedrukt heb gemaakt, dat is regel 149
/-- mod : categories hierarchy --------------------------------------------------------------------
//-- delete
// $total_posts = get_db_stat('postcount');
// $total_users = get_db_stat('usercount');
//-- add
include_once($phpbb_root_path . 'includes/mods_settings/mod_categories_hierarchy.' . $phpEx);
if ( ($board_config['display_viewonline'] == 2) || ( ($viewcat < 0) && ($board_config['display_viewonline'] == 1) ) )
{
if ( empty($board_config['max_posts']) || empty($board_config['max_users']) )
{
board_stats();
}
$total_posts = $board_config['max_posts'];
$total_users = $board_config['max_users'];
//-- fin mod : categories hierarchy ----------------------------------------------------------------
$newest_userdata = get_db_stat('newestuser');
$newest_user = $newest_userdata['username'];
$newest_uid = $newest_userdata['user_id'];
De functie is dus nergens opgegeven. Zoek in de mod bestanden eens naar
en kijk waarom dat bestand niet geladen werd in index.php.
Code: Selecteer alles
function board_statsDe functie staat helemaal bovenin functions_categories_hierarchy.php. Dit heb je dus niet goed gedaan:
of dit;install schreef:#
#-----[ COPY ]------------------------------------------------
#
copy includes/def_auth.php to includes/def_auth.php
copy includes/def_themes.php to includes/def_themes.php
copy includes/def_tree.php to includes/def_tree.php
copy includes/def_words.php to includes/def_words.php
copy includes/functions_categories_hierarchy.php to includes/functions_categories_hierarchy.php
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : categories hierarchy --------------------------------------------------------------------
//-- add
include_once( $phpbb_root_path . './includes/functions_categories_hierarchy.' . $phpEx );
//-- fin mod : categories hierarchy ----------------------------------------------------------------