Seite 1 von 1

nach Update: Profilvariablen werden nicht übergeben

Verfasst: 03.01.2005 01:06
von Gumfuzi
Hallo Leute!

Ich habe letztens das Forum von 2.0.6 auf 2.0.11 geupdated.

Seit dem werden die zusätzlichen Profilfelder nicht übernommen - Beispiel Deviantart-Link im Profil:
Hier kann der User im Profil seine eigene Seite bei Deviantart eintragen (wie bei der Homepage)
Hat sich da etwas bei den neuen Versionen geändert, daß zB. die Übergabe an die DB durch eine "externe" Funktion durchgeführt wird und ich woanders noch diese zusätzlichen Variablen miteinbeziehen muss?

Vorher funzte es auch und wenn ich es direkt in der DB per phpmyadmin eintrage, dann funzt es auch, aber sobald ich mein Profil editiere, dann sind die nach "absenden" wieder leer - auch wenn ich gar nichts im Profil ändere!

Danke für eure Tipps!

Hier ein paar Passagen aus der usercp_register.php:

Code: Alles auswählen

	// Run some validation on the optional fields. These are pass-by-ref, so they'll be changed to
	// empty strings if they fail.
	validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $custom_rank, $skype, $deviantart, $signature);

Code: Alles auswählen

		$deviantart = stripslashes($deviantart);

Code: Alles auswählen

			$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) . "', skype = '" . str_replace("\'", "''", $skype) . "', deviantart = '" . str_replace("\'", "''", $deviantart) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "'$user_title, 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 = $popup_pm, user_ou_sig = $user_ou_sig, user_ou_avatar = $user_ou_avatar, 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) . "', user_realname = '" . str_replace("\'", "''", $realname) . "', user_adress = '" . str_replace("\'", "''", $adress) . "', user_birth = '$birth', user_photo = '" . str_replace("\'", "''", $photo) . "', user_slogan = '" . str_replace("\'", "''", $slogan) . "', user_topt_title = '" . str_replace("\'", "''", $opt_title) . "', user_topt_text = '" . str_replace("\'", "''", $opt_text) . "', user_teamdesc_title = '$team_desc', user_teamtext = '$team_text', team_website = '$team_website', team_email = '$team_email', team_pm = '$team_pm'" . $avatar_sql . "
				WHERE user_id = $user_id";
dann nochmal

Code: Alles auswählen

	$deviantart = stripslashes($deviantart);

Code: Alles auswählen

	$deviantart = $userdata['deviantart'];

Code: Alles auswählen

	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, $popup_pm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat, $custom_rank, $skype, $deviantart, $userdata['session_id'], $realname, $adress, $birth, $photo, $slogan, $opt_title, $opt_text, $team_website, $team_email, $team_pm, $team_desc, $team_text, $user_ou_sig, $user_ou_avatar);

Code: Alles auswählen

		'DEVIANTART' => $deviantart,

Verfasst: 03.01.2005 13:12
von Nico Haase
stell die datei mal zum download bereit und ich guck rein

Verfasst: 03.01.2005 13:37
von Gumfuzi

Verfasst: 03.01.2005 14:26
von Nico Haase
ändere

Code: Alles auswählen

	$strip_var_list = array('username' => 'username', 'confirm_code' => 'confirm_code', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests', 'realname' => 'realname', 'adress' => 'adress', 'birth' => 'birth', 'photo' => 'photo', 'slogan' => 'slogan', 'opt_title' => 'opt_title', 'opt_text' => 'opt_text', 'team_desc' => 'team_desc', 'team_text' => 'team_text', 'custom_rank' => 'custom_rank');
ab zu

Code: Alles auswählen

	$strip_var_list = array('username' => 'username', 'confirm_code' => 'confirm_code', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests', 'realname' => 'realname', 'adress' => 'adress', 'birth' => 'birth', 'photo' => 'photo', 'slogan' => 'slogan', 'opt_title' => 'opt_title', 'opt_text' => 'opt_text', 'team_desc' => 'team_desc', 'team_text' => 'team_text', 'custom_rank' => 'custom_rank', 'devianart' => 'devianart');
wenns nicht geht: hinten beim ersten devianart den namen eintragen, den du dem feld in der templatedatei gegeben hast

//edit: so sollte es stimmen, habe gerade in deinem forum nachgesehen

Verfasst: 03.01.2005 20:30
von Gumfuzi
Super! Vielen Dank, das war's!!!
*freu*