News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Integrate Envolve Chat to your Forum

Started by -Captain Ghost-, July 18, 2014, 03:24:48 AM

Previous topic - Next topic

-Captain Ghost-

Hello Everyone  ;D
In this Topic I will Show You How to Add Envolve Chat to your Forum

Go to Envolve.com
Complete the Sign up process and login.
Once logged in click on Add a new Site


Then Put the Correct URL of your website.


Choose other in option My site is Made with:


We get our code and select it.



In my case it is this.

<!-- Envolve Chat -->
<script type="text/javascript">
var envoSn=[color=red][b]xxxxxx[/b][/color];
var envProtoType = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("<script src='"   envProtoType   "d.envolve.com/env.nocache.js' type='text/javascript'></script>"));
</script>

(please replace "xxxxxx" with the correct code from the picture above)
But we Cannot Use it now.We had to modify this code so Add "\" without "" before Apostrophe '.
Then it will Look Like this.

<!-- Envolve Chat -->
<script type="text/javascript">
var envoSn=xxxxxx;
var envProtoType = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("<script src=\'"   envProtoType   "d.envolve.com/env.nocache.js\' type=\'text/javascript\'></script>"));
</script>


Note: Backup your file Before editing.

Now go to the file Index.template.php of the theme you are using and look for.

global $context, $settings, $options, $scripturl, $txt, $modSettings;
The one with </body></html>';

And add as shown in image.



echo '<!-- Envolve Chat -->
<script type="text/javascript">
var envoSn=xxxxxx;
var envProtoType = (("https:" == document.location.protocol) ? "https://" : "http://");
document.write(unescape("<script src=\'"   envProtoType   "d.envolve.com/env.nocache.js\' type=\'text/javascript\'></script>"));
</script>';


After successfully editing the index.template.php Envolve chat will start showing up on your website.

For free account simultaneous chat user limit is 25.

Credits:SmfSimple.com Losox

Thanks.

Advertisement: