Hi everyone,
So here is my problem, I have the default_avatar.gif and another .png version of it also. But it's not showing up... As a grasphist I don't like a broken picture on my Forum

Here is the link to it : http://www.les-as-du-web.esy.es/
![]() |
Hi everyone, So here is my problem, I have the default_avatar.gif and another .png version of it also. But it's not showing up... As a grasphist I don't like a broken picture on my Forum ![]() Here is the link to it : http://www.les-as-du-web.esy.es/
Where is that broken image? Is it in user header welcomeblock?
If I have to be logged in to see it please provide a test account.
Name's Waleed, I'm a graphic and web design (2015) graduate from Canada. Self-employed and lending my design skills to the MyBB community.
Ok sec. I'll take a look at it now,
Alright so it seems that in your member_welcomeblock in your header template your avatar code appears like so
Remove your forum url from the src, that is why the image is breaking. The code should be
The reason for the header_avatar class is to make default avatar appear if no avatar is uploaded, so add this script to your header code as well (Source: iAndrew)
Let me know if that worked for you.
Name's Waleed, I'm a graphic and web design (2015) graduate from Canada. Self-employed and lending my design skills to the MyBB community.
header
Options header_menu_calendar Options header_menu_memberlist Options header_menu_portal Options header_menu_search Options header_quicksearch Options header_welcomeblock_guest Options header_welcomeblock_member Options header_welcomeblock_member_admin Options header_welcomeblock_member_moderator Options header_welcomeblock_member_pms Options header_welcomeblock_member_search Options header_welcomeblock_member_user Options Here are my sections in the template ...
header_welcomeblock_member
Name's Waleed, I'm a graphic and web design (2015) graduate from Canada. Self-employed and lending my design skills to the MyBB community.
<span style="float:left;"><img src="{$mybb->settings['bburl']}/{$mybb->user['avatar']}" height="50" width="50"> </span><div id="paneltext">{$lang->welcome_back} <br> <a href="{$mybb->settings['bburl']}/usercp.php"><img src="images/alphagaming/usercp.png"></img> <strong>{$lang->welcome_usercp}</strong> </a>{$modcplink}{$admincplink} <a href="{$mybb->settings['bburl']}/member.php?action=logout&logoutkey={$mybb->user['logoutkey']}"><img src="images/alphagaming/logout.png" alt="log out"/></img> {$lang->welcome_logout}</a></div><br />
Here is what I have in "header_welcomeblock_member"
Replace
with
And at the very start of your header_welcomeblock_member template code add this
Name's Waleed, I'm a graphic and web design (2015) graduate from Canada. Self-employed and lending my design skills to the MyBB community.
So here is what I have, and the result is that it's now an empty white sqare.
Alright if you want the easiest solution without a script let's do this
Remove the SCRIPT code completely And then take
and replace it with
This is a quick inline style solution, if a user has an avatar uploaded it will overlap the default, if there is no uploaded avatar it will show the default.
Name's Waleed, I'm a graphic and web design (2015) graduate from Canada. Self-employed and lending my design skills to the MyBB community.
|
« Next Oldest | Next Newest »
|