The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Mobile Phone / iPhone / PDA Detection and Style Assignment Details »» | ||||||||||||||||||||||||
Mobile Phone / iPhone / PDA Detection and Style Assignment
Developer Last Online: Oct 2023
This add-on will detect most mobile phones, iPhones, PDAs and other mobile browsing devices and automatically for the user to a specific vBulletin style.
Release Information 1.0.1 Initial release for 3.8 ported over from 3.7 version THIS IS IDENTICAL CODE TO THE 3.7 RELEASE! I only re-released as soooo many people ask the question "is this OK for 3.8" You do not need to upgrade if you already have installed! However - should there be any changes in the future, it will likely happen here. What can it do? Detects most mobile phones and force the user to a specific style (users will not be able to select other styles from a mobile device with this add-on installed). If you have multiple styles installed which are optimized for small screen mobile devices, iPhones, WIndows Mobile devices you can assign a specific style to each of these groups. Whilst designed with mobile device users in mind, you could also assign styles to self defined browsers. For example you can assign an alternative style to Internet Explorer users whilst Firefox users get the default style. You could also assign an alternative style to Google or Yahoo spiders. Instructions: 0. Install styles which you wish to assign to Mobile/PDA/iPhone users - some links will appear at the bottom of this post 1. Download the product file 2. Install via Product Manager 3. Configure options via vBulletin Options, Mobile Device Detection (should appear at end) 4. Start browsing from your mobile device! 5. Click "Mark as Installed" If upgrading from a previous 3.5 or 3.6 version, you will need to uninstall that and the install this one. To uninstall simply uninstall the product - there are no database changes or additional files. Styles released on vBulletin which you can use: Dartho's Mobile, Cell, Phone, PDA, iPhone Style for vBulletin 3.7 (<-- yep, that's mine) ElForro's iPhone / iPod Touch Optimized Style Zachery's vB Lite Style vBMechanics Mobile Alabama Style Due to the stripped down nature of these mobile styles, you will find that most for 3.5 and 3.6 will work quite happily on 3.5, 3.6, 3.7 & 3.8 although additional features introduced in vBulletin in recent years such as Social Groups, Blogs and Photo Galleries will not show well on a small screen. All should display your actual forums well. Download Now
Show Your Support
|
Comments |
#82
|
||||
|
||||
Has anyone been complaining that it's not working on their iPhone? It's working fine on all the Android phones, but for some reason I'm getting complaints from iPhone users. I don't know anyone with an iPhone, so I can not check it myself.
|
#83
|
|||
|
|||
detection system does not work with vbulletin 4.0.5 + 3.5.1 VbSEO ..
just out to get him any useragent and displays the default style |
#84
|
||||
|
||||
Quote:
Code:
if ($vbulletin->options['mob_detect_enabled'] == 1) { $mobile=0; $pda=0; $ipod=0; $except_browser=0; $custom1=0; if ($vbulletin->options['brows_exceptions_enabled'] == 1) { $exceptbrowsers = explode(",",$vbulletin->options['brows_exceptions']); if(preg_match('/('.implode('|', $exceptbrowsers).')/i', $_SERVER['HTTP_USER_AGENT'], $match)) { $except_browser=1; } } if ($except_browser==0) { if ($vbulletin->options['custom1_skin_enabled'] == 1) { $custom1agents = explode(",",$vbulletin->options['custom1_skin_agent']); if(preg_match('/('.implode('|', $custom1agents).')/i', $_SERVER['HTTP_USER_AGENT'], $match)) { $custom1=1; } } if ($vbulletin->options['pda_skin_enabled'] == 1 && $custom1==0) { $pdabrowsers = array( "Windows CE" ); if(preg_match('/('.implode('|', $pdabrowsers).')/i', $_SERVER['HTTP_USER_AGENT'], $match)) { $pda=1; } else if (isset($_SERVER['HTTP_UA_OS'])) { if (strstr($_SERVER['HTTP_UA_OS'],"POCKET PC") !== false) { $pda=1; } } } if ($vbulletin->options['ipod_skin_enabled'] == 1 && $custom1==0) { $ipodbrowsers = array( "iPod", "iPhone" ); if(preg_match('/('.implode('|', $ipodbrowsers).')/i', $_SERVER['HTTP_USER_AGENT'], $match)) { $ipod=1; } } if ($pda == 0 && $ipod ==0 && $custom1==0) { if ($vbulletin->options['mobile_skin_enabled'] == 1) { $mobilebrowsers = array( "WebTV", "AvantGo", "Blazer", "PalmOS", "lynx", "Go.Web", "Elaine", "ProxiNet", "ChaiFarer", "Digital Paths", "UP.Browser", "Mazingo", "iPhone", "iPod", "Mobile", "T68", "Syncalot", "Danger", "Symbian", "Symbian OS", "SymbianOS", "Maemo", "Nokia", "Xiino", "AU-MIC", "EPOC", "Wireless", "Handheld", "Smartphone", "SAMSUNG", "J2ME", "MIDP", "MIDP-2.0", "320x240", "240x320", "Blackberry8700", "Opera Mini", "NetFront", "BlackBerry", "PSP" ); if(preg_match('/('.implode('|', $mobilebrowsers).')/i', $_SERVER['HTTP_USER_AGENT'], $match)) { $mobile=1; } elseif (strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml')) { $mobile=1; } elseif (strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml')) { $mobile=1; } } } } if ($mobile==1) { // echo "<!-- Mobile Device -->"; $styleid=$vbulletin->options['mobile_skin']; } else if ($pda==1) { // echo "<!-- PDA Device -->"; $styleid=$vbulletin->options['pda_skin']; } else if ($ipod==1) { // echo "<!-- IPOD Device -->"; $styleid=$vbulletin->options['ipod_skin']; } else if ($custom1==1) { // echo "<!-- CUSTOM1 Device -->"; $styleid=$vbulletin->options['custom1_skin']; } else if ($except_browser==1) { // echo "<!-- Excepted Device -->"; } else { // echo "<!-- No Mobile Device-->"; } } edit: if it matters, I'm on 4.0.6 |
#85
|
|||
|
|||
Probably has the term iphone or similar in the user agent string.
Try adding the term "iPad" to the exceptions section |
#86
|
|||
|
|||
My users have started to complain that they can no longer click on the links to see the images in threads. I did verify that this problem exists but can't think of anything that would have broke it. Anyone have any ideas?
|
#87
|
|||
|
|||
You have an 'Image Resizer' hack installed on your site -this could be causing issues
|
#88
|
|||
|
|||
We do. Thanks for the tip. It's started about the same time we put that hack in.
|
#89
|
|||
|
|||
Everything works but when I go to reply, it automatically selects the entire post and quotes it (iphone user). Is this a bug?
|
#90
|
|||
|
|||
also when I post, I cannot see my post on the iphone but it does show on my computer
|
#91
|
|||
|
|||
That would have nothing to do with this add-on. This just selects a style based on device user-agent
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|