XF 1.x Chat - Product updates

New features
Admins have now the option to set default user settings for users that haven't used the chat before.
New Commands
  1. /prune - Deletes all messages from the room.
  2. /prune all - Deletes all messages from all rooms.
  3. /quit - Logs you out from the chat leaving a notification message. Optionally you can leave a custom message after the command. This command is permission based and you can also globally enable/disable it via chat admin options.
  4. /clear - Clear all the messages in the chat window (does not delete them).
  5. /help - Will display an overlay with information about the chat commands.
  6. /rooms - Will display the available rooms.
  7. /rules - Will display an overlay with the rules you have set in admin options.
When you delete all messages, the chat bot will display a message notification to all users.
To use /prune command you need to have the "Delete all messages" permission.
Improvements
  1. Edit, delete and prune actions will now be reflected to all chatters on chat refresh without having to reload the page.
  2. Now you can allow room change in embed mode by passing an extra parameter: 'rooms=1'.
Bug Fixes
  1. Clicking on tagged users in messages or users mentioned in chat bot messages, will insert a @username/guest in the chat input.
  2. Session for users who visits the chat page, with admin option "Display chat page visitors in chatters list" enabled, wasn't available on first load
  3. The user count in the chat bar reflected the users chatting in the current room instead of the whole chat.
  4. Admin option "Enable /me command" had a typo in the option ID
NOTE: Don't forget to clear the browser cache. Also, a new folder in "data" has been added that needs to be uploaded to "data" folder on your server.

1.15.2 - Bug Fixes

Version 1.15.2 fixes a bug with autoscroll on page load when there are embedded images.
Also, a phrase has been removed because it was from another Add-on of mine and I accidentally set it to this Add-on.
Version 1.15.2 has been tested with XF 1.5 Beta 2 and no issues have been found so far.
NOTE: Please clear the browser cache after upgrade.
Improvements
  • I have added style properties to allow you to change the color of the Font Awesome icons. This includes the editor icons.
  • I have made a small aesthetic change to the message list to prevent the date to go bellow the message.
Bug Fixes
  • Changing user options after changing the color message with the color picker breaks the message color code.
  • The content height in "Maximized mode" on "All Pages Mode" with notices or ads enabled, was not adjusted correctly.
  • Misspelled word in user group permissions.
NOTE: Please clear the browser cache.
New Features
Display chat page visitors in chatters list (allows you to globally display chat page visitors in the chatters list). This option can be enabled/disabled from admin chat options.
Also, now you have the option to disable the chat tab chatters count.
User Settings Improvements
  • Added color picker (You can enable/disable the color picker from Admin Options)
  • Added user group permissions for colored messages
Bug Fixes
  • Possible error in admin error log when there are messages that you don't have permission to view.
  • "Delete all messages" didn't fit in the menu on "All Pages Mode".
  • Double quotes in new thread and new posts bot messages were being escaped.
  • The user display mode didn't match the default mode set in admin option when user changed the settings for the first time.
  • The cursor in Firefox didn't get in front of the username when clicking to tag a user or whisper.
  • Tagged users that didn't had permission to enter a chat room were receiving alerts.
Changes
Edit/Delete/Report/Quote icons now show up when you hover over the date and they will replace the date for 2.5 seconds. This is experimental to fix a possible issue when the message is closer to the date and try to click one of the icons.
NOTE: Please clear the browser cache for the changes to take effect in the JS script.
Version 1.14.0 allows you to embed the chat with any room anywhere you want in the template using a callback with XF's Template Modifications System.
Supports two modes: Node and Sidebar.
Embed a room in a node:
<xen:callback class="Siropu_Chat_Callback" method="getChat" params="{xen:array 'room_id=id'}"></xen:callback>
Embed a room in the sidebar:
<xen:callback class="Siropu_Chat_Callback" method="getChat" params="{xen:array 'room_id=id', 'sidebar=1'}"></xen:callback>
As admin you can now see room id in rooms list so you can easily find it when you need it to embed a room.
Bug Fixes:
Code error with message type and empty messages.
If a room is deleted, the bans for that room will also get deleted.
NOTE: You may need to clear the browser cache for the changes to take effect.

1.13.2 - Bug Fixes

Version 1.13.2 fixes the following bugs:
  1. View permission on chat page.
  2. Ban error when not using chat rooms.
  3. Sound play when chat loads.
For the last issue you might need to clear the browser cache for the changes to take effect.
Version 1.13.1 fixes a bug in the installer class.
I'm really sorry about that, I never got the error while testing due to a "Content Type Management" development Add-on I was using.
User Tag Improvements
Tag Alert Notifications (Enable/Disable Admin Option)
Link tagged users to their profile (Enable/Disable Admin Option)
Remove @ character from message if you have the XF option "Keep @ character with user tagging" unchecked.
When typing with @ in the chat input, the user list will show up for easy tagging.
New Message Feature
You can now Quote chat messages very easily by clicking the "Quote" icon of the message.
New BBCodes
Quote, Spoiler and Code BBCode have been added.
The BBcodes insert overlay (URL, IMG, MEDIA, QUOTE, SPOLIER, CODE) have now a new option called "Insert & Submit" which allows you to directly submit the message.
Ban Improvements
The option to ban multiple users have been added to the banned users list. This option also allows you to update current bans.
Now, ban/unban bot notification messages will be displayed in the room where the user was ban from and the messages displayed will be according to the ban type. If the ban is from the whole chat, The message will say "...has been banned/unbanned from the chat..." and if the ban is from certain rooms the message displayed will be "...has been banned/unbanned from the room...".
Bug Fixes
Quote, Spoiler and Code BBCode are now parsed correctly in any display mode.
You can now report "whisper" messages.
Some code bugs have been also fixed.
NOTE: Disable chat before upgrading to this version to avoid possible database errors during upgrade.
Version 1.12.1 fixes a bug in whisper command when using colored messages feature.
I've also made some improvements to the whisper link action so that when you add a extra user to the whisper group and click it again, it will remove that user or if it's only a user, it will clear the input.
Version 1.12.0 comes with the following features:
/whisper command (Permission based)
Allows you to send private messages to chatters, and the best part is that it supports multiple recipients at the same time.
/whisper [User 1, User 2] your message
You can either write this manually or you can click the new "Whisper" link in the user actions menu. If you click on multiple users "Whisper" action, they will be added to the group.
When the message shows up, you can see who else received the message and if you click on the "Whisper" text, you can send a new message to the same group, without having to click again on their "Whisper"link.
The /whisper command can be globally switched on/off from admin options and there are also user group permissions.
Chat Rules
Allows you to set chat rules. If rules are set, a link will appear in the chat title bar and when clicked, the rules will popup in the overlay.
Bug Fixes
In previews versions users banned from the whole chat could still see the chat on the chat page even if the option to now view chat was set. This has been fixed now.
Chat room edit/delete icons didn't worked with font awesome.
Chat room delete didn't worked anymore due to some previews changes that I've done and forgot to update.
Version 1.11.1 fixes a few bugs and comes with some small features and improvements.
In previews versions if a user had a username that contained characters like backslash, the tagging system won't work so this problem has been fixed and now the tag will be also displayed in the chat archive.
A bug with incorrect username in the bot thread activity has been also fixed.
Now you can disable the chat tab simply by leaving the position value empty. If the tab is disabled, the link to the chat page will be displayed in the chat title bar.
Maximum massage length option has been added to control how many characters can be posted in a message. If the message exceeds the limit, it will be trimmed to the limit length.
Other improvements that may help performance for when you post or when the chat refreshes:
If there are no new messages, the messages template won't be called.
If the option "Refresh chatters list every x seconds" is set, the users template won't be called between the set interval.
Version 1.11.0 comes with the following new features and improvements:
Report System (Permissions Based)
Now users can report messages and you can set the option to delete reports when reported messages get deleted and to delete older reports after x days.
Performance
I've takes some first steps to improve performance by adding 2 new admin options that controls how often the chatters list refreshes and how often the user chat session updates when posting. This could save 2 db queries per request when posting and 1 query when the chat refreshes. You can enable these options if you have many active chatters.
Also I've made some changes to one of the chat settings. "Hide ignored users messages" has been changed to "Show ignored users messages" because I think it makes more sense.
Bug Fixes
  1. The error on the chat page has been fixed.
  2. In the previews version you couldn't search in archive by General Chat room.
Some of the requested features that didin't get in 1.11.0 will get in 1.12.0.
Version 1.10.0 comes with the following new features:
New Admin Options
  1. Enable/disable chatters list
  2. Enable/disable new message window blink alert
New Style Property
Set bot avatar
New User Settings
  1. Choose display mode (Permission based)
  2. Hide messages from ignored users
Archive Search Improvements
  1. Admins and moderators can now search in all rooms.
  2. Ability to search by keywords.
Disallowed BBCodes improvements
Now you can also disallow custom BBCodes.
Messages list changes
The edit/delete icons are now displayed when you hover over the message.
Chatters list changes
  1. Now you can Ignore/Unignore users directly from the chat user menu.
  2. A link to warn has been added.
Bug Fixed
  1. Media URLs are now posted as links when media BBCode is disabled.
  2. Disallowed BBCodes won't get parsed anymore when post is edited.

1.9.1 - Bug Fixes

Version 1.9.1 fixes some bugs in chat page (ban notice display, permission and some code issue), archive (search by password protected rooms if has password bypass permission and prevent search hacking if doesn't have permission to view certain rooms).
Also, "Unknown page" in last seen activity now displays "Viewing chat page".
New features:
  1. Users can now hide the chatters list via chat settings.
  2. When enabling chat page, you can set the position of the chat tab.
Bug fixes
  1. Invalid icon for idle users has been fixed.
  2. The height in maximezed feature in All Pages mode is now handeled by javascript. I hope this will be ok for all users.
  3. Smilies CSS problems have been fixed.
Improvements
  1. Text has been added for Rooms and Option buttons.
  2. When users toggle the editor position, they will see an alert message to reload the page.
  3. You can't tag the same user more than once in a message if you click on it multiple times.
  4. z-index for All Modes except All pages has been lowered to 9.
I hope I haven't missed anything. :)

1.8.2 - Bug Fix

Version 1.8.2 fixes some bugs in the ban system. Also some improvements have been made so that if a user is banned in certain room and the ban notice is displayed in place of the editor, and the user joins another room where has access, a popup confirm message to reload the page to chat will be displayed.

1.8.1 - Bug Fix

Version 1.8.1 fixes a thread post bug.
I'm pleased and excited to release version 1.8.0 with the following new features and improvements:
Rooms (User Group Based Permissions)
  • Enable/disable rooms feature.
  • Users can Add/Edit/Delete Rooms from within the chat if they have permission.
  • Admin can create rooms with user group based permissions.
  • Users can password protect their rooms if they have permission.
  • Users can bypass password if they have permission.
  • You can view who's chatting and in which room.
  • By using /room and then typing you can search for rooms.
Style Properties
Allows you to style almost every element of the chat.
You can also change the image icons.
/me command (User Group Based Permissions)
  • Enable/disable the /me command.
  • Set if command is displayed by the chat bot.
Top Chatters
  • Enable/disable top chatter list with limit.
  • Admin can reset top chatters list any time.
New Options
  • Enable avatars in message list
  • Hide users after x minutes of inactivity
  • Disallowed BBCodes (Allows you to disallow certain BBCodes)
  • Disable all BBCodes
Displayed notifications (By the Chat Bot)
  • User has been banned
  • User has been unbanned
  • User has joined the room
  • User has left the room
  • User has registered
Archive Improvements
You can now search by rooms too.
Moderator Improvements
Users can now be banned from certain rooms or from the whole chat for hours, days, weeks, months, years or permanently.
You can now search for banned users.
New User Setting
Users can now toggle the chat editor position (top or bottom) - Requires page refresh.
"Delete all" Improvements
When using the "Delete all messages" feature you can now choose to delete messaged from all rooms or from certain rooms.
Other Improvements
Now you click to tag multiple users.
If sound is enabled and the chat is opened on multiple pages, the sound will play on the active window only. Also now an alert message will blink in the window tab if the chat page is not focused.
IMPORTANT CHANGES
Contents from "data" folder have been moved to "styles".
Font Awesome options from Admin Options have been moved to Style Properties settings.
Bugs Fixed
Maximized user setting and some other code bugs have been fixed.
I hope I didn't missed anything because too many changes have been done. :)
A LOT of work has been put into this release so reviews are appreciated. :)

1.7.1 - Bug Fix

Version 1.7.1 fixes some bugs with last message in All Pages Mode and some hard coded template backgrounds.
The tag system has been optimized for better performance when chat refreshes.
Version 1.7.0 comes with the following new features:
Font Awesome Support
Allows you to use Font Awesome icons instead of image icons. You can choose your own icons and you can even include Font Awesome if you don't have it installed.
Display moderator ban actions
If enabled, moderator ban/unban actions will be displayed in the chat by the chat bot.
Chat view permission has been added
Now you can allow guests or other groups to only view the chat without having the option to post in the chat by setting the use permission to "Never" and view permission to "Allow".
Some small bugs have been fixed.
Back
Top