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)
Smilies not working on AWC Chat! Vote_lcapSmilies not working on AWC Chat! Voting_barSmilies not working on AWC Chat! Vote_rcap 
Mr.Easybb (1587)
Smilies not working on AWC Chat! Vote_lcapSmilies not working on AWC Chat! Voting_barSmilies not working on AWC Chat! Vote_rcap 
Bloodbath (745)
Smilies not working on AWC Chat! Vote_lcapSmilies not working on AWC Chat! Voting_barSmilies not working on AWC Chat! Vote_rcap 
Rukiafan (533)
Smilies not working on AWC Chat! Vote_lcapSmilies not working on AWC Chat! Voting_barSmilies not working on AWC Chat! Vote_rcap 
Dom (513)
Smilies not working on AWC Chat! Vote_lcapSmilies not working on AWC Chat! Voting_barSmilies not working on AWC Chat! Vote_rcap 
puppycheese (446)
Smilies not working on AWC Chat! Vote_lcapSmilies not working on AWC Chat! Voting_barSmilies not working on AWC Chat! Vote_rcap 
pedro (330)
Smilies not working on AWC Chat! Vote_lcapSmilies not working on AWC Chat! Voting_barSmilies not working on AWC Chat! Vote_rcap 
Neymar (301)
Smilies not working on AWC Chat! Vote_lcapSmilies not working on AWC Chat! Voting_barSmilies not working on AWC Chat! Vote_rcap 
Hitsu (281)
Smilies not working on AWC Chat! Vote_lcapSmilies not working on AWC Chat! Voting_barSmilies not working on AWC Chat! Vote_rcap 
Flora (275)
Smilies not working on AWC Chat! Vote_lcapSmilies not working on AWC Chat! Voting_barSmilies not working on AWC Chat! Vote_rcap 


Smilies not working on AWC Chat!

brandon_gbrandon_g
Status : No status yet...

Posts : 81
Join date : 2015-01-13
Age : 26
Location : USA
Wed 14 Jan 2015, 16:05
Hello,

My forum recently had AWC installed on it, it is run on phpbb2, when you click on the smilies tab on any browser nothing comes up (If you type the : ) or something for it will work. Mine was installed by Samantha. I heard this is a possible PHPBB2 issue, is there a known way to work around this or over ride this?


Thanks - Brandon
brandon_gbrandon_g
Status : No status yet...

Posts : 81
Join date : 2015-01-13
Age : 26
Location : USA
Fri 16 Jan 2015, 02:59
Hello, can anyone answer this?
avatarGuest
Fri 16 Jan 2015, 04:12
brandon_g wrote:[quotelink="http://www.avacweb.com/t2291-smilies-not-working-on-awc-chat#21763"]Hello, can anyone answer this?

Yeah, hold yer horses, Brandon. Avacweb isn't like the average downtown take-away, yk. Let ppl take some time trying to read, understand, have some thoughts and try to fix it. Look let me explain, I've tried some JS I found in a similar topic or some posts found on Avacweb, but it didn't do the trick, so I removed the codes for that. The box pops up, but it's empty; no emoticons are shown. There was another possibility in that post, but that didn't work either. The website is Brandon's, it's phpBB2. Now, I remember someone suggested phpBB2 wasn't supported for AWC, but still, this is the only issue that still needs attention. I already installed and styled AWC on his website: http://broadcastingduo.forumotion.com

Thanks in advance looking into this! Smile

Samantha.
BloodbathBloodbath
Status : No status yet...

Posts : 745
Join date : 2013-05-31
Age : 28
Fri 16 Jan 2015, 08:08
Yes, it is indeed your forum version that is causing these issues; AWC was never built for phpBB2, it just happens to work on it. There was a fix for this posted on here, and I'll look it up later on today when I am not on my phone.
brandon_gbrandon_g
Status : No status yet...

Posts : 81
Join date : 2015-01-13
Age : 26
Location : USA
Fri 16 Jan 2015, 16:43
Deleted...
avatarGuest
Fri 16 Jan 2015, 17:26
Hmmm....
BloodbathBloodbath
Status : No status yet...

Posts : 745
Join date : 2013-05-31
Age : 28
Fri 16 Jan 2015, 17:47
Code:
[panda=js]avacweb_chat_config.add_event('onload', function () {
  $(avacweb_chat.id('achat_color_button')).after('<div class="achat_button" onclick="do_selectsmilies(event);">Smileys</div>');
});

Adding this code to your AvacWeb Chat Configuration script should solve the issue.
avatarGuest
Fri 16 Jan 2015, 18:01
Bloodbath wrote:[quotelink="http://www.avacweb.com/t2291-smilies-not-working-on-awc-chat#21789"]
Code:
[panda=js]avacweb_chat_config.add_event('onload', function () {
  $(avacweb_chat.id('achat_color_button')).after('<div class="achat_button" onclick="do_selectsmilies(event);">Smileys</div>');
});

Adding this code to your AvacWeb Chat Configuration script should solve the issue.

Thanks for all your troubles, Boodbath! Really appreciate it! Smile TY!

I'm sure you've tested it, great work, saves loads of time. Gonna test it out soon. Wink Thanks for your fast response!
BloodbathBloodbath
Status : No status yet...

Posts : 745
Join date : 2013-05-31
Age : 28
Fri 16 Jan 2015, 18:11
I actually took this code from a topic made a while ago that another user had been using, so I'm not entirely sure if it'll work.
avatarGuest
Fri 16 Jan 2015, 18:19
Bloodbath wrote:[quotelink="http://www.avacweb.com/t2291-smilies-not-working-on-awc-chat#21791"]I actually took this code from a topic made a while ago that another user had been using, so I'm not entirely sure if it'll work.

I don't mind at all, BB. I'm gonna test it one day, that's 4 sure! Smile Thanks for the effort. I'll get back to you on this after I've tested it. TY!

Samantha.
brandon_gbrandon_g
Status : No status yet...

Posts : 81
Join date : 2015-01-13
Age : 26
Location : USA
Fri 16 Jan 2015, 18:30
Thanks everyone for,the help..
avatarGuest
Sat 17 Jan 2015, 10:28
@Bloodbath: OK the code provides a new button for the emoticons, which will show the user a pop-up box (separate small browser window), so that kinda works, unfortunately there's the old button still in place on the bottom of the chatbox frame which confuses some users. How, if possible, can we remove or hide that one? I've looked in the default AWC CSS for it, but I couldn't find separate codes for the 'grey buttons'.
brandon_gbrandon_g
Status : No status yet...

Posts : 81
Join date : 2015-01-13
Age : 26
Location : USA
Fri 06 Mar 2015, 22:48
Bloodbath wrote:[quotelink="http://www.avacweb.com/t2291-smilies-not-working-on-awc-chat#21789"]
Code:
[panda=js]avacweb_chat_config.add_event('onload', function () {
  $(avacweb_chat.id('achat_color_button')).after('<div class="achat_button" onclick="do_selectsmilies(event);">Smileys</div>');
});

Adding this code to your AvacWeb Chat Configuration script should solve the issue.

Will this code still work in 2.0? If so where in the config code should I add it? I have tried adding on my test forum's awc JS Config but it did not work every way I tried it and made the chat disappear.

Any ideas? Any help would greatly appericated

-Brandon
avatarGuest
Fri 06 Mar 2015, 23:57
@Brandon_g : If you remove the code from your AWC JS, is the button visible then? If not, someone needs to have a review of that code.
LGforumLGforum
Status : Working to restore AWC!

Posts : 2806
Join date : 2011-10-05
Age : 30
Location : UK
Sat 07 Mar 2015, 00:04
No it won't work, but it should if you change [ic]avacweb_chat.id[/ic] to [ic]document.getElementById[/ic]
brandon_gbrandon_g
Status : No status yet...

Posts : 81
Join date : 2015-01-13
Age : 26
Location : USA
Sat 07 Mar 2015, 03:08
Ok so here is my AWC chat config (JS) without the code:
Code:
 var avacweb_chat_config={version:'2-0',chat_title:'Broadcasting Duo Chatbox',stylesheet:'http://chat.avacweb.net/awc_2-0.css',allow_private_messaging:1,allow_user_resize:1,custom_placement:null,commands:{},filters:{},tabs:{Staff:[1,29,69,57,24,2,57,27],VIP:[1,29,69,57,24,2,57,27,59,14,8]},allow_copyrights:1,events:{},add_event:function(t,f){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"></sc'+'ript>');

Now I tried it 3 ways but finally decided to do it the way it was added in the previous JS. (Old version) which was:
Code:
 

//**** SOLVING THE SMILEY ISSUE ****//

        avacweb_chat_config.add_event('onload', function () {

          $(avacweb_chat.id('achat_color_button')).after('<div class="achat_button" onclick="do_selectsmilies(event);">Smileys</div>');

        });

//**** END SOLVING THE SMILEY ISSUE ****//

So as of right now the code looks like:
Code:
 var avacweb_chat_config={version:'2-0',chat_title:'Broadcasting Duo Chatbox',stylesheet:'http://chat.avacweb.net/awc_2-0.css',allow_private_messaging:1,allow_user_resize:1,custom_placement:null,commands:{},filters:{},tabs:{Staff:[1,29,69,57,24,2,57,27],VIP:[1,29,69,57,24,2,57,27,59,14,8]},allow_copyrights:1,events:{},add_event:function(t,f){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"></sc'+'ript>');

//****SOLVING SMILEY ISSUE****//

        avacweb_chat_config.add_event('onload', function () {

          $(document.getElementById('achat_color_button')).after('<div class="achat_button" onclick="do_selectsmilies(event);">Smileys</div>');

        });

//**** END SOLVING THE SMILEY ISSUE****//

I tried changing id like you said LG it seems to not have worked, the chat is still hidden.
The url to the test forum is: http://testingduo.forumotion.com/forum

Thanks for all the help so far!
-Brandon
BloodbathBloodbath
Status : No status yet...

Posts : 745
Join date : 2013-05-31
Age : 28
Sat 07 Mar 2015, 03:23
Let me confirm: this is an issue specific to phpBB 2, yes?
BloodbathBloodbath
Status : No status yet...

Posts : 745
Join date : 2013-05-31
Age : 28
Sat 07 Mar 2015, 03:30
And after looking at the code, replace "avacweb_chat_config.add_event" with "avacweb_chat.events.add" and the code should be working. There has been a change to the event API as far as I can tell.
brandon_gbrandon_g
Status : No status yet...

Posts : 81
Join date : 2015-01-13
Age : 26
Location : USA
Sat 07 Mar 2015, 05:00
Yes it is a phpbb2 specific issue. Thanks bloodbath! I will try that tommorow i am too tired to think stright tonight! Thanks for the help everyone much apperciated.

-Brandon
avatarGuest
Sat 07 Mar 2015, 08:20
@Brandon_G : Your chat is 'hidden' because you've got a JS script error. It won't show when there are JS errors. You've got the entire installation sitting in just 1 line! Also, you're still using the 2.0 test version!

So, delete your oneliner:

Code:
[panda=js] var avacweb_chat_config={version:'2-0-test',chat_title:'Broadcasting Duo Chatbox',stylesheet:'http://chat.avacweb.net/awc_2-0.css',allow_private_messaging:1,allow_user_resize:1,custom_placement:null,commands:{},filters:{},tabs:{Staff:[1,29,69,57,24,2,57,27],VIP:[1,29,69,57,24,2,57,27,59,14,8]},allow_copyrights:1,events:{},add_event:function(t,f){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"></sc'+'ript>');

And paste this replacement code:

Code:
[panda=js]    var avacweb_chat_config = {
      version : '2-0',
      chat_title : Broadcasting Duo Chatbox',
      stylesheet : 'http://chat.avacweb.net/awc_2-0.css',
      allow_private_messaging : 1,
      allow_user_resize : 1,
      custom_placement : null,
      commands : {},
      tabs : {Staff:[1,29,69,57,24,2,57,27],VIP:[1,29,69,57,24,2,57,27,59,14,8]},
      filters : {},
      allow_copyrights : 1, //please be kind and allow AWC to place small discreet copyrights and backlink on your forum.
      // DO NOT TOUCH ANYTHING BELOW
      events:{},add_event:function(t,f) {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"></sc' + 'ript>');
    // END OF AWC CONFIG   

Also, I can see no AWC related CSS on your site no more. Make sure these lines are added to it:

Code:
[panda=css]/* Keep the private message and tab message system secure */
.a_chat_pm tr, .a_chat_pm td, .a_chat_tab tr, .a_chat_tab td, .a_chat_cmd tr, .a_chat_cmd td {display:none!important;}
.a_chat_pm:before, .a_chat_tab:before, .a_chat_cmd:before {content: 'Hidden Content';font-style: italic;}
/* END Keep the private message and tab message system secure */
BloodbathBloodbath
Status : No status yet...

Posts : 745
Join date : 2013-05-31
Age : 28
Sat 07 Mar 2015, 12:08
@Samantha That is because forumotion always compresses all of your site's JavaScript, you can see that on your forum as well the configuration will be on one line as well. I will look into the JavaScript error, but since all the codes for all pages are compressed in the same file the error might be in a completely unrelated file.
brandon_gbrandon_g
Status : No status yet...

Posts : 81
Join date : 2015-01-13
Age : 26
Location : USA
Sat 07 Mar 2015, 14:21
@Samantha I do not have the test version installed actually, I did not copy and paste that directly from acp. I had a file saved with the custom config settings for my awc chtbox, it was configured when the test version was only avialible, I forgot to change it before posting. I do have the full version of 2.0 though.

Thanks for the help everyone! Smile
-Brandon

Edit: @Bloodbath I just tried changing the api or whatever you told me to replace with "avacweb_chat.events.add" and it still appears not to work Neutral .


I will hop on the pc and copy & paste the exact JS code for you all.
BloodbathBloodbath
Status : No status yet...

Posts : 745
Join date : 2013-05-31
Age : 28
Sat 07 Mar 2015, 14:27
In your AWC config you have three invalid characters: "01.", "02.", "03." on lines 21, 22 and 23.

If you remove these the code should be working as expected, and as I said above, replace "avacweb_chat_config.add_event" with "avacweb_chat.events.add".
avatarGuest
Sat 07 Mar 2015, 14:30
Bloodbath wrote:[quotelink="http://www.avacweb.com/t2291p15-smilies-not-working-on-awc-chat#22625"]In your AWC config you have three invalid characters: "01.", "02.", "03." on lines 21, 22 and 23.

If you remove these the code should be working as expected, and as I said above, replace "avacweb_chat_config.add_event" with "avacweb_chat.events.add".

You see! It was somewhere in his default code Wink A straight ace JS error indeed I told you! Thanks for the keen look at it! And about that compression... maybe ur right, but that's not what users (forum owners / admins) tend to see!

Btw, I still think he should remove the workaround code, just to try!
brandon_gbrandon_g
Status : No status yet...

Posts : 81
Join date : 2015-01-13
Age : 26
Location : USA
Sat 07 Mar 2015, 14:49
Bloodbath wrote:[quotelink="http://www.avacweb.com/t2291p15-smilies-not-working-on-awc-chat#22625"]In your AWC config you have three invalid characters: "01.", "02.", "03." on lines 21, 22 and 23.

If you remove these the code should be working as expected, and as I said above, replace "avacweb_chat_config.add_event" with "avacweb_chat.events.add".
Where is this "1","2" and "3"


@Samantha the awc chat appeared like charm before the workaround code was installed yesterday and on BD (my main forum) it still appears as I first test all codes on my test foru now before installing the them there. So you can see the chat still appears on Broadcasting Duo without the workaround code.
Sponsored content

 • Previous Topic • Next Topic