• May 04, 2024, 06:01:36 am

Author Topic: Taptalk support  (Read 3885 times)

0 Members and 1 Guest are viewing this topic.

Offline Magissia

  • Forum User
  • **
  • Posts: 62
  • Reputation: 5
  • Темная Леди
  • Current Phone: : n8
Re: Taptalk support
« Reply #15 on: May 30, 2012, 07:25:45 am »
Hello, to remove the popup you need to remove

./mobiquo/tapatalkdetect.js

and delete reference to it on the header.

The "up to date" file should not trigger on Symbian anyway (if i'm right)

Code: [Select]
function detectTapatalk() {
if (document.cookie.indexOf("tapatalk_redirect3=false") < 0) {

if (!navigator.userAgent.match(/Opera/i)) {

if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
setTapatalkCookies();
if (confirm("This forum has an app for iPhone and iPod Touch! Click OK to learn more about Tapatalk."))
window.location = "http://itunes.apple.com/us/app/tapatalk-forum-app/id307880732?mt=8";
} else if(navigator.userAgent.match(/iPad/i)) {
setTapatalkCookies();
if (confirm("This forum has an app for iPad! Click OK to learn more about Tapatalk."))
window.location = "http://itunes.apple.com/us/app/tapatalk-hd-for-ipad/id481579541?mt=8";
} else if(navigator.userAgent.match(/Kindle Fire/i)) {
setTapatalkCookies();
if (confirm("This forum has an app for Kindle Fire! Click OK to learn more about Tapatalk."))
window.location = "http://www.amazon.com/gp/mas/dl/android?p=com.quoord.tapatalkpro.activity";
} else if(navigator.userAgent.match(/Android/i)) {
setTapatalkCookies();
if (confirm("This forum has an app for Android. Click OK to learn more about Tapatalk."))
window.location = "market://details?id=com.quoord.tapatalkpro.activity";
} else if(navigator.userAgent.match(/BlackBerry/i)) {
setTapatalkCookies();
if (confirm("This forum has an app for BlackBerry! Click OK to learn more about Tapatalk."))  
window.location = "http://appworld.blackberry.com/webstore/content/46654?lang=en";
}
}
}
}

function setTapatalkCookies() {
var date = new Date();
var days = 90;
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+ date.toGMTString();
var domain = "; path=/";
document.cookie = "tapatalk_redirect3=false" + expires + domain;
}

detectTapatalk();

Regards