Update 0.0.4

Update 0.0.4
This commit is contained in:
dmzx
2015-03-16 16:23:11 +01:00
parent bc1124abee
commit 4afbdcf7fe
37 changed files with 941 additions and 1305 deletions

View File

@@ -71,7 +71,6 @@ class acp_mchat_module
$this->php_ext = $phpEx; $this->php_ext = $phpEx;
$this->table_prefix = $phpbb_container->getParameter('core.table_prefix'); $this->table_prefix = $phpbb_container->getParameter('core.table_prefix');
// Add the wpm ACP lang file // Add the wpm ACP lang file
$user->add_lang_ext('dmzx/mchat', 'info_acp_mchat'); $user->add_lang_ext('dmzx/mchat', 'info_acp_mchat');
@@ -147,7 +146,6 @@ class acp_mchat_module
// Replace "error" strings with their real, localised form // Replace "error" strings with their real, localised form
$error = preg_replace('#^([A-Z_]+)$#e', "(!empty(\$user->lang['\\1'])) ? \$user->lang['\\1'] : '\\1'", $error); $error = preg_replace('#^([A-Z_]+)$#e', "(!empty(\$user->lang['\\1'])) ? \$user->lang['\\1'] : '\\1'", $error);
if (!sizeof($error)) if (!sizeof($error))
{ {
foreach ($mchat_row as $config_name => $config_value) foreach ($mchat_row as $config_name => $config_value)
@@ -195,7 +193,6 @@ class acp_mchat_module
$mchat_new_posts = isset($config['mchat_new_posts']) ? $config['mchat_new_posts'] : 0; $mchat_new_posts = isset($config['mchat_new_posts']) ? $config['mchat_new_posts'] : 0;
$mchat_stats_index = isset($config['mchat_stats_index']) ? $config['mchat_stats_index'] : 0; $mchat_stats_index = isset($config['mchat_stats_index']) ? $config['mchat_stats_index'] : 0;
$dateformat_options = ''; $dateformat_options = '';
foreach ($user->lang['dateformats'] as $format => $null) foreach ($user->lang['dateformats'] as $format => $null)
{ {

View File

@@ -1,32 +1,32 @@
{ {
"name": "dmzx/mchat", "name": "dmzx/mchat",
"type": "phpbb-extension", "type": "phpbb-extension",
"description": "mChat Extension for phpbb 3.1.x", "description": "mChat Extension for phpbb 3.1.x",
"homepage": "http://www.dmzx-web.net", "homepage": "http://www.dmzx-web.net",
"version": "0.0.3", "version": "0.0.4",
"time": "2015-03-10", "time": "2015-03-10",
"keywords": ["phpbb", "extension", "mchat"], "keywords": ["phpbb", "extension", "mchat"],
"license": "GPL-2.0", "license": "GPL-2.0",
"authors": [ "authors": [
{ {
"name": "dmzx", "name": "dmzx",
"homepage": "http://www.dmzx-web.net", "homepage": "http://www.dmzx-web.net",
"email": "info@dmzx-web.net", "email": "info@dmzx-web.net",
"role": "Extension Developer" "role": "Extension Developer"
}, },
{ {
"name": "Rich McGirr", "name": "Rich McGirr",
"homepage": "http://rmcgirr83.org", "homepage": "http://rmcgirr83.org",
"role": "Author" "role": "Author"
} }
], ],
"require": { "require": {
"php": ">=5.3.3" "php": ">=5.3.3"
}, },
"extra": { "extra": {
"display-name": "mChat Extension", "display-name": "mChat Extension",
"soft-require": { "soft-require": {
"phpbb/phpbb": "3.1.*" "phpbb/phpbb": "3.1.*"
} }
} }
} }

View File

@@ -7,7 +7,6 @@
* *
*/ */
/** /**
* DO NOT CHANGE! * DO NOT CHANGE!
*/ */
@@ -96,7 +95,6 @@ $lang = array_merge($lang, array(
'MCHAT_TOTALMESSAGES' => 'Total messages: <strong>%s</strong>', 'MCHAT_TOTALMESSAGES' => 'Total messages: <strong>%s</strong>',
'MCHAT_USESOUND' => 'Use sound?', 'MCHAT_USESOUND' => 'Use sound?',
'MCHAT_ONLINE_USERS_TOTAL' => 'In total there are <strong>%d</strong> users chatting ', 'MCHAT_ONLINE_USERS_TOTAL' => 'In total there are <strong>%d</strong> users chatting ',
'MCHAT_ONLINE_USER_TOTAL' => 'In total there is <strong>%d</strong> user chatting ', 'MCHAT_ONLINE_USER_TOTAL' => 'In total there is <strong>%d</strong> user chatting ',
'MCHAT_NO_CHATTERS' => 'No one is chatting', 'MCHAT_NO_CHATTERS' => 'No one is chatting',
@@ -216,11 +214,11 @@ $lang = array_merge($lang, array(
'UCP_MCHAT_CONFIG' => 'mChat', //Preferences 'UCP_MCHAT_CONFIG' => 'mChat', //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'mChat Table was pruned', 'LOG_MCHAT_TABLE_PRUNED' => 'mChat Table was pruned',
'ACP_USER_MCHAT' => 'mChat Settings', 'ACP_USER_MCHAT' => 'mChat Settings',
'LOG_DELETED_MCHAT' => '<strong>Deleted mChat message</strong><br />» %1$s', 'LOG_DELETED_MCHAT' => '<strong>Deleted mChat message</strong><br />» %1$s',
'LOG_EDITED_MCHAT' => '<strong>Edited mChat message</strong><br />» %1$s', 'LOG_EDITED_MCHAT' => '<strong>Edited mChat message</strong><br />» %1$s',
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Characters remaining: <span class="charsLeft error"><strong>%d</strong></span>', 'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Characters remaining: <span class="charsLeft error"><strong>%d</strong></span>',
'MCHAT_TOP_POSTERS' => 'Top Spammers', 'MCHAT_TOP_POSTERS' => 'Top Spammers',
'MCHAT_NEW_CHAT' => 'New Chat Message!', 'MCHAT_NEW_CHAT' => 'New Chat Message!',
'FONT_COLOR' => 'Font colour', 'FONT_COLOR' => 'Font colour',
'FONT_COLOR_HIDE' => 'Hide font colour', 'FONT_COLOR_HIDE' => 'Hide font colour',
'FONT_HUGE' => 'Huge', 'FONT_HUGE' => 'Huge',
@@ -229,7 +227,7 @@ $lang = array_merge($lang, array(
'FONT_SIZE' => 'Font size', 'FONT_SIZE' => 'Font size',
'FONT_SMALL' => 'Small', 'FONT_SMALL' => 'Small',
'FONT_TINY' => 'Tiny', 'FONT_TINY' => 'Tiny',
'MCHAT_SEND_PM' => 'Send Private Message', 'MCHAT_SEND_PM' => 'Send Private Message',
'MCHAT_PM' => '(PM)', 'MCHAT_PM' => '(PM)',
'MORE_SMILIES' => 'More Smilies', 'MORE_SMILIES' => 'More Smilies',
)); ));

View File

@@ -31,7 +31,6 @@ if (empty($lang) || !is_array($lang))
// Some characters for use // Some characters for use
// » “ ” … // » “ ” …
$lang = array_merge($lang, array( $lang = array_merge($lang, array(
// UMIL stuff // UMIL stuff

View File

@@ -7,7 +7,6 @@
* *
*/ */
/** /**
* DO NOT CHANGE! * DO NOT CHANGE!
*/ */
@@ -96,7 +95,6 @@ $lang = array_merge($lang, array(
'MCHAT_TOTALMESSAGES' => 'Total des messages: <strong>%s</strong>', 'MCHAT_TOTALMESSAGES' => 'Total des messages: <strong>%s</strong>',
'MCHAT_USESOUND' => 'Utiliser le son?', 'MCHAT_USESOUND' => 'Utiliser le son?',
'MCHAT_ONLINE_USERS_TOTAL' => 'Au total, il y a <strong>%d</strong> utilisateurs qui discutent ', 'MCHAT_ONLINE_USERS_TOTAL' => 'Au total, il y a <strong>%d</strong> utilisateurs qui discutent ',
'MCHAT_ONLINE_USER_TOTAL' => 'Au total, il y a <strong>%d</strong> utilisateur qui discute ', 'MCHAT_ONLINE_USER_TOTAL' => 'Au total, il y a <strong>%d</strong> utilisateur qui discute ',
'MCHAT_NO_CHATTERS' => 'Personne ne tchat', 'MCHAT_NO_CHATTERS' => 'Personne ne tchat',
@@ -214,11 +212,11 @@ $lang = array_merge($lang, array(
'UCP_MCHAT_CONFIG' => 'mChat', //Preferences 'UCP_MCHAT_CONFIG' => 'mChat', //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'La table du mini-chat a été délestée', 'LOG_MCHAT_TABLE_PRUNED' => 'La table du mini-chat a été délestée',
'ACP_USER_MCHAT' => 'Paramètres du mini-chat', 'ACP_USER_MCHAT' => 'Paramètres du mini-chat',
'LOG_DELETED_MCHAT' => '<strong>Les messages de mchat ont été supprimés</strong><br />» %1$s', 'LOG_DELETED_MCHAT' => '<strong>Les messages de mchat ont été supprimés</strong><br />» %1$s',
'LOG_EDITED_MCHAT' => '<strong>Les messages de mchat ont été édités</strong><br />» %1$s', 'LOG_EDITED_MCHAT' => '<strong>Les messages de mchat ont été édités</strong><br />» %1$s',
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Caractères restants: <span class="charsLeft error"><strong>%d</strong></span>', 'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Caractères restants: <span class="charsLeft error"><strong>%d</strong></span>',
'MCHAT_TOP_POSTERS' => 'Top Spammers', 'MCHAT_TOP_POSTERS' => 'Top Spammers',
'MCHAT_NEW_CHAT' => 'Nouveau Message Dans Mchat!', 'MCHAT_NEW_CHAT' => 'Nouveau Message Dans Mchat!',
'FONT_COLOR' => 'Couleur de fond', 'FONT_COLOR' => 'Couleur de fond',
'FONT_COLOR_HIDE' => 'Cacher la couleur de fond', 'FONT_COLOR_HIDE' => 'Cacher la couleur de fond',
'FONT_HUGE' => 'Énorme', 'FONT_HUGE' => 'Énorme',
@@ -227,7 +225,7 @@ $lang = array_merge($lang, array(
'FONT_SIZE' => 'Taille de la police', 'FONT_SIZE' => 'Taille de la police',
'FONT_SMALL' => 'Petite', 'FONT_SMALL' => 'Petite',
'FONT_TINY' => 'Minuscule', 'FONT_TINY' => 'Minuscule',
'MCHAT_SEND_PM' => 'Envoyer un message privé', 'MCHAT_SEND_PM' => 'Envoyer un message privé',
'MCHAT_PM' => '(MP)', 'MCHAT_PM' => '(MP)',
'MORE_SMILIES' => 'Plus de smileys', 'MORE_SMILIES' => 'Plus de smileys',
)); ));

View File

@@ -31,7 +31,6 @@ if (empty($lang) || !is_array($lang))
// Some characters for use // Some characters for use
// » “ ” … // » “ ” …
$lang = array_merge($lang, array( $lang = array_merge($lang, array(
// UMIL stuff // UMIL stuff

View File

@@ -7,7 +7,6 @@
* *
*/ */
/** /**
* DO NOT CHANGE! * DO NOT CHANGE!
*/ */
@@ -96,7 +95,6 @@ $lang = array_merge($lang, array(
'MCHAT_TOTALMESSAGES' => 'Totale messaggi: <strong>%s</strong>', 'MCHAT_TOTALMESSAGES' => 'Totale messaggi: <strong>%s</strong>',
'MCHAT_USESOUND' => 'Usa suono ?', 'MCHAT_USESOUND' => 'Usa suono ?',
'MCHAT_ONLINE_USERS_TOTAL' => 'In totale ci sono <strong>%d</strong> utenti in chat ', 'MCHAT_ONLINE_USERS_TOTAL' => 'In totale ci sono <strong>%d</strong> utenti in chat ',
'MCHAT_ONLINE_USER_TOTAL' => 'In totale un <strong>%d</strong> utente in chat ', 'MCHAT_ONLINE_USER_TOTAL' => 'In totale un <strong>%d</strong> utente in chat ',
'MCHAT_NO_CHATTERS' => 'Nessuno sta chattando', 'MCHAT_NO_CHATTERS' => 'Nessuno sta chattando',
@@ -216,11 +214,11 @@ $lang = array_merge($lang, array(
'UCP_MCHAT_CONFIG' => 'mChat', //Preferences 'UCP_MCHAT_CONFIG' => 'mChat', //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'mChat tabelle cancellate', 'LOG_MCHAT_TABLE_PRUNED' => 'mChat tabelle cancellate',
'ACP_USER_MCHAT' => 'mChat Opzioni', 'ACP_USER_MCHAT' => 'mChat Opzioni',
'LOG_DELETED_MCHAT' => '<strong>Cancella messaggi mChat</strong><br />» %1$s', 'LOG_DELETED_MCHAT' => '<strong>Cancella messaggi mChat</strong><br />» %1$s',
'LOG_EDITED_MCHAT' => '<strong>Modifica messaggi mChat</strong><br />» %1$s', 'LOG_EDITED_MCHAT' => '<strong>Modifica messaggi mChat</strong><br />» %1$s',
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Caratteri: <span class="charsLeft error"><strong>%d</strong></span>', 'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Caratteri: <span class="charsLeft error"><strong>%d</strong></span>',
'MCHAT_TOP_POSTERS' => 'Miglior Spammer', 'MCHAT_TOP_POSTERS' => 'Miglior Spammer',
'MCHAT_NEW_CHAT' => 'Nuovo messaggio in Chat !', 'MCHAT_NEW_CHAT' => 'Nuovo messaggio in Chat !',
'FONT_COLOR' => 'Font colore', 'FONT_COLOR' => 'Font colore',
'FONT_COLOR_HIDE' => 'Nascondi colore font', 'FONT_COLOR_HIDE' => 'Nascondi colore font',
'FONT_HUGE' => 'Enorme', 'FONT_HUGE' => 'Enorme',
@@ -229,7 +227,7 @@ $lang = array_merge($lang, array(
'FONT_SIZE' => 'Grandezza Font', 'FONT_SIZE' => 'Grandezza Font',
'FONT_SMALL' => 'Piccolo', 'FONT_SMALL' => 'Piccolo',
'FONT_TINY' => 'Molto Piccolo', 'FONT_TINY' => 'Molto Piccolo',
'MCHAT_SEND_PM' => 'Invia messaggio privato', 'MCHAT_SEND_PM' => 'Invia messaggio privato',
'MCHAT_PM' => '(PM)', 'MCHAT_PM' => '(PM)',
'MORE_SMILIES' => 'Altre Smile', 'MORE_SMILIES' => 'Altre Smile',
)); ));

View File

@@ -31,7 +31,6 @@ if (empty($lang) || !is_array($lang))
// Some characters for use // Some characters for use
// » “ ” … // » “ ” …
$lang = array_merge($lang, array( $lang = array_merge($lang, array(
// UMIL stuff // UMIL stuff

View File

@@ -1,235 +0,0 @@
<?php
/**
*
* @package phpBB Extension - mChat
* @copyright (c) 2015 dmzx - http://www.dmzx-web.net
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
* DO NOT CHANGE!
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
// Adding new category
$lang['permission_cat']['mchat'] = 'mChat';
// Adding the permissions
$lang = array_merge($lang, array(
'MCHAT_TITLE' => 'Mini-Chat',
'MCHAT_ADD' => 'Versturen',
'MCHAT_ANNOUNCEMENT' => 'Aankondiging',
'MCHAT_ARCHIVE' => 'Archief',
'MCHAT_ARCHIVE_PAGE' => 'Mini-Chat Archief',
'MCHAT_BBCODES' => 'BBCodes',
'MCHAT_CLEAN' => 'Opschonen',
'MCHAT_CLEANED' => 'Alle berichten zijn succesvol verwijderd',
'MCHAT_CLEAR_INPUT' => 'Reset',
'MCHAT_COPYRIGHT' => '<a href="http://rmcgirr83.org">RMcGirr83</a> &copy; <a href="http://www.dmzx-web.net" title="www.dmzx-web.net">dmzx</a>',
'MCHAT_CUSTOM_BBCODES' => 'gebruik BBCodes',
'MCHAT_DELALLMESS' => 'Verwijder alle berichten?',
'MCHAT_DELCONFIRM' => 'Ben je akkoord om te verwijderen?',
'MCHAT_DELITE' => 'Verwijder',
'MCHAT_EDIT' => 'Bewerk',
'MCHAT_EDITINFO' => 'Bewerk het bericht en klik op OKE',
'MCHAT_ENABLE' => 'Sorry, de Mini-Chat is momenteel niet beschikbaar',
'MCHAT_ERROR' => 'Fout',
'MCHAT_FLOOD' => 'Je kunt niet zo snel een bericht plaatsen, na jouw laatste bericht !!',
'MCHAT_FOE' => 'Dit bericht was gemaakt door <strong>%1$s</strong> die momenteel op jouw negeerlijst staat.',
'MCHAT_HELP' => 'mChat Regels',
'MCHAT_HIDE_LIST' => 'Lijst verbergen',
'MCHAT_HOUR' => 'uur ',
'MCHAT_HOURS' => 'uren',
'MCHAT_IP' => 'IP whois voor',
'MCHAT_MINUTE' => 'minuut ',
'MCHAT_MINUTES' => 'minuten ',
'MCHAT_MESS_LONG' => 'Jou bericht is te lang.Beperk dit a.u.b. tot %s karakters',
'MCHAT_NO_CUSTOM_PAGE' => 'De gebruikte mChat pagina is niet actief op dit moment!',
'MCHAT_NOACCESS' => 'Je hebt geen permissie om een bericht in mChat te plaatsen',
'MCHAT_NOACCESS_ARCHIVE' => 'Je hebt geen permissie om het archief te bekijken',
'MCHAT_NOJAVASCRIPT' => 'Je browser ondersteunt geen JavaScript of JavaScript is uitgeschakeld',
'MCHAT_NOMESSAGE' => 'Geen berichten',
'MCHAT_NOMESSAGEINPUT' => 'Je hebt geen bericht ingevoerd',
'MCHAT_NOSMILE' => 'Smilies zijn niet gevonden',
'MCHAT_NOTINSTALLED_USER' => 'mChat is niet geinstalleerd. Neem contact op met de beheerder van het forum.',
'MCHAT_NOT_INSTALLED' => 'mChat database invoeringen ontbreken.<br />voer a.u.b. de %sinstaller%s om de database veranderingen te maken voor deze modificatie.',
'MCHAT_OK' => 'OK',
'MCHAT_PAUSE' => 'Pauze',
'MCHAT_LOAD' => 'Laden',
'MCHAT_PERMISSIONS' => 'Verander gebruikers permissie',
'MCHAT_REFRESHING' => 'Verversen...',
'MCHAT_REFRESH_NO' => 'Verversen is uit',
'MCHAT_REFRESH_YES' => 'Ververs iedere <strong>%d</strong> seconden',
'MCHAT_RESPOND' => 'Reageer naar gebruiker',
'MCHAT_RESET_QUESTION' => 'Schoon het ingave veld op?',
'MCHAT_SESSION_OUT' => 'Chat sessie is verlopen',
'MCHAT_SHOW_LIST' => 'Toon lijst',
'MCHAT_SECOND' => 'seconde ',
'MCHAT_SECONDS' => 'seconden ',
'MCHAT_SESSION_ENDS' => 'Chat sessie eindigdt in',
'MCHAT_SMILES' => 'Smilies',
'MCHAT_TOTALMESSAGES' => 'Total berichten: <strong>%s</strong>',
'MCHAT_USESOUND' => 'Gebruik geluid?',
'MCHAT_ONLINE_USERS_TOTAL' => 'In totaal zijn er <strong>%d</strong> gebruikers aan het chatten ',
'MCHAT_ONLINE_USER_TOTAL' => 'In total is er <strong>%d</strong> gebruiker aan het chatten ',
'MCHAT_NO_CHATTERS' => 'NNiemand is aan het chatten',
'MCHAT_ONLINE_EXPLAIN' => 'gebasserd op actieve gebruikers over de afgelopen %s',
'WHO_IS_CHATTING' => 'Wie is aan het chatten',
'WHO_IS_REFRESH_EXPLAIN' => 'ververst iedere <strong>%d</strong> seconden',
'MCHAT_NEW_TOPIC' => '<strong>Nieuw Topic</strong>',
'MCHAT_NEW_REPLY' => '<strong>Nieuw antwoord</strong>',
// UCP
'UCP_PROFILE_MCHAT' => 'mChat voorkeuren',
'DISPLAY_MCHAT' => 'Toon mChat op de index pagina',
'SOUND_MCHAT' => 'Inschakelen geluid mChat',
'DISPLAY_STATS_INDEX' => 'Toon de wie is er aan het chatten op de index pagina',
'DISPLAY_NEW_TOPICS' => 'Toon nieuwe topics in de chat',
'DISPLAY_AVATARS' => 'Toon avatars in de chat',
'CHAT_AREA' => 'Invoer type',
'CHAT_AREA_EXPLAIN' => 'Kies welke type te gebruiken om een chat in te voeren:<br />een tekst gebied of<br />een invoerveld',
'INPUT_AREA' => 'Invoerveld',
'TEXT_AREA' => 'Tekst gebied',
// ACP
'ACP_MCHAT_RULES_EXPLAIN' => 'Verander hier de regels van het forum. Elke regel op een nieuwe lijn.<br />Je kunt maximaal 255 karakters gebruiken.<br /><strong>Deze boodschap kan worden vertaald..</strong> (Je moet de mchat_lang.php file aanpassen en lees de instructies).',
'LOG_MCHAT_CONFIG_UPDATE' => '<strong>Update mChat configuratie </strong>',
'MCHAT_CONFIG_SAVED' => 'Mini Chat configuratie is bijgewerkt',
'MCHAT_TITLE' => 'Mini-Chat',
'MCHAT_VERSION' => 'Versie:',
'MCHAT_ENABLE' => 'Inschakelen mChat Extensie',
'MCHAT_ENABLE_EXPLAIN' => 'In of Uitschakelen van deze extensie.',
'MCHAT_AVATARS' => 'Toon avatars',
'MCHAT_AVATARS_EXPLAIN' => 'Als je ja hebt aangevinkt, verkleinde gebruikers avatars zullen worden getoond',
'MCHAT_ON_INDEX' => 'mChat Op de Index pagina',
'MCHAT_ON_INDEX_EXPLAIN' => 'Toestaan om de mChat te tonen op de Index pagina.',
'MCHAT_INDEX_HEIGHT' => 'Index pagina hoogte',
'MCHAT_INDEX_HEIGHT_EXPLAIN' => 'De hoogte van de mChat box op de Index pagina uitgedrukt in pixels, kun je hier aanpassen.<br /><em>Je bent gelimiteerd tussen de 50 en 1000</em>.',
'MCHAT_LOCATION' => 'Locatie op het Forum',
'MCHAT_LOCATION_EXPLAIN' => 'Kies de locatie van de mChat op de Index pagina.',
'MCHAT_TOP_OF_FORUM' => 'Bovenaan op het Forum',
'MCHAT_BOTTOM_OF_FORUM' => 'Onderaan op het Forum',
'MCHAT_REFRESH' => 'Vernieuwen',
'MCHAT_REFRESH_EXPLAIN' => 'Aantal seconden dat de mChat automatische ververst wordt.<br /><em>Je bent gelimiteerd tussen 5 en 60 seconden</em>.',
'MCHAT_PRUNE' => 'Inschakelen opschonen van berichten',
'MCHAT_PRUNE_EXPLAIN' => 'Vink Ja aan als je het opschonen van berichten wilt inschakelen.<br /><em>Werkt alleen als een gebruiker de gemaakte of archief pagina bekijkt</em>.',
'MCHAT_PRUNE_NUM' => 'Het aantal berichten welke bewaard moeten worden in de mChat',
'MCHAT_PRUNE_NUM_EXPLAIN' => 'Geef hier het aantal in, van de berichten welke je bewaard wilt houden in de mChat.',
'MCHAT_MESSAGE_LIMIT' => 'Berichten limiet',
'MCHAT_MESSAGE_LIMIT_EXPLAIN' => 'Maximaal aantal berichten, welke getoond worden in de mChat.<br /><em>Aanbevolen is tussen de 10 en 30 berichten</em>.',
'MCHAT_MESSAGE_NUM' => 'Index pagina berichten limiet',
'MCHAT_MESSAGE_NUM_EXPLAIN' => 'Het maximale aantal berichten, welke getoond worden in de mChat op de Index pagina.<br /><em>Aanbevolen is tussen de 10 en 50 berichten</em>.',
'MCHAT_ARCHIVE_LIMIT' => 'Archief limiet',
'MCHAT_ARCHIVE_LIMIT_EXPLAIN' => 'Het maximale aantal berichten, welke getoond worden in de mChat op de Archief pagina.<br /><em>Aanbevolen is tussen de 25 en 50 berichten</em>.',
'MCHAT_FLOOD_TIME' => 'Wachttijd plaatsen volgende bericht, na reeds geplaatst bericht',
'MCHAT_FLOOD_TIME_EXPLAIN' => 'et aantal seconden dat een gebruiker moet wachten om een volgend bericht te plaatsen in de mChat.<br /><em>Aanbevolen is tussen de 5 en 30 seconden, 0 is uitschakelen van deze functie</em>.',
'MCHAT_MAX_MESSAGE_LENGTH' => 'Maximale berichten lengte',
'MCHAT_MAX_MESSAGE_LENGTH_EXPLAIN' => 'aximaal toegestane aantal karakters per gepost bericht.<br /><em>aanbevolen is tussen de 100 en 500 karakters, 0 is uitschakelen van deze functie</em>.',
'MCHAT_CUSTOM_PAGE' => 'Aangepaste pagina',
'MCHAT_CUSTOM_PAGE_EXPLAIN' => 'Toestaan om gebruik te maken van de mChat op de aangepaste pagina',
'MCHAT_CUSTOM_HEIGHT' => 'Aangepaste pagina hoogte',
'MCHAT_CUSTOM_HEIGHT_EXPLAIN' => 'De hoogte van de mChat box in pixels op de aangepaste mChat pagina.<br /><em>Je bent gelimiteerd tussen de 50 en 1000 pixels</em>.',
'MCHAT_DATE_FORMAT' => 'Datum weergave',
'MCHAT_DATE_FORMAT_EXPLAIN' => 'De gebruikte syntax is identiek aan de PHP <a href="http://www.php.net/date">date()</a> functie.',
'MCHAT_CUSTOM_DATEFORMAT' => 'Aangepast…',
'MCHAT_WHOIS' => 'Whois',
'MCHAT_WHOIS_EXPLAIN' => 'Toestaan om gebruikers te laten zien die gebruik maken van de mChat',
'MCHAT_WHOIS_REFRESH' => 'Whois vernieuwen',
'MCHAT_WHOIS_REFRESH_EXPLAIN' => 'Aantal seconden voordat whois statistieken worden vernieuwd.<br /><em>Je bent gelimiteerd tussen de 30 en 300 seconden</em>.',
'MCHAT_BBCODES_DISALLOWED' => 'Niet toegestane bbcodes',
'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Hier kun je de bbcodes plaatsen, die <strong>niet</strong>zijn toegstaan<strong>not</strong> om te gebruiken in een bericht.<br />Aparte BBCodes met een verticale balk , bijvoorbeeld: <br />b|i|u|code|list|list=|flash|quote and/or a %scustom bbcode tag name%s',
'MCHAT_STATIC_MESSAGE' => 'Statisch bericht',
'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Hier kan je een statisch bericht definieren, welke getoond wordt aan de gebruikers van de mChat.<br />Stel 0 in om de vertoning uit te schakelen. Je bent gelimiteerd tot 255 karakters.<br /><strong>Deze boodschap kan worden vertaald..</strong> (Je moet de mchat_lang.php file aanpassen en lees de instructies).',
'MCHAT_USER_TIMEOUT' => 'Gebruiker timeout',
'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Stel hier de seconden in, wanneer de sessie van een gebruiker eindigd. Stel 0 om de timeout uit te schakelen.<br /><em>Je bent gelimiteerd tot de %sforum instellingen voor de chat sessie, welke momenteel is ingesteld op %s seconden</em>',
'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Aantal smilie limiet',
'MCHAT_OVERRIDE_SMILIE_LIMIT_EXPLAIN' => 'SStel hier het aantal smilie limiet in voor de chat berichten',
'MCHAT_OVERRIDE_MIN_POST_CHARS' => 'Minimum karakters limit',
'MCHAT_OVERRIDE_MIN_POST_CHARS_EXPLAIN' => 'Stel ja in om het aantal minimum karakters in te stellen voor een chat bericht',
'MCHAT_NEW_POSTS' => 'Toon nieuwe berichten',
'MCHAT_NEW_POSTS_EXPLAIN' => 'Stel ja in om nieuwe berichten te plaatsen in een chat bericht<br /><strong>U moet de add-on voor de nieuwe post meldingen geïnstalleerd hebben</strong> (within the contrib directory of the extension download).',
'MCHAT_MAIN' => 'Hoofd Configuratie',
'MCHAT_STATS' => 'Wie is aan het chatten',
'MCHAT_STATS_INDEX' => 'Statistieken op de Index pagina',
'MCHAT_STATS_INDEX_EXPLAIN' => 'Laat zien wie aan het chatten is in de statistieken sectie op het forum',
'MCHAT_MESSAGES' => 'Berichten instellingen',
'MCHAT_PAUSE_ON_INPUT' => 'Pauze op eventuele inactiviteit van mChat',
'MCHAT_PAUSE_ON_INPUT_EXPLAIN' => 'Stel je ja in, dan wordt mChat niet automatisch vernieuwd, todat een gebruiker een bericht plaatst in mChat',
// error reporting
'MCHAT_NEEDS_UPDATING' => 'De mChat extensie moet worden bijgewerkt. Neem contact op met de forum beheerder om de mChat bij te laten werken.',
'MCHAT_WRONG_VERSION' => 'De verkeerde versie van de extensie is geinstalleerd. Gebruik a.u.b. de %sinstaller%s van de nieuwe versie voor eventuele wijzigingen.',
'WARNING' => 'Waarschuwing',
'TOO_LONG_DATE' => 'De datum weergave die je hebt ingegeven is te lang.',
'TOO_SHORT_DATE' => 'De datum weergave die je hebt ingegeven is te kort.',
'TOO_SMALL_REFRESH' => 'De waarde voor het vernieuwen van de pagina is te klein.',
'TOO_LARGE_REFRESH' => 'De waarde voor het vernieuwen van de pagina is te groot.',
'TOO_SMALL_MESSAGE_LIMIT' => 'De waarde van de berichten limiet is te klein.',
'TOO_LARGE_MESSAGE_LIMIT' => 'De waarde van de berichten limiet is te groot.',
'TOO_SMALL_ARCHIVE_LIMIT' => 'De waarde van het archief limiet is te klein.',
'TOO_LARGE_ARCHIVE_LIMIT' => 'De waarde van het archief limiet is te groot.',
'TOO_SMALL_FLOOD_TIME' => 'De waarde van de hoeveelheid aan data in een bepaalde tijd is te klein.',
'TOO_LARGE_FLOOD_TIME' => 'De waarde van de hoeveelheid aan data in een bepaalde tijd is te groot.',
'TOO_SMALL_MAX_MESSAGE_LNGTH' => 'De waarde van de maximale lengte van berichten is te klein.',
'TOO_LARGE_MAX_MESSAGE_LNGTH' => 'De waarde van de maximale lengte van berichten is te groot.',
'TOO_SMALL_MAX_WORDS_LNGTH' => 'De waarde van de maximale lengte van het aantal woorden is te klein.',
'TOO_LARGE_MAX_WORDS_LNGTH' => 'De waarde van de maximale lengte van het aantal woorden is te groot.',
'TOO_SMALL_WHOIS_REFRESH' => 'De verversing van de whois waarde is te klein.',
'TOO_LARGE_WHOIS_REFRESH' => 'De verversing van de whois waarde is te groot.',
'TOO_SMALL_INDEX_HEIGHT' => 'De waarde van de index hoogte is te klein.',
'TOO_LARGE_INDEX_HEIGHT' => 'De waarde van de index hoogte is te groot.',
'TOO_SMALL_CUSTOM_HEIGHT' => 'De waarde van de gemaakte hoogte is te klein.',
'TOO_LARGE_CUSTOM_HEIGHT' => 'De waarde van de gemaakte hoogte is te groot.',
'TOO_SHORT_STATIC_MESSAGE' => 'De waarde van de statische berichten is te kort.',
'TOO_LONG_STATIC_MESSAGE' => 'De waarde van de statische berichten is te lang.',
'TOO_SMALL_TIMEOUT' => 'De waarde van de timeout voor gebruikers is te klein.',
'TOO_LARGE_TIMEOUT' => 'De waarde van de timeout voor gebruikers is te groot.',
'UCP_CAT_MCHAT' => 'mChat',
'UCP_MCHAT_CONFIG' => 'mChat', //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'mChat tabel is ingekort',
'ACP_USER_MCHAT' => 'mChat Instellingen',
'LOG_DELETED_MCHAT' => '<strong>Verwijder mChat berichten</strong><br />» %1$s',
'LOG_EDITED_MCHAT' => '<strong>Bewerk mChat berichten</strong><br />» %1$s',
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Overgebleven karakters: <span class="charsLeft error"><strong>%d</strong></span>',
'MCHAT_TOP_POSTERS' => 'Top Spammers',
'MCHAT_NEW_CHAT' => 'Nieuw Chat bericht!',
'FONT_COLOR' => 'letter kleur',
'FONT_COLOR_HIDE' => 'verberg letter kleur',
'FONT_HUGE' => 'Zeer Groot',
'FONT_LARGE' => 'Groot',
'FONT_NORMAL' => 'Normaal',
'FONT_SIZE' => 'Letter grootte',
'FONT_SMALL' => 'Klein',
'FONT_TINY' => 'zeer klein',
'MCHAT_SEND_PM' => 'Stuur prive bericht',
'MCHAT_PM' => '(PM)',
'MORE_SMILIES' => 'Meer Smilies',
));

View File

@@ -1,159 +0,0 @@
<?php
/**
*
* @package phpBB Extension - mChat
* @copyright (c) 2015 dmzx - http://www.dmzx-web.net
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
//
// Some characters for use
// » “ ” …
$lang = array_merge($lang, array(
// UMIL stuff
'ACP_MCHAT_CONFIG' => 'Configuratie',
'ACP_CAT_MCHAT' => 'mChat',
'ACP_MCHAT_TITLE' => 'Mini-Chat',
'ACP_MCHAT_TITLE_EXPLAIN' => 'Een mini chat (aka “shout box”) voor gebruik op jouw forum',
'MCHAT_TABLE_DELETED' => 'De mChat tabel is succesvol verwijderd',
'MCHAT_TABLE_CREATED' => 'De mChat tabel is succesvol aangemaakt',
'MCHAT_TABLE_UPDATED' => 'De mChat tabel is succesvol bijgewerkt.',
'MCHAT_NOTHING_TO_UPDATE' => 'Niks te doen..... door gaan',
'UCP_CAT_MCHAT' => 'mChat voorkeuren',
'UCP_MCHAT_CONFIG' => 'Gebruiker mChat voorkeuren',
// ACP entries
'ACP_MCHAT_RULES' => 'Regels',
'ACP_MCHAT_RULES_EXPLAIN' => 'Verander hier de regels van het forum. Elke regel op een nieuwe lijn.<br />Je kunt maximaal 255 karakters gebruiken.<br /><strong>Deze boodschap kan worden vertaald..</strong> (Je moet de mchat_lang.php file aanpassen en lees de instructies).',
'LOG_MCHAT_CONFIG_UPDATE' => '<strong>Update mChat configuratie </strong>',
'MCHAT_CONFIG_SAVED' => 'Mini Chat configuratie is bijgewerkt',
'MCHAT_TITLE' => 'Mini-Chat',
'MCHAT_VERSION' => 'Versie:',
'MCHAT_ENABLE' => 'Inschakelen mChat Extensie',
'MCHAT_ENABLE_EXPLAIN' => 'In of Uitschakelen van deze extensie.',
'MCHAT_AVATARS' => 'Toon avatars',
'MCHAT_AVATARS_EXPLAIN' => 'Als je ja hebt aangevinkt, verkleinde gebruikers avatars zullen worden getoond',
'MCHAT_ON_INDEX' => 'mChat Op de Index pagina',
'MCHAT_ON_INDEX_EXPLAIN' => 'Toestaan om de mChat te tonen op de Index pagina.',
'MCHAT_INDEX_HEIGHT' => 'Index pagina hoogte',
'MCHAT_INDEX_HEIGHT_EXPLAIN' => 'De hoogte van de mChat box op de Index pagina uitgedrukt in pixels, kun je hier aanpassen.<br /><em>Je bent gelimiteerd tussen de 50 en 1000</em>.',
'MCHAT_LOCATION' => 'Locatie op het Forum',
'MCHAT_LOCATION_EXPLAIN' => 'Kies de locatie van de mChat op de Index pagina.',
'MCHAT_TOP_OF_FORUM' => 'Bovenaan op het Forum',
'MCHAT_BOTTOM_OF_FORUM' => 'Onderaan op het Forum',
'MCHAT_REFRESH' => 'Vernieuwen',
'MCHAT_REFRESH_EXPLAIN' => 'Aantal seconden dat de mChat automatische ververst wordt.<br /><em>Je bent gelimiteerd tussen 5 en 60 seconden</em>.',
'MCHAT_PRUNE' => 'Inschakelen opschonen van berichten',
'MCHAT_PRUNE_EXPLAIN' => 'Vink Ja aan als je het opschonen van berichten wilt inschakelen.<br /><em>Werkt alleen als een gebruiker de gemaakte of archief pagina bekijkt</em>.',
'MCHAT_PRUNE_NUM' => 'Het aantal berichten welke bewaard moeten worden in de mChat',
'MCHAT_PRUNE_NUM_EXPLAIN' => 'Geef hier het aantal in, van de berichten welke je bewaard wilt houden in de mChat.',
'MCHAT_MESSAGE_LIMIT' => 'Berichten limiet',
'MCHAT_MESSAGE_LIMIT_EXPLAIN' => 'Maximaal aantal berichten, welke getoond worden in de mChat.<br /><em>Aanbevolen is tussen de 10 en 30 berichten</em>.',
'MCHAT_MESSAGE_NUM' => 'Index pagina berichten limiet',
'MCHAT_MESSAGE_NUM_EXPLAIN' => 'Het maximale aantal berichten, welke getoond worden in de mChat op de Index pagina.<br /><em>Aanbevolen is tussen de 10 en 50 berichten</em>.',
'MCHAT_ARCHIVE_LIMIT' => 'Archief limiet',
'MCHAT_ARCHIVE_LIMIT_EXPLAIN' => 'Het maximale aantal berichten, welke getoond worden in de mChat op de Archief pagina.<br /><em>Aanbevolen is tussen de 25 en 50 berichten</em>.',
'MCHAT_FLOOD_TIME' => 'Wachttijd plaatsen volgende bericht, na reeds geplaatst bericht',
'MCHAT_FLOOD_TIME_EXPLAIN' => 'Het aantal seconden dat een gebruiker moet wachten om een volgend bericht te plaatsen in de mChat.<br /><em>Aanbevolen is tussen de 5 en 30 seconden, 0 is uitschakelen van deze functie</em>.',
'MCHAT_MAX_MESSAGE_LENGTH' => 'Maximale berichten lengte',
'MCHAT_MAX_MESSAGE_LENGTH_EXPLAIN' => 'Maximaal toegestane aantal karakters per gepost bericht.<br /><em>anbevolen is tussen de 100 en 500 karakters, 0 is uitschakelen van deze functie</em>.',
'MCHAT_CUSTOM_PAGE' => 'Aangepaste pagina',
'MCHAT_CUSTOM_PAGE_EXPLAIN' => 'Toestaan om gebruik te maken van de mChat op de aangepaste pagina',
'MCHAT_CUSTOM_HEIGHT' => 'Aangepaste pagina hoogte',
'MCHAT_CUSTOM_HEIGHT_EXPLAIN' => 'De hoogte van de mChat box in pixels op de aangepaste mChat pagina.<br /><em>Je bent gelimiteerd tussen de 50 en 1000 pixels</em>.',
'MCHAT_DATE_FORMAT' => 'Datum weergave',
'MCHAT_DATE_FORMAT_EXPLAIN' => 'De gebruikte syntax is identiek aan de PHP <a href="http://www.php.net/date">date()</a> functie.',
'MCHAT_CUSTOM_DATEFORMAT' => 'Aangepast…',
'MCHAT_WHOIS' => 'Whois',
'MCHAT_WHOIS_EXPLAIN' => 'Toestaan om gebruikers te laten zien die gebruik maken van de mChat',
'MCHAT_WHOIS_REFRESH' => 'Whois vernieuwen',
'MCHAT_WHOIS_REFRESH_EXPLAIN' => 'Aantal seconden voordat whois statistieken worden vernieuwd.<br /><em>Je bent gelimiteerd tussen de 30 en 300 seconden</em>.',
'MCHAT_BBCODES_DISALLOWED' => 'Niet toegestane bbcodes',
'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Hier kun je de bbcodes plaatsen, die <strong>niet</strong>zijn toegstaan<strong>not</strong> om te gebruiken in een bericht.<br />Aparte BBCodes met een verticale balk , bijvoorbeeld: <br />b|i|u|code|list|list=|flash|quote and/or a %scustom bbcode tag name%s',
'MCHAT_STATIC_MESSAGE' => 'Statisch bericht',
'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Hier kan je een statisch bericht definieren, welke getoond wordt aan de gebruikers van de mChat.<br />Stel 0 in om de vertoning uit te schakelen. Je bent gelimiteerd tot 255 karakters.<br /><strong>Deze boodschap kan worden vertaald..</strong> (Je moet de mchat_lang.php file aanpassen en lees de instructies).',
'MCHAT_USER_TIMEOUT' => 'Gebruiker timeout',
'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Stel hier de seconden in, wanneer de sessie van een gebruiker eindigd. Stel 0 om de timeout uit te schakelen.<br /><em>Je bent gelimiteerd tot de %sforum instellingen voor de chat sessie, welke momenteel is ingesteld op %s seconden</em>',
'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Aantal smilie limiet',
'MCHAT_OVERRIDE_SMILIE_LIMIT_EXPLAIN' => 'Stel hier het aantal smilie limiet in voor de chat berichten',
'MCHAT_OVERRIDE_MIN_POST_CHARS' => 'Minimum karakters limit',
'MCHAT_OVERRIDE_MIN_POST_CHARS_EXPLAIN' => 'Stel ja in om het aantal minimum karakters in te stellen voor een chat bericht',
'MCHAT_NEW_POSTS' => 'Toon nieuwe berichten',
'MCHAT_NEW_POSTS_EXPLAIN' => 'Stel ja in om nieuwe berichten te plaatsen in een chat bericht<br /><strong>Je moet de add-on voor de nieuwe post meldingen geïnstalleerd hebben</strong> (binnen de directory van de download voor deze extensie).',
'MCHAT_MAIN' => 'Hoofd Configuratie',
'MCHAT_STATS' => 'Wie is aan het chatten',
'MCHAT_STATS_INDEX' => 'Statistieken op de Index pagina',
'MCHAT_STATS_INDEX_EXPLAIN' => 'Laat zien wie aan het chatten is in de statistieken sectie op het forum',
'MCHAT_MESSAGES' => 'Berichten instellingen',
'MCHAT_PAUSE_ON_INPUT' => 'Pauze op eventuele inactiviteit van mChat',
'MCHAT_PAUSE_ON_INPUT_EXPLAIN' => 'Stel je ja in, dan wordt mChat niet automatisch vernieuwd, todat een gebruiker een bericht plaatst in mChat',
// error reporting
'MCHAT_NEEDS_UPDATING' => 'De mChat extensie moet worden bijgewerkt. Neem contact op met de forum beheerder om de mChat bij te laten werken.',
'MCHAT_WRONG_VERSION' => 'De verkeerde versie van de extensie is geinstalleerd. Gebruik a.u.b. de %sinstaller%s van de nieuwe versie voor eventuele wijzigingen.',
'WARNING' => 'Waarschuwing',
'TOO_LONG_DATE' => 'De datum weergave die je hebt ingegeven is te lang.',
'TOO_SHORT_DATE' => 'De datum weergave die je hebt ingegeven is te kort.',
'TOO_SMALL_REFRESH' => 'De waarde voor het vernieuwen van de pagina is te klein.',
'TOO_LARGE_REFRESH' => 'De waarde voor het vernieuwen van de pagina is te groot.',
'TOO_SMALL_MESSAGE_LIMIT' => 'De waarde van de berichten limiet is te klein.',
'TOO_LARGE_MESSAGE_LIMIT' => 'De waarde van de berichten limiet is te groot.',
'TOO_SMALL_ARCHIVE_LIMIT' => 'De waarde van het archief limiet is te klein.',
'TOO_LARGE_ARCHIVE_LIMIT' => 'De waarde van het archief limiet is te groot.',
'TOO_SMALL_FLOOD_TIME' => 'De waarde van de hoeveelheid aan data in een bepaalde tijd is te klein.',
'TOO_LARGE_FLOOD_TIME' => 'De waarde van de hoeveelheid aan data in een bepaalde tijd is te groot.',
'TOO_SMALL_MAX_MESSAGE_LNGTH' => 'De waarde van de maximale lengte van berichten is te klein.',
'TOO_LARGE_MAX_MESSAGE_LNGTH' => 'De waarde van de maximale lengte van berichten is te groot.',
'TOO_SMALL_MAX_WORDS_LNGTH' => 'De waarde van de maximale lengte van het aantal woorden is te klein.',
'TOO_LARGE_MAX_WORDS_LNGTH' => 'De waarde van de maximale lengte van het aantal woorden is te groot.',
'TOO_SMALL_WHOIS_REFRESH' => 'De verversing van de whois waarde is te klein.',
'TOO_LARGE_WHOIS_REFRESH' => 'De verversing van de whois waarde is te groot.',
'TOO_SMALL_INDEX_HEIGHT' => 'De waarde van de index hoogte is te klein.',
'TOO_LARGE_INDEX_HEIGHT' => 'De waarde van de index hoogte is te groot.',
'TOO_SMALL_CUSTOM_HEIGHT' => 'De waarde van de gemaakte hoogte is te klein.',
'TOO_LARGE_CUSTOM_HEIGHT' => 'De waarde van de gemaakte hoogte is te groot.',
'TOO_SHORT_STATIC_MESSAGE' => 'De waarde van de statische berichten is te kort.',
'TOO_LONG_STATIC_MESSAGE' => 'De waarde van de statische berichten is te lang.',
'TOO_SMALL_TIMEOUT' => 'De waarde van de timeout voor gebruikers is te klein.',
'TOO_LARGE_TIMEOUT' => 'De waarde van de timeout voor gebruikers is te groot.',
// User perms
'ACL_U_MCHAT_USE' => 'Je kunt mChat gebruiken',
'ACL_U_MCHAT_VIEW' => 'Je kunt mChat bekijken',
'ACL_U_MCHAT_EDIT' => 'Je kunt mchat berichten bewerken',
'ACL_U_MCHAT_DELETE' => 'Je kunt mChat berichten verwijderen',
'ACL_U_MCHAT_IP' => 'Je kunt mChat IP adressen bekijken',
'ACL_U_MCHAT_FLOOD_IGNORE' => 'Je kunt mChat de hoeveelheid aan data negeren',
'ACL_U_MCHAT_ARCHIVE' => 'Je kunt het archief van mChat bekijken',
'ACL_U_MCHAT_BBCODE' => 'Je kunt de bbcode in mChat gebruiken',
'ACL_U_MCHAT_SMILIES' => 'Je kunt de smilies in mChat gebruiken',
'ACL_U_MCHAT_URLS' => 'Je kunt urls posten in mChat',
// Admin perms
'ACL_A_MCHAT' => array('lang' => 'Can manage mChat settings', 'cat' => 'permissions'), // Using a phpBB category here
));

View File

@@ -7,7 +7,6 @@
* *
*/ */
/** /**
* DO NOT CHANGE! * DO NOT CHANGE!
*/ */
@@ -96,7 +95,6 @@ $lang = array_merge($lang, array(
'MCHAT_TOTALMESSAGES' => 'Wszystkie wiadomości <strong>%s</strong>', 'MCHAT_TOTALMESSAGES' => 'Wszystkie wiadomości <strong>%s</strong>',
'MCHAT_USESOUND' => 'Włączyć dźwięk ?', 'MCHAT_USESOUND' => 'Włączyć dźwięk ?',
'MCHAT_ONLINE_USERS_TOTAL' => 'Aktualnie jest tutaj <strong>%d</strong> czatujących użytkowników ', 'MCHAT_ONLINE_USERS_TOTAL' => 'Aktualnie jest tutaj <strong>%d</strong> czatujących użytkowników ',
'MCHAT_ONLINE_USER_TOTAL' => 'Aktualnie <strong>%d</strong> osoba korzysta z mChatu ', 'MCHAT_ONLINE_USER_TOTAL' => 'Aktualnie <strong>%d</strong> osoba korzysta z mChatu ',
'MCHAT_NO_CHATTERS' => 'Nikt nie czatuje', 'MCHAT_NO_CHATTERS' => 'Nikt nie czatuje',
@@ -216,11 +214,11 @@ $lang = array_merge($lang, array(
'UCP_MCHAT_CONFIG' => 'mChat', //Preferences 'UCP_MCHAT_CONFIG' => 'mChat', //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'Tabela mChat została wyczyszczona', 'LOG_MCHAT_TABLE_PRUNED' => 'Tabela mChat została wyczyszczona',
'ACP_USER_MCHAT' => 'mChat Ustawienia', 'ACP_USER_MCHAT' => 'mChat Ustawienia',
'LOG_DELETED_MCHAT' => '<strong>Usuń wiadomości mChat</strong><br />» %1$s', 'LOG_DELETED_MCHAT' => '<strong>Usuń wiadomości mChat</strong><br />» %1$s',
'LOG_EDITED_MCHAT' => '<strong>Edytuj wiadomość mChat</strong><br />» %1$s', 'LOG_EDITED_MCHAT' => '<strong>Edytuj wiadomość mChat</strong><br />» %1$s',
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Pozostało znaków: <span class="charsLeft error"><strong>%d</strong></span>', 'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Pozostało znaków: <span class="charsLeft error"><strong>%d</strong></span>',
'MCHAT_TOP_POSTERS' => 'Top Spammerzy', 'MCHAT_TOP_POSTERS' => 'Top Spammerzy',
'MCHAT_NEW_CHAT' => 'Nowa wiadomośc na chacie!', 'MCHAT_NEW_CHAT' => 'Nowa wiadomośc na chacie!',
'FONT_COLOR' => 'Kolor czcionki', 'FONT_COLOR' => 'Kolor czcionki',
'FONT_COLOR_HIDE' => 'Ukryj kolor czcionki', 'FONT_COLOR_HIDE' => 'Ukryj kolor czcionki',
'FONT_HUGE' => 'Ogromne', 'FONT_HUGE' => 'Ogromne',
@@ -229,7 +227,7 @@ $lang = array_merge($lang, array(
'FONT_SIZE' => 'Rozmiar czcionki', 'FONT_SIZE' => 'Rozmiar czcionki',
'FONT_SMALL' => 'Mały', 'FONT_SMALL' => 'Mały',
'FONT_TINY' => 'Malutki', 'FONT_TINY' => 'Malutki',
'MCHAT_SEND_PM' => 'Wyślij prywatną wiadomość', 'MCHAT_SEND_PM' => 'Wyślij prywatną wiadomość',
'MCHAT_PM' => '(PM)', 'MCHAT_PM' => '(PM)',
'MORE_SMILIES' => 'Więcej emotikon', 'MORE_SMILIES' => 'Więcej emotikon',
)); ));

View File

@@ -31,7 +31,6 @@ if (empty($lang) || !is_array($lang))
// Some characters for use // Some characters for use
// » “ ” … // » “ ” …
$lang = array_merge($lang, array( $lang = array_merge($lang, array(
// UMIL stuff // UMIL stuff

View File

@@ -1,12 +1,12 @@
GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE
Version 2, June 1991 Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc., Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed. of this license document, but changing it is not allowed.
Preamble Preamble
The licenses for most software are designed to take away your The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public freedom to share and change it. By contrast, the GNU General Public
@@ -56,7 +56,7 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and The precise terms and conditions for copying, distribution and
modification follow. modification follow.
GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains 0. This License applies to any program or other work which contains
@@ -92,24 +92,24 @@ of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1 distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions: above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change. stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License. parties under the terms of this License.
c) If the modified program normally reads commands interactively c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on does not normally print such an announcement, your work based on
the Program is not required to print an announcement.) the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program, identifiable sections of that work are not derived from the Program,
@@ -135,22 +135,22 @@ the scope of this License.
under Section 2) in object code or executable form under the terms of under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following: Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or, 1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or, customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such received the program in object code or executable form with such
an offer, in accord with Subsection b above.) an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source making modifications to it. For an executable work, complete source
@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally. of promoting the sharing and reuse of software generally.
NO WARRANTY NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES. POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it possible use to the public, the best way to achieve this is to make it
@@ -290,32 +290,32 @@ to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found. the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.> <one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author> Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License along You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc., with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail. Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this If the program is interactive, make it output a short notice like this
when it starts in an interactive mode: when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details. under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may parts of the General Public License. Of course, the commands you use may

View File

@@ -17,9 +17,9 @@ class mchat_module1 extends \phpbb\db\migration\migration
return array( return array(
array('module.add', array('ucp', 'UCP_MAIN', 'UCP_MCHAT_CONFIG')), array('module.add', array('ucp', 'UCP_MAIN', 'UCP_MCHAT_CONFIG')),
array('module.add', array( array('module.add', array(
'ucp', 'UCP_MCHAT_CONFIG', array( 'ucp', 'UCP_MCHAT_CONFIG', array(
'module_basename' => '\dmzx\mchat\ucp\ucp_mchat_module', 'module_basename' => '\dmzx\mchat\ucp\ucp_mchat_module',
'modes' => array('configuration'), 'modes' => array('configuration'),
'module_auth' => 'acl_u_mchat_use', 'module_auth' => 'acl_u_mchat_use',
))), ))),
); );
@@ -27,4 +27,3 @@ class mchat_module1 extends \phpbb\db\migration\migration
} }

View File

@@ -20,9 +20,9 @@ class mchat_schema extends \phpbb\db\migration\migration
array('config.add', array('mchat_on_index', true)), array('config.add', array('mchat_on_index', true)),
array('config.add', array('mchat_new_posts', false)), array('config.add', array('mchat_new_posts', false)),
array('config.add', array('mchat_stats_index', false)), array('config.add', array('mchat_stats_index', false)),
array('config.add', array('mchat_version','0.0.3')), array('config.add', array('mchat_version','0.0.4')),
array('permission.add', array('u_mchat_use')), array('permission.add', array('u_mchat_use')),
array('permission.add', array('u_mchat_view')), array('permission.add', array('u_mchat_view')),
array('permission.add', array('u_mchat_edit')), array('permission.add', array('u_mchat_edit')),
array('permission.add', array('u_mchat_delete')), array('permission.add', array('u_mchat_delete')),
@@ -70,7 +70,6 @@ class mchat_schema extends \phpbb\db\migration\migration
); );
} }
public function revert_schema() public function revert_schema()
{ {
return array( return array(
@@ -80,5 +79,4 @@ class mchat_schema extends \phpbb\db\migration\migration
); );
} }
} }

View File

@@ -32,8 +32,8 @@ class mchat_schema_2 extends \phpbb\db\migration\migration
'bbcode_uid' => array('VCHAR:8', ''), 'bbcode_uid' => array('VCHAR:8', ''),
'bbcode_options' => array('BOOL', '7'), 'bbcode_options' => array('BOOL', '7'),
'message_time' => array('INT:11', 0), 'message_time' => array('INT:11', 0),
'forum_id' => array('UINT', 0), 'forum_id' => array('UINT', 0),
'post_id' => array('UINT', 0), 'post_id' => array('UINT', 0),
), ),
'PRIMARY_KEY' => 'message_id', 'PRIMARY_KEY' => 'message_id',
), ),

View File

@@ -28,8 +28,6 @@ class mchat_schema_3 extends \phpbb\db\migration\migration
{ {
global $user; global $user;
// Define sample rule data // Define sample rule data
$sample_data = array( $sample_data = array(
array( array(
@@ -67,7 +65,7 @@ class mchat_schema_3 extends \phpbb\db\migration\migration
array( array(
'config_name' => 'bbcode_disallowed', 'config_name' => 'bbcode_disallowed',
'config_value' => '', 'config_value' => '',
), ),
array( array(
'config_name' => 'prune_enable', 'config_name' => 'prune_enable',
'config_value' => '0', 'config_value' => '0',

View File

@@ -41,7 +41,7 @@ class mchat_schema_6 extends \phpbb\db\migration\migration
), ),
), ),
), ),
); );
} }
} }

View File

@@ -77,7 +77,6 @@ function bbstyle(bbnumber)
} }
} }
/** /**
* Apply bbcodes * Apply bbcodes
*/ */
@@ -412,7 +411,6 @@ function colorPalette(dir, width, height)
document.writeln('</table>'); document.writeln('</table>');
} }
/** /**
* Caret Position object * Caret Position object
*/ */
@@ -422,7 +420,6 @@ function caretPosition()
var end = null; var end = null;
} }
/** /**
* Get the caret position in an textarea * Get the caret position in an textarea
*/ */

View File

@@ -1,6 +0,0 @@
<!-- INCLUDEJS editor.js -->
<!-- INCLUDEJS jquery.titlealert.min.js -->
<!-- INCLUDEJS jquery_cookie_mini.js -->
<!-- INCLUDEJS mchat_ajax_mini.js -->
<!-- INCLUDEJS jquery-1.8.3.min.js -->
<!-- INCLUDEJS jquery.maxlength.min.js -->

View File

@@ -1,13 +1,13 @@
/* /*
@author: remy sharp / http://remysharp.com @author: remy sharp / http://remysharp.com
@params: @params:
feedback - the selector for the element that gives the user feedback. Note that this will be relative to the form the plugin is run against. feedback - the selector for the element that gives the user feedback. Note that this will be relative to the form the plugin is run against.
hardLimit - whether to stop the user being able to keep adding characters. Defaults to true. hardLimit - whether to stop the user being able to keep adding characters. Defaults to true.
useInput - whether to look for a hidden input named 'maxlength' instead of the maxlength attribute. Defaults to false. useInput - whether to look for a hidden input named 'maxlength' instead of the maxlength attribute. Defaults to false.
words - limit by characters or words, set this to true to limit by words. Defaults to false. words - limit by characters or words, set this to true to limit by words. Defaults to false.
@license: Creative Commons License - ShareAlike http://creativecommons.org/licenses/by-sa/3.0/ @license: Creative Commons License - ShareAlike http://creativecommons.org/licenses/by-sa/3.0/
@version: 1.2 @version: 1.2
@changes: code tidy via Ariel Flesler and fix when pasting over limit and including \t or \n @changes: code tidy via Ariel Flesler and fix when pasting over limit and including \t or \n
*/ */
(function(a){a.fn.maxlength=function(b){function c(a){var c=a.value;if(b.words)c=a.value.length?c.split(/\s+/):{length:0};return c.length}if(typeof b=="string"){b={feedback:b}}b=a.extend({},a.fn.maxlength.defaults,b);return this.each(function(){function i(a){var d=c(this),e=d>=g,f=a.keyCode;if(!e)return;switch(f){case 8:case 9:case 17:case 36:case 35:case 37:case 38:case 39:case 40:case 46:case 65:return;default:return b.words&&f!=32&&f!=13&&d==g}}var d=this,e=a(d),f=a(d.form),g=b.useInput?f.find("input[name=maxlength]").val():e.attr("maxlength"),h=f.find(b.feedback);var j=function(){var e=c(d),f=g-e;h.html(f||"0");if(f<497){a("#charsreman").show()}else{a("#charsreman").hide()};if(f<499){a("#charsreman2").show()}else{a("#charsreman2").hide()};if(f<500){a("#charsreman3").show()}else{a("#charsreman3").hide()}if(b.hardLimit&&f<0){d.value=b.words?d.value.split(/(\s+)/,g*2-1).join(""):d.value.substr(0,g);j()}};e.keyup(j).change(j).focus(j);if(b.hardLimit){e.keydown(i)}j()})};a.fn.maxlength.defaults={useInput:false,hardLimit:true,feedback:".charsLeft",words:false}})(jQuery) (function(a){a.fn.maxlength=function(b){function c(a){var c=a.value;if(b.words)c=a.value.length?c.split(/\s+/):{length:0};return c.length}if(typeof b=="string"){b={feedback:b}}b=a.extend({},a.fn.maxlength.defaults,b);return this.each(function(){function i(a){var d=c(this),e=d>=g,f=a.keyCode;if(!e)return;switch(f){case 8:case 9:case 17:case 36:case 35:case 37:case 38:case 39:case 40:case 46:case 65:return;default:return b.words&&f!=32&&f!=13&&d==g}}var d=this,e=a(d),f=a(d.form),g=b.useInput?f.find("input[name=maxlength]").val():e.attr("maxlength"),h=f.find(b.feedback);var j=function(){var e=c(d),f=g-e;h.html(f||"0");if(f<497){a("#charsreman").show()}else{a("#charsreman").hide()};if(f<499){a("#charsreman2").show()}else{a("#charsreman2").hide()};if(f<500){a("#charsreman3").show()}else{a("#charsreman3").hide()}if(b.hardLimit&&f<0){d.value=b.words?d.value.split(/(\s+)/,g*2-1).join(""):d.value.substr(0,g);j()}};e.keyup(j).change(j).focus(j);if(b.hardLimit){e.keydown(i)}j()})};a.fn.maxlength.defaults={useInput:false,hardLimit:true,feedback:".charsLeft",words:false}})(jQuery)

View File

@@ -12,482 +12,482 @@ var $jQ=jQuery.noConflict(true);
var hasFocus = true; var hasFocus = true;
$jQ(function(){ $jQ(function(){
if(!mChatArchiveMode){ if(!mChatArchiveMode){
var scrH=$jQ('#mChatmain')[0].scrollHeight; var scrH=$jQ('#mChatmain')[0].scrollHeight;
$jQ('#mChatmain').animate({ $jQ('#mChatmain').animate({
scrollTop:scrH scrollTop:scrH
},1000,'swing'); },1000,'swing');
if(mChatPause){ if(mChatPause){
$jQ('#mChatMessage').bind('keypress',function(){ $jQ('#mChatMessage').bind('keypress',function(){
clearInterval(interval); clearInterval(interval);
$jQ('#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG').hide(); $jQ('#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG').hide();
$jQ('#mChatRefreshText').html(mChatRefreshNo).addClass('mchat-alert'); $jQ('#mChatRefreshText').html(mChatRefreshNo).addClass('mchat-alert');
$jQ('#mChatPauseIMG').show() $jQ('#mChatPauseIMG').show()
}) })
} }
$jQ([window,document]).blur(function(){ $jQ([window,document]).blur(function(){
hasFocus = false hasFocus = false
}).focus(function(){ }).focus(function(){
hasFocus = true hasFocus = true
}); });
$jQ.fn.preventDoubleSubmit=function(){ $jQ.fn.preventDoubleSubmit=function(){
var alreadySubmitted=false; var alreadySubmitted=false;
return $jQ(this).submit(function(){ return $jQ(this).submit(function(){
if(alreadySubmitted){ if(alreadySubmitted){
return false return false
}else{ }else{
alreadySubmitted=true alreadySubmitted=true
} }
}) })
}; };
$jQ.fn.autoGrowInput=function(o){ $jQ.fn.autoGrowInput=function(o){
var width=$jQ('.mChatPanel').width(); var width=$jQ('.mChatPanel').width();
o=$jQ.extend({ o=$jQ.extend({
maxWidth:width-20, maxWidth:width-20,
minWidth:0, minWidth:0,
comfortZone:20 comfortZone:20
},o); },o);
this.filter('input:text').each(function(){ this.filter('input:text').each(function(){
var minWidth=o.minWidth||$jQ(this).width(), var minWidth=o.minWidth||$jQ(this).width(),
val='', val='',
input=$jQ(this), input=$jQ(this),
testSubject=$jQ('<div/>').css({ testSubject=$jQ('<div/>').css({
position:'absolute', position:'absolute',
top:-9999, top:-9999,
left:-9999, left:-9999,
width:'auto', width:'auto',
fontSize:input.css('fontSize'), fontSize:input.css('fontSize'),
fontFamily:input.css('fontFamily'), fontFamily:input.css('fontFamily'),
fontWeight:input.css('fontWeight'), fontWeight:input.css('fontWeight'),
letterSpacing:input.css('letterSpacing'), letterSpacing:input.css('letterSpacing'),
whiteSpace:'nowrap' whiteSpace:'nowrap'
}), }),
check=function(){ check=function(){
if(val===(val=input.val())){ if(val===(val=input.val())){
return return
} }
var escaped=val.replace(/&/g,'&amp;').replace(/\s/g,' ').replace(/</g,'&lt;').replace(/>/g,'&gt;'); var escaped=val.replace(/&/g,'&amp;').replace(/\s/g,' ').replace(/</g,'&lt;').replace(/>/g,'&gt;');
testSubject.html(escaped); testSubject.html(escaped);
var testerWidth=testSubject.width(), var testerWidth=testSubject.width(),
newWidth=(testerWidth+o.comfortZone)>=minWidth?testerWidth+o.comfortZone:minWidth, newWidth=(testerWidth+o.comfortZone)>=minWidth?testerWidth+o.comfortZone:minWidth,
currentWidth=input.width(), currentWidth=input.width(),
isValidWidthChange=(newWidth<currentWidth&&newWidth>=minWidth)||(newWidth>minWidth&&newWidth<o.maxWidth); isValidWidthChange=(newWidth<currentWidth&&newWidth>=minWidth)||(newWidth>minWidth&&newWidth<o.maxWidth);
if(isValidWidthChange){ if(isValidWidthChange){
input.width(newWidth) input.width(newWidth)
} }
}; };
testSubject.insertAfter(input); testSubject.insertAfter(input);
$jQ(this).bind('keypress blur change submit focus',check) $jQ(this).bind('keypress blur change submit focus',check)
}); });
return this return this
}; };
$jQ('input.mChatText').autoGrowInput(); $jQ('input.mChatText').autoGrowInput();
$jQ('#postform').preventDoubleSubmit(); $jQ('#postform').preventDoubleSubmit();
if(mChatSound&&$jQ.cookie('mChatNoSound')!='yes'){ if(mChatSound&&$jQ.cookie('mChatNoSound')!='yes'){
$jQ.cookie('mChatNoSound',null);$jQ('#mChatUseSound').attr('checked','checked') $jQ.cookie('mChatNoSound',null);$jQ('#mChatUseSound').attr('checked','checked')
} else { } else {
$jQ.cookie('mChatNoSound','yes'); $jQ.cookie('mChatNoSound','yes');
$jQ('#mChatUseSound').removeAttr('checked') $jQ('#mChatUseSound').removeAttr('checked')
} }
if($jQ('#mChatUserList').length&&($jQ.cookie('mChatShowUserList')=='yes'||mChatCustomPage)){ if($jQ('#mChatUserList').length&&($jQ.cookie('mChatShowUserList')=='yes'||mChatCustomPage)){
$jQ('#mChatUserList').show() $jQ('#mChatUserList').show()
} }
} }
}); });
var mChat={ var mChat={
key:function(e){ key:function(e){
if(e.shiftKey&&e.keyCode==13){ if(e.shiftKey&&e.keyCode==13){
$jQ('#mChatMessage').append("<br />"); $jQ('#mChatMessage').append("<br />");
} else if(e.keyCode==13){ } else if(e.keyCode==13){
mChat.add(); mChat.add();
} }
}, },
countDown:function(){ countDown:function(){
if($jQ('#mChatSessMess').hasClass('mchat-alert')){ if($jQ('#mChatSessMess').hasClass('mchat-alert')){
$jQ('#mChatSessMess').removeClass('mchat-alert') $jQ('#mChatSessMess').removeClass('mchat-alert')
} }
session_time=session_time-1; session_time=session_time-1;
var sec=Math.floor(session_time); var sec=Math.floor(session_time);
var min=Math.floor(sec/60); var min=Math.floor(sec/60);
var hrs=Math.floor(min/60); var hrs=Math.floor(min/60);
sec=(sec%60); sec=(sec%60);
if(sec<=9){ if(sec<=9){
sec="0"+sec sec="0"+sec
} }
min=(min%60); min=(min%60);
if(min<=9){ if(min<=9){
min="0"+min min="0"+min
} }
hrs=(hrs%60); hrs=(hrs%60);
if(hrs<=9){ if(hrs<=9){
hrs="0"+hrs hrs="0"+hrs
} }
var time_left=hrs+":"+min+":"+sec; var time_left=hrs+":"+min+":"+sec;
$jQ('#mChatSessMess').html(mChatSessEnds+' '+time_left); $jQ('#mChatSessMess').html(mChatSessEnds+' '+time_left);
if(session_time<=0){ if(session_time<=0){
clearInterval(counter); clearInterval(counter);
$jQ('#mChatSessMess').html(mChatSessOut).addClass('mchat-alert') $jQ('#mChatSessMess').html(mChatSessOut).addClass('mchat-alert')
} }
}, },
clear:function(){ clear:function(){
if($jQ('#mChatMessage').val()==''){ if($jQ('#mChatMessage').val()==''){
return false return false
} }
var answer=confirm(mChatReset); var answer=confirm(mChatReset);
if(answer){ if(answer){
if($jQ('#mChatRefreshText').hasClass('mchat-alert')){ if($jQ('#mChatRefreshText').hasClass('mchat-alert')){
$jQ('#mChatRefreshText').removeClass('mchat-alert') $jQ('#mChatRefreshText').removeClass('mchat-alert')
} }
if(mChatPause){ if(mChatPause){
interval=setInterval(function(){ interval=setInterval(function(){
mChat.refresh() mChat.refresh()
},mChatRefresh) },mChatRefresh)
} }
$jQ('#mChatOkIMG').show(); $jQ('#mChatOkIMG').show();
$jQ('#mChatLoadIMG, #mChatErrorIMG, #mChatPauseIMG').hide(); $jQ('#mChatLoadIMG, #mChatErrorIMG, #mChatPauseIMG').hide();
$jQ('#mChatRefreshText').html(mChatRefreshYes); $jQ('#mChatRefreshText').html(mChatRefreshYes);
$jQ('#mChatMessage').val('').focus() $jQ('#mChatMessage').val('').focus()
} else { } else {
$jQ('#mChatMessage').focus() $jQ('#mChatMessage').focus()
} }
}, },
sound: function (file) { sound: function (file) {
if ($jQ.cookie('mChatNoSound') == 'yes') { if ($jQ.cookie('mChatNoSound') == 'yes') {
return return
} }
if (false || $.browser.msie) { if (false || $.browser.msie) {
$('#mChatSound').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="0" width="0" type="application/x-shockwave-flash"><param name="movie" value="' + file + '"></object>'); $('#mChatSound').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="0" width="0" type="application/x-shockwave-flash"><param name="movie" value="' + file + '"></object>');
} else { } else {
$('#mChatSound').html('<embed src="' + file + '" width="0" height="0" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>'); $('#mChatSound').html('<embed src="' + file + '" width="0" height="0" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
} }
}, },
alert:function(){ alert:function(){
if(!hasFocus||!document.hasFocus()){ if(!hasFocus||!document.hasFocus()){
$jQ.titleAlert(mChatNewMessageAlert) $jQ.titleAlert(mChatNewMessageAlert)
} }
}, },
toggle:function(id){ toggle:function(id){
$jQ('#mChat'+id).slideToggle('normal',function(){ $jQ('#mChat'+id).slideToggle('normal',function(){
if($jQ('#mChat'+id).is(':visible')){ if($jQ('#mChat'+id).is(':visible')){
$jQ.cookie('mChatShow'+id,'yes') $jQ.cookie('mChatShow'+id,'yes')
} }
if($jQ('#mChat'+id).is(':hidden')){ if($jQ('#mChat'+id).is(':hidden')){
$jQ.cookie('mChatShow'+id,null)} $jQ.cookie('mChatShow'+id,null)}
} }
) )
}, },
add:function(){ add:function(){
if($jQ('#mChatMessage').val()==''){ if($jQ('#mChatMessage').val()==''){
return false return false
} }
var mChatMessChars=$jQ('#mChatMessage').val().replace(/ /g,''); var mChatMessChars=$jQ('#mChatMessage').val().replace(/ /g,'');
if(mChatMessChars.length>mChatMssgLngth&&mChatMssgLngth){ if(mChatMessChars.length>mChatMssgLngth&&mChatMssgLngth){
alert(mChatMssgLngthLong); alert(mChatMssgLngthLong);
return return
} }
$jQ.ajax({ $jQ.ajax({
url:mChatFile, url:mChatFile,
timeout:10000, timeout:10000,
async:false, async:false,
type:'POST', type:'POST',
data:$jQ('#postform').serialize(), data:$jQ('#postform').serialize(),
dataType:'text', dataType:'text',
beforeSend:function(){ beforeSend:function(){
$jQ('#submit_button').attr('disabled','disabled'); $jQ('#submit_button').attr('disabled','disabled');
if(mChatUserTimeout){ if(mChatUserTimeout){
clearInterval(activeinterval); clearInterval(activeinterval);
clearInterval(counter) clearInterval(counter)
} }
clearInterval(interval) clearInterval(interval)
}, },
success:function(){ success:function(){
mChat.refresh() mChat.refresh()
}, },
error:function(XMLHttpRequest){ error:function(XMLHttpRequest){
if(XMLHttpRequest.status==400){ if(XMLHttpRequest.status==400){
alert(mChatFlood) alert(mChatFlood)
}else if(XMLHttpRequest.status==403){ }else if(XMLHttpRequest.status==403){
alert(mChatNoAccess) alert(mChatNoAccess)
}else if(XMLHttpRequest.status==501){ }else if(XMLHttpRequest.status==501){
alert(mChatNoMessageInput) alert(mChatNoMessageInput)
} }
}, },
complete:function(){ complete:function(){
if($jQ('#mChatData').children('#mChatNoMessage :last')){ if($jQ('#mChatData').children('#mChatNoMessage :last')){
$jQ('#mChatNoMessage').remove() $jQ('#mChatNoMessage').remove()
} }
$jQ('#submit_button').removeAttr('disabled'); $jQ('#submit_button').removeAttr('disabled');
interval=setInterval(function(){ interval=setInterval(function(){
mChat.refresh() mChat.refresh()
}, },
mChatRefresh); mChatRefresh);
if(mChatUserTimeout){ if(mChatUserTimeout){
session_time=mChatUserTimeout?mChatUserTimeout/1000:false; session_time=mChatUserTimeout?mChatUserTimeout/1000:false;
counter=setInterval(function(){ counter=setInterval(function(){
mChat.countDown() mChat.countDown()
},1000); },1000);
activeinterval=setInterval(function(){ activeinterval=setInterval(function(){
mChat.active() mChat.active()
},mChatUserTimeout) },mChatUserTimeout)
} }
$jQ('#mChatMessage').val('').focus() $jQ('#mChatMessage').val('').focus()
} }
}) })
}, },
edit:function(id){ edit:function(id){
var message=$jQ('#edit'+id).val(); var message=$jQ('#edit'+id).val();
apprise(mChatEditInfo + ' (Shift and Enter for new line)',{ apprise(mChatEditInfo + ' (Shift and Enter for new line)',{
'textarea':message, 'textarea':message,
'animate':true, 'animate':true,
'position':200, 'position':200,
'confirm':true 'confirm':true
}, function(r){ }, function(r){
if(r){ if(r){
$jQ.ajax({ $jQ.ajax({
url:mChatFile, url:mChatFile,
timeout:10000, timeout:10000,
type:'POST', type:'POST',
data:{ data:{
mode:'edit', mode:'edit',
message_id:id, message_id:id,
message:r message:r
}, },
dataType:'text', dataType:'text',
beforeSend:function(){ beforeSend:function(){
clearInterval(interval); clearInterval(interval);
if(mChatUserTimeout){ if(mChatUserTimeout){
clearInterval(activeinterval); clearInterval(activeinterval);
clearInterval(counter); clearInterval(counter);
$jQ('#mChatSessTimer').html(mChatRefreshing) $jQ('#mChatSessTimer').html(mChatRefreshing)
} }
}, },
success:function(html){ success:function(html){
$jQ('#mess'+id).fadeOut('slow',function(){ $jQ('#mess'+id).fadeOut('slow',function(){
$jQ(this).replaceWith(html); $jQ(this).replaceWith(html);
$jQ('#mess'+id).css('display','none').fadeIn('slow') $jQ('#mess'+id).css('display','none').fadeIn('slow')
}) })
}, },
error:function(XMLHttpRequest){ error:function(XMLHttpRequest){
if(XMLHttpRequest.status==403){ if(XMLHttpRequest.status==403){
alert(mChatNoAccess) alert(mChatNoAccess)
}else if(XMLHttpRequest.status==501){ }else if(XMLHttpRequest.status==501){
alert(mChatNoMessageInput) alert(mChatNoMessageInput)
} }
}, },
complete:function(){ complete:function(){
interval=setInterval(function(){ interval=setInterval(function(){
mChat.refresh() mChat.refresh()
},mChatRefresh); },mChatRefresh);
if(mChatUserTimeout){ if(mChatUserTimeout){
session_time=mChatUserTimeout?mChatUserTimeout/1000:false; session_time=mChatUserTimeout?mChatUserTimeout/1000:false;
counter=setInterval(function(){ counter=setInterval(function(){
mChat.countDown() mChat.countDown()
},1000); },1000);
activeinterval=setInterval(function(){ activeinterval=setInterval(function(){
mChat.active() mChat.active()
},mChatUserTimeout) },mChatUserTimeout)
} }
if(!mChatArchiveMode){ if(!mChatArchiveMode){
scrH=$jQ('#mChatmain')[0].scrollHeight; scrH=$jQ('#mChatmain')[0].scrollHeight;
window.setTimeout(function(){ window.setTimeout(function(){
$jQ('#mChatmain').animate({ $jQ('#mChatmain').animate({
scrollTop:scrH},1000,'swing') scrollTop:scrH},1000,'swing')
},1500) },1500)
} }
} }
} }
) )
}}) }})
}, },
del:function(id){ del:function(id){
apprise(mChatDelConfirm,{ apprise(mChatDelConfirm,{
'position':200, 'position':200,
'animate':true, 'animate':true,
'confirm':true 'confirm':true
},function(del){ },function(del){
if(del){ if(del){
$jQ.ajax({ $jQ.ajax({
url:mChatFile, url:mChatFile,
timeout:10000, timeout:10000,
type:'POST', type:'POST',
data:{ data:{
mode:'delete', mode:'delete',
message_id:id message_id:id
}, },
beforeSend:function(){ beforeSend:function(){
clearInterval(interval); clearInterval(interval);
if(mChatUserTimeout){ if(mChatUserTimeout){
clearInterval(activeinterval); clearInterval(activeinterval);
clearInterval(counter); clearInterval(counter);
$jQ('#mChatSessTimer').html(mChatRefreshing) $jQ('#mChatSessTimer').html(mChatRefreshing)
} }
}, },
success:function(){ success:function(){
$jQ('#mess'+id).fadeOut('slow',function(){ $jQ('#mess'+id).fadeOut('slow',function(){
$jQ(this).remove() $jQ(this).remove()
}); });
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/del.swf') mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/del.swf')
}, },
error:function(){ error:function(){
alert(mChatNoAccess) alert(mChatNoAccess)
}, },
complete:function(){ complete:function(){
interval=setInterval(function(){ interval=setInterval(function(){
mChat.refresh() mChat.refresh()
},mChatRefresh); },mChatRefresh);
if(mChatUserTimeout){ if(mChatUserTimeout){
session_time=mChatUserTimeout?mChatUserTimeout/1000:false; session_time=mChatUserTimeout?mChatUserTimeout/1000:false;
counter=setInterval(function(){ counter=setInterval(function(){
mChat.countDown() mChat.countDown()
},1000); },1000);
activeinterval=setInterval(function(){ activeinterval=setInterval(function(){
mChat.active() mChat.active()
},mChatUserTimeout) },mChatUserTimeout)
} }
} }
}) })
} else { } else {
return false; return false;
} }
}); });
}, },
refresh:function(){ refresh:function(){
if(mChatArchiveMode){ if(mChatArchiveMode){
return return
} }
var mess_id=0; var mess_id=0;
if($jQ('#mChatData').children().not('#mChatNoMessage').length){ if($jQ('#mChatData').children().not('#mChatNoMessage').length){
if($jQ('#mChatNoMessage')){ if($jQ('#mChatNoMessage')){
$jQ('#mChatNoMessage').remove() $jQ('#mChatNoMessage').remove()
} }
mess_id=$jQ('#mChatData').children(':last-child').attr('id').replace('mess','') mess_id=$jQ('#mChatData').children(':last-child').attr('id').replace('mess','')
} }
var oldScrH=$jQ('#mChatmain')[0].scrollHeight; var oldScrH=$jQ('#mChatmain')[0].scrollHeight;
$jQ.ajax({ $jQ.ajax({
url:mChatFile, url:mChatFile,
timeout:10000, timeout:10000,
type:'POST', type:'POST',
async:true, async:true,
data:{ data:{
mode:'read', mode:'read',
message_last_id:mess_id message_last_id:mess_id
}, },
dataType:'html', dataType:'html',
beforeSend:function(){ beforeSend:function(){
$jQ('#mChatOkIMG,#mChatErrorIMG,#mChatPauseIMG').hide(); $jQ('#mChatOkIMG,#mChatErrorIMG,#mChatPauseIMG').hide();
$jQ('#mChatLoadIMG').show() $jQ('#mChatLoadIMG').show()
}, },
success:function(html){ success:function(html){
if(html!=''&&html!=0){ if(html!=''&&html!=0){
if($jQ('#mChatRefreshText').hasClass('mchat-alert')){ if($jQ('#mChatRefreshText').hasClass('mchat-alert')){
$jQ('#mChatRefreshText').removeClass('mchat-alert') $jQ('#mChatRefreshText').removeClass('mchat-alert')
} }
$jQ('#mChatData').append(html).children(':last').not('#mChatNoMessage'); $jQ('#mChatData').append(html).children(':last').not('#mChatNoMessage');
var newInner=$jQ('#mChatData').children().not('#mChatNoMessage').innerHeight(); var newInner=$jQ('#mChatData').children().not('#mChatNoMessage').innerHeight();
var newH=oldScrH+newInner; var newH=oldScrH+newInner;
$jQ('#mChatmain').animate({ $jQ('#mChatmain').animate({
scrollTop:newH scrollTop:newH
},'slow'); },'slow');
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/add.swf'); mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/add.swf');
mChat.alert() mChat.alert()
} }
setTimeout(function(){ setTimeout(function(){
$jQ('#mChatLoadIMG,#mChatErrorIMG,#mChatPauseIMG').hide(); $jQ('#mChatLoadIMG,#mChatErrorIMG,#mChatPauseIMG').hide();
$jQ('#mChatOkIMG').show(); $jQ('#mChatOkIMG').show();
$jQ('#mChatRefreshText').html(mChatRefreshYes) $jQ('#mChatRefreshText').html(mChatRefreshYes)
},500) },500)
}, },
error:function(){ error:function(){
$jQ('#mChatLoadIMG,#mChatOkIMG,#mChatPauseIMG,#mChatRefreshTextNo,#mChatPauseIMG,').hide(); $jQ('#mChatLoadIMG,#mChatOkIMG,#mChatPauseIMG,#mChatRefreshTextNo,#mChatPauseIMG,').hide();
$jQ('#mChatErrorIMG').show(); $jQ('#mChatErrorIMG').show();
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/error.swf') mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/error.swf')
}, },
complete:function(){ complete:function(){
if(!$jQ('#mChatData').children(':last').length){ if(!$jQ('#mChatData').children(':last').length){
$jQ('#mChatData').append('<div id="mChatNoMessage">'+mChatNoMessage+'</div>').show('slow') $jQ('#mChatData').append('<div id="mChatNoMessage">'+mChatNoMessage+'</div>').show('slow')
} }
} }
}) })
}, },
stats:function(){ stats:function(){
if(!mChatWhois){ if(!mChatWhois){
return return
} }
$jQ.ajax({ $jQ.ajax({
url:mChatFile, url:mChatFile,
timeout:10000, timeout:10000,
type:'POST', type:'POST',
data:{ data:{
mode:'stats' mode:'stats'
}, },
dataType:'html', dataType:'html',
beforeSend:function(){ beforeSend:function(){
if(mChatCustomPage){ if(mChatCustomPage){
$jQ('#mChatRefreshN').show(); $jQ('#mChatRefreshN').show();
$jQ('#mChatRefresh').hide() $jQ('#mChatRefresh').hide()
} }
}, },
success: function (data) { success: function (data) {
var json = $.parseJSON(data); var json = $.parseJSON(data);
$('#mChatStats').replaceWith(json.message); $('#mChatStats').replaceWith(json.message);
if(mChatCustomPage){ if(mChatCustomPage){
setTimeout(function(){ setTimeout(function(){
$jQ('#mChatRefreshN').hide(); $jQ('#mChatRefreshN').hide();
$jQ('#mChatRefresh').show() $jQ('#mChatRefresh').show()
},500) },500)
} }
}, },
error:function(){ error:function(){
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/error.swf') mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/error.swf')
}, },
complete:function(){ complete:function(){
if($jQ('#mChatUserList').length&&($jQ.cookie('mChatShowUserList')=='yes'||mChatCustomPage)){ if($jQ('#mChatUserList').length&&($jQ.cookie('mChatShowUserList')=='yes'||mChatCustomPage)){
$jQ('#mChatUserList').css('display','block') $jQ('#mChatUserList').css('display','block')
} }
} }
}) })
}, },
active:function(){ active:function(){
if(mChatArchiveMode||!mChatUserTimeout){ if(mChatArchiveMode||!mChatUserTimeout){
return return
} }
clearInterval(interval); clearInterval(interval);
$jQ('#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG').hide(); $jQ('#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG').hide();
$jQ('#mChatPauseIMG').show(); $jQ('#mChatPauseIMG').show();
$jQ('#mChatRefreshText').html(mChatRefreshNo).addClass('mchat-alert'); $jQ('#mChatRefreshText').html(mChatRefreshNo).addClass('mchat-alert');
$jQ('#mChatSessMess').html(mChatSessOut).addClass('mchat-alert') $jQ('#mChatSessMess').html(mChatSessOut).addClass('mchat-alert')
} }
}; };
var interval=setInterval(function(){ var interval=setInterval(function(){
mChat.refresh() mChat.refresh()
},mChatRefresh); },mChatRefresh);
var statsinterval=setInterval(function(){ var statsinterval=setInterval(function(){
mChat.stats()},mChatWhoisRefresh); mChat.stats()},mChatWhoisRefresh);
var activeinterval=setInterval(function(){ var activeinterval=setInterval(function(){
mChat.active()},mChatUserTimeout); mChat.active()},mChatUserTimeout);
var session_time=mChatUserTimeout?mChatUserTimeout/1000:false; var session_time=mChatUserTimeout?mChatUserTimeout/1000:false;
if(mChatUserTimeout){ if(mChatUserTimeout){
var counter=setInterval(function(){ var counter=setInterval(function(){
mChat.countDown() mChat.countDown()
},1000) },1000)
} }
if($jQ.cookie('mChatShowSmiles')=='yes'&&$jQ('#mChatSmiles').css('display','none')){ if($jQ.cookie('mChatShowSmiles')=='yes'&&$jQ('#mChatSmiles').css('display','none')){
$jQ('#mChatSmiles').slideToggle('slow') $jQ('#mChatSmiles').slideToggle('slow')
} }
if($jQ.cookie('mChatShowBBCodes')=='yes'&&$jQ('#mChatBBCodes').css('display','none')){ if($jQ.cookie('mChatShowBBCodes')=='yes'&&$jQ('#mChatBBCodes').css('display','none')){
$jQ('#mChatBBCodes').slideToggle('slow') $jQ('#mChatBBCodes').slideToggle('slow')
} }
if($jQ.cookie('mChatShowUserList')=='yes'&&$jQ('#mChatUserList').length){ if($jQ.cookie('mChatShowUserList')=='yes'&&$jQ('#mChatUserList').length){
$jQ('#mChatUserList').slideToggle('slow') $jQ('#mChatUserList').slideToggle('slow')
} }
if($jQ.cookie('mChatShowColour')=='yes'&&$jQ('#mChatColour').css('display','none')){ if($jQ.cookie('mChatShowColour')=='yes'&&$jQ('#mChatColour').css('display','none')){
$jQ('#mChatColour').slideToggle('slow') $jQ('#mChatColour').slideToggle('slow')
} }
$jQ('#mChatUseSound').change(function(){ $jQ('#mChatUseSound').change(function(){
if($jQ(this).is(':checked')){ if($jQ(this).is(':checked')){
$jQ.cookie('mChatNoSound',null) $jQ.cookie('mChatNoSound',null)
}else{ }else{
$jQ.cookie('mChatNoSound','yes') $jQ.cookie('mChatNoSound','yes')
} }
}); });
function mChatTimeShow(id){ function mChatTimeShow(id){
var tid = parseInt(id); var tid = parseInt(id);

View File

@@ -3,7 +3,7 @@
<div class="mChatAvatars"><!-- IF mchatrow.U_VIEWPROFILE --><a href="{mchatrow.U_VIEWPROFILE}" title="{L_READ_PROFILE}"><!-- ENDIF --><!-- IF mchatrow.MCHAT_USER_AVATAR -->{mchatrow.MCHAT_USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" width="40px;" height="40px;" alt="" /><!-- ENDIF --><!-- IF mchatrow.U_VIEWPROFILE --></a><!-- ENDIF --> <div class="mChatAvatars"><!-- IF mchatrow.U_VIEWPROFILE --><a href="{mchatrow.U_VIEWPROFILE}" title="{L_READ_PROFILE}"><!-- ENDIF --><!-- IF mchatrow.MCHAT_USER_AVATAR -->{mchatrow.MCHAT_USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" width="40px;" height="40px;" alt="" /><!-- ENDIF --><!-- IF mchatrow.U_VIEWPROFILE --></a><!-- ENDIF -->
</div> </div>
<div> <div>
<span style="float:left;"><!-- IF not MCHAT_ARCHIVE_MODE and MCHAT_ADD_MESSAGE --><!-- IF MCHAT_ALLOW_BBCODES --><!-- IF mchatrow.MCHAT_USERNAME_COLOR --><a class="mChatScriptLink" href="#" onclick="insert_text('&#64;&nbsp;[b][color={mchatrow.MCHAT_USERNAME_COLOR}]{mchatrow.MCHAT_USERNAME}[/color][/b], ', false);return false;" title="{L_MCHAT_RESPOND}"><span style="color: {mchatrow.MCHAT_USERNAME_COLOR}"><strong>&#64;</strong></span></a><!-- ELSE --> <a href="#" class="mChatScriptLink" onclick="insert_text('&#64;&nbsp;[b]{mchatrow.MCHAT_USERNAME}[/b], ', false);return false;" title="{L_MCHAT_RESPOND}"><strong>&#64;</strong></a><!-- ENDIF --><!-- ELSE --> <a href="#" class="mChatScriptLink" onclick="insert_text('&#64;&nbsp;{mchatrow.MCHAT_USERNAME}, ', false);return false;" title="{L_MCHAT_RESPOND}">&#64;</a><!-- ENDIF -->&nbsp;<!-- ENDIF -->{mchatrow.MCHAT_USERNAME_FULL} <!-- IF mchatrow.U_USER_ID --> <span class="mchatrow{mchatrow.MCHAT_MESSAGE_ID}" style="display:none;"><a href="{mchatrow.U_USER_ID}" title="{L_MCHAT_SEND_PM}">{L_MCHAT_PM}</a></span><!-- ENDIF --> - {mchatrow.MCHAT_TIME}</span> <span style="float:left;"><!-- IF not MCHAT_ARCHIVE_MODE and MCHAT_ADD_MESSAGE --><!-- IF MCHAT_ALLOW_BBCODES --><!-- IF mchatrow.MCHAT_USERNAME_COLOR --><a class="mChatScriptLink" href="#" onclick="insert_text('&#64;&nbsp;[b][color={mchatrow.MCHAT_USERNAME_COLOR}]{mchatrow.MCHAT_USERNAME}[/color][/b], ', false);return false;" title="{L_MCHAT_RESPOND}"><span style="color: {mchatrow.MCHAT_USERNAME_COLOR}"><strong>&#64;</strong></span></a><!-- ELSE --> <a href="#" class="mChatScriptLink" onclick="insert_text('&#64;&nbsp;[b]{mchatrow.MCHAT_USERNAME}[/b], ', false);return false;" title="{L_MCHAT_RESPOND}"><strong>&#64;</strong></a><!-- ENDIF --><!-- ELSE --> <a href="#" class="mChatScriptLink" onclick="insert_text('&#64;&nbsp;{mchatrow.MCHAT_USERNAME}, ', false);return false;" title="{L_MCHAT_RESPOND}">&#64;</a><!-- ENDIF -->&nbsp;<!-- ENDIF -->{mchatrow.MCHAT_USERNAME_FULL} <!-- IF mchatrow.U_USER_ID --> <span class="mchatrow{mchatrow.MCHAT_MESSAGE_ID}" style="display:none;"><a href="{mchatrow.U_USER_ID}" title="{L_MCHAT_SEND_PM}">{L_MCHAT_PM}</a></span><!-- ENDIF --> - {mchatrow.MCHAT_TIME}</span>
<span style="float:right;"><!-- IF MCHAT_ALLOW_IP --><a href="{mchatrow.MCHAT_U_WHOIS}" onclick="popup(this.href, 750, 500); return false;"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/ip.gif" alt="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}" title="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}" class="mChatImage" /></a><!-- ENDIF --><!-- IF mchatrow.MCHAT_ALLOW_BAN --> <a href="{mchatrow.MCHAT_U_BAN}"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/ban.gif" alt="{L_MCHAT_PERMISSIONS}" title="{L_MCHAT_PERMISSIONS}" class="mChatImage" /></a><!-- ENDIF --><!-- IF mchatrow.MCHAT_ALLOW_EDIT --> <a href="#" onclick="mChat.edit('{mchatrow.MCHAT_MESSAGE_ID}');return false;"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/edit.gif" alt="{L_MCHAT_EDIT}" title="{L_MCHAT_EDIT}" class="mChatImage" /></a><!-- ENDIF --><input type="hidden" id="edit{mchatrow.MCHAT_MESSAGE_ID}" value="{mchatrow.MCHAT_MESSAGE_EDIT}" /><!-- IF mchatrow.MCHAT_ALLOW_DEL --> <a href="#" onclick="mChat.del('{mchatrow.MCHAT_MESSAGE_ID}');return false;"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/del.gif" alt="{L_MCHAT_DELITE}" title="{L_MCHAT_DELITE}" class="mChatImage" /></a><!-- ENDIF --></span><br /><div class="avatarMessage mChatMessage">{mchatrow.MCHAT_MESSAGE}</div> <span style="float:right;"><!-- IF MCHAT_ALLOW_IP --><a href="{mchatrow.MCHAT_U_WHOIS}" onclick="popup(this.href, 750, 500); return false;"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/ip.gif" alt="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}" title="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}" class="mChatImage" /></a><!-- ENDIF --><!-- IF mchatrow.MCHAT_ALLOW_BAN --> <a href="{mchatrow.MCHAT_U_BAN}"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/ban.gif" alt="{L_MCHAT_PERMISSIONS}" title="{L_MCHAT_PERMISSIONS}" class="mChatImage" /></a><!-- ENDIF --><!-- IF mchatrow.MCHAT_ALLOW_EDIT --> <a href="#" onclick="mChat.edit('{mchatrow.MCHAT_MESSAGE_ID}');return false;"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/edit.gif" alt="{L_MCHAT_EDIT}" title="{L_MCHAT_EDIT}" class="mChatImage" /></a><!-- ENDIF --><input type="hidden" id="edit{mchatrow.MCHAT_MESSAGE_ID}" value="{mchatrow.MCHAT_MESSAGE_EDIT}" /><!-- IF mchatrow.MCHAT_ALLOW_DEL --> <a href="#" onclick="mChat.del('{mchatrow.MCHAT_MESSAGE_ID}');return false;"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/del.gif" alt="{L_MCHAT_DELITE}" title="{L_MCHAT_DELITE}" class="mChatImage" /></a><!-- ENDIF --></span><br /><div class="avatarMessage mChatMessage">{mchatrow.MCHAT_MESSAGE}</div>
</div> </div>
</div> </div>

View File

@@ -1,5 +1,13 @@
<!-- IF MCHAT_ARCHIVE_MODE or MCHAT_CUSTOM_PAGE --> <!-- IF MCHAT_ARCHIVE_MODE or MCHAT_CUSTOM_PAGE -->
<!-- INCLUDE overall_header.html --> <!-- INCLUDE overall_header.html -->
<!-- INCLUDEJS editor.js -->
<!-- INCLUDEJS jquery.titlealert.min.js -->
<!-- INCLUDEJS jquery_cookie_mini.js -->
<!-- INCLUDEJS mchat_ajax_mini.js -->
<!-- INCLUDEJS jquery-1.8.3.min.js -->
<!-- INCLUDEJS jquery.maxlength.min.js -->
<!-- ENDIF --> <!-- ENDIF -->
<!-- IF MCHAT_ARCHIVE_MODE --> <!-- IF MCHAT_ARCHIVE_MODE -->
<!--** <!--**

View File

@@ -2,11 +2,64 @@
<table width="50%" style="margin-left: auto; margin-right: auto;"> <table width="50%" style="margin-left: auto; margin-right: auto;">
<tr align="center"> <tr align="center">
<td valign="top"> <td valign="top">
<!-- <script type="text/javascript"> <script type="text/javascript">
// <![CDATA[ // <![CDATA[
/**
* Color pallette
*/
function colorPalette(dir, width, height)
{
var r = 0, g = 0, b = 0;
var numberList = new Array(6);
var color = '';
numberList[0] = '00';
numberList[1] = '40';
numberList[2] = '80';
numberList[3] = 'BF';
numberList[4] = 'FF';
document.writeln('<table cellspacing="1" cellpadding="0" border="0">');
for (r = 0; r < 5; r++)
{
if (dir == 'h')
{
document.writeln('<tr>');
}
for (g = 0; g < 5; g++)
{
if (dir == 'v')
{
document.writeln('<tr>');
}
for (b = 0; b < 5; b++)
{
color = String(numberList[r]) + String(numberList[g]) + String(numberList[b]);
document.write('<td bgcolor="#' + color + '" style="width: ' + width + 'px; height: ' + height + 'px;">');
document.write('<a href="#" onclick="bbfontstyle(\'[color=#' + color + ']\', \'[/color]\'); return false;"><img src="{ROOT_PATH}images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>');
document.writeln('</td>');
}
if (dir == 'v')
{
document.writeln('</tr>');
}
}
if (dir == 'h')
{
document.writeln('</tr>');
}
}
document.writeln('</table>');
}
colorPalette('h', 15, 10); colorPalette('h', 15, 10);
// ]]> // ]]>
</script> --> </script>
</td> </td>
</tr> </tr>
</table> </table>

View File

@@ -1,3 +1,3 @@
<!-- BEGIN mchatrow --> <!-- BEGIN mchatrow -->
<div id="mess{mchatrow.MCHAT_MESSAGE_ID}" class="mChatBG{mchatrow.MCHAT_CLASS} mChatHover"><span style="float:left;"><!-- IF not MCHAT_ARCHIVE_MODE and MCHAT_ADD_MESSAGE --><!-- IF MCHAT_ALLOW_BBCODES --><!-- IF mchatrow.MCHAT_USERNAME_COLOR --><a class="mChatScriptLink" href="javascript://" onclick="insert_text('&#64;&nbsp;[b][color={mchatrow.MCHAT_USERNAME_COLOR}]{mchatrow.MCHAT_USERNAME}[/color][/b], ', false);" title="{L_MCHAT_RESPOND}"><span style="color: {mchatrow.MCHAT_USERNAME_COLOR}"><strong>&#64;</strong></span></a><!-- ELSE --> <a href="javascript://" class="mChatScriptLink" onclick="insert_text('&#64;&nbsp;[b]{mchatrow.MCHAT_USERNAME}[/b], ', false);" title="{L_MCHAT_RESPOND}"><strong>&#64;</strong></a><!-- ENDIF --><!-- ELSE --> <a href="javascript://" class="mChatScriptLink" onclick="insert_text('&#64;&nbsp;{mchatrow.MCHAT_USERNAME}, ', false);" title="{L_MCHAT_RESPOND}">&#64;</a><!-- ENDIF -->&nbsp;<!-- ENDIF -->{mchatrow.MCHAT_USERNAME_FULL} <!-- IF mchatrow.U_USER_ID --> <span class="mchatrow{mchatrow.MCHAT_MESSAGE_ID}" style="display:none;"><a href="{mchatrow.U_USER_ID}" title="{L_MCHAT_SEND_PM}">{L_MCHAT_PM}</a></span><!-- ENDIF --> - {mchatrow.MCHAT_TIME}</span><span style="float:right;"><!-- IF MCHAT_ALLOW_IP --><a href="{mchatrow.MCHAT_U_WHOIS}" onclick="popup(this.href, 750, 500); return false;"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/ip.gif" alt="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}" title="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}" class="mChatImage" /></a><!-- ENDIF --><!-- IF mchatrow.MCHAT_ALLOW_BAN --> <a href="{mchatrow.MCHAT_U_BAN}"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/ban.gif" alt="{L_MCHAT_PERMISSIONS}" title="{L_MCHAT_PERMISSIONS}" class="mChatImage" /></a><!-- ENDIF --><!-- IF mchatrow.MCHAT_ALLOW_EDIT --> <a href="javascript://" onclick="mChat.edit('{mchatrow.MCHAT_MESSAGE_ID}');"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/edit.gif" alt="{L_MCHAT_EDIT}" title="{L_MCHAT_EDIT}" class="mChatImage" /></a><!-- ENDIF --><input type="hidden" id="edit{mchatrow.MCHAT_MESSAGE_ID}" value="{mchatrow.MCHAT_MESSAGE_EDIT}" /><!-- IF mchatrow.MCHAT_ALLOW_DEL --> <a href="javascript://" onclick="mChat.del('{mchatrow.MCHAT_MESSAGE_ID}');"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/del.gif" alt="{L_MCHAT_DELITE}" title="{L_MCHAT_DELITE}" class="mChatImage" /></a><!-- ENDIF --></span><br /><div class="mChatMessage">{mchatrow.MCHAT_MESSAGE}</div></div> <div id="mess{mchatrow.MCHAT_MESSAGE_ID}" class="mChatBG{mchatrow.MCHAT_CLASS} mChatHover"><span style="float:left;"><!-- IF not MCHAT_ARCHIVE_MODE and MCHAT_ADD_MESSAGE --><!-- IF MCHAT_ALLOW_BBCODES --><!-- IF mchatrow.MCHAT_USERNAME_COLOR --><a class="mChatScriptLink" href="javascript://" onclick="insert_text('&#64;&nbsp;[b][color={mchatrow.MCHAT_USERNAME_COLOR}]{mchatrow.MCHAT_USERNAME}[/color][/b], ', false);" title="{L_MCHAT_RESPOND}"><span style="color: {mchatrow.MCHAT_USERNAME_COLOR}"><strong>&#64;</strong></span></a><!-- ELSE --> <a href="javascript://" class="mChatScriptLink" onclick="insert_text('&#64;&nbsp;[b]{mchatrow.MCHAT_USERNAME}[/b], ', false);" title="{L_MCHAT_RESPOND}"><strong>&#64;</strong></a><!-- ENDIF --><!-- ELSE --> <a href="javascript://" class="mChatScriptLink" onclick="insert_text('&#64;&nbsp;{mchatrow.MCHAT_USERNAME}, ', false);" title="{L_MCHAT_RESPOND}">&#64;</a><!-- ENDIF -->&nbsp;<!-- ENDIF -->{mchatrow.MCHAT_USERNAME_FULL} <!-- IF mchatrow.U_USER_ID --> <span class="mchatrow{mchatrow.MCHAT_MESSAGE_ID}" style="display:none;"><a href="{mchatrow.U_USER_ID}" title="{L_MCHAT_SEND_PM}">{L_MCHAT_PM}</a></span><!-- ENDIF --> - {mchatrow.MCHAT_TIME}</span><span style="float:right;"><!-- IF MCHAT_ALLOW_IP --><a href="{mchatrow.MCHAT_U_WHOIS}" onclick="popup(this.href, 750, 500); return false;"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/ip.gif" alt="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}" title="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}" class="mChatImage" /></a><!-- ENDIF --><!-- IF mchatrow.MCHAT_ALLOW_BAN --> <a href="{mchatrow.MCHAT_U_BAN}"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/ban.gif" alt="{L_MCHAT_PERMISSIONS}" title="{L_MCHAT_PERMISSIONS}" class="mChatImage" /></a><!-- ENDIF --><!-- IF mchatrow.MCHAT_ALLOW_EDIT --> <a href="javascript://" onclick="mChat.edit('{mchatrow.MCHAT_MESSAGE_ID}');"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/edit.gif" alt="{L_MCHAT_EDIT}" title="{L_MCHAT_EDIT}" class="mChatImage" /></a><!-- ENDIF --><input type="hidden" id="edit{mchatrow.MCHAT_MESSAGE_ID}" value="{mchatrow.MCHAT_MESSAGE_EDIT}" /><!-- IF mchatrow.MCHAT_ALLOW_DEL --> <a href="javascript://" onclick="mChat.del('{mchatrow.MCHAT_MESSAGE_ID}');"><img src="{ROOT_PATH}ext/dmzx/mchat/styles/prosilver/theme/images/del.gif" alt="{L_MCHAT_DELITE}" title="{L_MCHAT_DELITE}" class="mChatImage" /></a><!-- ENDIF --></span><br /><div class="mChatMessage">{mchatrow.MCHAT_MESSAGE}</div></div>
<!-- END mchatrow --> <!-- END mchatrow -->

View File

@@ -68,5 +68,4 @@
</fieldset> </fieldset>
</form> </form>
<!-- INCLUDE ucp_footer.html --> <!-- INCLUDE ucp_footer.html -->

View File

@@ -19,9 +19,9 @@ class ucp_mchat_info
'version' => '1.3.8', 'version' => '1.3.8',
'modes' => array( 'modes' => array(
'configuration' => array( 'configuration' => array(
'title' => 'UCP_MCHAT_CONFIG', 'title' => 'UCP_MCHAT_CONFIG',
'auth' => 'ext_dmzx/mchat && acl_u_mchat_use', 'auth' => 'ext_dmzx/mchat && acl_u_mchat_use',
'cat' => array('UCP_MCHAT_CONFIG')), 'cat' => array('UCP_MCHAT_CONFIG')),
), ),
); );
} }