Seite 1 von 4
finden...
Verfasst: 09.04.2004 20:51
von aidacha
Es heisse ich solle in usercp_register.php das finden:
$template->assign_vars(array(
.
.
.
.
'INTERESTS' => $interests,
dies finde ich aber nicht, kann mir jemand weiterhelfen?
Verfasst: 09.04.2004 21:08
von Markus67
hi ...
welchen mod willst du einbauen ?
verlinke doch einfach mal deine usercp_register.php als textdatei ...
als txt-datei bereitstellen
markus
mod
Verfasst: 09.04.2004 21:50
von aidacha
den persönlichen notiz mod, oder wie auch immer der heisst
weisst du ich kann es online bearbeiten, ich öffne dann usercp_register.php und kopiere den text in meinen editor, dann suche ich nach dem gesuchten: $template->assign_vars(array(
.
.
.
.
'INTERESTS' => $interests,
aber erfolglos :S
Verfasst: 09.04.2004 21:56
von rabbit
dann such doch nur einen teil, z.b.
schon probiert
Verfasst: 09.04.2004 21:58
von aidacha
hab' ich schon probiert, da gab es nur 2 von: 'INTERESTS' => $interests,
aber keinen der auf:
$template->assign_vars(array(
.
.
.
.
'INTERESTS' => $interests,
entspricht
Verfasst: 09.04.2004 22:07
von Markus67
hi ...
der block müsste ungefähr so aussehen und ziemlich weit unten stehen ...
Code: Alles auswählen
$template->assign_vars(array(
'USERNAME' => $username,
'CUR_PASSWORD' => $cur_password,
'NEW_PASSWORD' => $new_password,
'PASSWORD_CONFIRM' => $password_confirm,
'EMAIL' => $email,
'YIM' => $yim,
'ICQ' => $icq,
'MSN' => $msn,
'AIM' => $aim,
'OCCUPATION' => $occupation,
'INTERESTS' => $interests,
'plz' => $plz,
'L_plz' => $lang['plz'],
markus
thx!!
Verfasst: 09.04.2004 22:08
von aidacha
ahaaa! deshalb die punkte! ach bin ich dumm! danke vielmal!!
Verfasst: 09.04.2004 23:47
von aidacha
jetzt bin ich beim ende der anleitung angekommen, da geht aber was net:
#-----[ OPEN ]------------------------------------------
# Only if your phpBB2 is older than 2.0.4!
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
# Only if your phpBB2 is older than 2.0.4!
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
# Only if your phpBB2 is older than 2.0.4!
#
function redirect($url)
{
global $db, $board_config;
if (!empty($db))
{
$db->sql_close();
}
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));
// Redirect via an HTML form for PITA webservers
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $server_protocol . $server_name . $server_port . $script_name . $url . '">HERE</a> to be redirected</div></body></html>';
exit;
}
// Behave as per HTTP/1.1 spec for others
header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url);
exit;
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
na gut, ich öffne diesen ordner, suche ?>, kopiere das was gesagt wird hinein. speichere. aktualisiere das forum, und was kommt, wenn ich oben auf notizen klicke??
Could not obtain notes/user information.
DEBUG MODE
SQL Error : 1146 Table 'usr_web3129_1.phpbb_notes' doesn't exist
SELECT * FROM phpbb_notes WHERE poster_id = 2 ORDER BY post_time ASC
Line : 108
File : /var/www/web3129/html/phpbb2.0.8/notes.php
na gut, dann schau ich eben notes.php an. bei line 108 steht folgendes:
message_die(GENERAL_ERROR, "Could not obtain notes/user information.", '', __LINE__, __FILE__, $sql);
was isch das falsch?! :S[/b]
Verfasst: 09.04.2004 23:47
von aidacha
jetzt bin ich beim ende der anleitung angekommen, da geht aber was net:
#-----[ OPEN ]------------------------------------------
# Only if your phpBB2 is older than 2.0.4!
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
# Only if your phpBB2 is older than 2.0.4!
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
# Only if your phpBB2 is older than 2.0.4!
#
function redirect($url)
{
global $db, $board_config;
if (!empty($db))
{
$db->sql_close();
}
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));
// Redirect via an HTML form for PITA webservers
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $server_protocol . $server_name . $server_port . $script_name . $url . '">HERE</a> to be redirected</div></body></html>';
exit;
}
// Behave as per HTTP/1.1 spec for others
header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url);
exit;
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
na gut, ich öffne diesen ordner, suche ?>, kopiere das was gesagt wird hinein. speichere. aktualisiere das forum, und was kommt, wenn ich oben auf notizen klicke??
Could not obtain notes/user information.
DEBUG MODE
SQL Error : 1146 Table 'usr_web3129_1.phpbb_notes' doesn't exist
SELECT * FROM phpbb_notes WHERE poster_id = 2 ORDER BY post_time ASC
Line : 108
File : /var/www/web3129/html/phpbb2.0.8/notes.php
na gut, dann schau ich eben notes.php an. bei line 108 steht folgendes:
message_die(GENERAL_ERROR, "Could not obtain notes/user information.", '', __LINE__, __FILE__, $sql);
was isch das falsch?! :S[/b]
Verfasst: 09.04.2004 23:47
von aidacha
jetzt bin ich beim ende der anleitung angekommen, da geht aber was net:
#-----[ OPEN ]------------------------------------------
# Only if your phpBB2 is older than 2.0.4!
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------
# Only if your phpBB2 is older than 2.0.4!
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
# Only if your phpBB2 is older than 2.0.4!
#
function redirect($url)
{
global $db, $board_config;
if (!empty($db))
{
$db->sql_close();
}
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name']));
$server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : '';
$script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path']));
$script_name = ($script_name == '') ? $script_name : '/' . $script_name;
$url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url));
// Redirect via an HTML form for PITA webservers
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
{
header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url);
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $server_protocol . $server_name . $server_port . $script_name . $url . '">HERE</a> to be redirected</div></body></html>';
exit;
}
// Behave as per HTTP/1.1 spec for others
header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url);
exit;
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
na gut, ich öffne diesen ordner, suche ?>, kopiere das was gesagt wird hinein. speichere. aktualisiere das forum, und was kommt, wenn ich oben auf notizen klicke??
Could not obtain notes/user information.
DEBUG MODE
SQL Error : 1146 Table 'usr_web3129_1.phpbb_notes' doesn't exist
SELECT * FROM phpbb_notes WHERE poster_id = 2 ORDER BY post_time ASC
Line : 108
File : /var/www/web3129/html/phpbb2.0.8/notes.php
na gut, dann schau ich eben notes.php an. bei line 108 steht folgendes:
message_die(GENERAL_ERROR, "Could not obtain notes/user information.", '', __LINE__, __FILE__, $sql);
was isch das falsch?! :S[/b]