The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Avacweb chat and coding problems

View previous topic View next topic Go down

Avacweb chat and coding problems

Post by YodaHUN on April 16th 2014, 8:06 pm

Hello,

I am not sure I post it to right forum, but may Forumotion staff can help me also. I have used avac web chat about weeks or monts, and now its gone crazy. It crated over 100+ public rooms (automatically) and the chat mainly is unusable. Please help, this is very important.



Chat javascript code:


var avacweb_chat_config = {
           version : '1-8',
           new_chat_title : 'Star Wars A Sötétség Hajnala Chatfal',
           auto_log_in : 'open',
           archives : 1,
           sound_file : 'http://www.freesfx.co.uk/rx2/mp3s/2/1305_1256857800.mp3',
           stylesheet : 'http://chat.avacweb.net/avacweb_chat.css',
           disable_timeout : 0,
           allow_private_messaging : 1,
           allow_user_resize : 1,
           commands : {},
           can_open_tabs : [1], //user ids of users who can open new tabs.
           tabs : {},
           allow_copyrights : 1, //please be kind and allow AWC to place small discreet copyrights and backlink on your forum.
           // DO NOT TOUCH ANYTHING BELOW
           message_hook:[],user_hook:[],events:{},add_event:function(t,f) {t=/^on/.test(t)?t:'on'+t;t in this.events?this.events[t].push(f):this.events[t]=[f]}};
        document.write('<script type="text/javascript" src="http://chat.avacweb.net/v' + avacweb_chat_config.version + '.js" id="achat_script"></script>');
        avacweb_chat_translation = {
           'log in' : 'Belépés',
           'log out': 'Kijelentkezés',
           'chat'   : 'Chatfal',
           'on'     : 'Be',
           'off'    : 'Ki',
           'close'  : 'Bezárás',
           'smilies': 'Emotikonok',
           'colors' : 'Színek',
           'send'   : 'Küldés',
           'archives' : 'Archívum',
           'message': 'Üzenet',
           'refresh': 'Frissítés',
           'you are disconnected. click log in to join the chat.' : 'Jelenleg ki vagy jelentkezve, kattints a "Belépés"  gombra a csevegéshez.',
           'user options' : 'Felhasználói beállítások',
           'color' : 'Szín',
           'sound' : 'Hang',
           'bold' : 'Kihúzott betűk',
           'underline' : 'Aláhúzott betűk',
           'strike' : 'Áthúzott betűk',
           'italic' : 'Dőlt betűk',
           'private message' : 'Privát Üzenet',
           'loading smilies...' : 'Emotikonok betöltése...',
           'this command is not available or does not exist' : 'Nem létező parancs.',
           'user not found' : 'Nem található ilyen felhasználó',
           'view profile' : 'Profil megtekintése',
           'send private message' : 'Privát üzenet küldése',
           'kick from chat' : 'Kirúgás a chatfalról',
           'remove from moderators' : 'Eltávolítás a Moderátorok közül',
           'send friend request' : 'Megjelölés Barátként',
           'add to moderators' : 'Hozzáadás a moderátorokhoz',
           'away' : 'Távol',
           'reading' : 'Olvasó mód',
           'start private conversation' : 'Privát beszélgetés kezdése',
           'conversation with' : 'Beszélgetés vele',
           'public' : 'Publikus',
           'started by' : 'Létrehozta',
           'add a new tab' : 'Új chatfal létrehozása',
           'private message' : '*Suttogja*',
           'sorry this command is only for staff.' : 'Ezt parancsot csak staff tag használhatja.',
           'no banned users to display.' : 'Nincs megjeleníthető bannolt felhasználó',
           'tab names must be more than 2 characters.' : 'A névnek több mint 2 karaktert kell tartalmaznia!',
           'choose a name for the new tab' : 'Válassz nevet a chatszobának',
           'newest first' : 'Új üzenetek mutatása először',
           'merge messages' : 'Üzenetek összekapcsolása'
};
        avacweb_chat_config.add_event('onload', function() {
            $( avacweb_chat.id('achat_reading') ).click(function() {
                if(avacweb_chat.reading) {
                    avacweb_chat.send_message('/me ' + avacweb_chat.t('aktiválta az olvasó módot.'));
                }
                else {
                    avacweb_chat.send_message('/me ' + avacweb_chat.t('kikapcsolta az olvasó módot.'));
                }
            });
        });
        avacweb_chat_config.message_hook.push(function(row, username, user_id, user) {
           user.innerHTML = user.innerHTML.replace(/@(?=\W)/, '#'); //perform @ replacement
        });
        avacweb_chat_config.user_hook.push(function(row, username, user_id) {
           var u = row.getElementsByTagName('a')[0];
           if(u) u.innerHTML = u.innerHTML.replace(/@(?=\W)/, '#'); //perform @ replacement
});
        avacweb_chat_config.message_hook.push(function(row, username, user_id, usr, msg) {
           var links = msg.getElementsByTagName('a');
           for(var i = 0, l; (l = links[i++]); ) {
              if(l.href.charAt(0) !== '/') {
                 l.innerHTML = '[Link]';
              }
           }
        });
        /*!
        Tinycon - A small library for manipulating the Favicon
        Tom Moor, http://tommoor.com
        Copyright (c) 2012 Tom Moor
        MIT Licensed
        @version 0.5
        */
        (function(){var Tinycon={};var currentFavicon=null;var originalFavicon=null;var originalTitle=document.title;var faviconImage=null;var canvas=null;var options={};var defaults={width:7,height:9,font:'10px arial',colour:'#ffffff',background:'#F03D25',fallback:true,abbreviate:true};var ua=(function(){var agent=navigator.userAgent.toLowerCase();return function(browser){return agent.indexOf(browser)!==-1}}());var browser={ie:ua('msie'),chrome:ua('chrome'),webkit:ua('chrome')||ua('safari'),safari:ua('safari')&&!ua('chrome'),mozilla:ua('mozilla')&&!ua('chrome')&&!ua('safari')};var getFaviconTag=function(){var links=document.getElementsByTagName('link');for(var i=0,len=links.length;i<len;i++){if((links[i].getAttribute('rel')||'').match(/\bicon\b/)){return links[i]}}return false};var removeFaviconTag=function(){var links=document.getElementsByTagName('link');var head=document.getElementsByTagName('head')[0];for(var i=0,len=links.length;i<len;i++){var exists=(typeof(links[i])!=='undefined');if(exists&&(links[i].getAttribute('rel')||'').match(/\bicon\b/)){head.removeChild(links[i])}}};var getCurrentFavicon=function(){if(!originalFavicon||!currentFavicon){var tag=getFaviconTag();originalFavicon=currentFavicon=tag?tag.getAttribute('href'):'/favicon.ico'}return currentFavicon};var getCanvas=function(){if(!canvas){canvas=document.createElement("canvas");canvas.width=16;canvas.height=16}return canvas};var setFaviconTag=function(url){removeFaviconTag();var link=document.createElement('link');link.type='image/x-icon';link.rel='icon';link.href=url;document.getElementsByTagName('head')[0].appendChild(link)};var log=function(message){if(window.console)window.console.log(message)};var drawFavicon=function(label,colour){if(!getCanvas().getContext||browser.ie||browser.safari||options.fallback==='force'){return updateTitle(label)}var context=getCanvas().getContext("2d");var colour=colour||'#000000';var src=getCurrentFavicon();faviconImage=new Image();faviconImage.onload=function(){context.clearRect(0,0,16,16);context.drawImage(faviconImage,0,0,faviconImage.width,faviconImage.height,0,0,16,16);if((label+'').length>0)drawBubble(context,label,colour);refreshFavicon()};if(!src.match(/^data/)){faviconImage.crossOrigin='anonymous'}faviconImage.src=src};var updateTitle=function(label){if(options.fallback){if((label+'').length>0){document.title='('+label+') '+originalTitle}else{document.title=originalTitle}}};var drawBubble=function(context,label,colour){if(typeof label=='number'&&label>99&&options.abbreviate){label=abbreviateNumber(label)}var len=(label+'').length-1;var width=options.width+(6*len);var w=16-width;var h=16-options.height;context.font=(browser.webkit?'bold ':'')+options.font;context.fillStyle=options.background;context.strokeStyle=options.background;context.lineWidth=1;context.fillRect(w,h,width-1,options.height);context.beginPath();context.moveTo(w-0.5,h+1);context.lineTo(w-0.5,15);context.stroke();context.beginPath();context.moveTo(15.5,h+1);context.lineTo(15.5,15);context.stroke();context.beginPath();context.strokeStyle="rgba(0,0,0,0.3)";context.moveTo(w,16);context.lineTo(15,16);context.stroke();context.fillStyle=options.colour;context.textAlign="right";context.textBaseline="top";context.fillText(label,15,browser.mozilla?7:6)};var refreshFavicon=function(){if(!getCanvas().getContext)return;setFaviconTag(getCanvas().toDataURL())};var abbreviateNumber=function(label){var metricPrefixes=[['G',1000000000],['M',1000000],['k',1000]];for(var i=0;i<metricPrefixes.length;++i){if(label>=metricPrefixes[i][1]){label=round(label/metricPrefixes[i][1])+metricPrefixes[i][0];break}}return label};var round=function(value,precision){var number=new Number(value);return number.toFixed(precision)};Tinycon.setOptions=function(custom){options={};for(var key in defaults){options[key]=custom.hasOwnProperty(key)?custom[key]:defaults[key]}return this};Tinycon.setImage=function(url){currentFavicon=url;refreshFavicon();return this};Tinycon.setBubble=function(label,colour){label=label||'';drawFavicon(label,colour);return this};Tinycon.reset=function(){setFaviconTag(originalFavicon)};Tinycon.setOptions(defaults);window.Tinycon=Tinycon})();
        (function() {
          var count = 0;
         
          avacweb_chat_config.add_event('onnew', function(e) {
            Tinycon.setBubble(++count);
          });
           
          avacweb_chat_config.add_event('onopen', function(e) {
            Tinycon.reset();
            count = 0;
          });
        })();

YodaHUN
New Member

Posts : 18
Reputation : 1
Language : Hungarian

http://csillagokhaborujarpg.hungarianforum.com/

Back to top Go down

Re: Avacweb chat and coding problems

Post by Van-Helsing on April 16th 2014, 10:41 pm

Hi,
I am facing the same problem and I have inform the avacweb for this issue http://www.avacweb.com/t2014-avacweb-chat-problem as you can see its a general problem and we must wait to fix it.

With Best Regards,
Dark-Avenger

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Re: Avacweb chat and coding problems

Post by Kite Trojan on April 17th 2014, 1:08 am

Yes, this happened to me too.

Kite Trojan
Forumember

Male Posts : 823
Reputation : 19
Language : English

http://galacticda.forumotion.com/

Back to top Go down

Re: Avacweb chat and coding problems

Post by SLGray on April 17th 2014, 3:06 am

Since this really is not an issue with Forumotion, this topic will be locked.  Please check the link in Dark-Avenger's post.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36639
Reputation : 2441
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum