MyBB-Plugins Forums
Display avatar at myshoutbox - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: MyBB General Discussion (http://forums.mybb-plugins.com/Forum-MyBB-General-Discussion)
+--- Forum: Coding Help (http://forums.mybb-plugins.com/Forum-Coding-Help)
+--- Thread: Display avatar at myshoutbox (/Thread-Display-avatar-at-myshoutbox)

Pages: 1 2


Display avatar at myshoutbox - along - 01-26-2013

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


RE: Display avatar at myshoutbox - Diogo Parrinha - 01-26-2013

It won't display anything because 'avatar' is probably not grabbed in the query.


RE: Display avatar at myshoutbox - along - 01-26-2013

(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']}


RE: Display avatar at myshoutbox - along - 01-26-2013

using that query show current connected user avatar. means it show only my avatar , not the user who post the shout. Sad


RE: Display avatar at myshoutbox - Diogo Parrinha - 01-26-2013

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.


RE: Display avatar at myshoutbox - along - 01-28-2013

Tq for the tips. 'we' will working for it .. any news i will put it here. thanks a lot Pirata Big Grin


RE: Display avatar at myshoutbox - Diogo Parrinha - 01-28-2013

You're welcome Smile


RE: Display avatar at myshoutbox - along - 02-17-2013

(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


RE: Display avatar at myshoutbox - Diogo Parrinha - 02-18-2013

Glad you got it done Smile


RE: Display avatar at myshoutbox - King Of All - 04-19-2013

pirata can u guide me how to make avatar appear in shoutbox?