Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Thread user avatar

hello
Sorry for the bad english translate miatt.Google
I want you to viewforum.php into the theme author's name to appear next to your avatar in miniature. Right now, try this:

CodeDownload  
if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
            $src = IMAGES."avatars/".$data['user_avatar'];
         } else {
            $src = IMAGES."avatars/noavatar50.png";
         }
      echo "<td width='1%' class='".$row_color."' style='white-space:nowrap'><a href='".BASEDIR."profile.php?lookup=".$data."' class='profile-link flleft'><span class='user-avatar'><img class='avatar' width='30' src='".$src."' alt='".$src."' /></span></a><a href='".BASEDIR."profile.php?lookup=".$data."' class='profile-link'>".$data."</a>".profile_link($tdata['thread_author'], $tdata['user_author'], $tdata['status_author'])."</td>\n";



but noavatar or to, or for the user avatar shows that I am a user is logged on.
Can you give some guidance for a solution?
Thanks :)
Try to use data isntead of tdata
Unfortunately, it is not good.
I mean that I've tried but it's not good.
Or it could be that bad because my English misunderstand each other?
If you please write more code to what you're sure you do not get that wrong.
thank you
profile_link($tdata['thread_author'], $tdata['user_author'], $tdata['status_author'])
=>
profile_link($data['thread_author'], $data['user_author'], $data['status_author'])
Yes, I did $tdata => $data. The author's name and hiding the remains noavatar kép.Ha replaces the $ data => $ userdata it is always the image of the user's name with whom I am logged into the site. I never find what I'm doing wrong.
Do you mean this ?

- see picture.
smokeman attached the following file:
author_avatar.jpg [165.34kB / 13 Downloads]
Ah yes, do the echo $src; before user name.
Very cool thank you very much for helping you.
I leave my corrected code

Remplace

CodeDownload  
$result = dbquery(
   "SELECT tt.thread_id, tt.thread_subject, tt.thread_views, tt.thread_lastuser, tt.thread_lastpost, user_avatar,
   tt.thread_poll, tf.forum_id, tf.forum_name, tf.forum_access, tt.thread_lastpostid, tt.thread_postcount, tu.user_id, tu.user_name,
   tu.user_status
   FROM ".DB_THREADS." tt
   INNER JOIN ".DB_FORUMS." tf ON tt.forum_id=tf.forum_id
   INNER JOIN ".DB_USERS." tu ON tt.thread_lastuser=tu.user_id
   WHERE ".groupaccess('tf.forum_access')." AND tt.thread_lastpost >= ".$timeframe." AND tt.thread_hidden='0'
   ORDER BY tt.thread_lastpost DESC LIMIT 0,".$settings['numofthreads']
);



CodeDownload  
if ($data['user_avatar'] && file_exists(IMAGES."avatars/".$data['user_avatar'])) {
            $src = IMAGES."avatars/".$data['user_avatar'];
         } else {
            $src = IMAGES."avatars/noavatar50.png";
         }
      echo "<td width='1%' class='".$row_color."' style='text-align:center;white-space:nowrap'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' '/><span class='user-avatar'><img class='avatar' width='30' src='".$src."' alt='".$src."' title='".trimlink($data['user_name'],30)."' '/></span></a>".profile_link($data['thread_lastuser'], $data['user_name'], $data['user_status'])."<br />\n".showdate("forumdate", $data['thread_lastpost'])."</td>\n";

Thread Information
Author
Replies
12 posts
Views
4,433 times
Last Post
Last updated on 7 years ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: smokeman, PolarFox, SpaM, gurami