PDA

View Full Version : TaigaChat - AJAX shoutbox 0.4.3



s0ct0j0c
21-04-2011, 02:32 PM
Features:



Animated AJAX refresh (configurable delay), paused when document/tab is not focused and disabled for guests
Full set of admin options (http://xenforo.com/community/attachments/vf4-png.5367)
Fully configurable permissions (http://xenforo.com/community/attachments/eexb-png.5305) - view, post, modify own, modify all
Full size view (http://xenforo.com/community/attachments/3dir-png.5304)
Above/below forum list alternative template (http://xenforo.com/community/attachments/zlca-png.5365/)
Edit/Delete message controls
Automatic cron cleanup (truncates to 1000 latest messages)
Popup chat window
All the usual shoutbox features - give it a try on my site: http://www.gamingmasters.co.uk/ (guest posting is enabled)





Installation:



Upload contents of upload folder to forum root
Install addon xml file
Add the template include code to forum_list either above or below the sidebar_online_users include (whatever you feel looks best):

PHP:
<xen:include template="dark_taigachat" />


Or, if you want the shoutbox above or below your forum list, add the following code to forum_list:

PHP:
<xen:include template="dark_taigachat"><xen:set var="$taigachat_alt">1</xen:set></xen:include>

Either just before or just after:

PHP:
<xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>

Configure the permissions (view, post, modify own, modify all) for your user groups. If you have trouble accessing the modify tools, ensure the Administrative group is your primary usergroup rather than a secondary one.

Updating: (0.1.x to 0.2.0)


Upload the contents of upload folder to your forum root, overwriting all files.
Perform upgrade process with the new addon xml file.





Changelog:

0.4.3 (28/03/2011):



Halved the number of AJAX requests used when posting.
Improved overall stability of the refreshing code, especially when sending messages in rapid succession.
Fixed regression in 0.4.2 causing the shoutbox to not load without posting permission.
Fixed tab/window focus detection in IE and Chrome

0.2.0 (21/11/2010):


Added Popup view
Added support for XenPorta (simply add the include code to one of its templates)
Users viewing the shoutbox no longer show up as viewing 'Unknown page' on the online list.
Users will now have their last activity date updated when posting shoutbox messages and will therefore no longer go offline while using the shoutbox.
Fixed 'Uncaught error'
Fixed redirection after editing/deleting messages with rewrites turned off.
The navigation tab and dropdown menu now use the XF link builder.

0.1.4 (03/11/2010):



Fixed server error some users were experiencing when installing or uninstalling the addon.

0.1.3 (01/11/2010):



Moved Message Tools dropdown to the left of the message timestamps.
Fixed 'Always show message tools dropdown' option, which previously also overrode full view.
Reimplemented permissions using built-in helper methods.

0.1.2 (31/10/2010):



Fixed regression in 0.1.1 - plain URLs weren't being parsed into links correctly.

0.1.1 (31/10/2010):



Added alternative template code, suitable for inclusion above or below the forum list.
Added extra image display modes: Zoom and Thumbnail Zoom (the latter being the new default), both based on XenForo's click to expand system.
Added configurable BBCode parsing levels: Full (old behaviour), Basic (the new default; img, url, b, i, u, s, color) and None (url only).
Added height setting to the admin options.
Guest posting is now supported (with the appropriate permissions). Auto refresh will also apply for guests if they have permission to post.
Reorganised admin options page.
Added option (default off) for message tools to be displayed on the sidebar/alt view.
The Shoutbox tab is no longer shown to people who do not have the view permission.
Combined most of the dark_taigachat and dark_taigachat_full templates into a single template.
Javascript optimisation: no fading effect if 3 or more messages are being added at once.
Fixed Delete button on the Edit form not refreshing the page while in overlay mode.



0.1.0 (30/10/2010):



Added a full size shoutbox (http://www.gamingmasters.co.uk/taigachat/) page.
Added admin settings: Refresh time, Enable, Reverse direction, [number of] Visible shouts, Add navbar tab, Maximum message length.
Added edit and delete controls on full size view.
Added permissions: view, post, modify own, modify all.
Added daily clean up cron to remove all but the latest 1000 messages (1000 in case an archive is added later).
Added automatic install/uninstall code.
Now makes use of xen:link etc. to correctly compensate for rewrites being off
Now uses JSON (and more of the XenForo javascript framework) rather than raw output, to allow for proper error handling, etc.
Messages will now display on the same line as username if possible, otherwise they will wrap directly after the username as before.
Made some optimisations to the Javascript (such as not refreshing the timestamps with every refresh)
Message input box now has a placeholder of 'Enter message...'
Various minor CSS changes



0.0.1 (29/10/2010):



First public release

Demo : www.xenforomods.info (http://www.xenforomods.info/)


Download 0.3.1

http://xenforomods.info/threads/taigachat-ajax-shoutbox.179/page-2#post-8521

Download 0.4.1 (01/02/2011)

http://xenforomods.info/threads/taigachat-ajax-shoutbox.179/page-2#post-8589

Updating: (0.4.0 to 0.4.1)





Upload the contents of upload folder to your forum root, overwriting all files.
Perform upgrade process with the new addon xml file.
Revert+merge all TaigaChat templates you have modified (significant changes made to all of them)
Upload new /xenPorta/upload/library/EWRporta/Block/TaigaChat.php if you are using XenPorta.