Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

Display avatar at myshoutbox
#1

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
Reply
#2

It won't display anything because 'avatar' is probably not grabbed in the query.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#3

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

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

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.
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#6

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

You're welcome Smile
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#8

(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
Reply
#9

Glad you got it done Smile
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
Reply
#10

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




Users browsing this thread: 1 Guest(s)