Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey everybody.
I got a laptop with Win 7 / IE8, when i visit a site with the back to top button, it does not render the button at all. JS isnt loaded. So i commented out this:
<?php
if (variable_get('back_to_top_prevent_on_mobile', 'TRUE') && (is_mobile())) {
// return FALSE;
}
?>
Now its working fine again.
The output for my useragent:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; MAAU)
Thnx for this great module! (and because its on the front page, should i test http://drupal.org/project/scroll_to_top ? See if that fixes it?)
Comments
Comment #1
acke CreditAttribution: acke commentedHi!
Your useragent gives a match for mobile:
http://ideone.com/MrL1i
I isolated it to: OfficeLiveConnector.1.3;
it matches the rule for "nec".
I change the rule to "^nec" instead of "nec" and your useragent pass.
It's commited to HEAD and going into next release.
Comment #2
Rob C CreditAttribution: Rob C commentedOk great, i'll test it asap, but this should indeed fix it. Thnx!