Customizing SMF > Modifications and Packages
AvatarOnBoard
pixeleyes:
Got it :P
I just noticed these avatars are last poster :D.
Can we change into topic starter instead of last poster?
--- Code: --- <td class="subject ', $alternate_class, '">';
if (!$modSettings['disable_avatar'])
echo '<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>';
echo '
--- End code ---
phantomm:
I tried this, but doesn't work, don't know why :|
In the file $themedir/MessageIndex.template.php
--- Code: (Find) ---<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>
--- End code ---
--- Code: (Replace with) ---<div style="float: left; margin-right: 4px;">', $topic['first_post']['member']['avatar'], '</div>
--- End code ---
In the file $sourcedir/MessageIndex.php
--- Code: (Find) --- 'name' => $row['first_display_name'],
--- End code ---
--- Code: (Replace with) --- 'name' => $row['first_display_name'],
'avatar' => $board_avatar,
--- End code ---
pixeleyes:
Same here! didn't work
Old Fossil:
--- Quote from: phantomm on June 12, 2012, 05:17:15 AM ---I tried this, but doesn't work, don't know why :|
In the file $themedir/MessageIndex.template.php
--- Code: (Find) ---<div style="float: left; margin-right: 4px;">', $topic['last_post']['member']['avatar'], '</div>
--- End code ---
--- Code: (Replace with) ---<div style="float: left; margin-right: 4px;">', $topic['first_post']['member']['avatar'], '</div>
--- End code ---
In the file $sourcedir/MessageIndex.php
--- Code: (Find) --- 'name' => $row['first_display_name'],
--- End code ---
--- Code: (Replace with) --- 'name' => $row['first_display_name'],
'avatar' => $board_avatar,
--- End code ---
--- End quote ---
I ignored those edits and had no errors at all on install.
phantomm:
This was for showing avatar from topic starter, because by default mod shows avatar from last poster. This edits aren't required.
All you need is in reply #468 :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version