also hier mein problem ich habe alles gemacht was ich machen sollte und wenn ich jetzt auf process klicke kommt folgende fehlermeldung:
Error Detail
Critical Error
Function Trace: open_files[5]->modio_open[1]
Could not open ['INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',] for reading.
MOD script line #67 :: FAQ :: Report
die datei sieht so aus:
###################################################################################
##
## MOD Title: Add new field to profile
## MOD Author: Acid
## MOD Description: Just a simple way to add a new field to profile. "music" can be
## changed to "whatever" of cours but be aware of the spelling (e.g.
## "MUSIC", "music", "user_music").
## If you want to add more than one field duplicate the following
## steps and change "music" (be aware of the spelling).
## MOD Version: 1.0.7 (ex phpbb 2.0.4)
##
## Files to edit: 8
## admin/admin_users.php
## language/lang_english/lang_main.php
## includes/usercp_viewprofile.php
## includes/usercp_register.php
## includes/usercp_avatar.php
## templates/LastCrusade/admin/user_edit_body.tpl
## templates/LastCrusade/profile_add_body.tpl
## templates/LastCrusade/profile_view_body.tpl
##
###################################################################################
##
## Installation/Author Notes:
## First always backup the files that you're going to edit.
##
## This hacks adds a new column to your 'user' table.
##
###################################################################################
#
#-----[ SQL ]-------------------------------------------
#
# You may have to change your database prefix
ALTER TABLE test_users ADD user_vorname VARCHAR(255);
## alternate you can use table_update.php to alter the database automatically
## (just upload and run the file)
#
#-----[ FILES ]------------------------------------------
#
/table_update.php ...to alter the database
/table_delete.php ...to cancel the alteration
## both files should deleted immediately after use
#
#-----[ OPEN ]------------------------------------------
#
# language/lang_english/lang_main.php
#
#-----[ FIND ]---------------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE ADD ]---------------------------------------------------
#
$lang['Vorname'] = 'Vorname';
#
#-----[ OPEN ]------------------------------------------
#
# includes/usercp_viewprofile.php
#
#-----[ FIND ]---------------------------------------------------
#
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
#
#-----[ AFTER ADD ]---------------------------------------------------
#
'VORNAME' => ( $profiledata['user_vorname'] ) ? $profiledata['user_vorname'] : ' ',
#
#-----[ FIND ]---------------------------------------------------
#
'L_INTERESTS' => $lang['Interests'],
#
#-----[ AFTER ADD ]---------------------------------------------------
#
'L_VORNAME' => $lang['Vorname'],
#
#-----[ OPEN ]------------------------------------------
#
# includes/usercp_register.php
#
#-----[ FIND ]---------------------------------------------------
#
$strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' =>
'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests');
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
'interests'
#
#-----[ AFTER ADD ]---------------------------------------------------
#
, 'vorname' => 'vorname'
#
#-----[ FIND ]---------------------------------------------------
#
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests
#
#-----[ AFTER ADD ]---------------------------------------------------
#
, $vorname
#
#-----[ FIND ]---------------------------------------------------
#
$interests = stripslashes($interests);
#
#-----[ AFTER ADD ]---------------------------------------------------
#
$vorname = stripslashes($vorname);
#
#-----[ FIND ]---------------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" .
str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "',
user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'",
"''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ',
'+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig,
user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify =
$notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''",
$user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" .
str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests) . "'
#
#-----[ AFTER ADD ]---------------------------------------------------
#
, user_vorname = '" . str_replace("\'", "''", $vorname) . "'
#
#-----[ FIND ]---------------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website,
user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm,
user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone,
user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $password) . "',
'" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''",
$occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) .
"', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) .
"', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm,
$user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
user_interests
#
#-----[ AFTER ADD ]---------------------------------------------------
#
, user_vorname
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests) . "'
#
#-----[ AFTER ADD ]---------------------------------------------------
#
, '" . str_replace("\'", "''", $vorname) . "'
#
#-----[ FIND ]---------------------------------------------------
#
$interests = stripslashes($interests);
#
#-----[ AFTER ADD ]---------------------------------------------------
#
$vorname = stripslashes($vorname);
#
#-----[ FIND ]---------------------------------------------------
#
$interests = $userdata['user_interests'];
#
#-----[ AFTER ADD ]---------------------------------------------------
#
$vorname = $userdata['user_vorname'];
#
#-----[ FIND ]---------------------------------------------------
#
display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password,
$password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popuppm, $notifyreply,
$attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat, $userdata['session_id']);
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$user_dateformat
#
#-----[ ADD AFTER ]---------------------------------------------------
#
, $vorname
#
#-----[ FIND (just a quote, search for the last line) ]--------------------------
#
$template->assign_vars(array(
.
.
.
.
'INTERESTS' => $interests,
#
#-----[ AFTER ADD ]---------------------------------------------------
#
'VORNAME' => $vorname,
#
#-----[ FIND ]---------------------------------------------------
#
'L_INTERESTS' => $lang['Interests'],
#
#-----[ AFTER ADD ]---------------------------------------------------
#
'L_VORNAME' => $lang['Vorname'],
#
#-----[ OPEN ]------------------------------------------
#
# includes/usercp_avatar.php
#
#-----[ FIND ]---------------------------------------------------
#
function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password,
&$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popuppm,
&$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$session_id)
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
&$dateformat
#
#-----[ AFTER ADD ]---------------------------------------------------
#
, &$vorname
#
#-----[ FIND ]---------------------------------------------------
#
$params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'cur_password', 'new_password', 'password_confirm', 'icq', 'aim', 'msn', 'yim',
'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popuppm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode',
'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat');
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
'dateformat'
#
#-----[ AFTER ADD ]---------------------------------------------------
#
, 'vorname'
#
#-----[ OPEN ]------------------------------------------
#
# admin/admin_users.php
#
#-----[ FIND ]---------------------------------------------------
#
$interests = ( !empty($HTTP_POST_VARS['interests']) ) ? trim(strip_tags( $HTTP_POST_VARS['interests'] ) ) : '';
#
#-----[ AFTER ADD ]---------------------------------------------------
#
$vorname = ( !empty($HTTP_POST_VARS['vorname']) ) ? trim(strip_tags( $HTTP_POST_VARS['vorname'] ) ) : '';
#
#-----[ FIND ]---------------------------------------------------
#
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests
#
#-----[ AFTER ADD ]---------------------------------------------------
#
, $vorname
#
#-----[ FIND (1st occurence) ]--------------------------------------------
#
$interests = htmlspecialchars(stripslashes($interests));
#
#-----[ AFTER ADD ]---------------------------------------------------
#
$vorname = htmlspecialchars(stripslashes($vorname));
#
#-----[ FIND ]---------------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "',
user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'",
"''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "',
user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" .
str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies,
user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify =
$notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "',
user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status,
user_rank = $user_rank" . $avatar_sql . "
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests) . "'
#
#-----[ AFTER ADD ]---------------------------------------------------
#
, user_vorname = '" . str_replace("\'", "''", $vorname) . "'
#
#-----[ FIND (2nd occurence) ]-------------------------------------------
#
$interests = htmlspecialchars(stripslashes($interests));
#
#-----[ AFTER ADD ]---------------------------------------------------
#
$vorname = htmlspecialchars(stripslashes($vorname));
#
#-----[ FIND ]---------------------------------------------------
#
$interests = htmlspecialchars($this_userdata['user_interests']);
#
#-----[ AFTER ADD ]---------------------------------------------------
#
$vorname = htmlspecialchars($this_userdata['user_vorname']);
#
#-----[ FIND ]---------------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="interests" value="' . str_replace("\"", """, $interests) . '" />';
#
#-----[ AFTER ADD ]---------------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="vorname" value="' . str_replace("\"", """, $vorname) . '" />';
#
#-----[ FIND ]---------------------------------------------------
#
'INTERESTS' => $interests,
#
#-----[ AFTER ADD ]---------------------------------------------------
#
'VORNAME' => $vorname,
#
#-----[ FIND ]---------------------------------------------------
#
'L_INTERESTS' => $lang['Interests'],
#
#-----[ AFTER ADD ]---------------------------------------------------
#
'L_VORNAME' => $lang['Vorname'],
#
#-----[ OPEN ]------------------------------------------
#
# templates/LastCrusade/profile_add_body.tpl
#
#-----[ FIND ]---------------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_INTERESTS}:</span></td>
<td class="row2">
<input type="text" class="post"style="width: 200px" name="interests" size="35" maxlength="150" value="{INTERESTS}" />
</td>
</tr>
#
#-----[ AFTER ADD ]---------------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_VORNAME}:</span></td>
<td class="row2">
<input type="text" class="post"style="width: 200px" name="vorname" size="35" maxlength="150" value="{VORNAME}" />
</td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
# templates/LastCrusade/profile_view_body.tpl
#
#-----[ FIND ]---------------------------------------------------
#
<tr>
<td valign="top" align="right"><span class="gen">{L_INTERESTS}:</span></td>
<td> <b><span class="gen">{INTERESTS}</span></b></td>
</tr>
#
#-----[ AFTER ADD ]---------------------------------------------------
#
<tr>
<td valign="top" align="right"><span class="gen">{L_VORNAME}:</span></td>
<td> <b><span class="gen">{VORNAME}</span></b></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
# templates/LastCrusade/admin/user_edit_body.tpl
#
#-----[ FIND ]---------------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_INTERESTS}</span></td>
<td class="row2">
<input type="text" name="interests" size="35" maxlength="150" value="{INTERESTS}" />
</td>
</tr>
#
#-----[ AFTER ADD ]---------------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_VORNAME}</span></td>
<td class="row2">
<input class="post" type="text" name="vorname" size="35" maxlength="50" value="{VORNAME}" />
</td>
</tr>
#############################################################################################################################################################
################################
#############################################################################################################################################################
################################
#############################################################################################################################################################
################################
und bei dem birthday mod kommt folgender fehler:
Error Detail
Critical Error
IN-LINE FIND FAILED: In file [includes/usercp_register.php] could not find:
str_replace("\'", "''", $interests) . "'