MyBB Community Forums

Full Version: put image next name
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi people

how can i set a image beside the username name

like this

Big Grin Xbat
^
example this smile beside my name? how?
you mean in the index? like mine?

gyazo.com/e7d3b219327b2b65f81f55cbdbb186bf
Try this:
<img src="#" valign="middle" height="#" width="#"><a href="#">{$mybb->user['username']}</a>

Replace the '#' to your own interests.


Here's my example:
<img src="images/image.png" valign="middle" height="15" width="15"><a href="#">{$mybb->user['username']}</a>

for this tag in the code:
<a href="#">{$mybb->user['username']}</a>

You can replace the '#' to a link when clicked on the username, if not then just leave the '#' in it.
(2013-07-24, 08:34 PM)VisualizeEdits Wrote: [ -> ]Try this:
<img src="#" valign="middle" height="#" width="#"><a href="#">{$mybb->user['username']}</a>

Replace the '#' to your own interests.


Here's my example:
<img src="images/image.png" valign="middle" height="15" width="15"><a href="#">{$mybb->user['username']}</a>

for this tag in the code:
<a href="#">{$mybb->user['username']}</a>

You can replace the '#' to a link when clicked on the username, if not then just leave the '#' in it.

any one should i use?
(2013-07-24, 08:39 PM)Xbat Wrote: [ -> ]any one should i use?

Are you asking for just an image next to your username or did you want it included into your username?

If you want it next to your username then use:
<img src="#" valign="middle" height="#" width="#"><a href="#">{$mybb->user['username']}</a>

but if you want it included into your username with styles, like the following image here
(2013-07-24, 08:30 PM)jamie1990 Wrote: [ -> ]gyazo.com/e7d3b219327b2b65f81f55cbdbb186bf
then you should check out the link provided:
(2013-07-24, 08:29 PM)fizit Wrote: [ -> ]http://community.mybb.com/thread-73891.html
thank you bro i owe you one
(2013-07-24, 09:58 PM)Xbat Wrote: [ -> ]thank you bro i owe you one

No problem. Wink