Not Solved Displaying Avatar's on welcome block.
#1
Not Solved
This user has been denied support. This user has been denied support.
I am using the following to pull up the avatar and display it in the panel.

<img src="{$mybb->user['avatar']}"/ height="20px" width="20px">

Is this the best way to do it? Will this add a lot of overhead? Thanks.
Reply
#2
Not Solved
That script should be perfect because {$mybb->user['avatar']} is the best variable to call for avatars and since you are specifying the height and width, it wouldn't overlap.
Reply
#3
Not Solved
This user has been denied support. This user has been denied support.
Thanks arbaz, its working fine for now. I thought there may be seem better ways as I am not a pro but learning it.
Reply
#4
Not Solved
there is a mistake and I guess it is not the actual code. should be like below
<img src="{$mybb->user['avatar']}" height="20px" width="20px" />
Reply
#5
Not Solved
Just to add on to Ms post. You placed / at the wrong location.
Reply
#6
Not Solved
This user has been denied support. This user has been denied support.
Oh yeah sorry, I typed it not copy pasted it. I have the correct code in the templates. Thanks .m. for pointing it out.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)