Modifizeiren von wemasterbucket

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
marcelhp
Mitglied
Beiträge: 3
Registriert: 15.08.2007 00:24

Modifizeiren von wemasterbucket

Beitrag von marcelhp »

Hi.ich habe den webmasterbucket style udn möchte gerne fürs Profiel noch ein Feld(über icq)haben,wo Man seine Klasser einträgt.Dies soll dann acuh unter Mitgliederliste angezeig werden.Wie muss ich das genau machen?ich hab profiel_add_body,profiele_view_body und lang_main.php als wichtig asugemacht.Indem ich in add body einfach Klase reinschreieb taucht das dort zwar auf,aber beim reggen nicht und in der Mitgliederliste leider auch nicht.
ich denk mal ich muss das hier bearbeiten
<tr>
<td class="row1"><span class="gen">{L_XXX}Klasse:</span></td>
<td class="row2">
<input type="text" name="xxx" class="post" style="width: 100px" size="10" maxlength="15" value="{xxx}" />
</td>

http://marcelhp.lima-city.de/forum/prof ... greed=true
hier zeigt er zwar Klasse an aber im profiel(http://marcelhp.lima-city.de/forum/prof ... rofile&u=3) zb nur ":"
und unter Mitgliederliste gar nichts.

würde mich über Hilfe sehr freuen.
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17476
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Beitrag von Dr.Death »

Hallo,

schau Dir mal diesen MOD an..... dort wird erklärt was man alles ändern muss.

Anpassung von Profil/Registrierung
marcelhp
Mitglied
Beiträge: 3
Registriert: 15.08.2007 00:24

Beitrag von marcelhp »

jetz hab ich das nach den anleitung gemacht,aber es kommt beim reggen


was ist mit
#-----[ SQL ]-------------------------------------------
#
# Folgender Query muss über phpmyadmin ausgeführt werden (Prefix anpassen)..

ALTER TABLE phpbb_users ADD user_info VARCHAR(255) AFTER user_interests;

# Wenn man mehrere Felder hinzufügt/ändert, muss man den obigen Query duplizieren und
# den Feldnamen "user_info" anpassen.

gemient?ich hab beim installieren meine datenbank daten angegeben??


Could not insert data into users table

DEBUG MODE

INSERT INTO phpbb_users (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_klasse, 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 (11, '8768', 1187191949, '827ccb0eea8a706c4c34a16891f84e7b', '567657q@aol.de', '', '', '', '', '', '11', '', '', '', 0, 0, '', '', '', 1, 1, 0, 1, 1, 0, 1, 1, 2, 'D M d, Y g:i a', 'german', 4, 0, 1, 1, '')

Line : 648
File : usercp_register.php

das finde ich da
$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_klasse, 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("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $klasse) . "', '" . 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, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
{
$user_actkey = gen_rand_string(true);
$key_len = 54 - (strlen($server_url));
$key_len = ( $key_len > 6 ) ? $key_len : 6;
$user_actkey = substr($user_actkey, 0, $key_len);
$sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
}

Could not update users table

DEBUG MODE

SQL Error : 1054 Unknown column 'user_klasse' in 'field list'

UPDATE phpbb_users SET user_email = 'web89@gmx.de', user_icq = '', user_website = 'http://marcelhp.lima-city.de', user_occ = 'Schüler', user_from = 'Kirchhellen', user_interests = '', user_klasse = '77', user_sig = '', user_sig_bbcode_uid = '', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = '', user_attachsig = 0, user_allowsmile = 1, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 1, user_popup_pm = 1, user_timezone = 2, user_dateformat = 'd M Y h:i a', user_lang = 'german', user_style = 4, user_active = 1, user_actkey = '' WHERE user_id = 2

Line : 531
File : usercp_register.php
$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_klasse = '" . str_replace("\'", "''", $klasse) . "', 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_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 . "
WHERE user_id = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
[/quote]
Antworten

Zurück zu „phpBB 2.0: Mod Support“