UPDATES EasyBlog 6.0.14 Released! Joomla 5.x and PHP 8.x compatible now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Javascript Mobile Detection Woes

Dayo · ·
3:25 AM Sunday, 30 July 2017
None
So, it seems some bright spark decided to use JS and add "is-mobile" classes here and there and do all kinds of funky stuff based on this. Well, I think whoever that was should be dragged screaming out of your offices to a public square and flogged mercilessly! :p

Please, please, please revert this "feature" as it is really poor form. Leave mobile detection and handling to CSS Breakpoints

The problem caused by the "is-mobile" class is that I cache html at server level and if a mobile user is the first one to visit after a cache reset, then everyone afterwards gets a mobile page until the next cache reset and vice versa.

To undo the damage it is causing to me, I have had to override stuff to reset them back to the non "is-mobile" versions.


div#eb.is-mobile .eb-blog-grid .eb-blog-grid-showcase-cover__img {
height: 400px !important;
}

div#eb.is-mobile .eb-blog-grid-showcase-content {
background-color: rgba(0,0,0,0) !important;
position: absolute !important;
}


Worse still, I have had to change /joomla/administrator/components/com_easyblog/includes/scripts/scripts.php so as not to include the flag in window.ezb. One more thing I would have to remember when upgrading.


Thing is that this class is not needed and whatever is being done with this can, or should, be done using the CSS files.
Totally unnecessary and unwelcome.

Can someone please look into this and fix this?
The replies under this section are restricted to logged in users or users with an active subscription with us