avatar einfügen

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • avatar einfügen

    Halli hallo @ all, ich benutze das ilch script und

    hab folgendes Problem. Ich wollte das forum Modul Ilchbb_forumMod installieren, dies hab ich auch getan....damals wurde das forum avatar aus dem hauptbild gezogen und dem entsprechend angezeigt im forum, nun musste ich die show_posts ersetzen und gewisse andere datein. fehler sind keine, außer das dat avatar nicht mehr angezeigt wird....wie gesagt, damals vom hauptbild, jetzt(keine ahnung)

    bin mir sicher das es an der show_posts liegt, hier mal meine alte:

    PHP-Quellcode

    1. <?php
    2. # Copyright by: Manuel Staechele
    3. # Support: www.ilch.de
    4. defined ('main') or die ( 'no direct access' );
    5. # check ob ein fehler aufgetreten ist.
    6. check_forum_failure($forum_failure);
    7. # toipc als gelesen markieren
    8. $_SESSION['forumSEE'][$fid][$tid] = time();
    9. $title = $allgAr['title'].' :: Forum :: '.$aktTopicRow['name'].' :: Beitr&auml;ge zeigen';
    10. $hmenu = $extented_forum_menu.'<a class="smalfont" href="index.php?forum">Forum</a><b> &raquo; </b>'.aktForumCats($aktForumRow['kat']).'<b> &raquo; </b><a class="smalfont" href="index.php?forum-showtopics-'.$fid.'">'.$aktForumRow['name'].'</a><b> &raquo; </b>';
    11. $hmenu .= $aktTopicRow['name'].$extented_forum_menu_sufix;
    12. $design = new design ( $title , $hmenu, 1);
    13. $design->header();
    14. # Topic Hits werden eins hochgesetzt.
    15. db_query('UPDATE `prefix_topics` SET hit = hit + 1 WHERE id = "'.$tid.'"');
    16. # mehrere seiten fals gefordert
    17. $limit = $allgAr['Fpanz']; // Limit
    18. $page = ($menu->getA(3) == 'p' ? $menu->getE(3) : 1 );
    19. $MPL = db_make_sites ($page , "WHERE tid = ".$tid , $limit , 'index.php?forum-showposts-'.$tid , 'posts' );
    20. $anfang = ($page - 1) * $limit;
    21. $antworten = '';
    22. if (($aktTopicRow['stat'] == 1 AND $forum_rights['reply'] == TRUE) OR ($_SESSION['authright'] <= '-7' OR $forum_rights['mods'] == TRUE)) {
    23. $antworten = '<b>[ <a href="index.php?forum-newpost-'.$tid.'">'.$lang['answer'].'</a> ]</b>';
    24. }
    25. $class = 'Cmite';
    26. $tpl = new tpl ( 'forum/showpost' );
    27. $ar = array (
    28. 'SITELINK' => $MPL,
    29. 'tid' => $tid,
    30. 'ANTWORTEN' => $antworten,
    31. 'TOPICNAME' => $aktTopicRow['name']
    32. );
    33. $tpl->set_ar_out($ar,0);
    34. $i = $anfang +1;
    35. $ges_ar = array ('wurstegal', 'maennlich', 'weiblich');
    36. $erg = db_query("SELECT prefix_user.id as uid,geschlecht, prefix_posts.id,txt,time,erstid,erst,sig,posts FROM `prefix_posts` LEFT JOIN prefix_user ON prefix_posts.erstid = prefix_user.id WHERE tid = ".$tid." ORDER BY time LIMIT ".$anfang.",".$limit);
    37. while($row = db_fetch_assoc($erg)) {
    38. $class = ( $class == 'Cnorm' ? 'Cmite' : 'Cnorm' );
    39. if($row['uid'] != ''){
    40. $avatar2 = @db_result(db_query("SELECT endung FROM prefix_usergallery WHERE uid = ".$row['uid']." AND votebild = 1"),0);
    41. $avatar1 = @db_result(db_query("SELECT id FROM prefix_usergallery WHERE uid = ".$row['uid']." AND votebild = 1"),0);
    42. $gesch = @db_result(db_query("SELECT geschlecht FROM prefix_user WHERE id = ".$row['uid']),0);
    43. }else{
    44. $gesch = 0;
    45. $avatar2 = '';
    46. }
    47. if($avatar2 == ''){
    48. $row['avatar'] = '<br><img src="include/images/avatars/'.$ges_ar[$gesch].'.jpg" width="80" height="80" alt="User Pic" border="0">';
    49. }elseif($avatar1 != '' AND $avatar2 != ''){
    50. $row['avatar'] = '<br><img src="include/images/usergallery/img_'.$avatar1.'.'.$avatar2.'" width="80" height="80" alt="User Pic" border="0">';
    51. }
    52. # define some vars.
    53. $row['sig'] = ( empty($row['sig']) ? '' : '<br><hr style="width: 50%;" align="left">'.bbcode($row['sig']) );
    54. $row['TID'] = $tid;
    55. $row['class'] = $class;
    56. $row['date'] = date ('d.m.Y - H:i:s', $row['time'] );
    57. $row['delete'] = '';
    58. $row['change'] = '';
    59. $row['rang'] = userrang ($row['posts'],$row['erstid']);
    60. $row['txt'] = (isset($_GET['such']) ? markword(bbcode ($row['txt']),$_GET['such']) : bbcode ($row['txt']) );
    61. $row['i'] = $i;
    62. $row['page'] = $page;
    63. $text = explode(" ",$row['txt']);
    64. $row['txt'] = '';
    65. foreach($text as $wort){
    66. $row['txt'] .= chunk_split( $wort, 63, " " )." ";
    67. }
    68. if ( $row['posts'] != 0 ) {
    69. $row['erst'] = '<a href="index.php?user-details-'.$row['erstid'].'"><b>'.$row['erst'].'</b></a>';
    70. } elseif ( $row['erstid'] != 0 ) {
    71. $row['rang'] = 'gel&ouml;schter User';
    72. }
    73. if ($forum_rights['mods'] == TRUE AND $i>1) {
    74. $row['delete'] = '<a href="index.php?forum-delpost-'.$tid.'-'.$row['id'].'">'.$lang['delete'].'</a>';
    75. }
    76. if ( $forum_rights['reply'] == TRUE AND loggedin() ) {
    77. $row['change'] = '&nbsp;<a href="index.php?forum-editpost-'.$tid.'-'.$row['id'].'">'.$lang['change'].'</a>';
    78. }
    79. $row['posts'] = ($row['posts']?'<br>Posts: '.$row['posts']:'').'<br>';
    80. $tpl->set_ar_out($row,1);
    81. $i++;
    82. }
    83. $tpl->set_ar_out( array ( 'SITELINK' => $MPL, 'ANTWORTEN' => $antworten ) , 2 );
    84. if (loggedin()) {
    85. if ($menu->get(3) == 'topicalert') {
    86. if (1 == db_result(db_query("SELECT COUNT(*) FROM prefix_topic_alerts WHERE uid = ".$_SESSION['authid']." AND tid = ".$tid),0)) {
    87. db_query("DELETE FROM prefix_topic_alerts WHERE uid = ".$_SESSION['authid']." AND tid = ".$tid);
    88. } else {
    89. db_query("INSERT INTO prefix_topic_alerts (tid,uid) VALUES (".$tid.", ".$_SESSION['authid'].")");
    90. }
    91. }
    92. echo 'Optionen:';
    93. if (1 == db_result(db_query("SELECT COUNT(*) FROM prefix_topic_alerts WHERE uid = ".$_SESSION['authid']." AND tid = ".$tid),0)) {
    94. echo '<br>- <a href="index.php?forum-showposts-'.$tid.'-topicalert">'.$lang['nomailonreply'].'</a><br>';
    95. } else {
    96. echo '<br>- <a href="index.php?forum-showposts-'.$tid.'-topicalert">'.$lang['mailonreply'].'</a><br>';
    97. }
    98. }
    99. if ( $forum_rights['mods'] == TRUE ) {
    100. $tpl->set ( 'status', ($aktTopicRow['stat'] == 1 ? $lang['close'] : $lang['open'] ) );
    101. $tpl->set ( 'festnorm', ($aktTopicRow['art'] == 0 ? $lang['fixedtopic'] : $lang['normaltopic'] ) );
    102. $tpl->set('tid',$tid);
    103. $tpl->out(3);
    104. }
    105. $design->footer();
    106. ?>
    Alles anzeigen
  • weiter wegen der grenze von 10000 zeichen^^

    und hier mal die neue:

    PHP-Quellcode

    1. <?php
    2. # Copyright by: Manuel Staechele
    3. # Support: www.ilch.de
    4. defined ('main') or die ( 'no direct access' );
    5. # check ob ein fehler aufgetreten ist.
    6. check_forum_failure($forum_failure);
    7. # toipc als gelesen markieren
    8. $_SESSION['forumSEE'][$fid][$tid] = time();
    9. $title = $allgAr['title'].' :: Forum :: '.$aktTopicRow['name'].' :: Beitr&auml;ge zeigen';
    10. $hmenu = $extented_forum_menu.'<a class="smalfont" href="index.php?forum">Forum</a><b> &raquo; </b>'.aktForumCats($aktForumRow['kat']).'<b> &raquo; </b><a class="smalfont" href="index.php?forum-showtopics-'.$fid.'">'.$aktForumRow['name'].'</a><b> &raquo; </b>';
    11. $hmenu .= $aktTopicRow['name'].$extented_forum_menu_sufix;
    12. $design = new design ( $title , $hmenu, 1);
    13. $design->header();
    14. # Topic Hits werden eins hochgesetzt.
    15. db_query('UPDATE `prefix_topics` SET hit = hit + 1 WHERE id = "'.$tid.'"');
    16. $erg = db_query("SELECT fid FROM `prefix_posts` WHERE tid = ".$tid);
    17. $row = db_fetch_assoc($erg);
    18. $newth = '<a href="index.php?forum-newtopic-'.$row['fid'].'"><img src="include/images/forum/newth.png" border="0"></a>';
    19. # mehrere seiten fals gefordert
    20. $limit = $allgAr['Fpanz']; // Limit
    21. $page = ($menu->getA(3) == 'p' ? $menu->getE(3) : 1 );
    22. $MPL = db_make_sites ($page , "WHERE tid = ".$tid , $limit , 'index.php?forum-showposts-'.$tid , 'posts' );
    23. $anfang = ($page - 1) * $limit;
    24. $antworten = '';
    25. if (($aktTopicRow['stat'] == 1 AND $forum_rights['reply'] == TRUE) OR ($_SESSION['authright'] <= '-7' OR $forum_rights['mods'] == TRUE)) {
    26. $antworten = '<a href="index.php?forum-newpost-'.$tid.'"><img src="include/images/forum/antw.png" border="0"></a>';
    27. }
    28. $class = 'Cmite';
    29. $tpl = new tpl ( 'forum/showpost' );
    30. $ar = array (
    31. 'SITELINK' => $MPL,
    32. 'tid' => $tid,
    33. 'ANTWORTEN' => $antworten,
    34. 'TOPICNAME' => $aktTopicRow['name'],
    35. 'HMENU' => $hmenu,
    36. 'NEWTH' => $newth
    37. );
    38. $tpl->set_ar_out($ar,0);
    39. $i = $anfang +1;
    40. $ges_ar = array ('wurstegal', 'maennlich', 'weiblich');
    41. ##################################
    42. #Forenmod by matthias-schlich.de - Vorlage von Benjamin Rau
    43. #Posts
    44. $erg = db_query("SELECT geschlecht, prefix_posts.id,txt,time,erstid,erst,sig,icq,avatar,posts FROM `prefix_posts` LEFT JOIN prefix_user ON prefix_posts.erstid = prefix_user.id WHERE tid = ".$tid." ORDER BY time LIMIT ".$anfang.",".$limit);
    45. while($row = db_fetch_assoc($erg)) {
    46. $class = ( $class == 'Cnorm' ? 'Cmite' : 'Cnorm' );
    47. $icq1 = str_replace("-","",$row['icq']);
    48. $icq2 = str_replace(" ","",$icq1);
    49. // icq abfrage
    50. // 0 - keine ICQ abfrage
    51. // 1 - ICQ standartbilder bei &design= kann man zwischen den 26 verschiedenen icq bildern wechseln
    52. // 2 - für eigne ICQ Statsubilder
    53. $own_pics = "1";
    54. $icqdesign = "25";
    55. if ($own_pics == "1") {
    56. if (is_numeric($icq2) ){
    57. $row['icq'] = '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$icq2.'&action=add"><img src="http://web.icq.com/whitepages/online?web='.$icq2.'&img='.$icqdesign.'" border="0"></a>';
    58. } else {$row['icq'] = '';}
    59. }
    60. elseif ($own_pics == "0"){
    61. $row['icq'] = '';}
    62. else{
    63. if (is_numeric($icq2) ){
    64. // Eigene ICQ-Bilder
    65. $status = (icq_status($icq2));
    66. if ($status == "1"){
    67. $row['icq'] = '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$icq2.'&action=add"><img src="include/images/forum/icqonline.png" border="0"></a>';
    68. }elseif ($status == "0"){
    69. $row['icq'] = '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$icq2.'&action=add"><img src="include/images/forum/icqoffline.png" border="0"></a>';
    70. }elseif ($status == "2"){
    71. $row['icq'] = '<a href="http://www.icq.com/whitepages/cmd.php?uin='.$icq2.'&action=add"><img src="include/images/forum/icqinactive.png" border="0"></a>';
    72. }else {$row['icq'] = '';}
    73. }else {$row['icq'] = '';}
    74. }
    75. # define some vars.
    76. $row['sig'] = ( empty($row['sig']) ? '' : '<br /><hr style="width: 50%;" align="left">'.bbcode($row['sig']) );
    77. $row['TID'] = $tid;
    78. $row['class'] = $class;
    79. $row['date'] = date ('d.m.Y - H:i:s', $row['time'] );
    80. $row['delete'] = '';
    81. $row['change'] = '';
    82. if (file_exists($row['avatar'])) { $row['avatar'] = '<br /><br /><img src="'.$row['avatar'].'" alt="User Pic" border="0" /><br />'; }
    83. elseif ($allgAr['forum_default_avatar']) { $row['avatar'] = '<br /><br /><img src="include/images/avatars/'.$ges_ar[$row['geschlecht']].'.jpg" alt="User Pic" border="0" /><br />'; }
    84. else { $row['avatar'] = ''; }
    85. $row['rang2'] = userrang ($row['posts'],$row['erstid']);
    86. $rank_name = $row['rang2'];
    87. $row['txt'] = (isset($_GET['such']) ? markword(bbcode ($row['txt']),$_GET['such']) : bbcode ($row['txt']) );
    88. $row['i'] = $i;
    89. if ( $row['erstid'] != '' ) {
    90. $user_row = db_fetch_assoc(db_query("SELECT posts,regist FROM prefix_user WHERE id = ".$row['erstid']));
    91. $posts = $row['posts'];
    92. $row['posts'] = 'Beiträge: '.$row['posts'].'<br />';
    93. if ( $posts == '' ) { $row['posts'] = '<br>Nicht registriert';}
    94. #Ranking Balken
    95. #Grafiken definieren
    96. $rank_01 = '<img src="include/images/forum/rank/rank01.png" alt="" border="0"><br>';
    97. $rank_02 = '<img src="include/images/forum/rank/rank02.png" alt="" border="0"><br>';
    98. $rank_03 = '<img src="include/images/forum/rank/rank03.png" alt="" border="0"><br>';
    99. $rank_04 = '<img src="include/images/forum/rank/rank04.png" alt="" border="0"><br>';
    100. $rank_05 = '<img src="include/images/forum/rank/rank05.png" alt="" border="0"><br>';
    101. #Bezugnehmen auf das Ranking des users
    102. if ( $row['posts'] != '' ) {
    103. $row['rang'] = $rank_name.'<br>';
    104. if ($posts <= '200') { $row['rang'] .= $rank_01; }
    105. elseif ($posts <= '500') { $row['rang'] .= $rank_02;}
    106. elseif ($posts <= '800') { $row['rang'] .= $rank_03; }
    107. elseif ($posts < '1000') { $row['rang'] .= $rank_04; }
    108. elseif ($posts >= '1000') { $row['rang'] .= $rank_05; }
    109. }
    110. else {$row['rang'] .= ""; }
    111. }
    112. #User Details
    113. if ( $posts != '' ) {
    114. $abf1 = 'SELECT * FROM prefix_user where id = '.$row["erstid"];
    115. $erg1 = db_query($abf1);
    116. $user = db_fetch_object($erg1);
    117. $zeit = date('d. M Y',$user->regist);
    118. $llogin = date('d. M Y',$user->llogin);
    119. $ort = $user->wohnort;
    120. $www = $user->homepage;
    121. $email = $user->opt_mail;
    122. $pm = $user->opt_pm;
    123. $land = $user->staat;
    124. #Flagge
    125. if ($land != '')
    126. {$row['land'] = '<img src="include/images/flags/'.$land.'" >';}
    127. else{$row['land'] = '';}
    128. #Dabei seit
    129. $row['details'] = "<br><br>Dabei seit: ".$zeit."<br>";
    130. #Wohnort
    131. if ($ort != ''){$row['details'] .= "Wohnort: ".$ort."<br>";}
    132. #Homepage
    133. if ($www != ''){$row['www'] = '<a href="'.$www.'" target="_blank"><img src="include/images/forum/www.png" border="0" alt="Website des Users besuchen"></a>';}
    134. else{$row['www'] = '';}
    135. #Letzter Login
    136. $row['details'] .= "Letzter Login: ".$llogin."<br>";
    137. #PM
    138. if ($pm == '1'){
    139. $row['pm'] = "<a href='?forum-privmsg-new=0&empfid=".$row['erstid']."'><img src='include/images/forum/pm.png' border='0' alt='Private Nachricht an den User senden'></a>";
    140. }else{$row['pm'] = '';}
    141. #email
    142. if ($email == '1'){
    143. $row['email'] = "<a href='?user-mail-".$row['erstid']."'><img src='include/images/forum/email.png' border='0' alt='E-Mail an den User senden'></a>";
    144. }else{$row['email'] = '';}
    145. }
    146. else {
    147. $row['details'] = "";
    148. $row['land'] = '';
    149. $row['pm'] = '';
    150. $row['email'] = '';
    151. $row['www'] = '';
    152. }
    153. if ( $posts != '' ) {
    154. #User Online o Offline
    155. $abf1 = "SELECT * FROM prefix_online where uid = ".$row['erstid'];
    156. $erg1 = db_query($abf1);
    157. $status = db_fetch_object($erg1);
    158. if ($status->uid == $row['erstid']) {
    159. $row['online'] = '&nbsp;<img src="include/images/forum/uonline.png" border="0">'; }
    160. else {
    161. $row['online'] = '&nbsp;<img src="include/images/forum/uoffline.png" border="0">'; }
    162. }
    163. else {$row['online'] = '';}
    Alles anzeigen
  • musste jetzt den code trennen ;( sry leute

    Quellcode

    1. #
    2. #Edit Ende
    3. ##################################
    4. $row['page'] = $page;
    5. if ( $row['posts'] != 0 ) {
    6. $row['erst'] = '<a href="index.php?user-details-'.$row['erstid'].'"><b>'.$row['erst'].'</b></a>';
    7. }
    8. elseif ( $row['erstid'] == 0 ) {
    9. $row['rang'] = 'gel&ouml;schter User';
    10. }
    11. if ($forum_rights['mods'] == TRUE AND $i>1) {
    12. $row['delete'] = '<a href="index.php?forum-delpost-'.$tid.'-'.$row['id'].'">'.$lang['delete'].'</a>';
    13. }
    14. if ( $forum_rights['reply'] == TRUE AND loggedin() ) {
    15. $row['change'] = '&nbsp;<a href="index.php?forum-editpost-'.$tid.'-'.$row['id'].'">'.$lang['change'].'</a>';
    16. }
    17. $row['posts'] = ($row['posts']?'<br />'.$row['posts']:'').'<br />';
    18. $tpl->set_ar_out($row,1);
    19. $i++;
    20. }
    21. $tpl->set_ar_out( array ( 'SITELINK' => $MPL, 'ANTWORTEN' => $antworten ) , 2 );
    22. // anfang qpost
    23. if (loggedin()) {
    24. $dppk_time = time();
    25. $time = time();
    26. if (!isset($_SESSION['klicktime'])) { $_SESSION['klicktime'] = 0; }
    27. $topic = '';
    28. $txt = '';
    29. $xnn = '';
    30. if (isset($_POST['txt_qp'])) {
    31. $txt = trim(escape($_POST['txt_qp'], 'textarea'));
    32. }
    33. $tpl = new tpl ('forum/qpost');
    34. $ar = array (
    35. 'txt_qp' => escape_for_fields(unescape($txt)),
    36. 'tid' => $tid,
    37. );
    38. $tpl->set_ar_out($ar,1);
    39. if (($_SESSION['klicktime'] + 150) > $dppk_time OR empty($txt) OR !empty($_POST['priview']) OR (empty($_POST['Gname']) AND !loggedin())) {
    40. }
    41. else
    42. {
    43. # save qpost
    44. $_SESSION['klicktime'] = $dppk_time;
    45. $design = new design ( $title , $hmenu, 1);
    46. $design->header();
    47. if (loggedin()) {
    48. $uid = $_SESSION['authid'];
    49. $erst = escape($_SESSION['authname'],'string');
    50. db_query("UPDATE `prefix_user` set posts = posts+1 WHERE id = ".$uid);
    51. } else {
    52. $erst = $xnn;
    53. $uid = 0;
    54. }
    55. db_query ("INSERT INTO `prefix_posts` (tid,fid,erst,erstid,time,txt) VALUES ( ".$tid.", ".$fid.", '".$erst."', ".$uid.", ".$time.", '".$txt."')");
    56. $pid = db_last_id();
    57. db_query("UPDATE `prefix_topics` SET last_post_id = ".$pid.", rep = rep + 1 WHERE id = ".$tid);
    58. db_query("UPDATE `prefix_forums` SET posts = posts + 1, last_post_id = ".$pid." WHERE id = ".$fid );
    59. $page = ceil ( ($aktTopicRow['rep']+1) / $allgAr['Fpanz'] );
    60. # topic als gelesen markieren
    61. $_SESSION['forumSEE'][$fid][$tid] = time();
    62. wd ( array (
    63. $lang['backtotopic'] => 'index.php?forum-showposts-'.$tid.'-p'.$page.'#'.$pid,
    64. $lang['backtotopicoverview'] => 'index.php?forum-showtopics-'.$fid
    65. ) , $lang['createpostsuccessful'] , 3 );
    66. }
    67. }
    68. $tpl = new tpl ( 'forum/showpost' );
    69. // end qpost
    70. if (loggedin()) {
    71. if ($menu->get(3) == 'topicalert') {
    72. if (1 == db_result(db_query("SELECT COUNT(*) FROM prefix_topic_alerts WHERE uid = ".$_SESSION['authid']." AND tid = ".$tid),0)) {
    73. db_query("DELETE FROM prefix_topic_alerts WHERE uid = ".$_SESSION['authid']." AND tid = ".$tid);
    74. } else {
    75. db_query("INSERT INTO prefix_topic_alerts (tid,uid) VALUES (".$tid.", ".$_SESSION['authid'].")");
    76. }
    77. }
    78. echo 'Optionen:';
    79. if (1 == db_result(db_query("SELECT COUNT(*) FROM prefix_topic_alerts WHERE uid = ".$_SESSION['authid']." AND tid = ".$tid),0)) {
    80. echo '<br />- <a href="index.php?forum-showposts-'.$tid.'-topicalert">'.$lang['nomailonreply'].'</a><br />';
    81. } else {
    82. echo '<br />- <a href="index.php?forum-showposts-'.$tid.'-topicalert">'.$lang['mailonreply'].'</a><br />';
    83. }
    84. }
    85. if ( $forum_rights['mods'] == TRUE ) {
    86. $tpl->set ( 'status', ($aktTopicRow['stat'] == 1 ? $lang['close'] : $lang['open'] ) );
    87. $tpl->set ( 'festnorm', ($aktTopicRow['art'] == 0 ? $lang['fixedtopic'] : $lang['normaltopic'] ) );
    88. $tpl->set('tid',$tid);
    89. $tpl->out(3);
    90. }
    91. $design->footer();
    92. ?>
    Alles anzeigen






    nun steht da recht viel mit avatar und weiß nicht genau, welchen eintrag ich ändern muss, damit das avatar wieder vom hauptbild bezogen wird.

    ich habe jetzt mal aus der neuen schow_post das hier:

    Quellcode

    1. f (file_exists($row['avatar'])) { $row['avatar'] = '<br /><br /><img src="'.$row['avatar'].'" alt="User Pic" border="0" /><br />'; }
    2. elseif ($allgAr['forum_default_avatar']) { $row['avatar'] = '<br /><br /><img src="include/images/avatars/'.$ges_ar[$row['geschlecht']].'.jpg" alt="User Pic" border="0" /><br />'; }
    3. else { $row['avatar'] = ''; }


    mit dem aus der alten, dass hier:

    Quellcode

    1. if($row['uid'] != ''){
    2. $avatar2 = @db_result(db_query("SELECT endung FROM prefix_usergallery WHERE uid = ".$row['uid']." AND votebild = 1"),0);
    3. $avatar1 = @db_result(db_query("SELECT id FROM prefix_usergallery WHERE uid = ".$row['uid']." AND votebild = 1"),0);
    4. $gesch = @db_result(db_query("SELECT geschlecht FROM prefix_user WHERE id = ".$row['uid']),0);
    5. }else{
    6. $gesch = 0;
    7. $avatar2 = '';
    8. }
    9. if($avatar2 == ''){
    10. $row['avatar'] = '<br><img src="include/images/avatars/'.$ges_ar[$gesch].'.jpg" width="80" height="80" alt="User Pic" border="0">';
    11. }elseif($avatar1 != '' AND $avatar2 != ''){
    12. $row['avatar'] = '<br><img src="include/images/usergallery/img_'.$avatar1.'.'.$avatar2.'" width="80" height="80" alt="User Pic" border="0">';
    13. }
    Alles anzeigen


    ersetzt, nun is kommt bei jedem post das wurstegal.jpg,
    alles andere haut hin und keine fehlermeldung.

    weiß nicht wo es genau definiert wird ;(
    kann mir jemand auf die sprünge helfen?
    lg botox84