I have seen other Management Contant Systems have their avatar's along side their chat box message. So I'm 'attempting' as a novice to figure out if e107 chat box can have that too. This is what I've added in the main code.
Posting on a weekend when things are quiet you can't expect instant answers.
As your editing $CHATBOXSTYLE in theme.php have you tried using {AVATAR} shortcode?
*blushes* Majority of the time most have been very gracious about responding quite swiftly. Though you are right. It was the weekend and can be down time.
I did try placing the {AVATAR} shortcode in it. An it alas didn't recognize it. So I choose to use that string instead. Odd when in the code you can see the shortcode for everything else. It is perplexing.
Hello Moc -- Forgive my novice response. I'm soooo not a programer when identifying terms. *hugs* I defined it in the quote above and as I stated to C6Dave writer. I tried it {AVATAR} shortcode too. An still none responsive? The two codes should work because the codes are reliable anywhere else in the php. So it is quite confusing.
Thank you for asking your question and posting your replies the right way (see some of my previous replies to other topics to understand what I'm talking about) Will get back to you.
First off, as stated, you need to define $avatar in order for it to display anything. You can populate the $avatar variable using the get_user_data() function using something like:
WAIT before you think that is going to work, you have not defined $id, so you're going to get no results. Since you're using putting this in the $CHATBOXSTYLE there's no simply way to gather the information from within theme.php.
I'll toy around with somethings and see what I can come up with. You're welcome (and encouraged) to dabble around yourself.
Update Just had time to test this, it works as advertised. You may want to adjust this to limit the size of the image, however. The line you'll want to edit is:
Thank you everyone for your immediate response. Taking a moment out of your hectic time to help me with this. I will do my best to experiment and see if these aspects work. Then I will respond to see if I clearly was not able to succeed in this quest.
IT WORKS! Thank you Septor for helping me with this. Yayayay now my role-playing community will be happy. They are all about vanity to their character images. lolol