Re-Order Poster name,avatar

Started by Anoni1337, January 16, 2022, 05:21:27 AM

Previous topic - Next topic

Anoni1337

Hi ! Well when I wanna re order for name to be above avatar in .poster,name and style get messed around and I don't know why.Here is what I did in Display.template.php

I moved

// Show a link to the member's profile.
echo '
', $message['member']['link'], '
</h4>';

echo'
<ul class="reset smalltext" id="msg_', $message['id'], '_extra_info">';

Above

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && (!empty($message['member']['avatar']['image']) && !$message['member']['is_guest']))
{
echo '
<div class="avatar">
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], '">
<img class="avatar" src="', $message['member']['avatar']['href'], '" style="', (!empty($settings['sr_avatar_width']) ? 'width:'.$settings['sr_avatar_width'].'px;' : '') .
(!empty($settings['sr_avatar_force_height']) && !empty($settings['sr_avatar_width']) ? 'height:'.$settings['sr_avatar_width'].'px;max-width:100%;' : ''), '" alt="">
</a>
</div>';
}
elseif (($message['member']['is_guest'] || empty($message['member']['avatar']['image'])) && !empty($settings['show_user_images']) && empty($options['show_no_avatars']))
echo '
<div class="avatar">
<a href="#">
', $settings['sr_default_avatar'], '
</a>
</div>';

echo'
<h4>';

And than style of users name get's messed around I guess problem is in CSS but I am not that experienced.

Before: https://i.imgur.com/svhXhP7.jpg
After: https://i.imgur.com/GXjVIn2.jpg

Kindred

It's not css... usually brown the html.
 you moved the start of a list (ul) away from the rest of the list.
Of course it's going to break the display.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Anoni1337

Okay but how do I fix it ? I am not really experienced with this stuff  :'(

Kindred

Well, you have to modify the code...   but it's not quite as simple as cut/paste, because that area, in the default theme,  is not separate blocks

I may be able to give you a suggestion when I get back to a real computer tomorrow,  but that depends on RL as well.

Edit: just realized that you are not using the default theme.   You'll have to ask the them author in the thread dedicated to supporting that custom theme
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Anoni1337

Okay,I am opened if someone else can help.I did contact creator of Theme he refused to help so yea I can't force dude to help me out for free so yea :) I'm am opened for ideas  :-\

Shades.

ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Steve

Quote from: Anoni1337 on January 16, 2022, 04:53:54 PMI did contact creator of Theme he refused to help

Can you link me to that topic?
DO NOT pm me for support!

Advertisement: