Author Topic: Problem beim speichern von Userinfos  (Read 7035 times)

0 Members and 1 Guest are viewing this topic.

Offline Jako

  • Newbie
  • *
  • Posts: 46
    • View Profile
Problem beim speichern von Userinfos
« on: November 13, 2005, 10:44:09 PM »
Hab ein paar neue Felder wie Sternzeichen, Geschlecht, Land und Über mich erstellt

das Problem ist jetzt das sich die meisten Felder erst abspeichern lassen nachdem auch im Punkt Über mich etwas steht...

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Problem beim speichern von Userinfos
« Reply #1 on: November 13, 2005, 10:49:07 PM »
Ich poliere mal meine Glaskulgel... *ggg*

Sorry aber ohne mehr Infos können wir dir nicht helfen, den woher sollen wir wissen was du falsch gemacht hast ohne Fehlermeldung und ohne Code?

Offline Jako

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: Problem beim speichern von Userinfos
« Reply #2 on: November 13, 2005, 10:54:46 PM »
http://www.partymetropole.de/jako

Testaccount: User=Test3 Passwort=test3

Das ist der Code meines edit_prfile templates

Code: [Select]
{lang_edit_profile_msg}<br />
<form method="post" action="{url_member}" enctype="multipart/form-data">
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td valign="top" class="head1">
        <table width="100%" border="0" cellpadding="4" cellspacing="0">
          <tr>
            <td colspan="2" valign="top" class="head1">{lang_profile_of} {user_name}</td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_email}</b></td>
            <td class="row1">
              <input type="text" name="user_email"  size="30" value="{user_email}" class="input" />
            </td>
          </tr>
          <tr>
            <td class="row2"><b>{lang_email_confirm}</b></td>
            <td class="row2">
              <input type="text" name="user_email2"  size="30" value="{user_email2}" class="input" />
            </td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_user_country}</b></td>
            <td class="row1">{user_country_dropdown} </td>
          </tr>
          <tr>
            <td class="row2"><b>{lang_user_gender}</b></td>
            <td class="row2">&nbsp;<b>{user_gender_dropdown}&nbsp;</b>&nbsp;<img src="{template_url}/images/{user_gender}.gif"></td>
          </tr>
          <tr>
            <td class="row2"><b>{lang_user_single}</b></td>
            <td class="row2">{user_single_dropdown}</td>
          </tr>
          <tr>
            <td class="row2"><b>{lang_user_stern}</b></td>
            <td class="row2">{user_stern_dropdown}</td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_show_email}</b></td>
            <td class="row1">
              <input type="radio" name="user_showemail" value="1"{user_showemail_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="user_showemail" value="0"{user_showemail_no} />
              {lang_no}</td>
          </tr>
          <tr>
            <td class="row2"><b>{lang_allow_emails}</b></td>
            <td class="row2">
              <input type="radio" name="user_allowemails" value="1"{user_allowemails_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="user_allowemails" value="0"{user_allowemails_no} />
              {lang_no} </td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_invisible}</b></td>
            <td class="row1">
              <input type="radio" name="user_invisible" value="1"{user_invisible_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="user_invisible" value="0"{user_invisible_no} />
              {lang_no} </td>
          </tr>
          <tr>
            <td class="row2"><b>{lang_user_pm_email}</b></td>
            <td class="row2">
              <input type="radio" name="user_pm_email" value="1"{user_pm_email_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="user_pm_email" value="0"{user_pm_email_no} />
              {lang_no} </td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_user_pm_popup}</b></td>
            <td class="row1">
              <input type="radio" name="user_pm_popup" value="1"{user_pm_popup_yes} />
              {lang_yes}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="user_pm_popup" value="0"{user_pm_popup_no} />
              {lang_no} </td>
          </tr>
          <tr>
            <td colspan="2" class="head1">{lang_optional_infos}</td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_homepage}</b></td>
            <td class="row1">
              <input type="text" name="user_homepage"  size="30" value="{user_homepage}" class="input" />
            </td>
          </tr>
          <tr>
            <td class="row2"><b>{lang_icq}</b></td>
            <td class="row2">
              <input type="text" name="user_icq"  size="30" value="{user_icq}" class="input" />
            </td>
          </tr>
  <tr>
            <td class="row2"><b>{lang_user_about}</b></td>
            <td class="row2">
              <textarea name="user_about" cols="50" class="input">{user_about}</textarea>
            </td>
          </tr>
          {if userpic_allowed}
          <tr>
            <td class="row1" valign="top"><b>{lang_userpic}</b> <SPAN class="smalltext">
              <br />
              <B>{lang_userpic_upload}</B> </SPAN> </td>
            <td class="row1">
              <INPUT type="file" name="userpic_file"  size="30" class="input" />
              <br />
              {if userpic_img}<img src="{userpic_img}"><br />
              <input type="checkbox" name="userpic_del" value="1">
              &nbsp;{lang_userpic_del}{endif userpic_img} </TD>
          </TR>
          {endif userpic_allowed}
        </table>
      </td>
    </tr>
  </table>
  <input type="hidden" name="action" value="updateprofile" />
  <p align="center">
    <input type="submit" value="{lang_save}" class="button" />
    <input type="reset" value="{lang_reset}" class="button" />
  </p>
</form>
<br />
<form method="post" action="{url_member}" enctype="multipart/form-data">
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr>
      <td valign="top" class="head1">
        <table width="100%" border="0" cellpadding="4" cellspacing="0">
          <tr>
            <td colspan="2" valign="top" class="head1">{lang_change_password}</td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_old_password}</b></td>
            <td class="row1"><input type="password" name="current_user_password" size="30" class="input" /></td>
          </tr>
          <tr>
            <td class="row2"><b>{lang_new_password}</b></td>
            <td class="row2"><input type="password" name="user_password" size="30" class="input" /></td>
          </tr>
          <tr>
            <td class="row1"><b>{lang_new_password_confirm}</b></td>
            <td class="row1"><input type="password" name="user_password2" size="30" class="input" /></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <input type="hidden" name="action" value="updatepassword" />
  <p align="center">
    <input type="submit" value="{lang_change_password}" class="button" />
    <input type="reset" value="{lang_reset}" class="button" />
  </p>
</form>

Irgendwie schaffs ichs nicht es hinzukriegen das man die Punkte einzeln ändern kann.

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Problem beim speichern von Userinfos
« Reply #3 on: November 13, 2005, 11:00:15 PM »
also es reicht natürlich nicht das du die sachen nur in die Templates einträgst und wenn Du das getan hast wird es 100% nicht gehen und wenn Du noch mehr modifiziert hast brauchen wir natürlich auch den code...

es werden nur icq und homepage nicht gespeichert das sehe ich richtig oder?

Offline Jako

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: Problem beim speichern von Userinfos
« Reply #4 on: November 13, 2005, 11:04:31 PM »
na gut das ist id db_fields datei


Code: [Select]
<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: db_field_definitions.php                             *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.1                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
if (!defined('ROOT_PATH')) {
  die(
"Security violation");
}

/* ------------------------------------------------------------------------
If you want to add additional fields in order to store more info on
each image or user, set up these fields by inserting a column to the "4images_images"
or "4images_users" table in your database.

If you add an additional image field and allow upload from the gallery, 
add the columns to "4images_images_temp" as well.

Add one line for each new column in the following format:

  $additional_image_fields['%column_name%'] = array("%field_description%", "%admin_field_type%", %is_required%);
or
  $additional_user_fields['%column_name%'] = array("%field_description%", "%admin_field_type%", %is_required%);
  
At the bottom of this file, you will find examples for adding a new field.

----------
%column_name% string

  Replace %column_name% with name of the table column.
  You can use the tag {%column_name%} in the templates to display the value of the
  database field.
  If you want to add a textfield to the templates, do this such like:
  
    <input type="text" name="%column_name%" value="{%column_name%}" />

----------
%field_description% string

  Replace %field_description% with a custom name. This name will be displayed in the Control Panel.
  The value can be displayed in the templates with the tag {lang_%column_name%}.
  It is also recommended to add this tag to the language files (main.php) and to replace "%field_description%"
  with $lang['%column_name%'].

----------
%admin_field_type% string

  Replace %admin_field_type% with the type of input field you would like to use in your
  Control Panel.

  You can use the following formats:

   "text"
     will display an input field type="text".

   "textarea"
     will display a textarea.

   "radio"
     will display radio buttons with Yes/No options.
     Please make sure that the database field type is an integer (for example: "tinyint(1)").
     You can use this field tag for conditional statements in your templates:

     {if %column_name%} Some text {endif %column_name%}

----------
%is_required% bool

  Sets up the field as required when adding data through the Control Panel or the user upload form.

------------------------------------------------------------------------ */

// Example for additional image fields:
//$additional_image_fields['image_photographer'] = array($lang['image_photographer'], "text", 1);

// Example for additional user fields
//$additional_user_fields['user_adress'] = array($lang['user_adress'], "text", 1);
$additional_user_fields['userpic'] = array($lang['userpic'], "text"0);

$var = array("------------",
"---Africa---",
"Ethiopia",
"Somalia",
"South Africa",
"Other",
"---Middle East---",
"Egypt",
"Iran",
"Israel",
"Kuwait",
"Lebanon",
"Morocco",
"Saudi Arabia",
"Syria",
"Turkey",
"U. A. Emirates",
"Other",
"---Asia---",
"Armenia",
"Bangladesh",
"Cambodia",
"China",
"India",
"Indonesia",
"Japan",
"Malaysia",
"Myanmar",
"Nepal",
"Pakistan",
"Philippines",
"Singapore",
"South Korea",
"Sri Lanka",
"Taiwan",
"Thailand",
"Uzbekistan",
"Vietnam",
"Other",
"---Europe---",
"Albania",
"Austria",
"Belarus",
"Belgium",
"Bosnia",
"Bulgaria",
"Croatia",
"Cyprus",
"Czech Rep.",
"Denmark",
"Estonia",
"Finland",
"France",
"Germany",
"Greece",
"Hungary",
"Iceland",
"Ireland",
"Italy",
"Latvia",
"Liechtenstein",
"Lithuania",
"Luxembourg",
"Macedonia",
"Malta",
"Monaco",
"Netherlands",
"Norway",
"Poland",
"Portugal",
"Romania",
"Russia",
"Slovakia",
"Slovenia",
"Spain",
"Sweden",
"Switzerland",
"Ukraine",
"United Kingdom",
"Other",
"Australia",
"Australia",
"New Zealand",
"Other",
"---Latin America---",
"Costa Rica",
"Cuba",
"El Salvador",
"Guatemala",
"Haiti",
"Jamaica",
"Mexico",
"Panama",
"Other",
"---North America---",
"Canada",
"USA",
"Other",
"---South America---",
"Argentina",
"Bolivia",
"Brazil",
"Chile",
"Colombia",
"Ecuador",
"Paraguay",
"Peru",
"Suriname",
"Uruguay",
"Venezuela",
"Other"
);
$additional_user_fields['user_country'] = array($lang['user_country'], "dropdown"0$var0001);
$additional_user_fields['user_gender'] = array($lang['user_gender'], "dropdown"0, array("n" => "---","b" => "Bisex""m" => "Male""w" => "Female"), 1000);
$additional_user_fields['user_single'] = array($lang['user_single'], "dropdown"0, array("Single" => "Single","vergeben" => "vergeben""offen für alles" => "offen für alles""sag ich nicht" => "sag ich nicht"), 1000);
$var = array("------------",
"Steinbock",
"Wassermann",
"Fische",
"Widder",
"Stier",
"Zwilling",
"Krebs",
"Löwe",
"Jungfrau",
"Waage",
"Skorpion",
"Schütze");
$additional_user_fields['user_stern'] = array($lang['user_stern'], "dropdown"0$var0001);

$additional_user_fields['user_pm_inbox'] = array($lang['pm_user_inbox'], "text"0); 
$additional_user_fields['user_pm_sentbox'] = array($lang['pm_user_sentbox'], "text"0); 
$additional_user_fields['user_pm_email'] = array($lang['pm_email'], "radio"0); 
$additional_user_fields['user_pm_popup'] = array($lang['pm_popup'], "radio"0);

$additional_user_fields['user_about'] = array($lang['user_about'], "text"1);
 
?>

das ist das profile template

Code: [Select]
<table width="630" border="0" cellspacing="0" cellpadding="1">
  <tr>
    <td valign="top" class="head1" width="310">
      <div align="center"><img src="{userpic_img}"> </div>
    </td>
    <td valign="top" class="head1" width="320">
      <table width="100%" border="0" cellpadding="4" cellspacing="0">
        <tr>
          <td valign="top" class="head1">&nbsp;</td>
          <td valign="top" class="head1" >{lang_pm}</td>
        </tr>
        <tr>
          <td valign="top" class="head1">{lang_profile_of} {user_name}</td>
          <td valign="top" class="head1" ><a href="{url_show_user_images}" class="head1">{lang_show_user_images}</a></td>
        </tr>
        <tr>
          <td class="row1"><b>{lang_join_date}</b></td>
          <td class="row1">{user_join_date}</td>
        </tr>
        <tr>
          <td class="row2"><b>{lang_last_action}</b></td>
          <td class="row2">{user_last_action}</td>
        </tr>
        <tr>
          <td class="row1"><b>{lang_comments}</b></td>
          <td class="row1">{user_comments}</td>
        </tr>
        <tr>
          <td class="row2"><b>{lang_email}</b></td>
          <td class="row2">{if user_email}<a href="{user_mailform_link}">{user_email_save}</a>{endif
            user_email}</td>
        </tr>
        <tr>
          <td class="row2"width="40%"><b>{lang_user_country}</b></td>
          <td class="row2">{user_country}</td>
        </tr>
        <tr>
          <td class="row2" width="21%"><b>{lang_user_gender}</b></td>
          <td class="row2" width="77%">&nbsp;<img src="{template_url}/images/{user_gender}.gif"></td>
        </tr>
        <tr>
          <td class="row2" width="21%"><b>{lang_user_single}</b></td>
          <td class="row2" width="77%">{user_single}</td>
        </tr>
        <tr>
          <td class="row2"><b>{lang_user_stern}</b></td>
          <td class="row2">{user_stern}</td>
        </tr>
        <tr>
          <td class="row1"><b>{lang_homepage}</b></td>
          <td class="row1">{if user_homepage}<a href="{user_homepage}" target="_blank">{user_homepage}</a>{endif
            user_homepage}</td>
        </tr>
        <tr>
          <td class="row2"><b>{lang_icq}</b></td>
          <td class="row2">{if user_icq}<a href="http://wwp.icq.com/scripts/search.dll?to={user_icq}">{user_icq}</a>
            (<b>{user_icq_status}</b>){endif user_icq}</td>
        </tr>
        <tr>
          <td class="row2"><b>{lang_user_about}</b></td>
          <td class="row2">{user_about}</td>
        </tr>
        {if userpic_img} {endif userpic_img}
      </table>
    </td>
  </tr>
</table>

und die sqltabellen hab ich auch alle erstellt

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Problem beim speichern von Userinfos
« Reply #5 on: November 13, 2005, 11:09:42 PM »
es werden nur icq und homepage nicht gespeichert das sehe ich richtig oder?

Offline Jako

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: Problem beim speichern von Userinfos
« Reply #6 on: November 13, 2005, 11:12:13 PM »
hm... irgendwie bin ich grad verwirrt.

nach einer bestimmten zeit kann doch alles ändern einstellen. Seltsam als ich einen Testaccout erstellt hab gabs da noch Probleme und jetzt scheint es funktionieren...

hm... seltsam

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Problem beim speichern von Userinfos
« Reply #7 on: November 13, 2005, 11:16:38 PM »
einfach mal ein auge drauf halten und ansonsten nochmal melden... (o:

Offline Jako

  • Newbie
  • *
  • Posts: 46
    • View Profile
Re: Problem beim speichern von Userinfos
« Reply #8 on: November 13, 2005, 11:23:27 PM »
ah jetzt hab ich den fehler gefunden.

hatte eingestellt das das felde über mich ausfüllt werden muss.

deshalb hats es die anderen einstellungen auch immer erst danach abgespeichert.

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Problem beim speichern von Userinfos
« Reply #9 on: November 13, 2005, 11:26:33 PM »
Na dann ist ja alles in Butter... (o: