popup message for iphone users ??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rob9050
    New Member
    • Feb 2009
    • 23
    • 3.8.x

    popup message for iphone users ??

    popup message for iphone users to let them know we have the mobile app? is there a way to do that?
  • GHST
    Senior Member
    • Dec 2006
    • 367
    • 4.1.x

    #2
    Are you talking about in a mobile style or just normal site. The easiest thing would be to create a new notice in the admincp that let's users know.

    Comment

    • rob9050
      New Member
      • Feb 2009
      • 23
      • 3.8.x

      #3
      just anything like if a user goes to the site on their iphone i want a pop up message saying we have a iphone app and then 2 buttons saying ok what takes you to the apple store and then a cancel button

      heres what im talking about goto modmyi.com they have a pop up what i want

      Comment

      • rob9050
        New Member
        • Feb 2009
        • 23
        • 3.8.x

        #4
        Click image for larger version

Name:	photo.jpg
Views:	1
Size:	36.9 KB
ID:	3682088

        like this

        Comment

        • SteveLV702
          Senior Member
          • Aug 2009
          • 1466

          #5
          Ya how you do that???
          ------------------------------------------
          Steve
          DM Mobile Lite (iTunes)(Android)(Blackberry)
          CN Mobile Lite (iTunes)(Android)(Blackberry)
          TheFaFClan Mobile Lite (iTunes)(Android)(Blackberry)
          Audi Spirit Mobile Lite (iTunes)(Android)(Blackberry)

          Comment

          • rob9050
            New Member
            • Feb 2009
            • 23
            • 3.8.x

            #6
            thats what im trying to find out

            Comment

            • worried
              Senior Member
              • Dec 2008
              • 684
              • 4.2.X

              #7
              You'll have to add some javascript to your template (i.e. headerinclude). The code will look something like this:

              Code:
              <script type="text/javascript">
              function showAlert() {
              if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
              alert('Place your text here');
              }
              </script>
              That's probably got errors in it but google "javascript detect iphone" and "javascript alert" to learn more.

              Comment

              • rob9050
                New Member
                • Feb 2009
                • 23
                • 3.8.x

                #8
                how do i make it a link to the itunes store tho?

                Comment

                • SteveLV702
                  Senior Member
                  • Aug 2009
                  • 1466

                  #9
                  Also what would I put also to notify Android users of the Android app?
                  ------------------------------------------
                  Steve
                  DM Mobile Lite (iTunes)(Android)(Blackberry)
                  CN Mobile Lite (iTunes)(Android)(Blackberry)
                  TheFaFClan Mobile Lite (iTunes)(Android)(Blackberry)
                  Audi Spirit Mobile Lite (iTunes)(Android)(Blackberry)

                  Comment

                  • worried
                    Senior Member
                    • Dec 2008
                    • 684
                    • 4.2.X

                    #10
                    You would change the line above to look like this.
                    Code:
                    alert('<a href="http://www.itunes.com">Download here</a>');
                    Again, this might have errors in it but at least you have an idea.

                    Comment

                    • SteveLV702
                      Senior Member
                      • Aug 2009
                      • 1466

                      #11
                      that message didnt work so I used

                      Code:
                      <script language="javascript" type="text/javascript">
                      if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
                      alert('This is what an alert message looks like.');
                      </script>

                      just when click on OK just takes to normal page I need to figure out how to automatically take them to the App Store
                      Last edited by SteveLV702; Sat 30 Apr '11, 6:08pm.
                      ------------------------------------------
                      Steve
                      DM Mobile Lite (iTunes)(Android)(Blackberry)
                      CN Mobile Lite (iTunes)(Android)(Blackberry)
                      TheFaFClan Mobile Lite (iTunes)(Android)(Blackberry)
                      Audi Spirit Mobile Lite (iTunes)(Android)(Blackberry)

                      Comment

                      • rob9050
                        New Member
                        • Feb 2009
                        • 23
                        • 3.8.x

                        #12
                        its not working for me

                        Comment

                        • rob9050
                          New Member
                          • Feb 2009
                          • 23
                          • 3.8.x

                          #13
                          Originally posted by SteveLV702
                          that message didnt work so I used

                          Code:
                          <script language="javascript" type="text/javascript">
                          if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
                          alert('This is what an alert message looks like.');
                          </script>

                          that worked for me but i still need to have a download button were it takes you to the app store

                          Comment

                          • SteveLV702
                            Senior Member
                            • Aug 2009
                            • 1466

                            #14
                            okay think I got it to work check www.digital-mayhem.com from your iPhone/iPod
                            ------------------------------------------
                            Steve
                            DM Mobile Lite (iTunes)(Android)(Blackberry)
                            CN Mobile Lite (iTunes)(Android)(Blackberry)
                            TheFaFClan Mobile Lite (iTunes)(Android)(Blackberry)
                            Audi Spirit Mobile Lite (iTunes)(Android)(Blackberry)

                            Comment

                            • rob9050
                              New Member
                              • Feb 2009
                              • 23
                              • 3.8.x

                              #15
                              not working for me when i goto ur site

                              Comment

                              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                              Working...