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.
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 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. 3.6 Version can be found here Marked as Beta until I get some feedback, and 3.7 goes Gold Release Information 1.0.0 Initial release for 3.7 ported over from 3.6.8 version Show Your Support
|
Благодарность от: | ||
Don Z. |
Comments |
#282
|
||||
|
||||
Thanks - I'll give that a try - and let me just say, its so nice to have someone help answer questions on their mod as conscientiously as you do - seriously, that's great. Thanks! I'll let you know if that takes care of it....
|
#283
|
||||
|
||||
Worked like a charm Dartho Now I've got a neat, utilitarian, easy to use, clean mobile skin. Thanks again!
|
#284
|
|||
|
|||
For those that want to allow the user to override the mobile style, this is what I've done on my board:
1.) Add a new profile field that allows them to set the behavior of visiting the site from a mobile device. It either uses the standard style, or the mobile style. I made it a 'Single Selection Menu', then set the two options to be 'Use Standard Version' & 'Use Mobile Version', with the default set to 'Yes, but No First Blank Option'. It's not a required field, it is editable by the user, it is a private field, it's not searchable on the Members List, and it's not shown on the member list. For the display page, I set it to 'Options: Thread Viewing' so that it shows in that section of the options page. 2.) Next, I added a few lines of code to the 'Mobile Detection' product. The code is: Code:
if($vbulletin->userinfo['field8'] == 'Use Standard Version') { $custom1=1; } I added the above code snippet in two places, once after this block: Code:
$exceptbrowsers = explode(",",$vbulletin->options['brows_exceptions']); if(preg_match('/('.implode('|', $exceptbrowsers).')/i', $_SERVER['HTTP_USER_AGENT'], $match)) { $except_browser=1; } Code:
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; } } I'm attaching a screenshot of my new profile field, as well as a copy of the modified Mobile Device Detection & Assignment xml file. Let me know if you have any questions. --JOsh |
#285
|
|||
|
|||
anyone know how to add google mobile ads (AdSense for Mobile Content) to this template?
|
#286
|
|||
|
|||
|
#287
|
|||
|
|||
Thanks for adding that option JOsh... I just had two members ask me about this tonight. This should really be part of the original install.
|
#288
|
|||
|
|||
Anyone tested this under 3.8.x yet?
|
#289
|
|||
|
|||
Quote:
|
#290
|
|||
|
|||
This is working just fine with v3.8.3 - though if you've got ads running, it seems to stretch things out for banners.
|
#291
|
|||
|
|||
That would be a style issue - nothing to do withthis add-on
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|