MyBB Community Forums

Full Version: would this be possible?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Would it be possible to make a mod that replaces your username with an image in the postbit? On the index it would be regular text, in the post it would be an image you specified (username with fancy graphics).
You could edit the postbit template to make the username not display and only the avatar.
(2009-08-20, 11:41 PM)Josh G Wrote: [ -> ]You could edit the postbit template to make the username not display and only the avatar.

I would want the avatar to be separate from the username. The username would be replaced with a username image that I upload.
Ah. Okay, I guess I misunderstood.
You might be able to do it.

Just change the postbit name templates.

Say you upload the username images as username.jpg.
You might be able to have this in the template for it to work.
<img src="/usernames/{$mybb->username}.jpg">
Not sure if it's $mybb->username or $mybb->user. Either or, that should work.
(2009-08-22, 12:30 AM)Tabbie Wrote: [ -> ]You might be able to do it.

Just change the postbit name templates.

Say you upload the username images as username.jpg.
You might be able to have this in the template for it to work.
<img src="/usernames/{$mybb->username}.jpg">
Not sure if it's $mybb->username or $mybb->user. Either or, that should work.

I've already done it and have a tutorial on my blog. http://vorbb.com/mybb-mod-username-image/