MyBB-Plugins Forums

Full Version: Display avatar at myshoutbox
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello , i cant find any site that can guide me about this.

I want to add avatar before an username at shoutbox.

looking for the code at inc/plugins/myshoutbox.php

and add {$avatar} didnt change anything

then i try <img src="{$post['avatar']}" alt="" height="15"/> also same. It wont change the appearance of shoutbox .

FYI : i add these code as below :

Code:
$mysb_shoutbox_data .= "<tr id='shout-{$row[id]}'><td align=\"left\" class='{$class}'>&raquo; {$avatar} {$username} - {$date_time} -- {$message}</td></tr>";

nice to see any reply Big Grin TQ
It won't display anything because 'avatar' is probably not grabbed in the query.
(01-26-2013, 09:57 PM)Pirata Nervo Wrote: [ -> ]It won't display anything because 'avatar' is probably not grabbed in the query.

TQ for fast support.

how about using this value {$mybb->user['avatar']}
using that query show current connected user avatar. means it show only my avatar , not the user who post the shout. Sad
That is a variable, not a query. You should consider learning Php. You need make sure you get the avatar field in the shouts query so you can use it.
Tq for the tips. 'we' will working for it .. any news i will put it here. thanks a lot Pirata Big Grin
You're welcome Smile
(01-28-2013, 01:31 AM)Pirata Nervo Wrote: [ -> ]You're welcome Smile

Done!
Thanks Pirata Big Grin

[Image: ZZsI65k.jpg]

Malaysian Rileks Forum Big Grin
Glad you got it done Smile
pirata can u guide me how to make avatar appear in shoutbox?
Pages: 1 2