2 bugs in new wpmu chat update

Hi, first of all I would like to thank you guys on a great update to the chat plugin.

I have however come across 3 issues. The first is my avatar is not showing on the group chat at all (shown in the image below)

The users list is not showing anyone listed even though 2 members are present and available (as shown on the image below)

and when the chat is the popout chat in the corner of the site the width of the chat bar is too wide. I tried to manipulate CSS to make the width of minimised chat smaller but I can’t seem to target it so perhaps you can help me with that. I have included images of my issues.

http://i31.photobucket.com/albums/c391/steveyk/chat1.jpg

http://i31.photobucket.com/albums/c391/steveyk/chat2.jpg

any help would be appreciated

  • Paul
    • The Green Incsub

    @dubbinz,

    Thanks for posting.

    1. Please upgrade to Chat 2.0.1 when you get a chance. There were some warnings and notices I didn’t catch in the 2.0 release

    2. Since you were a beta tester please manually deactivate then reactivate the plugin. The table structures had changed and I want to make sure you have the corrections.

    The first is my avatar is not showing on the group chat at all (shown in the image below)

    I have a member login on your site. Where on your site can I see this directly? IS this on a group chat? I want to check the HTML.

    and when the chat is the popout chat in the corner of the site the width of the chat bar is too wide. I tried to manipulate CSS to make the width of minimised chat smaller but I can’t seem to target it so perhaps you can help me with that. I have included images of my issues.

    Well the width of the bottom corner is controlled via the Chat > Site Settings options. When the bottom corner chat is minimized it no longer narrows the width. But I’ll see what I can do.

  • jarek_s
    • New Recruit

    Just wanted to add to dubbinz's issues with the 2.0 version.

    1.The chat status function button in the toolbar (offline/away/available) does not seem to have any consequence on the chat user list. Only logging out of the site leads to the update of the user list.

    2. The date and time enabled do not display but are shown as rectangles (see screenshot).

    Thank you for your support

  • Paul
    • The Green Incsub

    @jarek_s,

    1. The chat status function button in the toolbar (offline/away/available) does not seem to have any consequence on the chat user list. Only logging out of the site leads to the update of the user list.

    The Chat status on the WP toolbar is there to affect others from seeing your status. Correct this does not effect you within an active chat session. So what is the purpose then I hear you ask? Well as part of the WP Tool bar there is also the Friends listing. So if you and I were friends for example I’d be able to see you were online and I’d be able to click your name in my listing and start a private chat.

    2. The date and time enabled do not display but are shown as rectangles (see screenshot).

    Check the date/time settings on the respective chat session type. For example is what you are showing is a Page chat. go to Chat > Settings Page then to the Message Appearance tab. The bottom section controls the message colors. Look for the Date/Time Text Color and Date/Time Text background. Make sure these are different.

  • Paul
    • The Green Incsub

    @jarek_s,

    Not sure on your setup. Since another member started this thread I can see how is running BuddyPress.

    For you you try installing our Friends plugin https://premium.wpmudev.org/project/friends/

    Using the Friends plugin you create connections like other social networks. Once you have these friend connections you can go to the Friends listing and message or start private chat with your friends.

    Once these friend connections are created when your friends are online and available you will see them listed in the toolbar.

  • dubbinz
    • Design Lord, Child of Thor

    yeah I think the “n” pops up everytime someone uses a wildcard that can be confused with code like ?{[(^% and the like from what i can tell

    the update did just popup it must be on a schedule to check for new updates and it took a while is all I updated it now to 2.01

  • jarek_s
    • New Recruit

    Hi Paul,

    Just a quick question about the Friends plugin. I installed it, but the only issue I have is that it does not update the toolbar availability status in Chat unless one refreshes the page. Is this how it is supposed to work?

  • Paul
    • The Green Incsub

    @dubbinz,

    Things I know that are broken and thinking on a fix:

    1. When using the code tag this is the new line ( n ) that is getting converted incorrectly. Basically the backslash is getting removed leaving just the ‘n’. This is what happens when you paste any multiline text not just code. So trying to think on this.

    2. When I was visiting your chat I commented on the left/right scroll. I have this fixed. Just need to look into the above and some other language issues. Have some users reporting issue with Thai and Italian language text.

    3. You are not using Twitter authentication. But seems the Twitter API change on June 11. Same day Chat 2.0 was released.

    Things I don’t have a clue on or have not gotten to.

    1. Why your avatar is/was not showing in the staff group chat. Don’t know. Have you tried this again lately? The plugin makes the standard get_avatar WP function call which should use the BuddyPress user avatar.

    2. When I was in your BP group I went to Admin > Group Chat. I noticed though the tabs and fields are there the field labels are blank. Actually the field color is white.So need to figure out a solution so it matches your theme better. I can provide some CSS for you to use if you need it.

    If you have anything else let me know. Trying to work on other random reported support issues from other members. So far nothing major except for the Twitter API change.

  • dubbinz
    • Design Lord, Child of Thor

    The scroll bar on the bottom of chat is gone after upgrading to 2.01

    My avatar still does not show up I had 2 other people post and theirs shown up. I think this may be an issue with me being superadmin as I have had a normal group member post and his avatar shows up on the left and I have had a group admin ( who is also site admin) post and her avatar shows up on the right and I post and my avatar shows up on the right but it is the mystery man avatar instead of my avatar. I have re-uploaded my avatar to see if that changes anything and it didn’t. I also changed the settings on the global popout chat and most people’s avatars never loaded only a few people had their avatars load. I think I know what might be causing it though, the forums avatars were very bad quality and I came across a guide to increase the quality and it told me to create a file called bp-custom.php with the following code in it

    <?php

    if ( !defined( 'BP_AVATAR_THUMB_WIDTH' ) )
    define( 'BP_AVATAR_THUMB_WIDTH', 80 ); //change this with your desired thumb width

    if ( !defined( 'BP_AVATAR_THUMB_HEIGHT' ) )
    define( 'BP_AVATAR_THUMB_HEIGHT', 80 ); //change this with your desired thumb height

    if ( !defined( 'BP_AVATAR_FULL_WIDTH' ) )
    define( 'BP_AVATAR_FULL_WIDTH', 260 ); //change this with your desired full size,weel I changed it to 260 <img src="http://buddydev.com/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley">

    if ( !defined( 'BP_AVATAR_FULL_HEIGHT' ) )
    define( 'BP_AVATAR_FULL_HEIGHT', 260 ); //change this to default height for full avatar

    ?>

    Thing is I cannot remove this as the community complained about the default quality of avatars on the site which was pretty bad and I had no choice but to change it. This might be causing it though I cannot be sure I mean every other area has no problem calling the avatars so I can’t see why chat cannot do it.

    Yeah we don’t use twitter or facebook (if you have that) members for the chat.

    Group chat settings, not to worry I can tweak the css here so don’t put yourself out

    There is another bug I have – The who is online window still does not work, nobody listed in it at all even when I know there are people in the chat. This could be linked to the avatar issue maybe as avatars also do not show up but neither do names.

  • Paul
    • The Green Incsub

    @dubbinz,

    Let me know if I can test the avatar thing. As I mentioned it just calls the standard WP function.

    There is another bug I have – The who is online window still does not work, nobody listed in it at all even when I know there are people in the chat. This could be linked to the avatar issue maybe as avatars also do not show up but neither do names.

    I’m not sure I follow. Where is the ‘who is online’ shown? Is this BP or chat? Oh the user list within chat? Try this. Get into your backend phpMyAdmin. Look for the DB table wp_wpmudev_chat_users (your prefix may be different. Do the following in order

    1. Deactivate chat.

    2. Drop the table ‘wp_wpmudev_chat_users’

    3. Reactivate chat. It should recreate the table.

    The structure changed slightly between chat beta. So the plan was to just worry about the conversion from chat 1.3.x forward. Let me know of course.

  • Paul
    • The Green Incsub

    @dubbinz,

    Not really sure. To get into this on your site I need to fiddle with chat. Seems you always have a chat session going. Is there anytime the is downtime that I can look into this in deeper details on your site? User lists and avatars work on all my test/development site. So not really sure what is going on for your site.

    And specifically it is only your avatar (correct me if I’m wrong) which is not working.

  • dubbinz
    • Design Lord, Child of Thor

    @paul no I turned avatars on the global chat and only a few people had avatars the rest had the mystery man avatar. And you can go into my site and turn off chat anytime. I have no problem with this. It’s to work out what is going on after all so log in anytime and have a poke around, you have my permission.

  • Paul
    • The Green Incsub

    @dubbinz,

    Depends on how you are banning then. Within the chat you, as moderator, will see the IP address as well as the delete button. Clicking the IP address will block all users using that IP address. Clicking the delete button will delete just that message.

    For the IP address when this is done it is added to a global list within your WP system and effects ALL chats. To see this list as well as other banning options go to Chat > Settings Common then to the ‘Block IP/User’ tab. Here you will see all IP addresses blocked. You can even add some know bad IP addresses. Below that you will see the email list of blocked users. Note this only effects the public user sign-in option via Chat. This does not effect Facebook, Twitter, Google+ or more to the point WP users. If you need to block one of your WP users there are other ways to accomplish this outside of chat to prevent them from logging into WP.

    On to your 2 issues. I now know the reason for both. The user list icons is an easy fix. Working on testing some changes this morning. The issue with avatars is a little more complicated so will not be solved until next week. We did some functional changes to the released version of Chat which is different than the last beta you might have tried. Not to get too technical but the change effects things like the avatar filtering used for BP and even our own avatars plugin. So I need to put some of the code back together. Will be work over the weekend. So look for the user list change update today along with some other small changes. Then the global avatars solution early next week.

  • dubbinz
    • Design Lord, Child of Thor

    @paul I am guessing I have to do that thing with wp_wpmudev_chat_users in the database again right? Because the chat does not show the userlist still. Also it seems only admins have access to the blocklist which is annoying because we have some volunteer mods to do temporary blocks for users misbehaving but they cannot unblock the users and more important, because it only stores IP addresses we don’t know who is who.

  • Paul
    • The Green Incsub

    @dubbinz,

    I have to do that thing with wp_wpmudev_chat_users in the database again right? Because the chat does not show the userlist still.

    No, this is still broken. I was going to place a patch on your site Friday. But decided since I was headed out of town I didn’t want to add fuel to the fire and add some worse code that might effect other things. So decided to wait until my return. Should see this resolved on Monday. Currently Sunday on my end.

    Also it seems only admins have access to the blocklist which is annoying because we have some volunteer mods to do temporary blocks for users misbehaving but they cannot unblock the users and more important, because it only stores IP addresses we don’t know who is who.

    Actually as mentioned there are two ways to block users. Via the chat session you can block the IP address. This is available for all moderators. To block public users only you can add the user email to the blocked users list. Since you are only allowing BP users (in effect WP users) to use chat then this feature does not apply. I agree the blocked IP is not the best solution. Still is it the only current solution.

    I’m trying to work on bug issues first before adding more features. So patience. LEt me address the avatars issue for you and some other minor bug for other members. Then will take a look at doing something else for user blocking. Since you are blocking user it might just be something tied to the WP user metadata. Something that can be listed/queried/shown to admins.

  • Paul
    • The Green Incsub

    @dubbinz,

    I’m glad I’m making progress. Still have the ‘n’ issue on the code text and now the popup styles to review for you. But had a question about BuddyPress Groups usage since you seem to run a pretty large site I wanted to ask your opinion.

    I have some other members who don’t like the groups slug we define. So for example the group URL is http://somesite.com/groups/test/wpmudev-chat-bp-group/ Seems other members want a way change the slug as well as the group section label from ‘Group Chat’ to something else. I can agree.

    My question is this. I can add the options to the specific group Admin > Group Chat tabs. But this would mean each group would need to be changed. Was thinking a much better solution is to control this via a new admin panel under Chat like the ‘Settings Page’, ‘Settings Site’, etc. That way the site admin sets the page slug and labels. Also adding in the ability to control the form labels on the admin.

    Thoughts?

  • dubbinz
    • Design Lord, Child of Thor

    @paul I don’t see a problem with what they are referring to

    My guess is they were complaining about the wpmudev-chat-bp-group in the slug though I cannot be sure. I would much rather the group chat creation be on the groups admin page and they cannot change the slug just as it is. It can cause all sorts of problems adding it to the admin side will mean work for the admin that wouldn’t be necessary. something like http://somesite.com/groups/test/chat/ would suffice.

    Am I right in what they are complaining about?

  • dubbinz
    • Design Lord, Child of Thor

    @paul I got a message from some of the people using chat after the last update I’ll post one that made sense ha!

    Jaysp656 -Hey man, just got back from work and the chat seems to now be acting funny. Everyone in it keeps changing from red to blue and back every couple minutes. Also my name is in the regular member section now.

    O_o

    http://gyazo.com/7ad8235de76a4b8c08a8b4c9a3978f67

    Just so we are clear the red to blue is a reference to the staff color and the normal members color in the text on the chat Jay is a member of staff

  • Paul
    • The Green Incsub

    @dubbinz,

    Hey man. Always glad to hear from you. Things have been busy. I’m about to push out a change 2.0.3.1 but the fixes are really only for BuddyPress issues. I’m about to take off for a long weekend and will not be able to connect to check message. So don’t want to put out a major update.

    I’m not sure I understand the ‘…changing from red to blue and back…’.

    Also the other part ‘…Also my name is in the regular member section now…’

    Are they referring to the user list at the top? Moderator vs non-moderator? I’ll be back online Sunday evening. Maybe we can discuss then.

  • dubbinz
    • Design Lord, Child of Thor

    @paul yeah no worries, there is no need for an immediate fix as the chat still functions

    You are correct about userlist. The staff on the chat are red, normal users are blue. jay is staff (author) but he has moved from staff to normal member in the chat.

  • Paul
    • The Green Incsub

    @dubbinz,

    That is strange. I need to log back into your site this morning and see if I can see this in action. just tested on my own setup using multiple browsers and not seeing this display. Will get you fixed.

    Are you still having issues with the ‘n’ showing on the code parts of messages? The message filtering was recoded back in 2.0.3 and wanted to check to make sure this bug was killed.

  • Paul
    • The Green Incsub

    @dubbinz,

    Actually I was able to figure out something this morning. This is related to the user moderator status not being properly updates in wp_wpmudev_chat_users table. Meaning once the initial user+chat_id record is written only the timestamp is updated. Will have a new beta for you to try later this morning.

  • dubbinz
    • Design Lord, Child of Thor

    @paul ok installed it, while I don’t see any users in the modlist anymore I have however been informed of a hack that allows the user to make himself appear as a mod (no priveleges but he will be in the modlist and have mod colors) and I asked the member to make a video of it but I don’t want to post this video in public so please give me an email addy to send it to once I have it

  • dubbinz
    • Design Lord, Child of Thor

    @imperative Ideas I agree that arrowchat is impressive and extremely light and well made and I would love it if wpmu chat followed it’s example however it doesn’t incorporate the wordpress userbase does it? It’s not a chat designed for wordpress/buddypress either is it, this is why I would rather support wpmu chat anyway. I can only hope wpmu keep developing chat until it stands as an equal to this program.

    @paul email sent

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.