The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Mobile Device Style Assignment Details »» | ||||||||||||||||||||
This is my first released hack, be nice.
This hack will detect when a mobile device connects to your site and allow you to override the default style/skin with one you specify. Just install the product-file and set which style is your mobile device style via the AdminCP. Has been tested with several 3.6.x versions up to 3.6.8 I am also releasing a skin I wrote (it is based on vbmechanics Alabama skin, so updated or modified would be a more accurate description) for my own needs - it could probably be tidied up a lot more, but it works for me - take it as it is, I may offer limited support for this skin if I get time (no promises), and feel free to offer suggestions. Mobi - My super light skin is probably the one to go for, it has much greater functionailty. =Install Instructions= Go to Plugin System, Manage Products in your AdminCP and click Add/Import Product link at the end of the page Browse for the product-mobile_enabled36-x.x.x.xml product file and click 'import' Refresh your admincp page and in VBulletin Options, select the settings for 'Mobile Device Detection' Change the styleid of your mobile skin in "Mobile Device Style" to the StyleID number of your mobile device skin Change the styleid of your PDA skin in "PDA Device Style" to the StyleID number of your PDA device skin Your mobile/pda skin must be user selectable (although you can disbale the ability for users to change styles in vBulletin Options) Thats it! =Upgrade Instructions= Go to Plugin System, Manage Products in your AdminCP and click Add/Import Product link at the end of the page Browse for the product-mobile_enabled36-x.x.x.xml product file Choose to overwrite Click 'import' Re-configure Styleid of mobile/pda skin if required VERSION 1.0.7a Based on initial release - supports assigning one alternative style to ALL detected mobile devices VERSION 2.1.2 Now allows the addition of exceptions and also specifying a skin for Pocket PCs (Windows CE devices) and a skin for all otehr detected mobile devices. I've also released a very light skin HERE which is great for cell/Mobile phones LAST UPDATE 22-October 2007 VERSION 2.1.3 - removed, small bug VERSION 2.1.3a
To upgrade, simply overwrite product - your existing settings should be preserved. I've left the previous version available for download - to get the new version, download and install the attached XML **BACKUP YOUR DB BEFORE INSTALLING** Other Mobile / Lite Skins: Mobile - My super light skin iPhone / iPod Touch Optimised Style Alabama VBLite WAP Plugin - this is a similar product and skin which I didn't find till after I'd made this one - it seems to be more directed at WAP devices as opposed to all Mobile Devices, and appears to no longer be supported, but worth having a look at. Remember to click install and give a rating :up: keywords: Mobile, PDA, Autodetect, Autoselect, WAP, Skin, portal, cell, phone, iphone 3.7 Version Here Show Your Support
|
Comments |
#292
|
|||
|
|||
n/m Working great!
|
#293
|
|||
|
|||
I have a member using a Treo 700wx (windows 5.0), this mod isn't working correctly on his phone.
|
#294
|
|||
|
|||
Have you enabled "PDA device detection" and pointed it at the same styleid as "mobile device detection"? The 3 device types detected do not operlap - so unless you want a user of one of these device types to get your default style, you need to configure them all. I should really write some decent instructions.
If this is not the case, are you able to check the useragent string for this user? (when they are online, view "Who's Online" and sekect "yes" for "User Agent" in the options at the bottom of the screen. Thanks |
#295
|
|||
|
|||
Thanks.
Now, can you help me getting this to work with the iPhone? Since it has a full HTML browser and wi-fi, I have sort of a medium weight skin I want to load just for iphones... I'm assuming the user agent is "iPhone" but I will go ahead and check it with who's online. |
#296
|
|||
|
|||
Thank you, this is just what we needed. Our company employs teachers who move around town all day between classes. This is going to help them post to an internal forum from their phones or blackberries and tell us how they're getting on with their students.
|
#297
|
|||
|
|||
Hi, I just upgraded my vbulletin from 3.6.5 to 3.6.8 patch level 2. Now I'm getting the following error on the top of every page. When I disable the Mobile Device Style Assignment mod, it goes away. I don't want to have to uninstall this mod, my members love it.
Code:
Warning: preg_match() [function.preg-match]: Unknown modifier '5' in /global.php(237) : eval()'d code on line 25 |
#298
|
|||
|
|||
This should work on 3.6.8 PL2 (thats what I run it under). Have you changed the settings since upgrading (or just before?) - and what is your URL (you can PM URL if you prefer)
Thanks |
#299
|
|||
|
|||
Will this hack add the "post by device/browser type" when user post? Which style has that feature?
THanks |
#300
|
|||
|
|||
no, but you could probably edit the postbit templates of the style you use add a "Posted by mobile device" line
|
#301
|
|||
|
|||
/me clicks install
Are there any conditionals associated with this? I'd really like to auto-redirect WAP users to the forum page if they come in on the portal. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|