Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: malfunkshun - kesäkuu 14, 2008, 01:45:42 IP

Otsikko: IchBins SSI Single Message mod
Kirjoitti: malfunkshun - kesäkuu 14, 2008, 01:45:42 IP
Useful mod, I like it.
Now, I am using this for a specific purpose on my site and ideally I would like to show the avatar of the user that made the shown post (not the topic starters). Is this possible without too much work on your part?


echo '<table border="0" width="100%" align="center" class="smfNews">
<tr>
<td>', $news['icon'], ' <b>', $news['subject'], '</b><span class="smaller"><br />', $news['time'], ' ', $txt[525], ' ', $news['poster']['link'], '<br /><br /></span>
</td>
</tr>
<tr>
<td>', $news['body'], '<br /><br />
</td>
</tr>
<tr>
<td>', $news['link'], ' | ', $news['new_comment'], '
</td>
</tr>
</table>';

Somewhere in the above maybe? :)
Otsikko: Re: IchBins SSI Single Message mod
Kirjoitti: IchBin™ - kesäkuu 15, 2008, 04:23:46 IP
Well, that would require another db call to the attachments and members table to fetch information, and a bit more PHP code. I don't have much time right now, so if someone else wants to have a go at it I have no problem with that. Sorry.
Otsikko: Re: IchBins SSI Single Message mod
Kirjoitti: Sarge - kesäkuu 16, 2008, 02:07:10 AP
A search for "avatar" in SMF Coding Discussion (http://www.simplemachines.org/community/index.php?board=60.0) shows these results (among others):
Random Member on main site (http://www.simplemachines.org/community/index.php?topic=242924.0)
$context['user']['avatar']['image'] Problem?? (http://www.simplemachines.org/community/index.php?topic=243106.0)

Oh, and also my own post: :P
Re: Advanced SSI FAQ (http://www.simplemachines.org/community/index.php?topic=13016.msg1431505#msg1431505)