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 |
#302
|
|||
|
|||
I'm using vbAdvanced and all I did was edit the adv_portal template for my mobile style and replaced the contents with
Code:
$stylevar[htmldoctype] <html> <head> <title>$vboptions[hometitle] <if condition="$pagetitle">- $pagetitle</if></title> $headinclude </head> <body> $header $navbar <div><a href="forum.php">Click here to go to the forums!</a></div> $footer </body> </html> HTML Code:
<html> <head> <title>Redirecting to mobile friendly</title> <META http-equiv="refresh" content="2;URL=http://URL_TO_FORUM_HOME"> </head> <body> <p> Redirecting to mobile site... </p> </body> </html> |
#303
|
|||
|
|||
I use alabama Style. I have select, that User can switch to the Style. I have the right Style ID.
But, the corrcet Style dont be displayed on my iPhone And. if i set direct the style, the Letters and Icons are to small. What shell i do? An a lot of W3C Org problems exist |
#304
|
||||
|
||||
Ok, I'm confused. How do I know what the style ID is for the default style and the mobile style I uploaded? I can't believe that I cannot find that info.
On a side note, can someone explain how to provide a drop down list for style selection (regardless if visiting via a computer or pda/mobile device). Thanks. |
#305
|
|||
|
|||
nice work
|
#306
|
||||
|
||||
It was working with emulators yester after I installed.
But today any mobile phone emulator I have tried to open my site wap.viparmenia.com shows Error: Status code 413. Dartho or anybody? - HELP! |
#307
|
|||
|
|||
not sure why you would get a 413 error. Howerer - going wap.viparmenia.com from a desktop browser works a treat - but it seems that your wap. address simply redirects to you default URL with a styleid=xx parameter on the URL? This doesn't seem to be in keeping with how this add-on is designed...
Visiting http://viparmenia.com/vb/index.php?styleid=17 directly via an emulator works fine (and quick) but visiting via wap.viparmenia.com ytakes a long long time to load, but ultimately works OK, however it is still a redirect. You should double check all your settings for this addon and also for your wap.viparmenia.com sub domain to make sure it is not a redirect, but is parked on teh same root as the primary domain. |
#308
|
|||
|
|||
OK - I just had another look. Not sure what you are doing, but your portal is stiull being rendered in the full style and mobile emulators/devices are probably giving up (it has a huge amount of data)
Edit the adv_portal template in the CMPS group for teh mobile styles and replace the contents with Code:
<html> <head> <title>Redirecting to mobile friendly</title> <META http-equiv="refresh" content="2;URL=http://URL_TO_FORUM_HOME"> </head> <body> <p> Redirecting to mobile site... </p> </body> </html> |
#309
|
|||
|
|||
Quote:
You can get the styleid number by clicking on teh "GO" next the the style of your choice in Style Manager. In the next screen up the top of the main frame you will see teh following: Fonts / Colors etc.: StyleName (id: xx) where xx is the styleid number |
#310
|
|||
|
|||
Hello Dartho,
thanks for this release, I hope you can keep it going. Does this work with vB 3.7 BETA 4? Regards Jason |
#311
|
|||
|
|||
Doesn't work with 3.7, says xml error when trying to import.
Please can you release this for 3.7? Thanks, Regards Jason |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|