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)
Tempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_lcapTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Voting_barTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_rcap 
Mr.Easybb (1587)
Tempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_lcapTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Voting_barTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_rcap 
Bloodbath (745)
Tempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_lcapTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Voting_barTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_rcap 
Rukiafan (533)
Tempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_lcapTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Voting_barTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_rcap 
Dom (513)
Tempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_lcapTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Voting_barTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_rcap 
puppycheese (446)
Tempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_lcapTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Voting_barTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_rcap 
pedro (330)
Tempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_lcapTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Voting_barTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_rcap 
Neymar (301)
Tempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_lcapTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Voting_barTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_rcap 
Hitsu (281)
Tempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_lcapTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Voting_barTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_rcap 
Flora (275)
Tempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_lcapTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Voting_barTempory solution for use /kick in 1.9.1 and for use smiley in phpbb2 Vote_rcap 


Tempory solution for use /kick in 1.9.1 and for use smiley in phpbb2

avatarNelly Nyos
Status : No status yet...

Posts : 37
Join date : 2014-07-26
Sat 26 Jul 2014, 22:45
Hello, sorry for faults but I have a solution for use /kick and for use smiley in phpbb2 and I want share it.

For /kick put on in commands: { } this:

EDIT Look the #4 post


In this line [1,8,788] " change 1,2 by the membrers id of your members staff

[/code]

For Smiley in phpbb2, is a plug in (a have modified a plug in in the forum for this):

Code:
avacweb_chat_config.add_event('onload', function () {
  $(avacweb_chat.id('achat_color_button')).after('<div class="achat_button" onclick="do_selectsmilies(event);">Smileys</div>');


});

This all, I dont have a tempory solution for the /me but I Search
BloodbathBloodbath
Status : No status yet...

Posts : 745
Join date : 2013-05-31
Age : 28
Sun 27 Jul 2014, 00:14
Just on a JavaScript point, the expression [ic]1,8,788[/ic] returns 788 after evaluating 1 and 8 (which does nothing), so the function should only return true if the user ID equals the last number (unless your JavaScript engine is really weird). May I ask what tests you have run on this?
avatarNelly Nyos
Status : No status yet...

Posts : 37
Join date : 2014-07-26
Sun 27 Jul 2014, 09:48
Sorry, I dont have understood all the memessage, my English is very Bad x)

I have test this with my staff , the staff who have their id in the javascript we ould kick and only us could kick
BloodbathBloodbath
Status : No status yet...

Posts : 745
Join date : 2013-05-31
Age : 28
Sun 27 Jul 2014, 11:48
Yes, that is exactly what I suspected to happen. Here's the fix for the kick function:

Code:
kick: {
 run: function(){
  var staffID = [1,8,788]; // change the numbers between the brackets as you like
  for(var i=0;i<staffID.length;i++){
    if(staffID[i]===avacweb_chat.user_id) {
    return true;
    } else continue;
  }
  return false;
 }
}

That should work.
avatarNelly Nyos
Status : No status yet...

Posts : 37
Join date : 2014-07-26
Sun 27 Jul 2014, 12:38
It's Work, thank, sorry if my code is bad, I'm a debutant in JS x)
BloodbathBloodbath
Status : No status yet...

Posts : 745
Join date : 2013-05-31
Age : 28
Sun 27 Jul 2014, 16:28
No worries, you had the correct idea, all that was wrong was your JS syntax (your JS grammar). We're here to help you, anyway.
avatarNelly Nyos
Status : No status yet...

Posts : 37
Join date : 2014-07-26
Sun 27 Jul 2014, 17:51
I have edit my first post for that people take good javascript code (your code)


The code for smiley in phpbb2 have a good syntax or I did a error?
BloodbathBloodbath
Status : No status yet...

Posts : 745
Join date : 2013-05-31
Age : 28
Sun 27 Jul 2014, 20:53
Syntax of the Smiley fix is good, no mistakes there. I can't check if it works as I am not using phpBB 2 though.
avatarNelly Nyos
Status : No status yet...

Posts : 37
Join date : 2014-07-26
Sun 27 Jul 2014, 21:44
Ok thank

My forum is in phpbb2 and I use this since 6 months, It work and I never have a problem
avatarDDril
Status : No status yet...

Posts : 44
Join date : 2014-05-29
Mon 28 Jul 2014, 19:14
Thanks for the fix of Kick.

Best regards.
avatarsayedn73
Status : No status yet...

Posts : 6
Join date : 2014-08-31
Sun 31 Aug 2014, 21:59
in phpbb2
Sponsored content