Mobile site on desktop

pethr
10 years, 11 months ago
Hi, strange thing happened, for a short period of time last month our website (j2.5, mj1.2. started to appear in mobile view even for desktop users, even though it probably didn't last long, those users are stuck with mobile template (the cookie doesn't seem to ever expire). I know that it can be fixed by deleting cookies but there is no way we can explain that to our users (a big website). Is it possible to reset the cookie or force update/ignore? Any other solution? To make the matters worse we don't allow manual template switching as we use Mobile Joomla merely for image downscaling (the template is responsive and doesn't need switching) so those users have no way of switching to desktop view. Thank you for any help.
pethr
10 years, 11 months ago
Solved by renaming the cookie (mjmarkup) in plugins/system/mobilebot/mobilebot.php and administrator/components/com_mobilejoomla/mobilejoomla.html.php
stanster
10 years, 9 months ago
Hi
I am having the same issue.  All a bit new to me this but can i ask if you changed mjmarkup as shown below to something different like my cookie for example like I've done in the version below that

if($markup === false && isset($_COOKIE['mjmarkup']))
$markup = self::CheckMarkup($_COOKIE['mjmarkup']);

if($markup === false && isset($_COOKIE['mycookie']))
$markup = self::CheckMarkup($_COOKIE['mycookie']);

Thanks in advance

Shaun
pethr
10 years, 9 months ago
Yes, basically replace all the "mjmarkup" references in the files mentioned with something else.
stanster
10 years, 9 months ago
You sir are awesome.  I've been trying to fix that for days.  People have been saying the mobile version looks great but not on my desktop and it looks like you have just fixed it for me
Go grab a beer on me

Regards

Shaun
pethr
10 years, 9 months ago
Happy to help! It took me a while to figure it out as well. Of course it might very well break again as this merely bypasses the issue when you somehow find out it is broken. I think devs should take notice as this clearly can happen and is hard to spot (I never saw it on any of my devices but received reports and was able to verify it on another affected desktop) without user reporting it to site admin which very few people do.
stanster
10 years, 9 months ago
Hmmm that was short lived lol.  Now only mobile version shows on desktop and mobile and iPad.
It did work for ten minutes though

Any other ideas?

Thanks

Shaun

Cancel the above comment
I missed one of the mjmarkups  
angelajackson13
10 years, 9 months ago
I am not sure about this.... Hmmm

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.