Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: Mr. Jinx on August 04, 2013, 05:01:35 AM

Title: [HOWTO] Disable Tapatalk banner popup
Post by: Mr. Jinx on August 04, 2013, 05:01:35 AM
Tapatalk is a very nice plugin to make SMF work on mobile device.
One thing I hate about Tapatalk is the annoying banner they integrate, and there is no option to disable it.
This banner/popup tells users who visit your site to download their App. If the App was free, I won't have problems with that... but it isn't.

So here is how to easily remove the banner:

In Sources/Load.php find and remove:
Code: [Select]
include($boarddir.'/mobiquo/smartbanner.php');
In $themedir/index.template.php find and remove:
Code: [Select]
echo $context['tapatalk_body_hook'];
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: Phphelp on August 22, 2013, 10:18:34 PM
On the version I'm using I had to comment out this..
/sources/load.php

Code: [Select]
$context['html_headers'] .= '<script type="text/javascript" language="JavaScript" src="' . $boardurl . '/mobiquo/tapatalkdetect.js"></script>'
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: emanuele on August 23, 2013, 05:08:46 AM
TBH I think this goes against the terms of the tapatalk license and publish it here is not really "nice".
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: Phphelp on August 23, 2013, 11:14:34 AM
It's not against their terms to disable it..

The moderators and developers on tapatalk tell you how to do it..

https://support.tapatalk.com/threads/how-to-disable-the-tapatalk-pop-up.8032/

Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: Mr. Jinx on August 24, 2013, 06:42:07 AM
On the version I'm using I had to comment out this..
/sources/load.php

Code: [Select]
$context['html_headers'] .= '<script type="text/javascript" language="JavaScript" src="' . $boardurl . '/mobiquo/tapatalkdetect.js"></script>'
Yep that's true for the older version.
In the newer version you also have to check your index.template.php, else you'll get loads of undefined errors.

TBH I think this goes against the terms of the tapatalk license and publish it here is not really "nice".
Hm, well it's not a copyright you remove. It's just a banner that informs your users your forum also has a mobile app.
I don't see why that would be against their terms?
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: emanuele on August 24, 2013, 04:11:13 PM
The moderators and developers on tapatalk tell you how to do it..

https://support.tapatalk.com/threads/how-to-disable-the-tapatalk-pop-up.8032/
If they allow so then it's fine.

Hm, well it's not a copyright you remove. It's just a banner that informs your users your forum also has a mobile app.
I don't see why that would be against their terms?
Licenses and license agreements are not (only) about copyright:
Quote from: tapatalk license agreement
4. Restrictions
All licenses pertaining to the Product and Documentation must be granted explicitly in writing by Quoord. Accordingly, without such license or as set forth explicitly under this License Agreement you may not publish, display, disclose, rent, lease, modify, loan, distribute, or create derivative works based on the Product or any part thereof. You may not reverse engineer, decompile, translate, adapt, or disassemble the Product, nor shall you attempt to create the source code from the object code for the Product.
bold and underline are mine.
So, according to their terms (if they don't enforce them it's not my problem, I just read what they wrote ;)), without their explicit approval you cannot even modify the package for your own use.
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: PierreP_whited00r_com on August 26, 2013, 11:43:57 PM
Thank you.
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: LavaShakes on August 29, 2013, 07:35:32 AM
sometimes that banner annoys me. thank you for helping how to disable it.
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: konstantinos2424 on September 06, 2014, 09:29:50 AM
Hello, is there any way to remove the blue welcome screen but keep the banner at the top of the forum? Thank you :)
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: abbynormal on September 16, 2014, 08:40:59 PM
This was a good read, as I definitely don't want ads on my forum, but also, I wanted to find out if there was a way to make the theme responsive.  I will start a thread on that though, of my own. 

Thank you for the info on getting rid of the tapatalk banner;) denise
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: 420Connect.co.uk on May 09, 2015, 02:12:10 PM
I know this is an old thread but as I use Tapatalk with my forum and also disliked the 'intrusive' ads, looked for an option to disable them and found the above suggestions to work until their latest update..

(still was seeing ads after removing the lines above)

Anyway, after a bit of googling I've found another method that works and thought I'd share...

In your mobiquo/smartbanner/ folder, locate the file called head.inc.php

Create two new variables near the top of the file


Code: [Select]
$app_ads_enable = 0;
$app_banner_enable = 1;

$app_ads_enable – sets the fullscreen banner when a user first goes to your forum
$app_banner_enable – sets the ‘twitter card head’ (the opt-in screen at the start of the page)

0 will disable a feature,
1 will enable the feature.

Enjoy!

:)
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: Mr. Jinx on May 15, 2015, 12:51:16 PM
Thanks for the info. That is another way.

Small update for the first post (which I can't edit anymore)

In Sources/Subs.php find and remove:
Code: [Select]
//tapatalk add
include_once($boarddir.'/mobiquo/smartbanner.php');

In $themedir/index.template.php find and remove:
Code: [Select]
echo $context['tapatalk_body_hook'];
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: Uhura! on August 12, 2018, 12:16:59 PM
I've tried using all of the tips in this discussion. None work. Is there an update?
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: Shambles on August 12, 2018, 12:33:52 PM
I found I had to disable it in two places:


mobiquo/smartbanner.php

Code: (Find) [Select]
$app_banner_enable = isset($TT_bannerControlData['banner_enable']) && empty($TT_bannerControlData['banner_enable']) ? 0 : 1;
Code: (Replace) [Select]
// $app_banner_enable = isset($TT_bannerControlData['banner_enable']) && empty($TT_bannerControlData['banner_enable']) ? 0 : 1;
$TT_bannerControlData['banner_enable'] = 0;
$app_banner_enable = 0;


lib/classTTconnection.php

Code: (Find) [Select]
$app_banner_enable = isset($TT_bannerControlData['banner_enable']) ? $TT_bannerControlData['banner_enable'] : 1;            
Code: (Replace) [Select]
//$app_banner_enable = isset($TT_bannerControlData['banner_enable']) ? $TT_bannerControlData['banner_enable'] : 1;
$app_banner_enable = 0;
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: mukul.wps on October 31, 2018, 06:57:00 AM
Sometimes that banner annoys me. thank you for helping how to disable it.
Title: Re: [HOWTO] Disable Tapatalk banner popup
Post by: Seamen on April 27, 2019, 02:08:26 PM
Hello,
Can you put a howto for the latest version of Tapatalk ?
Thanks !