Customizing SMF > SMF Coding Discussion
Can you suppress Iphone requesting Tapatalk?
CircleDock:
--- Quote from: Arantor 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)
--- End quote ---
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.
Arantor:
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)
vbgamer45:
--- Quote from: CircleDock on May 08, 2012, 02:17:13 PM ---
--- Quote from: Arantor 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)
--- End quote ---
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.
--- End quote ---
That's save to remove probably uses $context['html_headers']
Arantor:
Maybe not. I know there were issues with Tapatalk conflicting with other stuff in Load.php (namely Annoy User), not with $context['html_headers']
CircleDock:
--- Quote from: Arantor 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)
--- End quote ---
Here is the entire Install.xml:
--- Code: ---<?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>
--- End code ---
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.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version