News:

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

Main Menu

Moving avatar

Started by Prosperous, May 14, 2008, 11:53:57 AM

Previous topic - Next topic

Prosperous

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
PorkoWogVisit UsContact

Looking for or in need of free or paid hosting?
Please contact me now or visit the link above for my very own hosting service.

ONLiNEZONE

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.
Regards,
Mark.

50 | 100 | 150 | 200 | 250 | 300...

karlbenson

The file to edit is actually
Themes/default/Display.template.php

ONLiNEZONE

Quote from: karlbenson on May 14, 2008, 12:55:53 PM
The file to edit is actually
Themes/default/Display.template.php

Lol, Sorry :(
Regards,
Mark.

50 | 100 | 150 | 200 | 250 | 300...

Prosperous

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?
PorkoWogVisit UsContact

Looking for or in need of free or paid hosting?
Please contact me now or visit the link above for my very own hosting service.

Prosperous

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. :)
PorkoWogVisit UsContact

Looking for or in need of free or paid hosting?
Please contact me now or visit the link above for my very own hosting service.

NickC

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".

Prosperous

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)
PorkoWogVisit UsContact

Looking for or in need of free or paid hosting?
Please contact me now or visit the link above for my very own hosting service.

Advertisement: