avatar in a table under the header
The forum of the forums :: Support forum :: Forum Design & Appearance Help :: Design & Appearance Problems Archives
Page 1 of 1 • Share •
avatar in a table under the header
Good evening 
I hope, this is the right place for my question. First of all I want to apologize for my English and my grammar. My native language is German and I do not know if I am using the correct expressions for some things. I hope you will understand me anyway.
I want to display the avatar of a user in a table under the header just like you did it here. I asked the german Support of forumotion. They said that this could be possible with javascript, but they had no code for it.
When you follow the link below you can imagine that I want to insert the avatar of a user in the table under the point 'mirror on the wall'. I inserted the code of the table into the templates.
The link to my homepage: http://fairytail-newdivide.forumfrei.com/

I hope, this is the right place for my question. First of all I want to apologize for my English and my grammar. My native language is German and I do not know if I am using the correct expressions for some things. I hope you will understand me anyway.

I want to display the avatar of a user in a table under the header just like you did it here. I asked the german Support of forumotion. They said that this could be possible with javascript, but they had no code for it.
When you follow the link below you can imagine that I want to insert the avatar of a user in the table under the point 'mirror on the wall'. I inserted the code of the table into the templates.
The link to my homepage: http://fairytail-newdivide.forumfrei.com/
Last edited by _Aceee on September 21st 2015, 9:30 pm; edited 1 time in total
Re: avatar in a table under the header
One minute ago I read your topic in german forum. 
In past I had used this:
It works fine with phpbb3. Maybe it needs a rework for phpbb2, you have to try.
Edit: Trust Ange, he knows what's the best.

In past I had used this:
- Code:
$(function() {
var avatars = $(_userdata.avatar).attr('src');
document.getElementById('user_avatar').src = avatars;
});
- Code:
<img src="" id="user_avatar" />
It works fine with phpbb3. Maybe it needs a rework for phpbb2, you have to try.

Edit: Trust Ange, he knows what's the best.

Last edited by darki on September 21st 2015, 9:24 pm; edited 2 times in total
Re: avatar in a table under the header
Hi @_Aceee,
You want to display the user avatar in that area correct ? If so, you can use a bit of JavaScript to write it into the document.
If you want to add the avatar for all ( including guests ) use this code :
If you want to add the avatar for only users logged in, use this code instead :
If you have any questions let me know.
You want to display the user avatar in that area correct ? If so, you can use a bit of JavaScript to write it into the document.
If you want to add the avatar for all ( including guests ) use this code :
- Code:
<script>document.write(_userdata.avatar);</script>
If you want to add the avatar for only users logged in, use this code instead :
- Code:
<script>if (_userdata.session_logged_in) document.write(_userdata.avatar);</script>
If you have any questions let me know.

Re: avatar in a table under the header
Topic solved and archived

Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

The forum of the forums :: Support forum :: Forum Design & Appearance Help :: Design & Appearance Problems Archives
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum