Seite 1 von 2

Registrieren geht nicht. Beim Bestätigen kommt Seite erneut

Verfasst: 11.02.2007 19:09
von Lumpi007
Hallo,

ich habe eine Problem im Forum.
Wenn sich ein neuer User Registrieren möchte füllt er das Anmeldeformular aus. Er gibt Usernamen, E-mail Adresse, Passwort und die Sicherheitsabfragen an.
Klickt nun auf Absenden so erscheint die Registrierung erneut.

Schaut mal selbst --> http://www.mini-dtm-club.de/forum

In welcher Datei müsste ich also einen so vermute ich fehlerhaften Link verändern?

Verfasst: 11.02.2007 19:59
von Miriam
Ich denke mal, Du hast etwas an der TPL Datei verbogen.
profile_add_body.tpl

Verfasst: 11.02.2007 20:12
von Lumpi007
Ich hatte den Anti Bot Question MOD installiert, ich glaube danach kam der Fehler.
Bei dem Mod musste ich die includes/usercp_register.php Datei bearbeiten.

Meine includes/usercp_register.php Datei:
http://www.mini-dtm-club.de/fehlersuche ... ister.phps


Code: Alles auswählen

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

# 
#-----[ FIND ]------------------------------------------------ 
# 
	die("Hacking attempt");
	exit;
}

# 
#-----[ AFTER, ADD ]------------------------------------------------ 
# 
// Anti Bot Question Mod - Start
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_abq.' . $phpEx);
include($phpbb_root_path . 'includes/functions_abq.' . $phpEx);

$abq_config = array();
$sql = "SELECT *
	FROM " . ANTI_BOT_QUEST_CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
	message_die(CRITICAL_ERROR, "Could not query anti bot question mod config information", "", __LINE__, __FILE__, $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
	$abq_config[$row['config_name']] = $row['config_value'];
}
// Anti Bot Question Mod - End

# 
#-----[ FIND ]------------------------------------------------ 
# 
	$strip_var_list = array('email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests', 'confirm_code' => 'confirm_code');

# 
#-----[ IN-LINE FIND ]------------------------------------------------ 
# 
'confirm_code' => 'confirm_code'

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------------ 
# 
, 'abq_aw' => $abq_config['postvariablename'], 'idabq' => 'idabq'

# 
#-----[ FIND ]------------------------------------------------ 
# 
				$error = TRUE;
				$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Confirm_code_wrong'];
			}
			$db->sql_freeresult($result);
		}
	}

# 
#-----[ AFTER, ADD ]------------------------------------------------ 
# 
	// Anti Bot Question Mod - Start
	ABQ_AntwortPruefen('R');
	// Anti Bot Question Mod - End

# 
#-----[ FIND ]------------------------------------------------ 
# 
		'body' => 'profile_add_body.tpl')
	);

# 
#-----[ AFTER, ADD ]------------------------------------------------ 
# 
	// Anti Bot Question Mod - Start
	$abq_quest = '';
	$abq_answerfield = '';
	$abq_CaseInfo = 0;
	// Anti Bot Question Mod - End

# 
#-----[ FIND ]------------------------------------------------ 
# 
	if ( $mode == 'editprofile' )
	{
		$template->assign_block_vars('switch_edit_profile', array());
	}

# 
#-----[ AFTER, ADD ]------------------------------------------------ 
# 
	// Anti Bot Question Mod - Start
	else if (( $mode == 'register' ) && ($abq_config['abq_register']))
	{
		$abq_CaseInfo = ABQ_FrageStellen('R');
	}
	// Anti Bot Question Mod - End

# 
#-----[ FIND ]------------------------------------------------ 
# 
		'CONFIRM_IMG' => $confirm_image, 

# 
#-----[ AFTER, ADD ]------------------------------------------------ 
# 
		// Anti Bot Question Mod - Start
		'L_ABQ_QUEST' => $abq_quest,
		'L_ABQ_EXPLAIN' => $lang['ABQ_F_explain_register'],
		'L_ABQ_HINWEIS' => sprintf($lang['ABQ_F_Probleme'], '<a href="mailto:' . $board_config['board_email'] . '">', '</a>'),
		'L_ABQ_QUESTION' => $lang['ABQ_F_Question'],
		'L_ABQ_ANSWER' => $lang['ABQ_F_YourAnswer'],
		'L_ABQ_ANSWER_EXPLAIN' => (($abq_CaseInfo) && (substr($abq_answerfield,0,7) != '<select')) ? '<br />'.$lang['ABQ_F_casesensitive'] : '',
		'S_ABQ' => $abq_answerfield, 
		// Anti Bot Question Mod - End


Verfasst: 11.02.2007 20:17
von Lumpi007
Miriam hat geschrieben:Ich denke mal, Du hast etwas an der TPL Datei verbogen.
profile_add_body.tpl
Hier noch die subSilver/profile_add_body.tpl Datei:
http://www.mini-dtm-club.de/fehlersuche ... _body.tpls

Verfasst: 11.02.2007 22:33
von Miriam
Soll ich das jetzt für Dich überprüfen????

Hat es Fehler darin (beim Modden) Wennnein, müssen wir wohl woanders ansetzen.

Überprüfe alle Dateien, die von diesem Mod geändert wurden.

Verfasst: 11.02.2007 22:48
von nickvergessen
auch hier war der anti-bot-mod drinne:
http://www.phpbb.de/viewtopic.php?t=142524
der scheint entweder eine unklare Anleitung zuenthalten, oder einen Fehler.

Verfasst: 11.02.2007 23:01
von Miriam
Oder beides.. Hm. :-?

Verfasst: 11.02.2007 23:25
von Lumpi007
Miriam hat geschrieben:Soll ich das jetzt für Dich überprüfen????
Das wäre nett.

Verfasst: 13.02.2007 18:37
von MagMo
Hi,
Miriam hat geschrieben:Oder beides.. Hm. :-?
Oder auch gar nichts von beidem.
Bevor hier irgendwelche Behauptungen ausgesprochen werden, sollte man erst einmal überprüfen wo das Problem liegt.

Die Ursache hat NICHTS mit dem Anti Bot Question MOD zu tun.

@Lumpi007
Du hast die Variable "agreed" in "willich" umbenannt. Hast dabei an einer Stelle in der usercp_register.php eine Änderung vergessen:

Code: Alles auswählen

if ( $mode == 'register' && !isset($HTTP_POST_VARS['agreed']) ) 
{ 
    include($phpbb_root_path . 'includes/page_header.'.$phpEx); 
    show_coppa(); 
    include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 
}
Dies dürfte die Ursache für dein Problem sein.

Grüße
MagMo

Verfasst: 13.02.2007 19:17
von Lumpi007
Hallo MagMo.

Ich habe deinen angegebenen Code
MagMo hat geschrieben: @Lumpi007
Du hast die Variable "agreed" in "willich" umbenannt. Hast dabei an einer Stelle in der usercp_register.php eine Änderung vergessen:

Code: Alles auswählen

if ( $mode == 'register' && !isset($HTTP_POST_VARS['agreed']) ) 
{ 
    include($phpbb_root_path . 'includes/page_header.'.$phpEx); 
    show_coppa(); 
    include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 
}
Dies dürfte die Ursache für dein Problem sein.

Grüße
MagMo
in folgenden ersetzt:

Code: Alles auswählen

if ( $mode == 'register' && !isset($HTTP_POST_VARS['willich']) ) 
{ 
    include($phpbb_root_path . 'includes/page_header.'.$phpEx); 
    show_coppa(); 
    include($phpbb_root_path . 'includes/page_tail.'.$phpEx); 
}
Nun habe ich das aber das Problem, das man gar nicht weiter auf die Ausfüllseite der Registrierung gelangt. Siehe www.mini-dtm-club.de/forum


Gruß Christian

----------------------

Hallo,

also ich weis, dass "willich" 6 mal vorhanden sein muss. Ich kann es nur 5 mal finden. Das Wort "agreed" finde ich gar nicht. Könnte sich das mal wer ansehen?
Meine includes/usercp_register.php Datei:
http://www.mini-dtm-club.de/fehlersuche ... ister.phps

Danke :wink: