Hello friends, avatar from welcomeback not working...
The template file is: "header_welcomeblock_member"
I'm using this code:
<div class="member_links">
<div style="width:70px;height:70px;float:left">
<img src="{$mybb->user['avatar']}" height="70" width="70"></div>
When i open my forum and check the source code... appear this:
<div class="member_links">
<div style="width:70px;height:70px;float:left">
<img src="" height="70" width="70"></div>
Anyone can help me?
Look here =>
http://community.mybb.com/thread-165433-...pid1131416
~~~~~~~~~~~~~~~
Download and install plugin "
Template Conditionals".
Change your template part:
<div class="member_links">
<div style="width:70px;height:70px;float:left">
<img src="<if $mybb->user['avatar'] then>{$mybb->user['avatar']}<else>{$mybb->settings['useravatar']}</if>" height="70" width="70"></div>
I already checked that thread but not worked...
I get this error
Hmmm...pls post a link to your forum or send per PM
Sorry I forgot, mybb 1.6 has no default avatar settings - use this code in header_welcomeblock_member
<div class="member_links">
<div style="width:70px;height:70px;float:left">
<img src="<img src="<if $mybb->user['avatar'] then>{$mybb->user['avatar']}<else>{$mybb->settings['bburl']}/images/default_avatar.gif</if>" height="70" width="70"></div>
Still same problem friend
(2015-01-22, 07:20 PM)SvePu Wrote: [ -> ]Sorry I forgot, mybb 1.6 has no default avatar settings - use this code in header_welcomeblock_member
<div class="member_links">
<div style="width:70px;height:70px;float:left">
<img src="<img src="<if $mybb->user['avatar'] then>{$mybb->user['avatar']}<else>{$mybb->settings['bburl']}/images/default_avatar.gif</if>" height="70" width="70"></div>
Have you changed something in your global.php file?
I've tested the avatar code in a local installation and it works.
[
attachment=33571]
No i dont changed...
I sent you my global.php for you check in your PM..
Thanks
(2015-01-22, 07:31 PM)SvePu Wrote: [ -> ]Have you changed something in your global.php file?
I've tested the avatar code in a local installation and it works.
Give me your forum url or PM me.