Vacances Mod (Bin in Urlaub Mod)

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.
Benutzeravatar
phpbbaby
Mitglied
Beiträge: 255
Registriert: 15.10.2003 07:37

Vacances Mod (Bin in Urlaub Mod)

Beitrag von phpbbaby »

hallo leute,

ich habe einen mod ausgegraben welcher aber nicht richtig funzt.
vielleicht hat einer eine idee - warum er das nicht tut.
includes/usercp_register.php
#
#-----[Rechercher]--------------------------------------
#
$signature = str_replace('<br />', "\n", $signature);
#
#-----[Ajouter après]-----------------------------------
#
$vacances = ( isset($HTTP_POST_VARS['vacances']) ) ? intval ($HTTP_POST_VARS['vacances']) : 0;
#
#-----[Rechercher]--------------------------------------
#
$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 . "
#
#-----[Remplacer par]-----------------------------------
# Attention si un autre module est installé, soyeux très pointu.
#
$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 . ", user_vacances=$vacances
#
#-----[Rechercher]------------------------------------------
#
$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, ";
#
#-----[Remplacer par]-----------------------------------
# Attention si un autre module est installé, soyeux très pointu.
#
$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_vacances, 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, '$vacances',";
#
#-----[Rechercher]--------------------------------------
#
$interests = htmlspecialchars($userdata['user_interests']);
#
#-----[Ajouter après]-----------------------------------
#
$vacances=$userdata['user_vacances'];
#
#-----[Rechercher]--------------------------------------
#
display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, $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);
#
#-----[Remplacer par]-----------------------------------
# Attention si un autre module est installé, soyeux très pointu.
#
display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, $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, $vacances);
#
#-----[Rechercher]--------------------------------------
#
$smilies_status = ( $userdata['user_allowsmile'] && $board_config['allow_smilies'] ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF'];
#
#-----[Ajouter après]-----------------------------------
#
switch ($vacances)
{
case 1: $vacances_oui_checked="checked=\"checked\"";break;
case 2: $vacances_non_checked="checked=\"checked\"";break;
default:$vacances_no_specify_checked="checked=\"checked\"";
}
#
#-----[Rechercher]--------------------------------------
#
$template->assign_vars(array(
'USERNAME' => $username,
'EMAIL' => $email,
'YIM' => $yim,
'ICQ' => $icq,
'MSN' => $msn,
'AIM' => $aim,
'OCCUPATION' => $occupation,
'INTERESTS' => $interests,
#
#-----[Ajouter après]-----------------------------------
#
'LOCK_VACANCES' =>($mode!='register') ? "DISABLED":"",
'VACANCES' => $vacances,
'VACANCES_NO_SPECIFY_CHECKED' => $vacances_no_specify_checked,
'VACANCES_OUI_CHECKED' => $vacances_oui_checked,
'VACANCES_NON_CHECKED' => $vacances_non_checked,
#
#-----[Rechercher]--------------------------------------
#
'L_INTERESTS' => $lang['Interests'],
#
#-----[Ajouter après]-----------------------------------
#
'L_VACANCES' =>$lang['vacances'],
'L_VACANCES_OUI' =>$lang['oui'],
'L_VACANCES_NON' =>$lang['non'],
'L_VACANCES_NOT_SPECIFY' =>$lang['No_vacances_specify'],
#
#-----[Ouvrir]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[Rechercher]--------------------------------------
#
//
// Generate page
#
#-----[Ajouter avant]-----------------------------------
#
if ( !empty($profiledata['user_vacances']))
{
switch ($profiledata['user_vacances'])
{
case 1: $vacances=$lang['oui'];break;
case 2: $vacances=$lang['non'];break;
default:$vacances=$lang['No_vacances_specify'];
}
} else $vacances=$lang['No_vacances_specify'];
#
#-----[Rechercher]--------------------------------------
#
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : '&nbsp;',
#
#-----[Ajouter après]-----------------------------------
#
'VACANCES' => $vacances,
#
#-----[Rechercher]--------------------------------------
#
'L_INTERESTS' => $lang['Interests'],
#
#-----[Ajouter après]-----------------------------------
#
'L_VACANCES' => $lang['vacances'],
#
#-----[Ouvrir]------------------------------------------
#
includes/usercp_avatar.php
#
#-----[Rechercher]--------------------------------------
#
function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popuppm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat)
#
#-----[Remplacer par]-----------------------------------
# Attention si un autre module est installé, soyeux très pointu.
#
function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popuppm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$vacances)
#
#-----[Rechercher]--------------------------------------
#
$params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'icq', 'aim', 'msn', 'yim', 'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popuppm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat');
#
#-----[Remplacer par]-----------------------------------
# Attention si un autre module est installé, soyeux très pointu.
#
$params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'icq', 'aim', 'msn', 'yim', 'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popuppm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat', 'vacances');
#
#-----[Ouvrir]------------------------------------------
#
admin/admin_users.php
#
#-----[Rechercher]--------------------------------------
#
$interests = ( !empty($HTTP_POST_VARS['interests']) ) ? trim(strip_tags( $HTTP_POST_VARS['interests'] ) ) : '';
#
#-----[Ajouter après]-----------------------------------
#
$vacances = ( isset($HTTP_POST_VARS['vacances']) ) ? $HTTP_POST_VARS['vacances'] : 0;
#
#-----[Rechercher]--------------------------------------
#
$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_ycard+1, user_rank = $user_rank " .$avatar_sql . "
#
#-----[Remplacer par]-----------------------------------
# Attention si un autre module est installé, soyeux très pointu.
#
$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_ycard+1, user_rank = $user_rank, user_vacances = '$vacances' " .$avatar_sql . "
#
#-----[Rechercher]--------------------------------------
#
$interests = $this_userdata['user_interests'];
#
#-----[Ajouter après]-----------------------------------
#
$vacances = $this_userdata['user_vacances'];
#
#-----[Rechercher]--------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="viewemail" value="' . $viewemail . '" />';
#
#-----[Ajouter après]-----------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="vacances" value="' . $vacances . '" />';
#
#-----[Rechercher]--------------------------------------
#
//
// Let's do an overall check for settings/versions which would prevent
//
#
#-----[Ajouter avant]-----------------------------------
#
switch ($vacances)
{
case 1: $vacances_oui_checked="checked=\"checked\"";break;
case 2: $vacances_non_checked="checked=\"checked\"";break;
default:$vacances_no_specify_checked="checked=\"checked\"";
}
#
#-----[Rechercher]--------------------------------------
#
'INTERESTS' => $interests,
#
#-----[Ajouter après]-----------------------------------
#
'VACANCES' => $vacances,
'VACANCES_NO_SPECIFY_CHECKED' => $vacances_no_specify_checked,
'VACANCES_OUI_CHECKED' => $vacances_oui_checked,
'VACANCES_NON_CHECKED' => $vacances_non_checked,
#
#-----[Rechercher]--------------------------------------
#
'L_INTERESTS' => $lang['Interests'],
#
#-----[Ajouter après]-----------------------------------
#
'L_VACANCES' =>$lang['vacances'],
'L_VACANCES_OUI' =>$lang['oui'],
'L_VACANCES_NON' =>$lang['non'],
'L_VACANCES_NOT_SPECIFY' =>$lang['No_vacances_specify'],
#
#
#-----[Ouvrir]------------------------------------------
#
viewtopic.php
#
#-----[Rechercher]--------------------------------------
#
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.user_allow_viewonline, u.user_session_time, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
#
#-----[Remplacer par]-----------------------------------
# Attention si un autre module est installé, soyeux très pointu.
#
$sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_website, u.user_email, u.user_icq, u.user_aim, u.user_yim, u.user_regdate, u.user_msnm, u.user_viewemail, u.user_rank, u.user_sig, u.user_sig_bbcode_uid, u.user_avatar, u.user_avatar_type, u.user_allowavatar, u.user_allowsmile, u.user_allow_viewonline, u.user_session_time, u.user_vacances, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
#
#-----[Rechercher]--------------------------------------
#
case USER_AVATAR_GALLERY:
$poster_avatar = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $postrow[$i]['user_avatar'] . '" alt="" border="0" />' : '';
break;
}
}
#
#-----[Ajouter après]-----------------------------------
#
if ( !empty($postrow[$i]['user_vacances']))
{
switch ($postrow[$i]['user_vacances'])
{
case 1 : $poster_avatar = '<img src="'. $images['vacs'] .'" alt="" border="0" />'; break;
default : $vacances_image="";
}
}
#
#
hab hier nur die wichtigsten teile gepostet - template ist ja in dem fall noch nicht wichtig.

hab den mod eingebaut und folgende fehler sind aufgetreten:

es liess sich nicht einstellen ob man im urlaub ist oder nicht - es blieb nicht gespeichert im profil.

beim abspeichern kam dann ein db-fehler welcher in der includes/usercp_viewprofile.php sein soll.
hab leider vergessen die fehlermeldung zu kopieren - jedenfalls konnte die datenbank nicht upgedated werden.

für die was sich unter dem mod nichst vorstellen können:

wenn man im profil anhakt, man sei auf urlaub so erscheint statt dem persönlichen avatar eben ein "urlaubsavatar"

bin mal gespannt ob jemand rat weiss :)
Acid
Ehrenadmin
Beiträge: 12195
Registriert: 26.04.2001 02:00
Wohnort: Berlin

Beitrag von Acid »

Die Datenbank wurde korrekt angepasst ? Für den Hack wird ja ein zusätzliches Feld (user_vacances) in der "users" Tabelle benötigt.

Ansonsten wär´s natürlich hilfreich, die genaue Fehlermeldung zu wissen. ;)
Benutzeravatar
phpbbaby
Mitglied
Beiträge: 255
Registriert: 15.10.2003 07:37

Beitrag von phpbbaby »

hi acid :)

hier die anpassung der db
#-----[Ajouter dans la base MySQL]----------------------
#
ALTER TABLE phpbb_users ADD user_vacances TINYINT
das feld befand sich in der db :)

mit der genauen fehlermeldung kann ich im moment nicht dienen, da ich den mod wieder rausgeworfen habe :-?

baue ihn die tage wieder ein und poste die genaue fehlermeldung :)
Benutzeravatar
phpbbaby
Mitglied
Beiträge: 255
Registriert: 15.10.2003 07:37

Beitrag von phpbbaby »

ah moment-hab die meldung noch im browser entdeckt :grin:

Could not update users table

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax near ' user_timezone = 1, user_dateformat = 'd.m.Y, H:i', user_lang = 'german', user_s' at line 2

UPDATE 1_wcl_users SET user_email = 'xxx@xxxxx, user_icq = '', user_website = '', user_occ = '', user_from = '', user_interests = '', user_sig = '', user_sig_bbcode_uid = '', user_viewemail = 1, user_aim = '', user_yim = '', user_msnm = '', user_attachsig = 0, user_allowsmile = 0, user_allowhtml = 0, user_allowbbcode = 1, user_allow_viewonline = 1, user_notify = 0, user_notify_pm = 1, user_popup_pm = , user_timezone = 1, user_dateformat = 'd.m.Y, H:i', user_lang = 'german', user_style = 2, user_active = 1, user_actkey = '', user_vacances = 0 WHERE user_id = 2

Line : 460
File : /usr/local/httpd/htdocs/xxxx/xxxx/xxxx/includes/usercp_register.php
Benutzeravatar
Firestarter
Mitglied
Beiträge: 1162
Registriert: 09.06.2003 15:21

Beitrag von Firestarter »

kann ich mal den Hack als Downloadlink bekommen ? der interessiert mich schon, gibt es den Hack auch mit einer englischen Installanleitung ?
MfG
Firestarter
Auch ich versuche mein Glück und möchte ein schönes Forum haben, dafür muss ich wohl erstmal leiden. *fg*
Acid
Ehrenadmin
Beiträge: 12195
Registriert: 26.04.2001 02:00
Wohnort: Berlin

Beitrag von Acid »

@phpbbaby
Suche mal in diesem UPDATE-Bereich in der usercp_register.php (ca. Zeile 455) nach user_popup_pm = $popuppm und ersetze es mit user_popup_pm = $popup_pm .
Benutzeravatar
phpbbaby
Mitglied
Beiträge: 255
Registriert: 15.10.2003 07:37

Beitrag von phpbbaby »

hi acid :)

hab den mod nochmal eingebaut, aber nicht laut anleitung komplett den sql befehl ersetzt sondern nur was für vacances ausschlaggebend ist und siehe da es funktionierte auf den ersten blick.

die freude war aber verfrüht, es kann sich nun keiner mehr registrieren - bei bestehenden accounts funktioniert der mod .

folgende fehlermeldung kam bei einer reg. :
Could not insert data into users table

DEBUG MODE

SQL Error : 1136 Column count doesn't match value count at row 1

INSERT INTO test_users (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 (4, 'tester', 1074138999, '069059b7ef840f0c74a814ec9237b6ec', 'webmaster@irgendwas.at', '', '', '', '', '', '', '', '', 0, 0, '', '', '', 1, 1, 0, 1, 1, 0, 1, 1, 1, 'd.m.Y, H:i', 'german', 2, 0, 1,'0', 1, '')

Line : 536
File : /usr/local/httpd/htdocs/xxxx/xxxx/xxxx/includes/usercp_register.php
bin ehrlichgesagt überfragt wo da das problem steckt :-?

was mich wundert ist, dass bei der fehlermeldung nirgendwo user_vacances steht - liegt vielleicht auch daran weil man die option "bin im urlaub" ja/nein erst anhaken muss - also es ist weder bei ja oder nein ein punkt.
obwohl die variablen wären ja da für "keine angaben" fehlt dann nur im templates bereich, welches das geringere problem darstellt :lol:

hab natürlich auch probiert mit der option ja oder nein bei der reg., aber kommt genauso eine fehlermeldung :x


@firestarter

ich weiss nicht mehr wo ich ihn gefunden habe, fakt ist - er funktioniert nicht auf anhieb lt. einbauanleitung

sollte ich das ding zum laufen bringen poste ich hier den gesamten code natürlich - eventuell sogar in deutsch :lol:
Benutzeravatar
Firestarter
Mitglied
Beiträge: 1162
Registriert: 09.06.2003 15:21

Beitrag von Firestarter »

@phpbbaby,

THX. Aber auf englisch reicht es mir auch.
MfG
Firestarter
Auch ich versuche mein Glück und möchte ein schönes Forum haben, dafür muss ich wohl erstmal leiden. *fg*
Acid
Ehrenadmin
Beiträge: 12195
Registriert: 26.04.2001 02:00
Wohnort: Berlin

Beitrag von Acid »

phpbbaby hat geschrieben:was mich wundert ist, dass bei der fehlermeldung nirgendwo user_vacances steht - liegt vielleicht auch daran weil man die option "bin im urlaub" ja/nein erst anhaken muss - also es ist weder bei ja oder nein ein punkt.
..nee das liegt daran, das user_vacances in der Feld-Zeile fehlt. :lol: Die value-Zeile hat einen Eintrag mehr als die Feld-Zeile, daher nehme ich mal an, das in der value-Zeile das Gegenstück zu user_vacances eingetragen wurde. :roll:
Benutzeravatar
phpbbaby
Mitglied
Beiträge: 255
Registriert: 15.10.2003 07:37

Beitrag von phpbbaby »

ups.. du könntest mal deine usercp_register.php als *.txt hierher verlinken.
Ich hab aus Versehen deinen Beitrag editiert, anstatt zu Antworten. :roll:

Acid
Antworten

Zurück zu „phpBB 2.0: Mod Support“