MyBB Community Forums

Full Version: [1.4] AJAX Shoutbox Beta...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10
Here we are, with a shoutbox plugin for MyBB that is fast and elegant. It uses the AJAX technology with fair usage of javascript and a mechanism that utilizes minimal resources while distributing the load between client side and server side.

Hopefully, you will find it faster than the shoutbox offered by other forum softwares in competition of MyBB.

Installation instructions can be found here:
http://spicefuse.com/spicefuse-ajax-shou...-t-69.html

If you are wondering, why another shoutbox, then there's a reason. MM has a shoutbox there which is better suited if you want to use it as a shoutbox (less active one), but this one's more like a 'chatbox' which users on most of the forums I moderate, love to use. Why I called it "shoutbox" is because it still is a shoutbox. Confusing, eh?

Let me give you a warning, it hasn't been tested much, so hold on until some people test before you use on production environment.

Ps., can that qualify as a new year gift for some? Big Grin

Edit: Updated for MyBB 1.4 on August 11, 2008 with new features. The latest version is 1.1 Beta 1.
Have a demo of it yet?
Can't be bothered to put up one until 3rd of January. Someone from the generous testers can put it up for other users, if he or she wishes to. Smile
Ok, a demo is online at spicefuse.com already ... hehe, some free time Smile
That's really nice Asad_Niazi. Looks great. Thank you.
Brill work, all that need to be done is edit peopels shouts, when you press enter it shouts and message deletes after it shouts and you have a full working shout box
Thanks rune, but I intentionally left out "Editing" option as it really isn't worth the hassle involved. Afterall, most of the shouts are one-liners. and ahh yeah, I see what you are talking about on the other part. I will see how can I effectively make available the "press enter key to shout" option.

rune Wrote:message deletes after it shouts and you have a full working shout box
Sorry, can you elaborate on that please?

Edit: You can edit sf_shoutbox template to enable the "enter to submit" functionality, and "clear the text when posting a shout":
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<thead>
<tr>
<td class="thead" colspan="5">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse.gif" id="shoutbox_img" class="expander" alt="[-]" /></div>
<div><strong>{$lang->sf_sb_shoutbox}</strong> (<a href="index.php?action=full_shoutbox">{$lang->sf_sb_fullsbox}</a>)<br /></div>
</td>
</tr>
</thead>

<tbody id="shoutbox_e">
<tr>
 <td class="trow2" align="center"><form onSubmit="ShoutBox.postShout(); $('shout_data').value = ''; return false;">{$lang->sf_sb_shout} <input type="text" id="shout_data" size="50" /> - <input type="submit" value="{$lang->sf_sb_shoutnow}" id="shouting-status" /></form></td>
</tr>
<tr>
 <td class="trow1"><div id="shoutbox_data" style="height: {$mybb->settings[sf_sb_height]}px; overflow: auto;">{$lang->sf_sb_loading}</div></td>
</tr>
</tbody>
</table>

<br />

<script>
ShoutBox.refreshInterval = {$mybb->settings[sf_sb_refresh_interval]};
ShoutBox.MaxEntries = {$mybb->settings[sf_sb_shouts_main]};
ShoutBox.lang = ['{$lang->sf_sb_posting}', '{$lang->sf_sb_shoutnow}', '{$lang->sf_sb_loading}'];
{$extra_js}
Event.observe(window, 'load', ShoutBox.showShouts); 
</script>

The latest zip file has been updated as well.
When you shout in the shout box, you have to delete the message where in others the message goes when it is shouted.
Thanks for clearing that up, rune. I get what you mean, it's been included in the code above.
i think that you should be able to set only the users that you want to see the shoutbox eg like only the forum staff can see it or only staff can see and maybe gold members or somthing like that. or what ever you have on your forum as member groups


dont now if this can be done but it would be a nice thing to have

also it is look very nice

keep up the work
Pages: 1 2 3 4 5 6 7 8 9 10