http://opensource.org/licenses/gpl-license.php GNU General Public License v2 Ajax ShoutBox This 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 Sohier mods@paulscripts.nl Paul http://www.paulscripts.nl/ 1 0 3 easy 3.0.RC7 3 0 2007-05-28 0 0 1 First release for phpBB3. 2007-06-18 0 0 2 Update code to fit code guidelines a bit more Dont 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 functions Subsilver2 compitable Changed empty message check Fixed refreshing of pagination 2007-07-20 0 0 3 Better followed MODX rules. Code guidelines updates Fixed wrong path to language file. XHTML compitable fix Fixed a small JS error Changed way the subsilver version is displayed. Looks lot beter now 2007-08-04 1 0 0 Fixed UTF8 issues. Fixed error handling again MOD submitted to MODDB, but without subsilver version. 2007-09-17 0 0 5 Adding $phpbb_root_path to append_sid calls Use big number for messages in opera Lowered number of messages in IE Fixed table prefix in install file Fixed a cookie bug Change way for checking cdata blocks. Borrowed from cortex xml, written by Vic Language items uppercase. NOTE: This means ALL old lang files will NOT longer work!!! 2007-09-23 0 0 6 NOTE: This version isnt publicly released! Fixed a mistake with the new cdata function. A lot of updates for submissions. Mostly code guideline thingies 2007-10-06 0 0 7 Fixed a problem with UTF8 data. Moved static javascript to static.js Moved 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 shoutbox 2007-10-06 0 0 8 RC6-dev lang file change Fixed a bug with the number of shouts. 2007-10-06 1 0 2 See all changes above for the versions after 1.0.1. 2007-03-11 0 0 9 Bug #8:   causes to invalid xml. Bug #10: Fixed a typo in subsilver install file Bug #12: RC7 compitable, bbcode field should be 8 chars instead of 5 Bug #20: Fixed a bug when the shoutbox was displayed at the posting page Bug #24: Let html work in dates Bug #25: typo in lang file Moved the prosilver changes to the main install file to prevent support questions Changed 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-12 0 0 10 Dont 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 script Added better support for subsilver2, css and html tweaked/created by Mrtb Fixed 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 fixed Using do while instead of while and for Added a error when a guest *tries* to post, this should normally not possible. Note that this adds a new lang var Removed the generate_text_for_storage_no_quote function, as its not needed longer Replaced some dutch with english in the xml Used fetchfield instead of fetchrow where possible Removed 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 descriptive 2007-11-14 1 0 3 See 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) { }

{L_STATISTICS}

{TOTAL_POSTS} • {TOTAL_TOPICS} • {TOTAL_USERS} • {NEWEST_USER}

]]>
]]>
]]> ]]>