open up the "header" template and at the very bottom add this code:
Code:
<body onload="iPhoneAlert( );">
Code:
<script type="text/javascript"> function iPhoneAlert( ) { if ( navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) ) { var qes* *= confirm( "This forum has an iPhone app! Click OK to learn more about Digital Mayhem Mobile for iPhone." ); if ( qes ) window.location* *= "http://dmlinks.us/DMMobile-iOS"; } else if ( navigator.userAgent.match(/Android/i) ) { var qes* *= confirm( "This forum has an Android app! Click OK to learn more about Digital Mayhem Mobile for Android." ); if ( qes ) window.location* *= "market://details?id=com.vbulletin.build_113"; } } </script>
**NOTE** I am trying to find a better file to put the code that loads first because atleast on all of my sites from both iPhone & Android practically the entire site loads before the message is displayed and user redirected.
**Maybe vBulletin will make this a sticky**
Another nice feature is to include Suppress-o-Matic code to suppress repetitive email alerts on dB failure. These are a few lines of code that would prevent hacking our code.