MyBB Community Forums

Full Version: Adding Image By Name?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I would like to add this shield :

[Image: adm.gif]

to all administrators names. So that it comes out in the whos online page with their name plus the shield, and when in a post, it shows the shield and their name.

this is what ive got so far :

<img=http://www.uounlimited.com/adm.gif><font color="blue"><b><i>{username}</i></b></font>

I do what the shield to come in BEFORE their name,

Thanks


Please note, images copyright Smile
change

<img=http://www.uounlimited.com/adm.gif>

to

<img src=http://www.uounlimited.com/adm.gif />
To be correct (W3C) use this one:
<img src="http://www.uounlimited.com/adm.gif" alt=""><font color="blue"><b><i>{username}</i></b></font>
Thanks but look whats happening:

I want it without the square on the image.

I want it like the second one.

[Image: shield.JPG]
This should do it

<img src="http://www.uounlimited.com/adm.gif" [b]border="0"[/b] alt="" /><font color="blue"><b><i>{username}</i></b></font>
Perfect! Just one last thing, I need to know how to space it ONE space between username and shield. Any ideas?
Just put a space between the img tag and the font tag, like this...

<img src="http://www.uounlimited.com/adm.gif" border="0" alt="" /> <font color="blue"><b><i>{username}</i></b></font>

or if that doesnt work, this will

<img src="http://www.uounlimited.com/adm.gif" border="0" alt="" />&nbsp;<font color="blue"><b><i>{username}</i></b></font>
Thanks so much! Your promt responces are great!
Glad I could help.

EDIT: To be more W3C friendly, this code is recommended.

<img src="http://www.uounlimited.com/adm.gif" style="border: none;" alt="" /> <span style="font-style: italic; font-weight: 900; color: #0000FF;">{username}</span>