General Forums > Hardware, Software and Networking

Avatar upload issue

<< < (2/3) > >>

OptimusPrime:

--- Quote from: HSantal on February 16, 2018, 10:21:36 AM ---I saw that when I uploaded mine too. There may be a fix or it is what it is.  :)

--- End quote ---

it does that with every avatar up there.  That's how the CSS wants it, even with a square one.

zebra:

--- Quote from: OptimusPrime on February 16, 2018, 12:31:34 PM ---it does that with every avatar up there.  That's how the CSS wants it, even with a square one.

--- End quote ---

Ooph, that's rough.
I looked into a couple things to see if I could find a code fix - but there's so much in my notes, I can't find the reference to pictures/avatars - even when copying the source code tags where my avatar is displayed. I'll try to do some more research sometime today after work.

OptimusPrime:
oops - started to edit your post with my reply. The perils of admin rights and not having a clue :)





What exactly is wrong with that avatar up on top behind the menu? It's your own, nobody will see it there but you. You know your avatar and what's in that glass. Looks fine to me here in a thread, where it is being displayed to others.

I could easily ditch the entire avatar from the header of the forum index, although having multiple accounts here, I actually like it, as it shows me who I am.

the code that pulls in the avatar is in the forum theme index template - I edited the top to move the Gamerplanet image to the left, but I don't think that would affect the next DIV below. DIV shadow is that silver top line thing below the Gamerplanet image


--- Code: --- <div id="shadow">
<div id="header">
<div id="upper_section">
<div class="user">';


// Fish edit end
// If the user is logged in, display stuff like their name, new messages, etc.

if ($context['user']['is_logged'])
{
if (!empty($context['user']['avatar']))
echo '
<p class="avatar">', $context['user']['avatar']['image'], '</p>';
echo '
<ul class="reset">
<li class="greeting">', $txt['hello_member_ndt'], ' <span>', $context['user']['name'], '</span></li>
<li><a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a></li>
<li><a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a></li>';

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<li class="notice">', $txt['maintain_mode_on'], '</li>';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
<li>', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '</li>';

if (!empty($context['open_mod_reports']) && $context['show_open_reports'])
echo '
<li><a href="', $scripturl, '?action=moderate;area=reports">', sprintf($txt['mod_reports_waiting'], $context['open_mod_reports']), '</a></li>';

echo '
<li>', $context['current_time'], '</li>
</ul>';
}
echo '
</div>

--- End code ---

I am guessing the DIV outside of that is what really defines the layout of that menu above the avatar.  it's called "upper_section"

zebra:

--- Quote from: OptimusPrime on February 16, 2018, 07:02:52 PM ---oops - started to edit your post with my reply. The perils of admin rights and not having a clue :)

--- End quote ---

Lol, I do this on my community/streaming Discord server, all the time. I know how you feel, heh heh.


--- Quote from: OptimusPrime on February 16, 2018, 07:02:52 PM ---What exactly is wrong with that avatar up on top behind the menu? It's your own, nobody will see it there but you. You know your avatar and what's in that glass. Looks fine to me here in a thread, where it is being displayed to others.

--- End quote ---

You have a great point - didn't think about how it isn't shown to others.
I'm just picky, and it looked slightly 'out of place' considering it was being displayed behind the nav header/menu. Granted, it doesn't intrude or anything since it's at the bottom of my pic - Just assumed it might be a padding, or space limitation issue for the avatars; rather, lack thereof.


--- Quote from: OptimusPrime on February 16, 2018, 07:02:52 PM ---I could easily ditch the entire avatar from the header of the forum index, although having multiple accounts here, I actually like it, as it shows me who I am.

--- End quote ---

No need! I only brought it up because I had (knowingly) tried to use a larger than avg picture (generally speaking); to be used for my avatar .. and realized the picture I had used didn't fit all too well after applied. Brought it up here thinking I might have been the only one to experience it so far. :) cheers

OptimusPrime:
Did the software ask you to resize the image at all? I haven't tried uploading a custom avatar. All I remember setting up is a max upload per image size in kilobytes, not size. All the avatars I put into the forum to choose from should be 150x150 or smaller.  Yours displays at nnn x 150 right now, so it either gets scaled in the CSS or it was resized once assigned as avatar. Not sure if this board comes with the necessary code to do that.

Meanwhile, we are about to move to a new hosting setup with different features, and there's a good chance we'll be down for a few hours to a few days when that happens. Should all be done before March 4

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version