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 |
#72
|
|||
|
|||
has the problem with it detecting Mozilla browser as a mobile device been cleared up? *Most* of my users use Mozilla as their browser .....
|
#73
|
|||
|
|||
I don;t think anyone has reported this as being a problem? By Mozilla, you mean Firefox? That is the only browser I use and I have had no issues....
|
#74
|
|||
|
|||
Mozilla is Mozilla, similar to firefox and by the same peeps... it's essentially the old netscape 4.0. I installed and used the mobile_alabama style/skin, but when i reloaded the forum here on my desktop comp it auto detected it as a mobile device. In my vb options i have it set to where the default overides users choice.. whatever... they can't 'choose' any style other than the default.
|
#75
|
|||
|
|||
OK - download, installed and tested Mozilla 1.7.13 - no issues for me using this version. The user agent string I get is "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414"
Would you be able to check your useragent string and let me know so I can ensure compatibility with thnis mod? Thanks |
#76
|
|||
|
|||
I used to have that turned on, but it's not now.... can't seem to find it in vb options....
|
#77
|
|||
|
|||
WHen you view"Who's Online" you should have an option at the bottom of the list to view teh user agent string
|
#78
|
|||
|
|||
This is really a good modification. Thanks for this.
|
#79
|
|||
|
|||
Installed thanks and working nice
|
#80
|
|||
|
|||
Glad you like it. I'm the only person on my site making use of it, but I guess I'm the most important
Here's a template mod which I really like on my site for navigation. Delete everything in your Mobile skin navbar template, and replace your header template with the following (edit red bits to suit your site/requirements): Code:
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <TD width="100%" class="alt1"> <center> <a href="http://www.yousite.com"><img src="your_sites_small_logo.jpg" border=0></a> </center> </TD> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="100%" height="15" bgcolor="#ffffff"> <div align="center"> <select name="jump" onchange="menu_jump(this);"> <option selected>Mobile Navigation</option> <option value="search.php?do=getnew">New Posts</option> <option value="search.php?do=getdaily">Todays Posts</option> <option value="private.php?">Private Messages</option> <option value>----------------</option> <option value="http://yoursite.com">Home Page</option> <option value="forum.php">Forums</option> <option value="search.php?">Search</option> <option value="online.php">Who's Online</option> <option value="sendmessage.php">Contact Us</option> </select> </div> </td> </tr> </table> $spacer_open $_phpinclude_output Enjoy |
#81
|
|||
|
|||
great hack... just one thing..
I have a few users who are saying they are getting the mobile skin displayed on thier MAC OS... Is this plugin detecting MAC's as mobile devices? Is there a fix for this?? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|