Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11839
Latest: BugginIn
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 42423
Total Topics: 7395
Most Online Today: 159
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 92
Total: 92

Author Topic: Mobile Ads are not turning off  (Read 215 times)

0 Members and 1 Guest are viewing this topic.

Offline Shades

  • Community Suite Customer
  • Full Member
  • ******
  • Posts: 185
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Mobile Ads are not turning off
« on: April 19, 2022, 06:51:16 pm »
SMF 2.1.1
Ad Seller Pro 3.0.5

I have set the ad location to not show on mobile and to only show on desktop but they are all still showing on mobile!? ???
« Last Edit: April 19, 2022, 07:29:54 pm by SMFHacks »

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Offline Shades

  • Community Suite Customer
  • Full Member
  • ******
  • Posts: 185
  • Community Suite Customer
    • View Profile
    • Bikerhound.com
Re: Mobile Ads are not turning off
« Reply #1 on: April 20, 2022, 11:03:30 am »
It's weird because they are off when I check it on my actual phone but if I check it in responsive via F12 dev tool mobile they are showing! ???

ShadesWeb.com - Custom Logos
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16086
    • View Profile
Re: Mobile Ads are not turning off
« Reply #2 on: April 23, 2022, 09:51:55 am »
Mobile is based on user agent. Meaning what the browsers returns back.
I have these defined. What device are you using?
Code: [Select]
$user_agents = array(
array('iPhone', 'iphone'),
array('iPod', 'ipod'),
array('iPad', 'ipad'),
array('PocketIE', 'iemobile'),
array('Opera Mini', isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA']) ?  'operamini' : 'operamini'),
array('Opera Mobile', 'Opera Mobi'),
array('Android', 'android'),
array('Symbian', 'symbian'),
array('BlackBerry', 'blackberry'),
array('BlackBerry Storm', 'blackberry05'),
array('Palm', 'palm'),
array('Web OS', 'webos'),
);
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
2574 Views
Last post February 07, 2008, 04:10:55 pm
by Alex-r-
2 Replies
5893 Views
Last post January 25, 2010, 09:45:23 pm
by Black Viper
1 Replies
4145 Views
Last post August 30, 2013, 08:46:57 am
by SMFHacks
9 Replies
5441 Views
Last post February 24, 2016, 10:25:33 pm
by shuban
1 Replies
1430 Views
Last post October 18, 2020, 05:47:56 am
by Alistair

+- Recent Topics

Custom badges by Hatshepsut
Today at 10:10:46 pm

Membergroup level by davejo
Today at 02:13:49 am

Setting a single free download. by SMFHacks
August 16, 2022, 09:50:04 am

Quick moderation checkboxes in search result? by SMFHacks
August 08, 2022, 10:37:03 am

Contact Page Mod Not Working by SMFHacks
August 05, 2022, 12:19:43 pm

Issues with new Newsletter Pro installation by SMFHacks
August 05, 2022, 07:15:18 am

SMFBlog Mod by Nicole
August 03, 2022, 09:46:22 pm

Contact Page by Nicole
August 03, 2022, 09:45:42 pm

trader + classifieds by Nicole
August 03, 2022, 05:05:17 pm

Category Permissions List by SMFHacks
July 30, 2022, 07:53:24 am

Powered by EzPortal