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 |
#152
|
|||
|
|||
Hi, great mod.
However seems to be running ok for some users and not others. at the moment i think its the majority of blackberry users which it is not working for. any ideas? cheers |
#153
|
|||
|
|||
They are probably new models which have a useragent which sin;t detected by this add-on. could you check their useragent strings and post back here or PM me?
|
#154
|
|||
|
|||
hello,
a great work! it works fine for my mobile users, include iphone & co. now, some users ask to change the rule, how the detector works. some iphone user (and others) want to visit my board with the original style. i think i can realize taht with the following steps: 1. make a subdomain like mobile.exampleforum.com 2. route the new subdomain (http forwarding at the server) to one of the mobile style url, to let the detector find wich style is prefered (cellular or iphone) 3. if a mobile user want to visit the board with normaly style, he can visit www.exampleboard.com 4. but ... i must find the variable $_SERVER['HTTP_USER_AGENT'] in the normaly style to kill them. because the detector want to route the mobile users to the style. and 5th: my problem is, i didn't find your variable $_SERVER['HTTP_USER_AGENT'] in the styles. can you give me a tipp please? and the next problem is, i don't want that the PC users can visit my mobile styles. and i didn't know how i can solve these problem. i think, i install the add-on but only on my mobile style... is there any way to solve my wish? sorry for my bad english ;-) best regards, tom |
#155
|
|||
|
|||
I think it may be easier to go about this in the opposite manner.
This is untested! Create a sub-domain like "pc.exampleforum.com" and park it on the same web space as your main forum Create a new plugin called "Force to Default Style" on "fetch_style" hook execution order 10 with the following code: Code:
$pc_url= "pc.exampleforum.com"; if(preg_match('/'.$pc_url.'/i', $_SERVER['HTTP_HOST'], $match)) { $styleid=x; } Tell your mobile users that if they wish to view the default style, they should visit pc.exampleforum.com or add a link in your mobile style navbar to this subdomain called "Default STyle" or some such thing. This way mobile visitors to your site are still detected and given a mobile skin, but they can choose to view the site using the default style. If you make your mobile styles not user selectable, they will not be able to view you site form their PC's via the mobile style (they could with User Agent spoofing - but there's not much you can do about that) Hope this helps. nb - this will only work correctly if all your links are relative - hard code full path links and addons such as VBSEO may break this. |
#156
|
|||
|
|||
Quote:
Replacement Variables are in your admincp - Styles and Templates, Style Manager, All Style Options (for the mobile style) right at the very end. |
#157
|
|||
|
|||
dartho,
Can we work on a small test script that would show the user what useragents are associated with their mobile device? I am going to play with the code and post here if I get a fix but I have one member that this is not working for and they can't help me figure out what the issue is either. I'll post what I come up with... That was easier then I expected... Create a file "test.php" and to that file add: PHP Code:
Quote:
You can see the test script here: http://www.vbclassified.com/test.php |
#158
|
|||
|
|||
Good stuff, QB :up:
|
#159
|
|||
|
|||
What do you need to edit in the template for only a few forums to show up?
Thanks. |
#160
|
|||
|
|||
PSP is not detected. PSP drop-down menu will not auto-refresh when choosen "Mobile" style.
|
#161
|
|||
|
|||
PSPs should be detected - what is the user agent string of the device?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|