Like SystemiConnectFri 15 Oct 2021, 04:50
Auto Save MessagesLGforumFri 26 Feb 2021, 13:31
New tutorial questionTheCrowMon 15 Feb 2021, 08:12
Support iOS Emojis (and other platforms)LGforumSun 14 Feb 2021, 01:25
LGforum (2806)
Poke bug? Vote_lcapPoke bug? Voting_barPoke bug? Vote_rcap 
Mr.Easybb (1587)
Poke bug? Vote_lcapPoke bug? Voting_barPoke bug? Vote_rcap 
Bloodbath (745)
Poke bug? Vote_lcapPoke bug? Voting_barPoke bug? Vote_rcap 
Rukiafan (533)
Poke bug? Vote_lcapPoke bug? Voting_barPoke bug? Vote_rcap 
Dom (513)
Poke bug? Vote_lcapPoke bug? Voting_barPoke bug? Vote_rcap 
puppycheese (446)
Poke bug? Vote_lcapPoke bug? Voting_barPoke bug? Vote_rcap 
pedro (330)
Poke bug? Vote_lcapPoke bug? Voting_barPoke bug? Vote_rcap 
Neymar (301)
Poke bug? Vote_lcapPoke bug? Voting_barPoke bug? Vote_rcap 
Hitsu (281)
Poke bug? Vote_lcapPoke bug? Voting_barPoke bug? Vote_rcap 
Flora (275)
Poke bug? Vote_lcapPoke bug? Voting_barPoke bug? Vote_rcap 


Poke bug?

avatarGuest
Sat 18 Jan 2014, 03:54
When I poke myself it crashes the entire chat. That is, it crashes it for everyone who's in chat. It seems to be bouncing the request for 5 - 10 minutes, people drop out of chat because of time-outs during which they aren't able to send a single message, or the message box isn't visible at all. I was in chat with 5 other members last night. I recovered by logging off and clearing all cache / cookies. I'm worried anyone can just hang chat at any moment by poking him-/herself. Did I find a possible bug?
Rhino.FreakRhino.Freak
Status : Moved on to Phpbb

Posts : 222
Join date : 2013-03-05
Age : 27
Location : India
Sun 26 Jan 2014, 15:51
well poking has the problem with me too... I mean.. it happens most of the time, even if I poke somebody else too Sad.. hope the next update has some cover up to this issue
avatarGuest
Sun 26 Jan 2014, 18:38
So, it's a problem on Invision as well? Even when you poke others? Hmm... That's sad. Seems to be a common issue then. I'm using phpBB3. Poking other members is no problem at all. I think what the Poke Plug-in misses is some JS code so that members cannot poke themselves. I consider it a real threat to chat this "bug" exists, cuz if I can hang chat, virtually anyone can do it and I don't want that to happen on my board when there's no admin / moderator around.
Rhino.FreakRhino.Freak
Status : Moved on to Phpbb

Posts : 222
Join date : 2013-03-05
Age : 27
Location : India
Mon 27 Jan 2014, 08:58
well I tried it in Phpbb3 as well, not on invision
avatarGuest
Mon 27 Jan 2014, 18:41
Awww... I'm really sorry to hear (read) that. Let's wait and see LG's response on this. I'm sure he thought of something brilliant again. I'm willing to seek new possibilities to take this to the next version, 1.9, but we all need to cooperate on this one I guess. Let's take it to the next level! Smile

I redesigned my board the last days. Some'd say I did poorly, some'd say I did an excellent job on it. I like it the way it is now. I got stuck with my old philosophy a looooong long time. I'm better now. No more hasle, no more real needs, I just changed having fun, the way I was before. I reject the old believes I had, I'm a true admin now.
Mr.EasybbMr.Easybb
Status : Love this site, that's why I'm back each day again... lol Samantha's co-owner now. Well deserved!

Posts : 1587
Join date : 2013-01-04
Mon 27 Jan 2014, 19:49
Working on this now for you guys, you shouldn't be able to poke yourself so.

Try this out, just a fix to the conditions:

Code:
[panda=js](function(awc) {
  ('Avacweb chat Plug in Poke System');
 
  //add out poke command :)
  awc.commands.poke = {
      description : '/poke username - Poke a user in the chatbox to get their attention.',
      run : function(msg) {
        var uid = avacweb_chat.get_user_data(msg).id;
        if(!uid) {
            avacweb_chat.popup(msg + ' ' + avacweb_chat.t('is not in the chat'));
            return false;
        }
        //store the user id's and send in a table
        return '[table class="achat_poke" rel="' + uid + '|' + avacweb_chat.user('id') + '][tr][td][/td][/tr][/table]';
      }
  };
 
  awc.message_hook.push(function(row, username, user_id, user, msg) {
      var poke = $('.achat_poke', row)[0]; // look for the poke table
      if(!poke) return;
    
      var users = poke.getAttribute('rel').split('|'), poker = parseInt(users[1]), poked = parseInt(users[0]), time = $('.date-and-time', row)[0].innerHTML;
      if(!avacweb_chat.user('id') || !poker || !poked) return row.innerHTML = '';
      if(poked == poker){
     avacweb_chat.popup(avacweb_chat.t("Don't Poke Yourself Silly!"));
      }    
      
      if(poked == avacweb_chat.user('id') && poked !== poker) {
        if( !avacweb_chat.pokes[time] ) { //check if we've already alerted of this poke
            avacweb_chat.pokes[time] = 1;
            document.title = avacweb_chat.get_user_data(poker).name + ' ' + avacweb_chat.t('Poked You') + '!';
            document.getElementById('achat_sound').innerHTML = '<embed src="' + avacweb_chat.sound_file + '" hidden="true" autostart="true" loop="false" />';
        }
        row.innerHTML = '<span class="poke">' + avacweb_chat.get_user_data(poker).name + ' ' + avacweb_chat.t('Poked You') + '!</span> ' + time;
      }
      else if(poker == avacweb_chat.user('id')) {
        row.innerHTML = '<span class="poke">' + avacweb_chat.t('You poked') + ' ' + avacweb_chat.get_user_data(poked).name + '.</span>' + time;
      }
      else {
        row.innerHTML = '';
        row.style.display = 'none';
      } 
  });
 
  awc.add_event('onload', function() {
      avacweb_chat.pokes = {}, cookie = avacweb_chat.cookie('pokes');
      if(JSON && cookie) avacweb_chat.pokes = JSON.parse(cookie);
  });
 
  awc.add_event('onnew', function() {
      if(JSON && avacweb_chat.pokes) {
        avacweb_chat.cookie('pokes', JSON.stringify(avacweb_chat.pokes), 0);
      }
  });
 
})(avacweb_chat_config);
avatarGuest
Mon 27 Jan 2014, 20:43
Mr. EasyBB. Thanks a lot for taking care of this. I really appreciate it. I'll be checking your code out next thing tomorrow night. And pls, I'm not a guy! Thank you so much!
avatarGuest
Tue 28 Jan 2014, 18:47
Ok, I"m back on. I need to have the same setup as last time, so I can do this only in the weekend. Where should this code go? Into the AWC JS? Seperate JS?
Mr.EasybbMr.Easybb
Status : Love this site, that's why I'm back each day again... lol Samantha's co-owner now. Well deserved!

Posts : 1587
Join date : 2013-01-04
Wed 29 Jan 2014, 01:51
The poke js was separate so replace the poke plugin code you have now with this.
Rhino.FreakRhino.Freak
Status : Moved on to Phpbb

Posts : 222
Join date : 2013-03-05
Age : 27
Location : India
Wed 29 Jan 2014, 09:11
I put that code, now today when I was chatting I poked someone else and the chat crashed soon enough.. I tried deleting forum cookies, deleting javascript and re-adding, closing browser etc.. but its stilll not fixed yet.. whenever I click on Chat button now, all it does is just show the Avacweb credits line.. nothing is working :/

Poke bug? Untitl14

now after around ten minutes, I refreshed and it opened atleast.. but still there's no way to type any where!

Poke bug? Untitl15

(ignore the background) .. please get this bug fixed.. :/



I tried re-installing the whole chat one last time, and ended up even the button to be disappeared.. -___- along with that, more scripts are clashing.. can someone please help me??

Spoiler:
Mr.EasybbMr.Easybb
Status : Love this site, that's why I'm back each day again... lol Samantha's co-owner now. Well deserved!

Posts : 1587
Join date : 2013-01-04
Wed 29 Jan 2014, 12:45
Yeah I was having the same problem, as it is due to something in the raw js or or chrome. Try it out in FF or IE see if it still happens, I'm headed to class right now but it's only one early morning one then one late night class. So after my homework I'll help you out so more.
Rhino.FreakRhino.Freak
Status : Moved on to Phpbb

Posts : 222
Join date : 2013-03-05
Age : 27
Location : India
Wed 29 Jan 2014, 14:44
it happened in all browsers.. now I removed the plugin to change @ to "mod" and now its working fine (also removed poke function as well though, for time-being till it gets bug-free)
avatarGuest
Wed 29 Jan 2014, 16:51
I ain't got that kinda problems at all in FF, which I'm mostly using btw. Even IE8 checks out to be "normal" lol (I hate IE). I didn't check on Chrome. I don't use it, and I know of no member using it the same. I'm sad for you, Rhino. Did you check for errors in your console already? I know some plug-ins wdon't work very well together. You might wanna scrap one or two, like I did before.

When I encounter problems on my site, I not only delete cookies, but I clear cache as well (using CCleaner and ATFCleaner, both free). My BF checks for adware and virusses regularly on my Windows XP system, which runs like a dream since installed ages ago. Mere thoughts helping you to solve this problem, not suggesting you should. I wish I could help.

Sammy.
Sponsored content