http://opensource.org/licenses/gpl-license.php GNU General Public License v2Ajax ShoutBoxThis mod add a shoutbox to your forum index.This mod requires for the user visiting the forum that he has eneblad JavaScript. Without JavaScript, the shoutbox isn't displayed.
You can place this shoutbox eveywhere on the forum, the only thing you has to do is editing the correct html file, with the changes that are normally done for index_body.html.
If you place it somewhere else as index_body.html you need also to move the call to $user->add_lang in index.php to the correct page.
Please report bug or feature requests ONLY at http://www.paulsohier.nl/ajax/ Thats the only place where I will answer bugreports and featurerequests!Paul Sohiermods@paulscripts.nlPaulhttp://www.paulscripts.nl/103easy3.0.RC7302007-05-28001First release for phpBB3.2007-06-18002Update code to fit code guidelines a bit moreDont display page numbers when there is only 1 page (xsnslaine)Changed way of handling errors (Bug by xsnslaine)Refresh shoutbox after deleting message (Mrtb)Added 3px left padding to message (dr.death)Usernames where not bold displayed when user has a color (dr.death)Underline bbcode wasnt working (Mrtb)U bbcode button wasnt underlined (Mrtb)(Dont work with firefox!)Moved language file to mods directory.Fixed underlined space in bbcode button (ZeroT)Rewrited pagination functionsSubsilver2 compitableChanged empty message checkFixed refreshing of pagination2007-07-20003Better followed MODX rules.Code guidelines updatesFixed wrong path to language file.XHTML compitable fixFixed a small JS errorChanged way the subsilver version is displayed. Looks lot beter now2007-08-04100Fixed UTF8 issues.Fixed error handling againMOD submitted to MODDB, but without subsilver version.2007-09-17005Adding $phpbb_root_path to append_sid callsUse big number for messages in operaLowered number of messages in IEFixed table prefix in install fileFixed a cookie bugChange way for checking cdata blocks. Borrowed from cortex xml, written by VicLanguage items uppercase. NOTE: This means ALL old lang files will NOT longer work!!!2007-09-23006NOTE: This version isnt publicly released!Fixed a mistake with the new cdata function.A lot of updates for submissions. Mostly code guideline thingies2007-10-06007Fixed a problem with UTF8 data.Moved static javascript to static.jsMoved dynamic javascript to js.php. This both change means that you need to edit 2 files when upgrading, see contrib dir for more info!Moved loading of language to index.php instead including it everywhere.Fixed some tabs in the js files.Moved html for the shoutbox to a seperate file thats included within the shoutbox2007-10-06008RC6-dev lang file changeFixed a bug with the number of shouts.2007-10-06102See all changes above for the versions after 1.0.1.2007-03-11009Bug #8: causes to invalid xml.Bug #10: Fixed a typo in subsilver install fileBug #12: RC7 compitable, bbcode field should be 8 chars instead of 5Bug #20: Fixed a bug when the shoutbox was displayed at the posting pageBug #24: Let html work in datesBug #25: typo in lang fileMoved the prosilver changes to the main install file to prevent support questionsChanged way of inserting bbcode, related to bug 20. This means bbcode.js is not longer needed, and the default phpBB bbcode functions are used.2007-11-120010Dont add a [*] at the end of the message. (This fix was also backported to a repacked 0.0.9)Let the bbcode work again. (This fix was also backported to a repacked 0.0.9)Changed the function that create html a bit so it allow nearly all tags by default, except scriptAdded better support for subsilver2, css and html tweaked/created by MrtbFixed bbcode buttons in IE (I hate that browser @_@)All changes below are fixes from the validation done by the MOD team:Replaced several die's with exit;Several whitespace issues fixedUsing do while instead of while and forAdded a error when a guest *tries* to post, this should normally not possible. Note that this adds a new lang varRemoved the generate_text_for_storage_no_quote function, as its not needed longerReplaced some dutch with english in the xmlUsed fetchfield instead of fetchrow where possibleRemoved a strlen, and hardcode the value (including a comment what the number is :P)Changed some var names in the js.php file so they are a bit more descriptive2007-11-14103See all changes above for the versions after 1.0.2.CREATE TABLE phpbb_shoutbox (
shout_id int(11) unsigned NOT NULL auto_increment,
shout_user_id mediumint(8) NOT NULL,
shout_time int(11) NOT NULL,
shout_ip varchar(32) character set latin1 NOT NULL,
shout_text text collate utf8_bin NOT NULL,
shout_bbcode_bitfield varchar(255) character set latin1 NOT NULL,
shout_bbcode_uid varchar(8) character set latin1 NOT NULL,
shout_bbcode_flags int(11) unsigned NOT NULL default '7',
PRIMARY KEY (shout_id)
) DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
$user->setup('viewforum');$user->add_lang('mods/shout');]]>define('SHOUTBOX_TABLE', $table_prefix . 'shoutbox');assign_vars(array(]]> append_sid("{$phpbb_root_path}js.$phpEx"),
'U_SHOUT_STATIC' => append_sid("{$phpbb_root_path}static.js"),]]>try
{
// we ignore the end value for IE, this is already dirty enough and we don't need it
caretPos.start = txtarea.sel_start;
caretPos.end = txtarea.sel_start;}
catch(e)
{
}