Advertisement:

Author Topic: tawk.to script (chat, support) to smf forum 2.0.15  (Read 1024 times)

Offline ExXeL

  • Semi-Newbie
  • *
  • Posts: 30
  • Gender: Male
    • warriortigers on Facebook
    • Warrior Tigers - Forum
tawk.to script (chat, support) to smf forum 2.0.15
« on: April 19, 2019, 01:19:49 PM »
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.
Code: [Select]
<!--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?

Offline ExXeL

  • Semi-Newbie
  • *
  • Posts: 30
  • Gender: Male
    • warriortigers on Facebook
    • Warrior Tigers - Forum
Re: tawk.to script (chat, support) to smf forum 2.0.15
« Reply #1 on: April 19, 2019, 01:22:02 PM »
Sorry, this is the message what i wanted to attach.
They said, i need to put in the body tag, but which file?

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,934
  • Gender: Male
  • Black cat rulz!
    • Antes on GitHub
    • merta on LinkedIn
    • @XinYenFon on Twitter
    • WoWSnips
Re: tawk.to script (chat, support) to smf forum 2.0.15
« Reply #2 on: April 19, 2019, 05:43:43 PM »
change single quotes (') with double (")
You can support me directly via Patreon

In Catnip We Trust.
The solution is Catnip!
Vote for Catnip!

Current Project(s): [ WoWSnips ]
Past Project(s): [ ezPortal ] # [ Lunarfall ] # [ RDD (HTML5) ]

Offline ExXeL

  • Semi-Newbie
  • *
  • Posts: 30
  • Gender: Male
    • warriortigers on Facebook
    • Warrior Tigers - Forum
Re: tawk.to script (chat, support) to smf forum 2.0.15
« Reply #3 on: April 20, 2019, 04:56:00 AM »
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

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,934
  • Gender: Male
  • Black cat rulz!
    • Antes on GitHub
    • merta on LinkedIn
    • @XinYenFon on Twitter
    • WoWSnips
Re: tawk.to script (chat, support) to smf forum 2.0.15
« Reply #4 on: April 20, 2019, 09:21:23 AM »
You need to edit "index.template.php" file, you can see </head> tag just paste before it.

Code: [Select]
<!--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-->
You can support me directly via Patreon

In Catnip We Trust.
The solution is Catnip!
Vote for Catnip!

Current Project(s): [ WoWSnips ]
Past Project(s): [ ezPortal ] # [ Lunarfall ] # [ RDD (HTML5) ]

Offline ExXeL

  • Semi-Newbie
  • *
  • Posts: 30
  • Gender: Male
    • warriortigers on Facebook
    • Warrior Tigers - Forum
Re: tawk.to script (chat, support) to smf forum 2.0.15
« Reply #5 on: April 20, 2019, 12:29:08 PM »
Thanks so much, it is working now :)