Advertisement:

Author Topic: Can you suppress Iphone requesting Tapatalk?  (Read 1915 times)

Offline Wazza

  • Charter Member
  • Semi-Newbie
  • *
  • Posts: 98
  • Gender: Male
Can you suppress Iphone requesting Tapatalk?
« on: May 08, 2012, 12:47:55 AM »
Hi all  :)

Thinking of adding Tapatalk to site 2.0.2 as most people have smart phones nowdays

But wish to make it optional ...so can you change site settings so as to never suggest Tapatalk each time you look at the real site on your phone? But still work with Tapatalk?

As this is annoying if your find the std site works for you on the phone?  ???


Offline Arantor

  • SMF Legend
  • *********
  • Posts: 51,160
    • wedgebook on Facebook
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #1 on: May 08, 2012, 09:07:29 AM »
Ask the Tapatalk people, it's their code.

Offline Wazza

  • Charter Member
  • Semi-Newbie
  • *
  • Posts: 98
  • Gender: Male
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #2 on: May 08, 2012, 10:52:38 AM »
Yes may ask them next. I've noted when you visit sites that use tapatalk every page load askes you to add tapatalk.

So hoped that if anyone out there has tried running this but suppressing the request?

If no ones tried then yes best I ask tapatalk.

Cheers :)

Offline Arantor

  • SMF Legend
  • *********
  • Posts: 51,160
    • wedgebook on Facebook
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #3 on: May 08, 2012, 12:10:38 PM »
It isn't every page for me as I have it on multiple forums. But doing so may be contrary to their terms and conditions and in any case they can tell you how to do it better than I can (because there may be a proper way to do it rather than modifying some custom code)

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,470
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #4 on: May 08, 2012, 12:16:23 PM »
Easy to do just remove the edit it makes I belive to the index.template.php file.
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Arantor

  • SMF Legend
  • *********
  • Posts: 51,160
    • wedgebook on Facebook
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #5 on: May 08, 2012, 12:17:26 PM »
Which also makes it impossible to uninstall it properly later if you do so. Assuming it isn't done by hooks (which it might be)

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,470
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #6 on: May 08, 2012, 12:20:18 PM »
The mod doesn't really add anything easy to remove. Just copies files and makes one file edit in the index.template.php the tapatalkdetect.js does not use hooks
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Arantor

  • SMF Legend
  • *********
  • Posts: 51,160
    • wedgebook on Facebook
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #7 on: May 08, 2012, 12:56:38 PM »
Even the later version for RC4+ that doesn't work on RC3?

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,470
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #8 on: May 08, 2012, 01:20:31 PM »
They have updated files on their own site not here at the modsite it is a different version completely.
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Arantor

  • SMF Legend
  • *********
  • Posts: 51,160
    • wedgebook on Facebook
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #9 on: May 08, 2012, 01:21:55 PM »
So not even sure which version we're talking about (and I believe the later version does use hooks)

Offline CircleDock

  • Semi-Newbie
  • *
  • Posts: 96
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #10 on: May 08, 2012, 02:17:13 PM »
So not even sure which version we're talking about (and I believe the later version does use hooks)
I've just had a look at the latest version (3.0.2) and it simply makes a one line change to Load.php (to load its detection JS) - and that's it, no hooks. It does, however, drop its own cookies.

Offline Arantor

  • SMF Legend
  • *********
  • Posts: 51,160
    • wedgebook on Facebook
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #11 on: May 08, 2012, 02:25:30 PM »
So if it makes a one line change to Load.php - and not index.template.php, it must be doing something else internally to be able to serve the JS (which is not quite a hook but a global variable)

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,470
    • smfhacks on Facebook
    • @createaforum on Twitter
    • SMF For Free
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #12 on: May 08, 2012, 02:31:10 PM »
So not even sure which version we're talking about (and I believe the later version does use hooks)
I've just had a look at the latest version (3.0.2) and it simply makes a one line change to Load.php (to load its detection JS) - and that's it, no hooks. It does, however, drop its own cookies.
That's save to remove probably uses $context['html_headers']
SMF For Free -Free SMF Forum hosting.
SMFHacks.com -  Paid Modifications for SMF

Latest Mod:
EzPortal - A Portal System for SMF
Community Suite
Newsletter Pro SMF Gallery Pro SMF Classifieds SMF Store

Offline Arantor

  • SMF Legend
  • *********
  • Posts: 51,160
    • wedgebook on Facebook
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #13 on: May 08, 2012, 02:45:10 PM »
Maybe not. I know there were issues with Tapatalk conflicting with other stuff in Load.php (namely Annoy User), not with $context['html_headers']

Offline CircleDock

  • Semi-Newbie
  • *
  • Posts: 96
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #14 on: May 08, 2012, 03:11:50 PM »
So if it makes a one line change to Load.php - and not index.template.php, it must be doing something else internally to be able to serve the JS (which is not quite a hook but a global variable)
Here is the entire Install.xml:
Code: [Select]
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
    <id>TapatalkSMFPlugin:TapatalkDevelopmentTeam</id>
    <file name="$sourcedir/Load.php">
        <operation>
            <search position="after"><![CDATA[ $context['menu_separator'] = !empty($settings['use_image_buttons']) ? ' ' : ' | ';]]></search>
            <add><![CDATA[ $context['html_headers'] .= '<script type="text/javascript" language="JavaScript" src="' . $boardurl . '/mobiquo/tapatalkdetect.js"></script>';
]]></add>
        </operation>
    </file>
</modification>

Everything else, including replacements for many key SMF source files, is contained in the Mobiquo directory.

I removed it because none of my members were using it, those that access with a handheld device prefer the "Mobile Curve" theme.

Offline Arantor

  • SMF Legend
  • *********
  • Posts: 51,160
    • wedgebook on Facebook
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #15 on: May 08, 2012, 04:04:08 PM »
In which case you can remove that one line and it would prevent the popup.

Offline Wazza

  • Charter Member
  • Semi-Newbie
  • *
  • Posts: 98
  • Gender: Male
Re: Can you suppress Iphone requesting Tapatalk?
« Reply #16 on: May 08, 2012, 07:48:41 PM »
Lots of info in here!

Thank you all

Wazza