Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2017-06-08 16:33:45

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,054
Website GitHub Mastodon Twitter

[SOLVED] adblock

I recently added some images linking to our social media pages but I noticed that in chrome ABP (which is interestingly enough powered by txp) is blocking fb and twitter (G+ and vimeo appear just fine).

Could someone recommend a way to get all images displayed? Basically none of our sites are using ads and I have no idea why ABP is blocking legitimate (be that an unfortunate choice of word for social media), html links.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2017-06-08 16:51:45

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [SOLVED] adblock

Check if, in the URL for your images or links, there is some string like “ad” or “ads” or “pub” or “publicidad” (or the corresponding word in your language).
I’ve seen ABP blocking images because the word publicidad (Spanish for “advertising”) was there, in the URL.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#3 2017-06-08 17:45:18

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,054
Website GitHub Mastodon Twitter

Re: [SOLVED] adblock

Not at all!!! Here’s how it parses.

htm
<div class="social">
<a rel="external" href="https://www.facebook.com/NeMeArtsCentre/"><img src="http://www.neme.org/images/956.jpg" alt="facebook" width="50" height="50" /></a>
<a rel="external" href="https://twitter.com/nemeorg/"><img src="http://www.neme.org/images/957.jpg" alt="twitter" width="50" height="50" /></a><a rel="external" href="https://plus.google.com/112320566517565607455"><img src="http://www.neme.org/images/955.jpg" alt="G+" width="50" height="50" /></a>
<a rel="external" href="https://vimeo.com/imca/"><img src="http://www.neme.org/images/954.jpg" alt="vimeo" width="50" height="50" /></a>
</div>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2017-06-08 20:17:31

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,202
GitHub

Re: [SOLVED] adblock

Hey Yiannis – is this on a specific page of neme.org, or all? I ask because the homepage on my ABP-enabled Chrome here, it’s all working fine:

Offline

#5 2017-06-09 04:59:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,054
Website GitHub Mastodon Twitter

Re: [SOLVED] adblock

Although ABP behaves just fine in ff and safari, this is what I get in Chrome:

And this is from respublikafest.org


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#6 2017-06-09 08:22:20

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,202
GitHub

Re: [SOLVED] adblock

I wonder if there’s some heuristics going on with the ABP rules — perhaps there’s a history of blocked ads with links to Facebook and/or Twitter and ABP is adapting on-the-fly.

Offline

#7 2017-06-09 08:29:01

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,054
Website GitHub Mastodon Twitter

Re: [SOLVED] adblock

Is there an easy way to detect if

  • Visitor uses Chrome
  • ABP is installed

and if so serve text links instead of images?

I found that text links don’t get blocked.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#8 2017-06-09 08:35:11

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,202
GitHub

Re: [SOLVED] adblock

Offline

#9 2017-06-09 09:15:19

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,054
Website GitHub Mastodon Twitter

Re: [SOLVED] adblock

I saw that one but I am in a situation which does not really fit the js.

  1. the problem is only on chrome
  2. 2 out of 4 images appear just fine

By using that script I will probably be creating duplicate links for non-chrome brwsers


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#10 2017-06-09 09:19:15

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,202
GitHub

Re: [SOLVED] adblock

As a test, if you set up a local Rewrite rule instead of a direct link, does it work? i.e.: rather than linking to twitter.com/nemeorg, link to neme.org/twitter and set that to redirect via .htaccess.

Offline

#11 2017-06-09 09:34:12

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,054
Website GitHub Mastodon Twitter

Re: [SOLVED] adblock

Hi Pete

Solved!!! I tried your suggestion but did not work:(
What eventually did it, was to change the alt image attribute from alt="facebook" and alt="twitter" to alt="NeMe on facebook" & alt="NeMe on twitter".


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB