Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Prosperous on May 14, 2008, 11:53:57 AM

Title: Moving avatar
Post by: Prosperous on May 14, 2008, 11:53:57 AM
Hey there everyone. Not 100% sure whether this is the right board to add this topic, so please move it if needed.

I want to know how to move where the avatar is displayed now to a higher area, maybe just above where a person's username is displayed in posts?

Thanks a lot! ;D
Title: Re: Moving avatar
Post by: ONLiNEZONE on May 14, 2008, 12:46:02 PM
Quote from: PorkoWog on May 14, 2008, 11:53:57 AM
Hey there everyone. Not 100% sure whether this is the right board to add this topic, so please move it if needed.

I want to know how to move where the avatar is displayed now to a higher area, maybe just above where a person's username is displayed in posts?

Thanks a lot! ;D

Hi,

You will need to do alterations to the coding for the BoardIndex.php I think.
Title: Re: Moving avatar
Post by: karlbenson on May 14, 2008, 12:55:53 PM
The file to edit is actually
Themes/default/Display.template.php
Title: Re: Moving avatar
Post by: ONLiNEZONE on May 14, 2008, 02:21:39 PM
Quote from: karlbenson on May 14, 2008, 12:55:53 PM
The file to edit is actually
Themes/default/Display.template.php

Lol, Sorry :(
Title: Re: Moving avatar
Post by: Prosperous on May 14, 2008, 08:43:23 PM
Quote from: karlbenson on May 14, 2008, 12:55:53 PM
The file to edit is actually
Themes/default/Display.template.php

Do you know what particular code I must edit in order to move the avatar up more?
Title: Re: Moving avatar
Post by: Prosperous on May 16, 2008, 12:04:15 PM
If anyone knows, you are welcome to answer as well. I need to get this sorted soon as clients on my forum have requested it. :)
Title: Re: Moving avatar
Post by: NickC on May 16, 2008, 01:10:45 PM
Open Display.template.php in a text editor and search for "avatars". The block of code you need to move is:


// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';


Put it wherever you want in the list of items that starts with the comment "// Show information about the poster of this message".
Title: Re: Moving avatar
Post by: Prosperous on May 18, 2008, 12:12:56 PM
I have successfully edited the 'Display.template.php' file and everything is working as it should be. Opened up my eyes to this file, where I am likely make a couple more adjustments in the future.

Thanks very much NickC! 8)