MyBB Community Forums

Full Version: Online/Offline Status
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have changed the alt message for Online and Offline status like the codes bellow but the alt in the forums do not change...
I have already rebuilt the cache nd it didn't work.

ONLINE STATUS: (postbit_online)

<a href="online.php" title="{$lang->postbit_status_online}"><img src="{$theme['imgdir']}/buddy_online.gif" border="0" alt="{$mybb->user['username']} is {$lang->postbit_status_online} now" /></a>

OFFLINE STATUS: (postbit_offline)

<img src="{$theme['imgdir']}/buddy_offline.gif" title="{$lang->postbit_status_offline}" alt="{$mybb->user['username']} is {$lang->postbit_status_offline} now" />

How do I make this appear?
The alt only shows when the image is broken, if you want something to show when you hover over the image, you need a title attribute.

Also {$mybb->user['username']} will just show your username all the time as that's the variable for the currently logged in user, change that to {$post['username']}
I want that when I put the mouse into the image appear this message: "MYBB USERNAME is Online now" or "MYBB USERNAME is Offline now"
Yeah, that's the title attribute.

ONLINE STATUS: (postbit_online)
<a href="online.php" title="{$lang->postbit_status_online}"><img src="{$theme['imgdir']}/buddy_online.gif" border="0" alt="{$post['username']} is {$lang->postbit_status_online} now" title="{$post['username']} is {$lang->postbit_status_online} now" /></a>

OFFLINE STATUS: (postbit_offline)
<img src="{$theme['imgdir']}/buddy_offline.gif" title="{$lang->postbit_status_offline}" alt="{$post['username']} is {$lang->postbit_status_offline} now" title="{$post['username']} is {$lang->postbit_status_offline} now" />

Give those a go.
Yes. Got it.
Thanks.