mChat Integration Woes

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: mChat Integration Woes

Re: mChat Integration Woes

by DjPorkchop73 » Fri Sep 04, 2020 4:44 pm

My apologies for taking a couple days to reply. I got very busy the last couple days.

I was never able to get the toggle button working. Not sure exactly why. Maybe I have java conflict going on? I have went through all my files, uploaded all brand new files, double checked all edits and still a no go.

I'm not real sure what is failing or why but in the end, it really is not a big deal to me for now. At least the full page short code will work and or a widget which ever I choose. I do appreciate all of your help on this.

Re: mChat Integration Woes

by axew3 » Wed Sep 02, 2020 10:35 am

Ok, this should be the last one, the file
/views/wp_w3all_phpbb_mchat_short.php
reverted the line:
<iframe id="w3all_phpbb_mchat_iframe0"
to what it was:

Code: Select all

<iframe id="w3all_phpbb_mchat_iframe"
and now works: the js code search for this ID.

As is now so, remember to not activate mChat shortcode and widgets on same page.
Or the js code needs to be changed, and the ID of the iframe element switched to something unique, or the code will fail.

Download and replace into plugin's /views/ folder:
https://plugins.trac.wordpress.org/expo ... _short.php

p.s this point (and linked post) has been added into the mChat procedure post:
viewtopic.php?p=3430#p3430

Re: mChat Integration Woes

by DjPorkchop73 » Wed Sep 02, 2020 9:51 am

I tried your files and I can use the frame on the page or post successfully. I can remove it and only use a widget in the sidebar if I wish as well. I then tried both as suggested to try and it worked as well successfully. Everything shows and resizes accordingly now. Nicely done on them fixes!

The only thing I cannot get to work is the Toggle Button in the lower right hand corner like on your sample page. I did activate the custom css file as instructed too and still a no go on the toggle button.

Re: mChat Integration Woes

by DjPorkchop73 » Wed Sep 02, 2020 9:38 am

Thanks for the reply. I will test them files out for you on my install. I apologize for trying both shortcode and widget at the same time. I did not put thought to it when I attempted it.

I did just remove one and tried the other and either way I went, the widget nor the shortcode iframe would resize. I'll go give your fixes a try real quick.

Re: mChat Integration Woes

by axew3 » Wed Sep 02, 2020 8:44 am

Here we go: i've got the same problem, activating on same page, widget and shortcode.
Resizer do not will work, because the iframe ID assigned, will be found the same:

so to resolve this, i just opened
/views/wp_w3all_phpbb_mchat_short.php
file, and where
<iframe id="w3all_phpbb_mchat_iframe"
change the ID to something else, like adding a 0 for example, so the id will be unique:
<iframe id="w3all_phpbb_mchat_iframe0"

but it is secondary problem that only come out if more than one iframe found on page, so a stupid fix for shortcode + widget on same page: +- impossible situation. It is not your problem in this case, the problem into your example install is:

Code: Select all

w3all_phpbb_mchat_iframe:404:819:init. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.
array of allowed domains is not correctly passed
to make the long story short,

/views/wp_w3all_phpbb_mchat_short.php
and
/views/wp_w3all_phpbb_mchat.php

have been patched, to correctly pass array of allowed domains.

Could you test, please, these new files versions, into your install?
The zip contain both files, that need to replace same files, into folder
/wp-content/plugins/wp-w3all-phpbb-integration/views/

you can download both patched files directly on repository:
https://plugins.trac.wordpress.org/brow ... runk/views

or download this attach that contain both (same) files:
views.zip
(2.56 KiB) Downloaded 144 times

Re: mChat Integration Woes

by DjPorkchop73 » Wed Sep 02, 2020 5:49 am

I return with good news 90%. I have all working almost. The widget there is no prosilver header or footer but only chat as supposed to be, on my chat page the chat is there with no header or footer as supposed to as well. However 2 things exist.

1. My mChat Iframe will not resize on widget or chat page.
2. If I attempt to just use a toggle button like you have donehere , I can not get a button to appear at all no matter what I try. I can not get that short code to work.

Here is my website if you wish to take a look. I will turn on chat visible to non logged in users. My Website

You can see the widget I put up on every page but the home page and obviously you will easily find the chat page. :) If I manage to figure it out the rest of the way, I will come back and edit this post.

Top