Fatal error in der viewforum.php - Regmod 2.0.2
Verfasst: 20.01.2006 18:44
Hallo,
Ich habe ein Problem mit dem Mod "Regmod", ich habe die neueste Version installiert und alle Dateien geändert.
Nun bekomme ich folgende Fehlermeldung, wenn ich ein Topic unter Einsatz des Mods schreiben will:
Fatal error: Call to undefined function: check_reg_active() in /www/htdocs/naga/phpBB2/viewforum.php on line 472
Die Php Datei "viewforum.php" habe ich hier zur Ansicht bereitgestellt:
http://enklave.pixel-forge.de/viewforum.txt
Folgende Änderungen (laut der install.txt des regmods) habe ich durchgeführt:
Wo kann ich hier ansetzen, wer kann mir helfen?
Danke im Voraus,
Mfg
Link zum Regmod 2.0.2: http://www.regmod.clancodes.com/viewtopic.php?t=308
Ich habe ein Problem mit dem Mod "Regmod", ich habe die neueste Version installiert und alle Dateien geändert.
Nun bekomme ich folgende Fehlermeldung, wenn ich ein Topic unter Einsatz des Mods schreiben will:
Fatal error: Call to undefined function: check_reg_active() in /www/htdocs/naga/phpBB2/viewforum.php on line 472
Die Php Datei "viewforum.php" habe ich hier zur Ansicht bereitgestellt:
http://enklave.pixel-forge.de/viewforum.txt
Folgende Änderungen (laut der install.txt des regmods) habe ich durchgeführt:
Code: Alles auswählen
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'common.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// RegMod-Begin
include($phpbb_root_path . 'includes/functions_regmod.'.$phpEx);
// RegMod-End
#
#-----[ FIND ]------------------------------------------
#
{
$topic_type = '';
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
// RegMod-Begin
if( $topic_rowset[$i]['topic_reg'] && check_reg_active($topic_id) )
{
$regoption_array = array();
$regoptions = '';
if( $userdata['user_id'] )
{
$sql = "SELECT registration_status FROM ".REGISTRATION_TABLE." WHERE topic_id = $topic_id AND registration_user_id =".$userdata['user_id'];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql);
}
if( $regrow = $db->sql_fetchrow($result) )
{
$status = $regrow['registration_status'];
if( $status == REG_OPTION1 )
{
$topic_type .= '<span class="genoption1">•</span>' . ' ';
}
else if( $status == REG_OPTION2 )
{
$topic_type .= '<span class="genoption2">•</span>' . ' ';
}
else if( $status == REG_OPTION3 )
{
$topic_type .= '<span class="genoption3">•</span>' . ' ';
}
else
{
$topic_type .= '<span class="genoption0">•</span>' . ' ';
}
}
else if( empty($regrow) && $topic_rowset[$i]['topic_reg'] )
{
$topic_type .= '<span class="genoption0">•</span>' . ' ';
}
else
{
$topic_type .= '';
}
$db->sql_freeresult($result);
}
else
{
$topic_type .= $lang['Topic_RegLogin'] . ' ';
}
$sql = "SELECT u.username, u.user_id, r.registration_time, r.registration_confirm_time, r.registration_status FROM ".REGISTRATION_TABLE." r, ".USERS_TABLE." u WHERE r.topic_id=$topic_id AND r.registration_user_id = u.user_id ORDER BY registration_status,registration_time";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not obtain registration data for this topic", '', __LINE__, __FILE__, $sql);
}
$reg_info = $db->sql_fetchrowset($result);
$db->sql_freeresult($result);
$numregs = count($reg_info);
$option1_count = 0;
$option2_count = 0;
$option3_count = 0;
for( $u = 0; $u < $numregs; $u ++ )
{
if( $reg_info[$u]['registration_status'] == REG_OPTION1 )
{
$option1_count++;
}
else if( $reg_info[$u]['registration_status'] == REG_OPTION2 )
{
$option2_count++;
}
else if( $reg_info[$u]['registration_status'] == REG_OPTION3 )
{
$option3_count++;
}
}
if (true === check_option_exists($topic_id,1))
{
$option1_count = '<span class="genoption1">'.(0+$option1_count).'</span>';
array_push($regoption_array, $option1_count);
}
if (true === check_option_exists($topic_id,2))
{
$option2_count = '<span class="genoption2">'.(0+$option2_count).'</span>';
array_push($regoption_array, $option2_count);
}
if (true === check_option_exists($topic_id,3))
{
$option3_count = '<span class="genoption3">'.(0+$option3_count).'</span>';
array_push($regoption_array, $option3_count);
}
$regoptions_count = count($regoption_array);
$v = 0;
while ( $v < $regoptions_count-1 )
{
$regoptions .= $regoption_array[$v].'-';
$v++;
}
$regoptions .= array_pop($regoption_array);
}
// RegMod-End
#
#-----[ FIND ]------------------------------------------
#
'TOPIC_TYPE' => $topic_type,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// RegMod-Begin
'REG_OPTIONS' => $regoptions,
// RegMod-End
#
#-----[ FIND ]------------------------------------------
#
'U_VIEW_TOPIC' => $view_topic_url)
);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// RegMod-Begin
if( ( $topic_rowset[$i]['topic_reg'] ) && check_reg_active($topic_id) )
{
$template->assign_block_vars('topicrow.display_reg', array());
}
// RegMod-End
Wo kann ich hier ansetzen, wer kann mir helfen?
Danke im Voraus,
Mfg
Link zum Regmod 2.0.2: http://www.regmod.clancodes.com/viewtopic.php?t=308