Content restrictions not works

This is the place to post questions and comments about the FlexBanner component
chupi
Posts: 10
Joined: Wed May 08, 2019 7:28 pm

Re: Content restrictions not works

Post by chupi » Thu May 09, 2019 10:22 am

Thank you very much Andrew, you are very kind !!

Andrew998
Posts: 1400
Joined: Wed Jan 07, 2009 10:43 am

Re: Content restrictions not works

Post by Andrew998 » Thu May 09, 2019 10:26 am

It does work in some browsers.
Andrew998
Developer

Andrew998
Posts: 1400
Joined: Wed Jan 07, 2009 10:43 am

Re: Content restrictions not works

Post by Andrew998 » Thu May 09, 2019 10:28 am

As far as I can see, it is only Firefox that has an issue with it.
Andrew998
Developer

Andrew998
Posts: 1400
Joined: Wed Jan 07, 2009 10:43 am

Re: Content restrictions not works

Post by Andrew998 » Thu May 09, 2019 10:51 am

The only reason I wasn't seeing the ad in Firefox was that I use a tracker blocker. Other than that it is working fine.

I suspect I might not be seeing the correct ad so it's very difficult to debug on a remote site.
Andrew998
Developer

chupi
Posts: 10
Joined: Wed May 08, 2019 7:28 pm

Re: Content restrictions not works

Post by chupi » Thu May 09, 2019 8:24 pm

Is that now I have not activated the Content restrictions in any article, that's why you see the ad. When I activate the CSA and place an item, it is crashing, the error occurs on all the pages.

Tomorrow I will try placing only one image to see if the same thing happens.

Andrew998
Posts: 1400
Joined: Wed Jan 07, 2009 10:43 am

Re: Content restrictions not works

Post by Andrew998 » Thu May 09, 2019 8:26 pm

I looked when we were first talking about it.

What error are you seeing? It's very hard to diagnose a problem without seeing it.
Andrew998
Developer

chupi
Posts: 10
Joined: Wed May 08, 2019 7:28 pm

Re: Content restrictions not works

Post by chupi » Fri May 10, 2019 6:08 pm

Hi Andrew, I just did a test with an image instead of a custom code and the same error occurs: the banner disappears. It is when the content restrictions are activated.

This is the error that my Apache server gives me:

[Fri May 10 19:00:46.885213 2019] [fcgid:warn] [pid 11109:tid 140638016198400] [client 79.157.186.189:51732] mod_fcgid: stderr: PHP Warning: Use of undefined constant finished - assumed 'finished' (this will throw an Error in a future version of PHP) in /home/vistaalmar/public_html/administrator/components/com_flexbanners/controllers/flexbanner.php on line 217, referer: https://www.vistaalmar.es/administrator/index.php?option=com_flexbanners&view=flexbanner&layout=edit&id=1

[Fri May 10 19:02:38.780215 2019] [fcgid:warn] [pid 11087:tid 140638066554624] [client 79.157.186.189:51773] mod_fcgid: stderr: PHP Warning: Use of undefined constant restrictbyid - assumed 'restrictbyid' (this will throw an Error in a future version of PHP) in /home/vistaalmar/public_html/administrator/components/com_flexbanners/controllers/flexbanner.php on line 142, referer: https://www.vistaalmar.es/administrator/index.php?option=com_flexbanners&view=flexbanner&layout=edit&id=1

[Fri May 10 19:02:38.780284 2019] [fcgid:warn] [pid 11087:tid 140638066554624] [client 79.157.186.189:51773] mod_fcgid: stderr: PHP Warning: Use of undefined constant enddate - assumed 'enddate' (this will throw an Error in a future version of PHP) in /home/vistaalmar/public_html/administrator/components/com_flexbanners/controllers/flexbanner.php on line 217, referer: https://www.vistaalmar.es/administrator/index.php?option=com_flexbanners&view=flexbanner&layout=edit&id=1

I hope it will help you locate and solve the bug.

Andrew998
Posts: 1400
Joined: Wed Jan 07, 2009 10:43 am

Re: Content restrictions not works

Post by Andrew998 » Fri May 10, 2019 6:13 pm

Those are only php warnings so it should not cause the problem. Those errors also refer to a backend issue rather than a front end display issue.

It's more likely a template or setup issue.

Which version of FlexBanner are you using and what version of php?
Andrew998
Developer

chupi
Posts: 10
Joined: Wed May 08, 2019 7:28 pm

Re: Content restrictions not works

Post by chupi » Fri May 10, 2019 6:50 pm

Hi Andrew, in the frontend it does not give me errors.

I have now installed FlexBanners in a test domain and activating the content restrictions in two articles the banner image does not disappear, then in this case it seems that the CSAs do not work at all.

The site has the latest version of Joomla and FlexBanners, with PHP 7.2.16

These are the pages on which the fish image should NOT appear:

https://my-ebook.es/template/articles/category-blog/9-civilian-cooperation.html
https://my-ebook.es/template/articles/category-blog/13-combat-formation.html

[attachment=0]flexbanner-modulo.jpg[/attachment]
[attachment=1]flexbanner-imagen-con-CSA.jpg[/attachment]
[attachment=2]flexbanner-CSA.jpg[/attachment]
Attachments
flexbanner-modulo.jpg
flexbanner-modulo.jpg (88.35 KiB) Viewed 62 times
flexbanner-imagen-con-CSA.jpg
flexbanner-imagen-con-CSA.jpg (127.4 KiB) Viewed 62 times
flexbanner-CSA.jpg
flexbanner-CSA.jpg (53.75 KiB) Viewed 62 times

chupi
Posts: 10
Joined: Wed May 08, 2019 7:28 pm

Re: Content restrictions not works

Post by chupi » Sun May 12, 2019 5:40 pm

Hello again Andrew,

For your research purposes, I use a plugin called "Content - ContentAds" for other ad positions, which is now discontinued, but which works with content restrictions on articles. It was for Joomla 2.5 but it still works for me in Joomla 3.9.6, the problem is that it has only four positions between which neither the head nor the sidebar are.

[attachment=1]plugin-contetads.jpg[/attachment]

If you look at these articles below you will see that only advertising appears in the head and in the sidebar, in the rest of the articles all advertising appears with the plugin "ContentAds"

www.vistaalmar.es/especies-marinas/ballenas/3624-repugnante-video-delfin-masturbandose-pez-decapitado.html
www.vistaalmar.es/especies-marinas/ballenas/6865-angustiosas-imagenes-muestran-gusanos-parasitos-mataron-cria-ballena.html
www.vistaalmar.es/especies-marinas/peces-extranos/3595-pez-luna-gigante-causa-revuelo-restaurante.html
www.vistaalmar.es/especies-marinas/tiburones/1452-la-pesca-de-tiburones-en-japon-un-negocio-salpicado-de-sangre.html
www.vistaalmar.es/especies-marinas/tiburones/2556-capturan-california-enorme-tiburon-mako.html

The attached file is the compressed "ContentAds" plugin.
Attachments
contentads.zip
(5.57 KiB) Downloaded 3 times
plugin-contetads.jpg
plugin-contetads.jpg (140.04 KiB) Viewed 55 times

Post Reply