Author Topic: Profil erweitern  (Read 128014 times)

0 Members and 1 Guest are viewing this topic.

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: Profil erweitern
« Reply #30 on: December 22, 2005, 05:52:45 PM »
... im ACP->Board hast du Signatur erlauben eingestellt ... ?
... wird denn in deinem Board die Signatur angezeigt ... ?

Hallo,
ja wird alles angezeigt.

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: Profil erweitern
« Reply #31 on: December 22, 2005, 06:19:39 PM »
Das waren meine Schritte:

1. db_field_definitions.php

$additional_user_fields['user_signature'] = array($lang['user_signature'], "text", 0);

2. page_header.php

  "lang_signature" => $lang['signature'],

3. detail.php

$sql = "SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, c.comment_ip, c.comment_date".get_user_table_field(", u.", "user_level").get_user_table_field(", u.", "user_name").get_user_table_field(", u.", "user_email").get_user_table_field(", u.", "user_showemail").get_user_table_field(", u.", "user_invisible").get_user_table_field(", u.", "user_joindate").get_user_table_field(", u.", "user_lastaction").get_user_table_field(", u.", "user_comments").get_user_table_field(", u.", "user_homepage").get_user_table_field(", u.", "user_icq").get_user_table_field(", u.", "user_signature").$additional_sql.", u.userpic
         FROM ".COMMENTS_TABLE." c


3.a.

     elseif ($is_image_owner) {
        $admin_links .= ($config['user_edit_comments'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=editcomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= ($config['user_delete_comments'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=removecomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['delete']."</a>";
      }

     $signature = format_text($comment_row[$i]['user_signature'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']);
      if ($boardconfig['alow_sig'] == 1) {
      $sig = '<br><br>' . $signature ;
       } else {
      $sig = "";
       }

      $site_template->register_vars(array(
       "comment_id" => $comment_row[$i]['comment_id'],
      "lang_comments_per_page" => $lang['comments_per_page'],

3.b.

        "comment_user_ip" => $comment_user_ip,
      "comment_sig" => $sig,   
   "comment_userpic" => ($config['userpic'] && $comment_row[$i]['us


4. comment_bit.html

</table>
    <hr size="1" />
    {comment_text}
-{comment_sig}-  </td>
</tr>

Das wars soweit, in der db gibt es ja durch das board schon das feld user_signature

Grüße Darkness


Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Profil erweitern
« Reply #32 on: December 22, 2005, 06:21:03 PM »
... dein sql-query endet ohne " ...
... ").$additional_sql.", u.userpic ...
... das solltest du mal wieder richtig sortieren ... schau in dein Backup deiner detail.php ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: Profil erweitern
« Reply #33 on: December 22, 2005, 06:32:04 PM »
... dein sql-query endet ohne " ...
... ").$additional_sql.", u.userpic ...
... dein , u.userpic pack mal nach vorne hinter , c.comment_ip ...

So ?

  $sql = "SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, c.comment_ip, u.userpic, c.comment_date".get_user_table_field(", u.", "user_level").get_user_table_field(", u.", "user_name").get_user_table_field(", u.", "user_email").get_user_table_field(", u.", "user_showemail").get_user_table_field(", u.", "user_invisible").get_user_table_field(", u.", "user_joindate").get_user_table_field(", u.", "user_lastaction").get_user_table_field(", u.", "user_comments").get_user_table_field(", u.", "user_homepage").get_user_table_field(", u.", "user_icq").get_user_table_field(", u.", "user_signature").$additional_sql."
         FROM ".COMMENTS_TABLE." c
 
Zeigt aber nix an

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Profil erweitern
« Reply #34 on: December 22, 2005, 06:38:59 PM »
... ohne die Board-Option hast du auch schon ausprobiert ... ?
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: Profil erweitern
« Reply #35 on: December 22, 2005, 06:44:33 PM »
... ohne die Board-Option hast du auch schon ausprobiert ... ?

ja grade zeigt auch nix an

$signature = format_text($comment_row[$i]['user_signature'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']);
$sig = '<br><br>' . $signature ;

wenn ich das nehme, dann verdoppelt er bei jedem aufruf der detail.php den letzten eintrag

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Profil erweitern
« Reply #36 on: December 22, 2005, 06:54:37 PM »
... tausche mal : "comment_sig" => $sig,
... gegen dieses aus : "comment_sig" => "<br><br>hier sollte die Signatur sein",
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: Profil erweitern
« Reply #37 on: December 22, 2005, 06:58:34 PM »
Habe ich gemacht und der Text wird auch in den kommentaren als Sig angezeigt

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: Profil erweitern
« Reply #38 on: December 29, 2005, 09:59:50 PM »
i've tried make it work and this not show the signature on comments , here is my code :

Code: [Select]
//-----------------------------------------------------
//--- Show Comments -----------------------------------
//-----------------------------------------------------
if ($image_allow_comments == 1) {
if (isset($HTTP_POST_VARS['commentsetperpage']) || isset($HTTP_GET_VARS['commentsetperpage'])) {
$commentsetperpage = (intval($HTTP_POST_VARS['commentsetperpage']) ) ? intval($HTTP_POST_VARS['commentsetperpage']) : intval($HTTP_GET_VARS['commentsetperpage']);
if ($commentsetperpage) {
   $site_sess->set_session_var("commentperpage", $commentsetperpage);
   $session_info['commentperpage'] = $commentsetperpage;
}
}

if (isset($session_info['commentperpage'])) {
$commentperpage = $session_info['commentperpage'];
}
else {
$commentperpage = 20;
}
$commentsperpage_dropdown = "\n<select name=\"commentsetperpage\" onchange=\"if (this.options[this.selectedIndex].value != 0){ forms['commentsperpage'].submit() }\" class=\"select\">\n";
for($i = 1; $i <= 20; $i++) {
$setvalue = 1 * $i;
$commentsperpage_dropdown .= "<option value=\"".$setvalue."\"";
   if ($setvalue == $commentperpage) {
   $commentsperpage_dropdown .= " selected=\"selected\"";
}
$commentsperpage_dropdown .= ">";
$commentsperpage_dropdown .= $setvalue;
$commentsperpage_dropdown .= "</option>\n";
}
$commentsperpage_dropdown .= "</select>\n";

$site_template->register_vars("commentsperpage_dropdown", $commentsperpage_dropdown);
$commentsperpage_dropdown_form = $site_template->parse_template("commentsperpage_dropdown_form");
$site_template->register_vars("commentsperpage_dropdown_form", $commentsperpage_dropdown_form);

 $sql = "SELECT COUNT(image_id) AS comments
     FROM ".COMMENTS_TABLE."
     WHERE image_id = $image_id";
$result = $site_db->query_firstrow($sql);
$site_db->free_result();
$num_comments = $result['comments'];
if ($action == "postcomment") {
$page = ceil($num_comments / $commentperpage);
}
$num_rows_all = (isset($num_comments)) ? $num_comments : 0;
$link_arg = $site_sess->url(ROOT_PATH."details.php?image_id=$image_id");
include(ROOT_PATH.'includes/paging.php');
$getpaging = new Paging($page, $commentperpage, $num_rows_all, $link_arg, $lang['comment_stats'], "comments");
$offset = $getpaging->get_offset();
$site_template->register_vars(array(
"paging" => $getpaging->get_paging(),
"paging_stats" => ($num_comments) ? $getpaging->get_paging_stats() : ""
));
 $additional_sql = "";
 if (!empty($additional_user_fields)) {
   $table_fields = $site_db->get_table_fields(USERS_TABLE);
   foreach ($additional_user_fields as $key => $val) {
     if (isset($HTTP_POST_VARS[$key]) && isset($table_fields[$key])) {
       $additional_sql .= ", $key = '".un_htmlspecialchars(trim($HTTP_POST_VARS[$key]))."'";
     }
   }
 }
  $additional_sql = "";
  if (!empty($additional_user_fields)) {
    $table_fields = $site_db->get_table_fields(USERS_TABLE);
    foreach ($additional_user_fields as $key => $val) {
      if (isset($table_fields[$key])) {
        $additional_sql .= ", u.$key";
      }
    }
  }
  $sql = "SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, c.comment_ip, u.userpic, c.comment_date".get_user_table_field(", u.", "user_level").get_user_table_field(", u.", "user_name").get_user_table_field(", u.", "user_signature").get_user_table_field(", u.", "user_email").get_user_table_field(", u.", "user_showemail").get_user_table_field(", u.", "user_invisible").get_user_table_field(", u.", "user_joindate").get_user_table_field(", u.", "user_lastaction").get_user_table_field(", u.", "user_comments").get_user_table_field(", u.", "user_homepage").get_user_table_field(", u.", "user_icq").get_user_table_field(", u.", "user_id").get_user_table_field(", u.", "user_signature").$additional_sql."
         FROM ".COMMENTS_TABLE." c
         LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id")." = c.user_id)
         WHERE c.image_id = $image_id
         ORDER BY c.comment_date ASC
         LIMIT $offset, $commentperpage";
 $result = $site_db->query($sql);
  $comment_row = array();
  while ($row = $site_db->fetch_array($result)) {
    $comment_row[] = $row;
  }
  $site_db->free_result($result);
  $num_comments = sizeof($comment_row);

  if (!$num_comments) {
    $comments = "<tr><td class=\"commentrow1\" colspan=\"2\">".$lang['no_comments']."</td></tr>";
  }
  else {
    $comments = "";
    $bgcounter = 0;
    for ($i = 0; $i < $num_comments; $i++) {
      $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;

      $comment_user_email = "";
      $comment_user_email_save = "";
      $comment_user_mailform_link = "";
      $comment_user_email_button = "";
      $comment_user_homepage_button = "";
      $comment_user_icq_button = "";
      $comment_user_profile_button = "";
      $comment_user_status_img = REPLACE_EMPTY;
      $comment_user_name = htmlspecialchars($comment_row[$i]['comment_user_name']);
      $comment_user_info = $lang['userlevel_guest'];

      $comment_user_id = $comment_row[$i]['user_id'];

      if (isset($comment_row[$i][$user_table_fields['user_name']]) && $comment_user_id != GUEST) {
        $comment_user_name = htmlspecialchars($comment_row[$i][$user_table_fields['user_name']]);
       

        $comment_user_profile_link = !empty($url_show_profile) ? $site_sess->url(preg_replace("/{user_id}/", $comment_user_id, $url_show_profile)) : $site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$comment_user_id);
        $comment_user_profile_button = "<a href=\"".$comment_user_profile_link."\"><img src=\"".get_gallery_image("profile.gif")."\" border=\"0\" alt=\"".$comment_user_name."\" /></a>";

        $comment_user_status_img = ($comment_row[$i][$user_table_fields['user_lastaction']] >= (time() - 300) && ((isset($comment_row[$i][$user_table_fields['user_invisible']]) && $comment_row[$i][$user_table_fields['user_invisible']] == 0) || $user_info['user_level'] == ADMIN)) ? "<img src=\"".get_gallery_image("user_online.gif")."\" border=\"0\" alt=\"Online\" />" : "<img src=\"".get_gallery_image("user_offline.gif")."\" border=\"0\" alt=\"Offline\" />";

        $comment_user_homepage = (isset($comment_row[$i][$user_table_fields['user_homepage']])) ? format_url($comment_row[$i][$user_table_fields['user_homepage']]) : "";
        if (!empty($comment_user_homepage)) {
          $comment_user_homepage_button = "<a href=\"".$comment_user_homepage."\" target=\"_blank\"><img src=\"".get_gallery_image("homepage.gif")."\" border=\"0\" alt=\"".$comment_user_homepage."\" /></a>";
        }

        $comment_user_icq = (isset($comment_row[$i][$user_table_fields['user_icq']])) ? $comment_row[$i][$user_table_fields['user_icq']] : "";
        if (!empty($comment_user_icq)) {
          $comment_user_icq_button = "<a href=\"http://wwp.icq.com/scripts/search.dll?to=".$comment_user_icq."\" target=\"_blank\"><img src=\"http://web.icq.com/whitepages/online?icq=".$comment_user_icq."&img=5\" width=\"18\" height=\"18\" border=\"0\" alt=\"".$comment_user_icq."\" /></a>";
        }

        if (!empty($comment_row[$i][$user_table_fields['user_email']]) && (!isset($comment_row[$i][$user_table_fields['user_showemail']]) || (isset($comment_row[$i][$user_table_fields['user_showemail']]) && $comment_row[$i][$user_table_fields['user_showemail']] == 1))) {
          $comment_user_email = $comment_row[$i][$user_table_fields['user_email']];
          $comment_user_email_save = str_replace("@", " at ", $comment_row[$i][$user_table_fields['user_email']]);
          if (!empty($url_mailform)) {
            $comment_user_mailform_link = $site_sess->url(preg_replace("/{user_id}/", $comment_user_id, $url_mailform));
          }
          else {
            $comment_user_mailform_link = $site_sess->url(ROOT_PATH."member.php?action=mailform&amp;".URL_USER_ID."=".$comment_user_id);
          }
          $comment_user_email_button = "<a href=\"".$comment_user_mailform_link."\"><img src=\"".get_gallery_image("email.gif")."\" border=\"0\" alt=\"".$comment_user_email_save."\" /></a>";
        }

        if (!isset($comment_row[$i][$user_table_fields['user_level']]) || (isset($comment_row[$i][$user_table_fields['user_level']]) && $comment_row[$i][$user_table_fields['user_level']] == USER)) {
          $comment_user_info = $lang['userlevel_user'];
        }
        elseif ($comment_row[$i][$user_table_fields['user_level']] == ADMIN) {
          $comment_user_info = $lang['userlevel_admin'];
        }
elseif ($comment_row[$i][$user_table_fields['user_level']] == SPAMKING) {
          $comment_user_info = $lang['userlevel_spamking'];
        }

        $comment_user_info .= "<br />";
        $comment_user_info .= (isset($comment_row[$i][$user_table_fields['user_joindate']])) ? "<br />".$lang['join_date']." ".format_date($config['date_format'], $comment_row[$i][$user_table_fields['user_joindate']]) : "";
        $comment_user_info .= (isset($comment_row[$i][$user_table_fields['user_comments']])) ? "<br />".$lang['comments']." ".$comment_row[$i][$user_table_fields['user_comments']] : "";
      }

      $comment_user_ip = ($user_info['user_level'] == ADMIN) ? $comment_row[$i]['comment_ip'] : "";

      $admin_links = "";
      if ($user_info['user_level'] == ADMIN) {
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=editcomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."admin/index.php?goto=".urlencode("comments.php?action=removecomment&amp;comment_id=".$comment_row[$i]['comment_id']))."\" target=\"_blank\">".$lang['delete']."</a>";
      }
      elseif ($is_image_owner) {
        $admin_links .= ($config['user_edit_comments'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=editcomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['edit']."</a>&nbsp;";
        $admin_links .= ($config['user_delete_comments'] != 1) ? "" : "<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=removecomment&amp;".URL_COMMENT_ID."=".$comment_row[$i]['comment_id'])."\">".$lang['delete']."</a>";
      }
       $signature = format_text($comment_row[$i]['user_signature'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']);
      if ($boardconfig['alow_sig'] == 1) {
      $sig = '<br><br>' . $signature ;
       } else {
      $sig = "";
       }
      $site_template->register_vars(array(
        "comment_id" => $comment_row[$i]['comment_id'],
        "lang_comments_per_page" => $lang['comments_per_page'],
        "lang_pm" => ($user_info['user_id'] != $comment_row[$i]['user_id'] && $user_info['user_level'] >= USER && $comment_row[$i]['user_id'] >= USER) ? "<a href=\"".$site_sess->url(ROOT_PATH."pms.php?action=reply&user_id=".$comment_row[$i]['user_id'])."\" alt=\"".$lang['pms_user_pm_alt']."\">".$lang['pms_user_pm']."</a>" : "",
        "comment_user_id" => $comment_user_id,
        "comment_user_status_img" => $comment_user_status_img,
        "comment_user_name" => $comment_user_name,
        "comment_user_info" => $comment_user_info,
        "comment_user_profile_button" => $comment_user_profile_button,
        "comment_user_email" => $comment_user_email,
        "comment_user_email_save" => $comment_user_email_save,
        "comment_user_mailform_link" => $comment_user_mailform_link,
        "comment_user_email_button" => $comment_user_email_button,
        "comment_user_homepage_button" => $comment_user_homepage_button,
        "comment_user_icq_button" => $comment_user_icq_button,
        "comment_user_ip" => $comment_user_ip,
        "comment_sig" => $sig,
        "comment_userpic" => ($config['userpic'] && $comment_row[$i]['userpic']) ? ROOT_PATH."data/userpic/".$comment_row[$i]['userpic'] : "",
                "comment_headline" => format_text($comment_row[$i]['comment_headline'], 0, $config['wordwrap_comments'], 0, 0, 1, 1),
        "comment_text" => format_text($comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1 , 1),
        "comment_date" => format_date($config['date_format']." ".$config['time_format'], $comment_row[$i]['comment_date']),
        "row_bg_number" => $row_bg_number,
        "admin_links" => $admin_links
      ));
      $comments .= $site_template->parse_template("comment_bit");
    } // end while
  } //end else
  $site_template->register_vars("comments", $comments);
  unset($comments);


Db Fields ....:

Code: [Select]
$additional_user_fields['user_signature'] = array($lang['user_signature'], "text", 0);
all correctly ...  8O



Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: Profil erweitern
« Reply #39 on: January 03, 2006, 07:59:20 PM »
Hi,

da bei mir die Signatur nicht ging aus dem Bord, habe ich mir eine alternative dazu gebastet, erst ein DB Fild anlegen, ich habe es hier
"user_full" genannt. (wird hier im Thema auf der ersten Seite erklärt)

Die sieht so aus und funktioniert (z.Z. leider nur mit Texteinträgen)

---------------------------------------------------------------------------------------------
since with me the signature did not go out of the board, has I an alternative to it gebastet, only railways a Fild to put on, I had called it here "user_full" (here in the topic on the first side avowedly) Those looks in such a way and functions (at present unfortunately only with text entries)
---------------------------------------------------------------------------------------------


1. detail.php
   finde:

 
Code: [Select]
    $comment_user_name = htmlspecialchars($comment_row[$i]['comment_user_name']);

gleich danach folgendes einsetzten:

     
Code: [Select]
  $comment_user_full = htmlspecialchars($comment_row[$i]['user_full']);

   finde:

          
    
Code: [Select]
  $site_template->register_vars(array(
    "comment_id" => $comment_row[$i]['comment_id'],


gleich darüber folgendes einsetzten:

    
Code: [Select]
        if (isset($comment_row[$i][$user_table_fields['user_full']]) && $comment_user_id != GUEST) {
        $comment_user_full = htmlspecialchars($comment_row[$i][$user_table_fields['user_full']]);
}



    finde:
 
Code: [Select]

$sql = "SELECT c.comment_id, c.image_id, c.user_id, c.user_name AS comment_user_name, c.comment_headline, c.comment_text, c.comment_ip, u.userpic, u.[color=Red]user_full[/color], c.comment_date".get_user_table_field(", u.", "user_level").get_user_table_field(", u.", "user_name").get_user_table_field(", u.", "user_email").get_user_table_field(", u.", "user_showemail").get_user_table_field(", u.", "user_invisible").get_user_table_field(", u.", "user_joindate").get_user_table_field(", u.", "user_lastaction").get_user_table_field(", u.", "user_comments").get_user_table_field(", u.", "user_homepage").get_user_table_field(", u.", "user_icq").get_user_table_field(", u.", "user_id").get_user_table_field(", u.", "user_full").$additional_sql."
         FROM ".COMMENTS_TABLE." c
         LEFT JOIN ".USERS_TABLE." u ON (".get_user_table_field("u.", "user_id[color=Red]").get_user_table_field(", u.", "user_full")[/color]." = c.user_id)


dort die rot gekennzeichneten Zelle einfügen
 
finde:

     
Code: [Select]
    "comment_user_ip" => $comment_user_ip,

gleich darunter einfügen:

   
Code: [Select]
      "comment_user_full" => $comment_user_full,

2. comment_bit.html:

finde:
 
Code: [Select]
{comment_user_info}

alles ersetzten bis :

 
Code: [Select]
<td class="commentrow{row_bg_number}">
    {comment_user_status_img}
    {comment_user_profile_button}


mit:

 
Code: [Select]
<table width="100%" border="0">
<tr>
<td class="kbalken"></td>
</tr>
<tr>
        <td class="row1">{comment_text}</td>
</tr>
<tr>
<td class="kbalken"></td>
</tr>
<tr>
<td class="row1" valign="bottom"><sub class="titel">{comment_user_full}</sub></td>
</tr></table>

[b][color=Blue]3. member_editprofile.html[/color][/b]

<tr>
            <td class="row2"><b>{lang_full}</b></td>
            <td class="row2">
              <input type="text" name="user_full"  size="30" value="{user_full}" class="input" />
            </td>
          </tr>


dort einsetzten wo Ihr wollt.

Grüße Darkness

Ps: Frohes neues Jahr <Happy new Year>  :mrgreen:



Offline Chicco

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • The Picture World
Re: Profil erweitern
« Reply #40 on: January 17, 2006, 11:10:47 AM »
Also ich habe mich nun strik an die Anleitung gehalten. Der einzige Unterschied ist, das ich nicht die Tabelle in der Datenbnak bei "4images_users" reingesetz habe sondern unter "allmyphp_user". So heisst es zumindest in meiner Datenbank und ich habe dies nicht geändert.

Auf jeden Fall kann ich zwar member_editform diese zusätzlichen, neuen Daten eingeben, aber sie werden nicht in meine Datenbank übernommen!!! Ich bekomme aber auch keine Fehlermeldung! Was ist da los???


Wissen ist MACHT! Nix zu wissen macht aber auch nix! ;-)

Gruß
Ch¿cco

Offline Chicco

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • The Picture World
Re: Profil erweitern
« Reply #41 on: January 17, 2006, 11:44:26 AM »
Okay, ich bin so blöd!!!!! :oops: :oops: :roll: :?
Da ich gestern noch was anderes programmiert habe und somit mit einer anderen Datenbank, habe ich ganz in Gedanken auch heute mit dieser Datenbank gearbeitet und nicht mit der für die Galerie! Kein Wunder das nichts eingetragen wurde! :lol:

Jetzt funtzt alles prima!

Doch nur noch eine Frage: Wenn ich nun möchte, das ein user auch ein kleines Passbildchen von sich in seinem Profil veröffentlichen kann: Was muss ich wo dafür tun?


Wissen ist MACHT! Nix zu wissen macht aber auch nix! ;-)

Gruß
Ch¿cco

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: Profil erweitern
« Reply #42 on: January 17, 2006, 12:51:37 PM »
Quote
Doch nur noch eine Frage: Wenn ich nun möchte, das ein user auch ein kleines Passbildchen von sich in seinem Profil veröffentlichen kann: Was muss ich wo dafür tun?

Nach Member Personal Photo suchen!
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Chicco

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • The Picture World
Re: Profil erweitern
« Reply #43 on: January 17, 2006, 01:18:08 PM »
Prima! Danke . Funtzt auch bisher alles. Noch eine Frage: (trau mich schon gar nicht mehr zu fragen):
Ich möchte gerne, das der User per Drowndown-Menü im "member_editform" oder im "register_form" seine Fotokenntnisse angeben kann.

Wie kann ich diese Abfrage machen? Denn immer wenn dann das Kontrollzentrum wieder neu geladen wird, steht bei dem Dropdownmenü nicht das drin, was als letztes gewählt wurde, sondern die oberstes Zeile von der <option>-form. Bei dem Feld eMail oder Fullname usw. stehen ja auch die Daten drin, welche zuvor mal gemacht wurden. Wie erreiche ich dies in einem Dropdownfeld??

hier der Code, welche ich bisher benutze:
Code: [Select]
      <tr>
            <td class="row2"><b>{lang_fotograf}</b></td>
            <td class="row2"><select name="user_fotograf" size=1>
<option>
<option>Anfänger
<option>Amateur
<option>Profi</select>
          </td>
          </tr>

Kann ich irgendwie die Funktion value="{user_fotograf}" dabei verwenden?


Wissen ist MACHT! Nix zu wissen macht aber auch nix! ;-)

Gruß
Ch¿cco

Offline Darkness2001

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • photo-galerie-online
Re: Profil erweitern
« Reply #44 on: January 17, 2006, 09:39:32 PM »
Prima! Danke . Funtzt auch bisher alles. Noch eine Frage: (trau mich schon gar nicht mehr zu fragen):
Ich möchte gerne, das der User per Drowndown-Menü im "member_editform" oder im "register_form" seine Fotokenntnisse angeben kann.

Wie kann ich diese Abfrage machen? Denn immer wenn dann das Kontrollzentrum wieder neu geladen wird, steht bei dem Dropdownmenü nicht das drin, was als letztes gewählt wurde, sondern die oberstes Zeile von der <option>-form. Bei dem Feld eMail oder Fullname usw. stehen ja auch die Daten drin, welche zuvor mal gemacht wurden. Wie erreiche ich dies in einem Dropdownfeld??

hier der Code, welche ich bisher benutze:
Code: [Select]
      <tr>
            <td class="row2"><b>{lang_fotograf}</b></td>
            <td class="row2"><select name="user_fotograf" size=1>

Hallo,

es gibt hier ein Thema wo Du das finden kannst. Es ist ganz einfach das Userbild in die Member zu bekommen.
Mußt mal suchen.

Grüße Darkness  :mrgreen:
<option>
<option>Anfänger
<option>Amateur
<option>Profi</select>
          </td>
          </tr>

Kann ich irgendwie die Funktion value="{user_fotograf}" dabei verwenden?