Thanks for your sharing class101.
However, your solution was kinda like the previous way I did the integration with vbportal and also why I removed it.
Let me explain it a bit.
In that code :
Code:
var mgc_cb_jsloc = "$vboptions[bburl]";
You're adding the $vboptions[bburl] var. So ajax calls in the mgc_chatbox.js file will be done with a full http url.
Calling ajax with full http url is generally not allowed by browsers (forbidden action in the javascript language definition).
It might work on some host but it might also not work at all on others.
So I recommend to becareful when using your fix as this could not work.