News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Avatar change possition

Started by Fjclip99, November 01, 2014, 11:18:26 AM

Previous topic - Next topic

Fjclip99

Hello. So now i have membergroup stars and then avatar... How can i change that so the avatar would be in the first place and then membergroup stars...

kat

There's whole block of code, in display.template.php, which controls that stuff, starting with this bit:

// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
<li class="postgroup">', $message['member']['post_group'], '</li>';
echo '
<li class="stars">', $message['member']['group_stars'], '</li>';

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<li class="avatar">
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
', $message['member']['avatar']['image'], '
</a>
</li>';


I think you can swap those sections around, to your heart's content. BUT, keep a copy of the original file, as a backup, woncha? ;)



Advertisement: