Magento 2.2 - Mobile_detect is not working [closed] Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar ManaraMagento2 apache rewrites not working on localRequirejs shim option not workingMagento 2 Active Mobile Menu width calc() issue being doubledjQuery css is not working for mobileMagento 2: setPageSize not working in blockHow to set 2 different themes for Mobile and Desktop in Magento 2.1.7 without changing the core fileObserver and event not workingMagento 2: Desktop css is loading while mobile css not loadingCron jobs not workingHow to use require_once in magento 2

Scheduling based problem

What is this word supposed to be?

Has a Nobel Peace laureate ever been accused of war crimes?

Retract an already submitted recommendation letter (written for an undergrad student)

As an international instructor, should I openly talk about my accent?

What makes accurate emulation of old systems a difficult task?

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

Is Diceware more secure than a long passphrase?

Which big number is bigger?

Why doesn't the standard consider a template constructor as a copy constructor?

All ASCII characters with a given bit count

What is the ongoing value of the Kanban board to the developers as opposed to management

Protagonist's race is hidden - should I reveal it?

Air bladders in bat-like skin wings for better lift?

Co-worker works way more than he should

Multiple options vs single option UI

How exactly does Hawking radiation decrease the mass of black holes?

Will I lose my paid in full property

Why does Arg'[1. + I] return -0.5?

How to keep bees out of canned beverages?

What is it called when you ride around on your front wheel?

My admission is revoked after accepting the admission offer

How do I prove this combinatorial identity

How do I reattach a shelf to the wall when it ripped out of the wall?



Magento 2.2 - Mobile_detect is not working [closed]



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraMagento2 apache rewrites not working on localRequirejs shim option not workingMagento 2 Active Mobile Menu width calc() issue being doubledjQuery css is not working for mobileMagento 2: setPageSize not working in blockHow to set 2 different themes for Mobile and Desktop in Magento 2.1.7 without changing the core fileObserver and event not workingMagento 2: Desktop css is loading while mobile css not loadingCron jobs not workingHow to use require_once in magento 2



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















require_once($directory->getRoot().'/Mobile_Detect.php');
$deviceDetect = new Mobile_Detect;
if ($deviceDetect->isMobile())
echo "<script>alert('MOBILE');</script>";
else
echo "<script>alert('WEB');</script>";



Always in all the device we get only "WEB".










share|improve this question













closed as off-topic by Jai, Manashvi Birla, Sukumar Gorai, Teja Bhagavan Kollepara, Piyush Mar 22 at 5:34


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions describing a problem that can't be reproduced OR seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jai, Manashvi Birla, Sukumar Gorai, Teja Bhagavan Kollepara, Piyush
If this question can be reworded to fit the rules in the help center, please edit the question.






















    3















    require_once($directory->getRoot().'/Mobile_Detect.php');
    $deviceDetect = new Mobile_Detect;
    if ($deviceDetect->isMobile())
    echo "<script>alert('MOBILE');</script>";
    else
    echo "<script>alert('WEB');</script>";



    Always in all the device we get only "WEB".










    share|improve this question













    closed as off-topic by Jai, Manashvi Birla, Sukumar Gorai, Teja Bhagavan Kollepara, Piyush Mar 22 at 5:34


    This question appears to be off-topic. The users who voted to close gave this specific reason:


    • "Questions describing a problem that can't be reproduced OR seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jai, Manashvi Birla, Sukumar Gorai, Teja Bhagavan Kollepara, Piyush
    If this question can be reworded to fit the rules in the help center, please edit the question.


















      3












      3








      3








      require_once($directory->getRoot().'/Mobile_Detect.php');
      $deviceDetect = new Mobile_Detect;
      if ($deviceDetect->isMobile())
      echo "<script>alert('MOBILE');</script>";
      else
      echo "<script>alert('WEB');</script>";



      Always in all the device we get only "WEB".










      share|improve this question














      require_once($directory->getRoot().'/Mobile_Detect.php');
      $deviceDetect = new Mobile_Detect;
      if ($deviceDetect->isMobile())
      echo "<script>alert('MOBILE');</script>";
      else
      echo "<script>alert('WEB');</script>";



      Always in all the device we get only "WEB".







      magento2 mobile-device






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 20 at 15:27









      AmyAmy

      36610




      36610




      closed as off-topic by Jai, Manashvi Birla, Sukumar Gorai, Teja Bhagavan Kollepara, Piyush Mar 22 at 5:34


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Questions describing a problem that can't be reproduced OR seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jai, Manashvi Birla, Sukumar Gorai, Teja Bhagavan Kollepara, Piyush
      If this question can be reworded to fit the rules in the help center, please edit the question.







      closed as off-topic by Jai, Manashvi Birla, Sukumar Gorai, Teja Bhagavan Kollepara, Piyush Mar 22 at 5:34


      This question appears to be off-topic. The users who voted to close gave this specific reason:


      • "Questions describing a problem that can't be reproduced OR seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jai, Manashvi Birla, Sukumar Gorai, Teja Bhagavan Kollepara, Piyush
      If this question can be reworded to fit the rules in the help center, please edit the question.




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Add a function in any helper:



          public function isMobile()^bird


          Then call this helper in your file:



          if($this->helper('VendorModuleHelperData')->isMobile())
          //Do mobile code






          share|improve this answer

























          • Thanks Shoaib, will check your answer and let you know.

            – Amy
            Mar 21 at 10:44











          • Have you resolve your issue?

            – Shoaib Munir
            Mar 22 at 9:47











          • No, still not..

            – Amy
            Mar 22 at 9:48











          • The same way I have called the helper class, but still not not able to achieve it..

            – Amy
            Mar 22 at 9:49











          • are you calling helper in phtml or in php? calling of helper is different for both files

            – Shoaib Munir
            Mar 22 at 9:50

















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Add a function in any helper:



          public function isMobile()^bird


          Then call this helper in your file:



          if($this->helper('VendorModuleHelperData')->isMobile())
          //Do mobile code






          share|improve this answer

























          • Thanks Shoaib, will check your answer and let you know.

            – Amy
            Mar 21 at 10:44











          • Have you resolve your issue?

            – Shoaib Munir
            Mar 22 at 9:47











          • No, still not..

            – Amy
            Mar 22 at 9:48











          • The same way I have called the helper class, but still not not able to achieve it..

            – Amy
            Mar 22 at 9:49











          • are you calling helper in phtml or in php? calling of helper is different for both files

            – Shoaib Munir
            Mar 22 at 9:50















          0














          Add a function in any helper:



          public function isMobile()^bird


          Then call this helper in your file:



          if($this->helper('VendorModuleHelperData')->isMobile())
          //Do mobile code






          share|improve this answer

























          • Thanks Shoaib, will check your answer and let you know.

            – Amy
            Mar 21 at 10:44











          • Have you resolve your issue?

            – Shoaib Munir
            Mar 22 at 9:47











          • No, still not..

            – Amy
            Mar 22 at 9:48











          • The same way I have called the helper class, but still not not able to achieve it..

            – Amy
            Mar 22 at 9:49











          • are you calling helper in phtml or in php? calling of helper is different for both files

            – Shoaib Munir
            Mar 22 at 9:50













          0












          0








          0







          Add a function in any helper:



          public function isMobile()^bird


          Then call this helper in your file:



          if($this->helper('VendorModuleHelperData')->isMobile())
          //Do mobile code






          share|improve this answer















          Add a function in any helper:



          public function isMobile()^bird


          Then call this helper in your file:



          if($this->helper('VendorModuleHelperData')->isMobile())
          //Do mobile code







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 21 at 3:51

























          answered Mar 20 at 16:29









          Shoaib MunirShoaib Munir

          2,67421031




          2,67421031












          • Thanks Shoaib, will check your answer and let you know.

            – Amy
            Mar 21 at 10:44











          • Have you resolve your issue?

            – Shoaib Munir
            Mar 22 at 9:47











          • No, still not..

            – Amy
            Mar 22 at 9:48











          • The same way I have called the helper class, but still not not able to achieve it..

            – Amy
            Mar 22 at 9:49











          • are you calling helper in phtml or in php? calling of helper is different for both files

            – Shoaib Munir
            Mar 22 at 9:50

















          • Thanks Shoaib, will check your answer and let you know.

            – Amy
            Mar 21 at 10:44











          • Have you resolve your issue?

            – Shoaib Munir
            Mar 22 at 9:47











          • No, still not..

            – Amy
            Mar 22 at 9:48











          • The same way I have called the helper class, but still not not able to achieve it..

            – Amy
            Mar 22 at 9:49











          • are you calling helper in phtml or in php? calling of helper is different for both files

            – Shoaib Munir
            Mar 22 at 9:50
















          Thanks Shoaib, will check your answer and let you know.

          – Amy
          Mar 21 at 10:44





          Thanks Shoaib, will check your answer and let you know.

          – Amy
          Mar 21 at 10:44













          Have you resolve your issue?

          – Shoaib Munir
          Mar 22 at 9:47





          Have you resolve your issue?

          – Shoaib Munir
          Mar 22 at 9:47













          No, still not..

          – Amy
          Mar 22 at 9:48





          No, still not..

          – Amy
          Mar 22 at 9:48













          The same way I have called the helper class, but still not not able to achieve it..

          – Amy
          Mar 22 at 9:49





          The same way I have called the helper class, but still not not able to achieve it..

          – Amy
          Mar 22 at 9:49













          are you calling helper in phtml or in php? calling of helper is different for both files

          – Shoaib Munir
          Mar 22 at 9:50





          are you calling helper in phtml or in php? calling of helper is different for both files

          – Shoaib Munir
          Mar 22 at 9:50



          Popular posts from this blog

          Identifying “long and narrow” polygons in with PostGISlength and width of polygonWhy postgis st_overlaps reports Qgis' “avoid intersections” generated polygon as overlapping with others?Adjusting polygons to boundary and filling holesDrawing polygons with fixed area?How to remove spikes in Polygons with PostGISDeleting sliver polygons after difference operation in QGIS?Snapping boundaries in PostGISSplit polygon into parts adding attributes based on underlying polygon in QGISSplitting overlap between polygons and assign to nearest polygon using PostGIS?Expanding polygons and clipping at midpoint?Removing Intersection of Buffers in Same Layers

          Masuk log Menu navigasi

          อาณาจักร (ชีววิทยา) ดูเพิ่ม อ้างอิง รายการเลือกการนำทาง10.1086/39456810.5962/bhl.title.447410.1126/science.163.3863.150576276010.1007/BF01796092408502"Phylogenetic structure of the prokaryotic domain: the primary kingdoms"10.1073/pnas.74.11.5088432104270744"Towards a natural system of organisms: proposal for the domains Archaea, Bacteria, and Eucarya"1990PNAS...87.4576W10.1073/pnas.87.12.4576541592112744PubMedJump the queueexpand by handPubMedJump the queueexpand by handPubMedJump the queueexpand by hand"A revised six-kingdom system of life"10.1111/j.1469-185X.1998.tb00030.x9809012"Only six kingdoms of life"10.1098/rspb.2004.2705169172415306349"Kingdoms Protozoa and Chromista and the eozoan root of the eukaryotic tree"10.1098/rsbl.2009.0948288006020031978เพิ่มข้อมูล