News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

tawk.to script (chat, support) to smf forum 2.0.15

Started by ExXeL, April 19, 2019, 01:19:49 PM

Previous topic - Next topic

ExXeL

Hello,

I would like to know how can i add the script to my smf forum (2.0.15)?
I would like to use the tawk.to support chat script.

This is the script what i would like to use.
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/5cb9fe2fd6e05b735b436804/1d8r8ogga';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->


What is the file where can i put it?

ExXeL

Sorry, this is the message what i wanted to attach.
They said, i need to put in the body tag, but which file?

Antes


ExXeL

Sorry, can you give me the correct form?
I don't understand.
Which is the file what i need to input this script to appear in my forum?

Thanks,
ExXeL

Antes

You need to edit "index.template.php" file, you can see </head> tag just paste before it.

<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src="https://embed.tawk.to/5cb9fe2fd6e05b735b436804/1d8r8ogga";
s1.charset="UTF-8";
s1.setAttribute("crossorigin","*");
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->

ExXeL


Advertisement: