The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
VB4 - Mobile Phone / iPhone / PDA Detection and Style Assignment Details »» | |||||||||||||||||||||||||||||||
VB4 - Mobile Phone / iPhone / PDA Detection and Style Assignment
Developer Last Online: Oct 2023
This is a direct port from my 3.x versions which detects most mobile phones, iPhones, PDAs and other mobile browsing devices and automatically presents the user with a specific vBulletin style.
The one significant addition over previous versions is that a user can now over-ride the style assignment - more information in the notes section. This will probably work with previous versions of vBulletin (but untested) What can it do?Detects most mobile phones and presents the user with a specific style. 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 0.5 Uninstall previous versions 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, 3.6 or 3.7 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. See HERE for a lightweight vBulletin 4 style to go along with this addon Version Control 1.0.0 - Initial Release 1.0.1 - Add option to enable/disable overriding style assignment. Notes Previous versions of this mod have forced a mobile device to a specific style, this is no longer the case! If a user now follows a link which changes the style (using a URL parameter of "styleid=xx") they will then be given that style for the rest of their session. If they close their browser and reload your site, they will then be detected again. Cookies must be enabled on the users browser for overriding detection to work To Do
Download Now
Show Your Support
|
2 благодарности(ей) от: | ||
asepdoank12, mapleleaffans |
Comments |
#82
|
|||
|
|||
Hi, I have a problem (excuse me for bad english...)... I have installed this plugin and relative style... If I go on my forum.hdblog.it from my iphone i visualized the desktop template... If i login in the forum is visualized correctly the mobile version... why is visualized the desktop version if I not logged in?
Thanks |
#83
|
|||
|
|||
I would like this to work for iPod and iPhone, but I do not want the iPad to automacally go to the mobile site. If I put iPad in the box at the bottom of this modification, will that solve that issue? I don't own an iPad, but a user emailed and said that s/he really hates that my site assigns the mobile style to the iPad when it used to be the regular PC version with more features.
Thanks for this! Kether |
#84
|
|||
|
|||
I don't own any "i" devices to test, but I believe it should ...
|
#85
|
|||
|
|||
Thank you!
|
#86
|
||||
|
||||
Any ETA on an update for this to work with 4.1+?
|
#87
|
|||
|
|||
I have also tried this on my vB 4.1.2 pre-release site and it doesn't auto-detect any longer on my Blackberry 6 OS. It works great on vB 4.0.8. I suspect part of the problem is the built-in browser detection in vB4.1.2 for the new Mobile style. I suspect it is over-riding this hack.
I tried the new Mobile style that is released with vB 4.1.2 but ran into problems. Apparently it does not play well with mods and hacks. In my case, it shows up on the mobile device or the desktop fine, but I cannot navigate to any forums because the links are not working. I can navigate to the options and other settings, but not within the forums themselves. It looks like I will have to abandon mobile style detection for my site if I choose to upgrade to vB 4.1.2 to resolve other security and database searching issues. |
#88
|
|||
|
|||
Newly installed and having a slight problem with only Android devices, which was mentioned earlier in the forum, but never resolved. The device I use for testing runs Froyo.
Basically after the first page visit you get the mobile style but then all secondary pages get set to the default style. The only way to prevent that is to enable your new "Enable Over-riding of Styles" option. That's nice that it fixes the other issue but that option prevents users from switching to the Desktop version. So it fixes a bug but removes a feature from the plugin to allow users to use the regular view. Any thoughts or ideas? |
#89
|
|||
|
|||
This is working as it is meant to on my site from my phone.
Now that vBulletin has built in mobile device detection, you should probably use that over this if you wish to allow overriding of the mobile detection, they also have to support you if/when you run into issues. |
#90
|
|||
|
|||
Quote:
Well anyone else interested, this plugin has a glitch when certain Android devices visit. Here is how you can fix it to work for them: You have to Disable the Enable Over-riding of Styles option. Mobile Users now will be forced into the mobile theme, but wont be able to switch to the regular site anymore. SO if you are also using dartho's Lightweight Style and Options theme/plugin system you need to disable the Add a link to the default style? option in Lightweight Style Options as the user will not be able to switch styles anymore. It's a bad experience for all mobile users to be forced into the mobile theme, but it's the only way I could get this plugin to work for the various types of users navigating to our site. Also here are some additional useragents I check for that allow Android and HP/Palm webOS phones to be detected properly. It also detects the iPhone Simulator so those of you with the iPhone SDK can test the iPhone layout easily on your Mac. Quote:
|
#91
|
|||
|
|||
I didnt say I wasn't supporting it, I just made a suggestion. My next (based on you not using version 4.1.2) would be to download version 4.1.2 and take their detection code out and put it in a plugin to test if it is effective on your device.
I've done this for you. Edit the Detect Mobile Device and Assign Style plugin Comment out the existing code (by putting a /* at the very start, and a */ at the very end of it) Paste in the following code at the start PHP Code:
Whilst this is vBulletin's code (although it is near identical to code readily available 'out there' for mobile detection), I modified it ever so slightly to use the options from my add-on for Mobile Style and iPod Style - so enable detection of these and configure which style to disaply accordingly. When using this code, other options (such as override (which is on by default with teh above code), custom agents, etc ) are ignored. Test and let us know how it goes. Don't try this if you're on vb4.1.2 or higher, it's already there. This is just put here as a test and is incomplete. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|