View Full Version : Forum Display Enhancements - Mobile Phone / iPhone / PDA Detection and Style Assignment
dartho
05-12-2009, 07:02 AM
Seems the Nextel Blackberry Curve is not working well for this mod. Is there a way to add it and make it work? Or is there a new version out yet?
Please visit http://vbdev.org/test-mob-detect.php from your device and copy/paste the output here.
Here's a sample of what it will display to you (I visited in Firefox from my desktop):
No Mobile Device Detected
HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
dt-pain
05-12-2009, 03:12 PM
Define not working. I have members using many different Blackberry models (including the Curve) and they're singing my praises for this mod. LOL
This is what they said:
I'm useing my Nextel Balckberry Curve and I am on the Home page. I put in Ballerscafe.com.
Everything came up real quick compared to usual which will make me want to use my phone to log on more often.
But on the left under the strip of field and stores list all I' getting is a whole line about 8 Capitol Edge Icons and the last one is the USPN Icon.
I'm not seeing Davis Dg,Extreme or any of the others
Biker_GA
05-12-2009, 03:22 PM
Bingo.. You have vBAdvanced on the main page. Replace your adv_portal template with something like this:
$stylevar[htmldoctype]
<html>
<head>
$headinclude
<meta http-equiv="Refresh" content="2; URL=http://your forum domain/forum/index.php" />
</head>
<body>
$header
$navbar
<div align="center"><a href="http://your forum domain/forum/index.php">Portal Disabled in Mobile View - Click here if your browser does not automatically redirect you.</a></div>
$footer
</body>
</html>
This will redirect your mobile users right into the forums. There's an issue with CMS and this mod working well together. :)
Once you do this, your mobile users will be kneeling and kissing your feet. :D
dt-pain
05-12-2009, 05:29 PM
Yes I did do that. I made some changes thinking this will force the redirect to the mobile style. However I don't think anyone else is having this issue only that one person.
$stylevar[htmldoctype]
<html>
<head>
$headinclude
<meta http-equiv="Refresh" content="2; URL=http://www.ballerscafe.com/forum/index.php?styleid=15" />
</head>
<body>
$header
$navbar
<div align="center"><a href="http://www.ballerscafe.com/forum/index.php?styleid=15">Portal Disabled in Mobile View - Click here if your browser does not automatically redirect you.</a></div>
$footer
</body>
</html>
Biker_GA
05-12-2009, 05:37 PM
I'd take the style ID out. This particular mod is supposed to force mobile devices to the mobile style.
How competent is your Blackberry user? It's possible they have some browser settings that aren't right on the decvice. (Ensure javascript is turned on, etc etc etc.)
I'd also tell the user to do a hard reset on the device. Remove the battery while the device is still operating. Leave the battery out for 30 seconds, then put it back in. This will cure many issues a user may be having with the Blackberry, including rendering issues on some sites.
dancue
05-13-2009, 08:56 PM
Why should something that is "by design" be fixed? It's SUPPOSED to be that way.
OH COME ON!!...I'm pretty sure this was not "DESIGNED" to be this way. It happens to be this way because the mod redirects people automatically to a particular style.
Thank you for your sarcasm. It truly is a pleasure to read your replies, but if you don't mind, could you please allow the coder of this mod to give me an answer.
dartho
05-13-2009, 10:02 PM
Actually - it was by design, I wanted to *know* that a mobile user could read the forum OK using a specific style. By giving mobile users a choice, they could load up a style that does not render on their device and never be able to get back again.
Also, I don't think there was any sarcasm in Biker_GA's comment. He has gone out of his way to help you in the last couple pages.
Anyway - if you head back to around post #219 and read on from there, you will find a post with an attached variation to this mod that will do what you seem to be asking for.
dancue
05-14-2009, 12:04 AM
Thank you dartho.
That worked for me. My apologies to Biker. Thank you also for your help.
dancue
05-14-2009, 12:16 AM
Would be cool to incorporate a floating notification asking the user if they want to switch back to the mobile style.
Similar to this (https://vborg.vbsupport.ru/showthread.php?t=159418). Of course this would only appear if the user is on a mobile browser.
dancue
05-15-2009, 12:59 AM
Dartho,
Is there an if condition that I could use on a template that would allow me to detect if the user is on a mobile browser?
I want to say "If user is on mobile device then do not show"
dartho
05-15-2009, 01:35 AM
No - not really depending on what you are trying to do you'd likely need to use plugins.
However, assuming they are viewing your site via a mobile device using a mobile style, you can simply edit the template in the mobile style.
gcxboxps
05-17-2009, 10:58 PM
Thanks, this works perfectly on 3.8.2
Trana
05-18-2009, 04:47 PM
I used the code listed to forward from the VBA adv_portal template to the forum home. I hit the forum home, no problem, but when I click on a forum I am redirected back to the original forwarder page (the VBA template).
Any idea what I am missing?
nureeves
05-19-2009, 05:15 AM
help...
i have enabled this product, and i also have installed its mobile style
but default style on PC user change to mobile style ... how i could fix this?
thanks
dartho
05-19-2009, 11:05 AM
I'm guessing you have vbadvanced and your forums integrated? I've never done this before, there's probably a vbadvanced plugin you could edit to get around it. I'll *try* and have a look into it...
Blackheart_72
05-19-2009, 03:41 PM
Installed and takes mobile users to the mobile skin but when they post and hit submit it clears the text area and does not post.
Cheers
Trana
05-19-2009, 04:02 PM
I'm guessing you have vbadvanced and your forums integrated? I've never done this before, there's probably a vbadvanced plugin you could edit to get around it. I'll *try* and have a look into it...
No, the CMPS page is not integrated with the site. It is in a separate directory.
hello
I'd like that when you enter to forum with a mobile, the forum ask you what template do you like to use.
Is it posible?
Thanks dartho, it works great.
hello
I'd like that when you enter to forum with a mobile, the forum ask you what template do you like to use.
Is it posible?
It would be great if we can let members to choose between few mobile styles, I wish to see it in next version <3
Megatr0n
05-25-2009, 01:29 PM
OK - try the attached. Basically, if a user has used the style chooser (ie. manually chosen a style), it won't override their choice.
example 1 - user visits via iPhone for first time, they get presented with iPhone skin as configured. If they change teh style to default skin, all visits from here on in will present them with default skin or what ever style they manually choose from then on
example 2 - users visits with small screen old nokia phone, they get presented with mopbile skin as configured. If they change the style to defualt skin, all visits from then on will present them with teh default skin. If their browser can't handle it and they can;t get back to the style chooser. they will not be able to view your site properly again.
proviso's - browser must accept cookeis for this to work (clearing browers cookies will reset)
dartho,
I installed this plugin but when I connect from my phone I don't see the option anywhere on the mobile skin to change the skin? I've cleared the cookies and everything but nada.
dartho
05-25-2009, 01:51 PM
That's either the mobile style or your settings not showing a style chooser, not this add-on.
Megatr0n
05-25-2009, 01:55 PM
I haven't touched the settings. Was I suppose to after installing?
Can, you help me with this?
BlueChipEarth
05-26-2009, 03:42 PM
G'day jbeam,
I am guessing that your issue is that the style is not checked as user selectable in Style manager.
As you are an admin, you can view non-selectable styles - this explains why the style doesn't show up till you log in with admin credentials.
Dartho, I had this same problem and indeed it was because I didn't have "Allow User Selection" enabled.
Everything works great!
Installed!
(Also, I'm using your style, looks great!)
dartho
05-26-2009, 10:05 PM
Megatr0n - what style are you using? If it is this style (https://vborg.vbsupport.ru/showthread.php?t=174375) you will need to also install this add-on (https://vborg.vbsupport.ru/showthread.php?t=182692) to add an optional style chooser
Megatr0n
05-26-2009, 11:18 PM
Megatr0n - what style are you using? If it is this style (https://vborg.vbsupport.ru/showthread.php?t=174375) you will need to also install this add-on (https://vborg.vbsupport.ru/showthread.php?t=182692) to add an optional style chooser
Ohhhh.... :D
BGObsession
05-26-2009, 11:45 PM
Dartho,
Thanks for the fine mod. I redid the adv_portal template code per your recommendations, which did work to put a redirect link on the first log-in screen. My follow up question is, when I log-in on my blackberry, here's what I'm seeing as links listed:
Blogs
Your Blog
Recent Entries
Best Entries
Best Blogs
Blog List
Search Blogs
Home New Posts User CP
*and my "Portal disabled for Mobile Devices. Click here to go to Forums" link just inserted
Obviously the 'Blog-related links are getting pulled from the Blog software. How can I get rid of all that? Since there doesn't appear to be a fix to have mobile users directed to the 'Forums' page only, I'd prefer that the only thing that be on the initial screen are:
Log-in fields
Home
New Posts
User CP
'Portal disabled for Mobile Devices. Click here to go to Forums' link
Thanks in advance for your help (I'd also be curious how to move the 'Portal disabled' verbage down a couple of lines so its not shoved up against the other links?).
abrecher
05-28-2009, 08:44 PM
Users are directed to a custom CMS I have running on index.php on my site. How can I force the mobile users to go to forum.php ?
dartho
05-28-2009, 10:44 PM
@BGObsession - You've obviously fixed it - looks fine to me
@abrecher - see other thread you posted same Question in
BGObsession
05-28-2009, 11:22 PM
Any reason you can think of it would appear 'fixed' in 'mobile' skin on my site (from a PC), while still showing all of those blog options on a portable device (cleared cache on my device, still showing up)? And its not just on the initial screen, every single screen starts with that list of blog options no matter where I navigate....
Frustrating....
dartho
05-29-2009, 12:37 AM
I had look at the source - the blogs addon is adding in a dropdown menu for blogs which a desktop browser is smart enough to know not to display, but the mobile browser - not so smart.
If you delete the contents of the blog_navbar_link_menu template in your mobile style, that should stop it showing up
BGObsession
05-29-2009, 12:56 AM
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....
BGObsession
05-29-2009, 01:24 AM
Worked like a charm Dartho :) Now I've got a neat, utilitarian, easy to use, clean mobile skin. Thanks again!
CR_TurboGuy
05-29-2009, 09:03 PM
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:if($vbulletin->userinfo['field8'] == 'Use Standard Version')
{
$custom1=1;
} Where 'field8' is what field number my custom user field is, and 'Use Standard Version' is the option to look for. If you translate the phrases to another language, you'll need to change that. You also need to change the field number to match your custom field number.
I added the above code snippet in two places, once after this block:$exceptbrowsers = explode(",",$vbulletin->options['brows_exceptions']);
if(preg_match('/('.implode('|', $exceptbrowsers).')/i', $_SERVER['HTTP_USER_AGENT'], $match))
{
$except_browser=1;
}
and once after this block:
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;
}
}
Oh, I forgot to mention, this will use the style chosed for 'Custom/User Defined Devices Style?' in the settings for this product. I'm sure this could be extended to allow using the users default style, but on my board, there's only three styles, the 'regular' style & the mobile style for regular mobiles & one for iPhones. None are user selectable.
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
testbot
06-03-2009, 07:59 PM
anyone know how to add google mobile ads (AdSense for Mobile Content) to this template?
dartho
06-03-2009, 09:05 PM
Check here: https://vborg.vbsupport.ru/showthread.php?p=1531419#post1531419
ShackMaster
06-18-2009, 03:11 AM
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.
FuegoMCS
06-18-2009, 04:39 PM
Anyone tested this under 3.8.x yet?
abrecher
06-18-2009, 11:21 PM
I had look at the source - the blogs addon is adding in a dropdown menu for blogs which a desktop browser is smart enough to know not to display, but the mobile browser - not so smart.
If you delete the contents of the blog_navbar_link_menu template in your mobile style, that should stop it showing up
Awesome! I was going insane trying to fix this issue.
rcadden
06-21-2009, 09:12 PM
This is working just fine with v3.8.3 - though if you've got ads running, it seems to stretch things out for banners.
dartho
06-21-2009, 09:42 PM
That would be a style issue - nothing to do withthis add-on
MissKalunji
07-04-2009, 04:23 AM
question
The : Custom/User Defined Useragent String
how would i write it down?
example
Android
Opera Mini
Or do i have to put commas between them?
Thanks
MissKalunji
07-04-2009, 04:36 AM
Something else i notice
once i enable this : Custom/User Defined Useragent String
it switches styles for EVERYTHING....Not just the lists that i put .....
Edit : it seems like it's because i wasn't precise enough with the String like i only put : Android...i twasn't working when i put HTC_Dream Mozilla...it worked fine...
Biker_GA
07-04-2009, 04:47 AM
What have you selected for mobile phones in general? Remember, this FORCES mobile devices to use the particular style defined for your mobile style.
Now, if your PC users are also getting the mobile style, you need to check the mobile style settings and ensure you have the proper styles selected for your users.
MissKalunji
07-04-2009, 04:51 AM
Yeah :) my mistake was i put a comma where i shouldn't have...and it messed up the entire settings
Thanks!
ShackMaster
08-04-2009, 05:56 AM
Josh...
I just found a bug with the UserCP Mobile Style Detection. If the "Use Standard Style" is selected, which it is by default, the only the default style of the forum can be used for members.
For example: I have several styles that users can select from. The default is a fluid 100% style. An option is the fixed 1024px wide style. If I have "Use Standard Style" selected in the UserCP for the Mobile Style Detection, then changing the style from 100% fluid to any of the other fixed styles does not work. However, if I change the Mobile Style Detection to "Use Mobile Style", the other styles will work.
Reckon how we can fix this? Or maybe have it default to "Use Mobile Style" for all members, unless specifically selected.
Thanks!
dartho
08-04-2009, 06:27 AM
SHack Master - look at this post: https://vborg.vbsupport.ru/showpost.php?p=1779571&postcount=222 that may be the functionality you are after?
ShackMaster
08-04-2009, 07:12 AM
So would I need the other mod by Josh if I use this?
ShackMaster
08-12-2009, 02:26 AM
That does not fix my issue... actually has nothing to do with it.
I need to be able to make "Use Mobile Style" the default selection instead of "Use Standard Style".
dartho
08-12-2009, 02:53 AM
You may want to contact Josh directly via PM as your issues are not to do with this modification.
The post I pointed you to has an altered product file which allows users of detected mobile devices to change to other styles if they wish and thus over-ride the detection/style enforcement.
This seems to be the functionality you were after?
eg:
Mobile phone user logs on, gets mobile style.
They can then choose to use any other style they want and will then be presented with that style from then on.
They can also choose to switch back to the mobile style if they wish.
This is device based, not user based so the same won't happen if they log on from a PC.
Quantnet
08-12-2009, 03:05 AM
Yes, I'm after this modified auto detect/asign mod too ;)
ShackMaster
08-12-2009, 03:12 AM
Okay... I see what you mean now. It is an alternative to Josh's mod and should not cause the effect that Josh's mod is causing. I got confused thinking it was something to use in addition to his mod... or maybe I was just confused period. I will try it... and thanks!
Chicago_VLNU_4s
08-13-2009, 01:12 PM
installed on 3.8.2, works fine.
jbeam
08-18-2009, 02:46 PM
I did a quick search but couldn't find it.
Anyone know how to make this work for the LG Dare?
MozyMac
08-23-2009, 09:18 AM
really helpful
BadgerDog
08-25-2009, 12:53 PM
Installed and thank you ... :up:
Amazing...
I'm not that good at the techie stuff with vBulletin, but following the instructions dartho gave for both this mod and these:
Extend and Customise "Mobile" Style Options Version: 0.0.10b
https://vborg.vbsupport.ru/showthread.php?t=182692
Mobile, Cell, Phone, PDA, iPhone Style Version: 0.0.10a
https://vborg.vbsupport.ru/showthread.php?t=182692
... I have this running just great for our collector's site.
I tried it from my iPhone 3.0 using Safari and it was terrific. I notice that I don't get pics, but I assume that's the reason for the speed.
Thank again dartho, much appreciated and this will sure be helpful for our members who are on the road.
Three questions:
1. Is there a specific selection for Blackberry (RIM) users?
2. Is there a way for a member who is on an iPhone to decide to use Safari and display the full vBulletin web site skin, just so he can perhaps look at a pic he wants to see?
3. Does this mobile skin support a speeded up view and access to the AdminCP function? I was nervous about trying that from my iPhone. :D
BTW, because if all our mods, I'm still running vBulletin 3.67pl1 and your code seems to work fine.
Regards,
Badger
:up:
BadgerDog
08-25-2009, 04:21 PM
SHack Master - look at this post: https://vborg.vbsupport.ru/showpost.php?p=1779571&postcount=222 that may be the functionality you are after?
Hi dartho.... :)
I'm trying to get this overide option to work as well....
I installed (imported) the "mobdetect-allow_change_b.xml", but it doesn't seem to let me switch skins from my iPhone. It just stays with the "mobile" skin regardless of what I select.
Also, if I want to un-install "mobdetect-allow_change_b.xml", to return my system to the state before I imported it, I can't seem to find it in my "product list" to un-install? Am I missing something?
Thanks for any help ...
Regards,
Badger
dartho
08-25-2009, 10:25 PM
Badger - You can just re-install this addon from the product-mobdetect37.xml product file (the main one in the first post) and that will overwrite the other version.
As for your other questions:
1. No, however you could use the 'custom user agent' section to have a specific style for Blackberrys
2. No - with this add-on, the user doesn't get a choice. I see from your last post that you tried the 'allow change' version - no joy? Did you enable a way to change styles (with the mobile skin addon options)
3. No - AdminCP doesn't use the temaple system which makes it a lot more difficult to "mobilise" it. As such if you view your admincp when on an iphonoe, it will give you the full admincp.
BadgerDog
08-25-2009, 10:44 PM
Badger - You can just re-install this addon from the product-mobdetect37.xml product file (the main one in the first post) and that will overwrite the other version.
Thanks.. just did that and overwrote, as I don't think that secondary mod was working ... ;)
1. No, however you could use the 'custom user agent' section to have a specific style for Blackberrys
I had a Blackberry user test your skin and he said it worked pretty darn good on their "Bold" Model, so I'll just leave it. :)
2. No - with this add-on, the user doesn't get a choice. I see from your last post that you tried the 'allow change' version - no joy? Did you enable a way to change styles (with the mobile skin addon options)
Yes, I enabled the "Link on to of Navbar" option and it appears, but when it executes all I get is a screen refresh, although it shows the "xxx?style=2" statement on the browser bar, so I know it tried to do something on the iPhone. The iPhone Safari is set to use "cookies", but the forum stays in your "mobile" skin mode.
3. No - AdminCP doesn't use the temaple system which makes it a lot more difficult to "mobilise" it. As such if you view your admincp when on an iphonoe, it will give you the full admincp.
Roger that ... :up: Understood....
Thanks for your quick response... sweet product... appreciate your efforts .. :up:
Regards,
Badger
echamberlain
08-27-2009, 10:31 PM
Hi dartho.... :)
I'm trying to get this overide option to work as well....
I installed (imported) the "mobdetect-allow_change_b.xml", but it doesn't seem to let me switch skins from my iPhone. It just stays with the "mobile" skin regardless of what I select.
mobdetect-allow_change_b.xml doesn't appear to work. It's trying to set the bbstyleid cookie, which doesn't exist. It should be changing the styleid cookie.
Here are my modifications to the original mod to give users the ability to select another style after being presented with the mobile style. The check is also only done the first time the user hits the website each session.
Replace the first two lines of the plugin code from:
if ($vbulletin->options['mob_detect_enabled'] == 1)
{
to:
// make the cookie name a constant
define('MOD_DETECT_FLAG','mod_detect_flag');
// clean cookie
$vbulletin->input->clean_array_gpc('c', array(COOKIE_PREFIX . MOD_DETECT_FLAG => TYPE_BOOL,));
// we only need to do this once, if the cookie doesn't exist
if ($vbulletin->options['mob_detect_enabled'] == 1 &&
empty($vbulletin->GPC[COOKIE_PREFIX . MOD_DETECT_FLAG]))
{
// add the cookie, it only lasts as long as the session
vbsetcookie(MOD_DETECT_FLAG, true, false);
and the end of the plugin code, from:
// echo "<!-- No Mobile Device-->";
}
}
to:
// echo "<!-- No Mobile Device-->";
}
// add the cookie
vbsetcookie('styleid', $styleid);
}
dartho
08-28-2009, 01:45 AM
Ah - thanks! I just checked - you're right. I modified that plugin for vb 3.8 (not 3.7) and also didn't include a prefix, so that alteration would not have worked for many.
For 3.7, would modifying the Detect Mobile Device and Assign Style plugin and adding:
if (!$vbulletin->input->clean_gpc('c', COOKIE_PREFIX . 'styleid', TYPE_INT))
{
at the begining and
}
at the end not be simpler?
(for 3.8 it would be if (!$vbulletin->input->clean_gpc('c', COOKIE_PREFIX . 'bbstyleid', TYPE_INT))
{
at the begining and
}
at the end)
CR_TurboGuy
09-08-2009, 12:19 PM
Josh...
I just found a bug with the UserCP Mobile Style Detection. If the "Use Standard Style" is selected, which it is by default, the only the default style of the forum can be used for members.
For example: I have several styles that users can select from. The default is a fluid 100% style. An option is the fixed 1024px wide style. If I have "Use Standard Style" selected in the UserCP for the Mobile Style Detection, then changing the style from 100% fluid to any of the other fixed styles does not work. However, if I change the Mobile Style Detection to "Use Mobile Style", the other styles will work.
Reckon how we can fix this? Or maybe have it default to "Use Mobile Style" for all members, unless specifically selected.
Thanks!
Ok, I think if I'm understanding the correctly, you are saying that it defaults to using the standard style, and you want it to default to using the mobile style, correct? If so, then change the order of the options for the profile field, so that 'Use Mobile Version' is the first option.
As to being able to choose other styles when the 'Use Standard Style' is set, I think that is because my mod uses the styleid set in the 'Mobile Device Detection' settings for the 'custom' device type. You might try changing the if($vbulletin->userinfo['field8'] == 'Use Standard Version')
{
$custom1=1;
} to
if($vbulletin->userinfo['field8'] == 'Use Standard Version')
{
$except_browser=1;
} then I would think that it would use whatever style is the default for the board.
Let me know if I'm way off base on my assumptions & I'll try to figure out how to get things working. Just FYI thought, if you couldn't tell by my forum, I run a haunted house & this time of year I'm pretty busy, so it may take a little to get back to you.
--JOsh
Edit - I'm attaching the XML file with the changes that I mentioned above.
Joey Link
09-17-2009, 07:56 PM
Any chance in a future version you could give the user the option of viewing the mobile style or the full version? That would be ideal for me, as many iphone users view the full version but some prefer the mobile. It'd be nice to alert all mobile users that there is a mobile option.
dartho
09-17-2009, 09:12 PM
Hi Joey - have a look at the 3 posts preceding yours which have 3 ways of doing this.
Kottonmouth801
09-18-2009, 01:29 AM
Hello Dartho,
I was "chatting" with you in the mobile skin forum.
I am still having an issue with 3.8.2 conflicting with this mod when you try to register from a mobile device.
Although I.... Am not complaining because I can read that this was designed for 3.7.
But......
I love this mod and have been using it on 3.8.2 for quite sometime and have been extremly pleased.
I recently added a Registration button to the the mobile skin and this is when I found the bugg.
The bugg is definitly with this modification not the skin.
Will not let you register from a mobile device.
I also tried to turn captcha off but this did not help either...?
Any Ideas???
Thanks... :)
dartho
09-18-2009, 08:08 AM
Sorry - your problem lies elsewhere. My test site is currently 3.8.2 and this mod coupled with the mobile style have no (no visual) issues with registering a new user.
Kottonmouth801
09-18-2009, 04:10 PM
Hello dartho,
May I ask which skin you are using?
Because I just tested it on a test board (3.8.2) and it doesn't work there either.
But... When I turn this modification off it works just fine to register from a mobile device..
Also.....
I noticed that your mobile skins do not have a registration option on them.
Do you have any suggestions?
dartho
09-18-2009, 09:32 PM
I'm using my mobile style (https://vborg.vbsupport.ru/showthread.php?t=174375)
I didn't add a register button/link as I never intended for people to register via it. However on my 3.8.2 test site which has ONLY my mods installed, it has no issues (also only uses Q&A human verification)
Sorry - no other suggestions other than those already made.
Kottonmouth801
09-21-2009, 07:22 AM
I have tracked conflict down.
I beleive it is conflicting with this mod.
https://vborg.vbsupport.ru/showthread.php?t=183917
Really wanted to continue using this mod instead of creating .m site
Thanks for your time.
:up:
dartho
09-21-2009, 07:47 AM
Goodo - do you have the mobile add-on installed? (https://vborg.vbsupport.ru/showthread.php?t=182692)
if so, adding the following code to the disable addons section should disable the 'stop registration bots' addon in when in the mobile style
//disable "Stop the Registration Bots"
$vbulletin->options[StopBotReg_enable]=0;
Kottonmouth801
09-21-2009, 04:27 PM
:up: :)
Awesome....!!!!!!!
I turned my data program off this month on my phone to try to save a few dollars.
So.. when my wife gets home I will test code with her phone.
I will keep you posted on the results.
Also.... do you think many robots will get around on the mobile skin?
I am stll "scratching my head" about robots on the mobile side.
hmnnnn......
I will let you know.
Thanks....!!!!!!!
:up:
"Also"
I dont beleive I have this mod installed https://vborg.vbsupport.ru/showthread.php?t=182692 and..... I am confused on why I would need it?
Kottonmouth801
09-21-2009, 10:09 PM
:)
dartho you rule.....!!!!!!!!!!!!!!!
So far so good....
I will PM... I will be sending donation in near future for your help and time.
Thanks....
:)
:up::up::up::up::up::up:
brettxw
09-28-2009, 08:44 PM
Dartho, first I have to say that you are the ONLY "coder/developer" that I have installed that provides quick help. Thank you.
My question. After installing this, when viewing www.BlackberryOS.com on mobile, it still shows my main page with vbadvanced/CMPS. When I view www.BlackberryOS.com/forums/ it works properly. Is there any way I can get it to work properly with the MAIN site url and not show vbadvanced?
dartho
09-28-2009, 11:12 PM
Thanks brett,
See here: https://vborg.vbsupport.ru/showthread.php?p=1535871#post1535871 for a vbadvanced option.
You could also edit your vbadvanced templates and try tp make them more mobile friendly. If you just want to show say news and latest threads, it wouldn;t be too hard to do
brettxw
09-29-2009, 01:45 AM
Hi Dartho,
I have replaced the information with what you had in that post to redirect them, when viewing the main page of the site, it does not automatically redirect them, it just stays on that page where it says "click ehre if you are not automatically redirected"...
brettxw
09-29-2009, 01:56 AM
Dartho,
I'm no genius or anything BUT, if I edit that adv portal template, I can insert anything I want in there so that could now be my main mobile site then link off to the forums from there.
Also, can I set it so a certain browser that is being used by a blackberry device, ie) Opera 5 that will load the regular site? and not be forced to view the mobile site?
dartho
09-29-2009, 02:06 AM
I'm no genius or anything BUT, if I edit that adv portal template, I can insert anything I want in there so that could now be my main mobile site then link off to the forums from there.
Correct.
Also, can I set it so a certain browser that is being used by a blackberry device, ie) Opera 5 that will load the regular site? and not be forced to view the mobile site?
Just add the useragent for opera5 to the exceptions section then it won;t be detected as a mobile
brettxw
09-29-2009, 02:23 AM
With the adding opera5 to the useragant at the bottom, this will make it so they will not be detected as a mobile site, right? and view the site normally..I added opera5 to that section and they still see the main screen that says "click here if you have not been redirected". If I change it to just opera, will that do change it to all opera users?
dartho
09-29-2009, 04:07 AM
you need to find the user agent string for opera 5 and add that.
SteveLV702
10-05-2009, 05:02 PM
any idea when this will be 2.8.4 compatible as I installed it but its not working for me...
maxicep
10-10-2009, 11:08 PM
works on 3.8.2
thx
dartho
10-14-2009, 12:02 AM
Taken from teh Mobile Style thread
G'day , get your users to visit http://vbdev.org/test-mob-detect.php and to copy and paste what shows up on the screen to you. This will tell you whether the browser is being detected as a mobile device, and also give you useragent info.
Well the device that doesn't render one of the websites properly shows:
Opera/9.80 (J2ME/MIDP; Opera Mini/4.2.14912/756; U; en)
Presto/2.2.0
Don't know what part(s) of that I need to enter to get it auto recognized.....
So here's what one user who gets the mobile style shows for a user agent:
HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; PalmSource/Palm-D062; Blazer/4.5) 16;320x320
HTTP_ACCEPT: text/html, application/vnd.wap.xhtml+xml, application/xhtml+xml, text/vnd.wap.wml , image/png, image/jpeg, image/gif, image/bmp, image/vnd.wap.wbmp, application/octet-stream, image/pjpeg, */*;q=0.1, */*,text/html;q=0.062,image/gif;q=0.062,image/x-jng;q=0.062,video/x-mng;q=0.062,image/x-mng;q=0.062,image/bmp;q=0.062,image/x-bmp;q=0.062
I am experiencing the following error now while browsing the mobile style:
"Warning: preg_match() [function.pre-match]: unknown modifier 'M' in [path]/global.php(238) : eval()'d code on line 117
This error started occurring after I tried to add J2ME/MIDP to the list of mobile browsers in the XML file that does the auto detect. I have since removed it and the error went away. Any thoughts on how to add J2ME/MIDP?
I'd say it was the "/" that upset it. J2ME and MIDP should already be detected. That link I posted should tell you if it was detected as a mobile device or not - what did it have to say?
wacnstac
10-14-2009, 01:27 AM
It does say Mobile Device Detected, but for some reason the switch is made for:
http://www.michigan-sportsman.com/forum/
but not for:
http://www.ohiosportsman.com/forum/
Also I have a user who is not on a mobile device, but rather webTV. I would like him to see the normal version of the forums. His user agent string is:
Mobile Device Detected
HTTP_USER_AGENT: Mozilla/4.0 WebTV/2.6 (compatible; MSIE 4.0)
HTTP_ACCEPT: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
What would I put in the Useragent Exceptions to make that happen?
dartho
10-14-2009, 01:44 AM
putting "WebTV" in useragent exceptions should fix things.
I'm guessing a configuration issue, or possibly a conflict with another add-on. On Ohiosportsman, is your mobile style ticked as user selectable? are the mobile detection settings identical on both sites?
rasp187
10-15-2009, 10:47 PM
Well this works great at assining your template to myself, a friend with a G1, another admin with a WM6.1 device and an iPhone user, but some iPhone users report it not working for them, and a few users running the BB Bold are reporting it not working, either. An administrator on my boards with the same phone that I have (that works perfectly fine) hare reported it not working.
I have instructed them all to clear their history and cache, and that has not helped rectify the issue. I have also added some of the useragents manually and that still hasn't helped their problems. Is there something I should be instructing them to do or what? Makes no sense that it would work with one iPhone but not another, yet quite a few users are claiming it's still loading the default template in normal view. Any help would be greatly appreciated.
dartho
10-16-2009, 01:52 AM
I'd guess you have configuration issues.
Make sure all your styles are user selectable.
Check the exceptions section and remove any and/or disable
Enable ALL the detections (Mobile, WIndows CE, iPhone, Custom)
Test it logged out and see if that makes a difference to when logged in.
rasp187
10-16-2009, 07:29 AM
Well I was running your other program that doesn't make the mobile template user-selectable. I'm not really a fan of forum users being able to choose that from the list.
Exceptions list is disabled and all detections are enabled.
I made all the templates user-selectable and now it shows the mobile template to people on the PC.
rasp187
10-16-2009, 07:51 AM
Yeah now the default skin for anyone who has logged in with a mobile device before is the mobile template, so I am seeing the mobile template on my PC now and am unable to select another template.
Only other mod installed is vBAdvanced.
dartho
10-16-2009, 07:58 AM
Do you have more than a single style on your forums which you allow users to select? If not then set your vBulletin options to not allow users to change styles. Then users can not selecte the mobile style from a PC.
HOWEVER - if a style is not user selectable then a user (ie. this add-on) can not use it.
You can, multiple styles installed which are user selectable AND also have vBulletin Options configured so that users can not change the style.
If you do have multiple styles and you do allow users to change them, you can either let them select what ever mobile styles you have installed, or try this mod which can hide a style form teh style selector: https://vborg.vbsupport.ru/showthread.php?t=183185
rasp187
10-16-2009, 09:44 AM
I have 2 PC styles (a green and a blue one). Initially your mobile template was only working for admins because I was not allowing users the ability to select a template because we were working on the blue one still. We released the blue one today, and I opened that feature up. The minute I made the default template not forced on the users, it changed my default template on my PC to the mobile template so I was viewing my forums on my laptop through the mobile template.
Basically I'm not sure why it's not detecting it as a PC and then using the default template as the default template. I think it would be tedious for users to have to constantly change back to the default template when they get on their PC after viewing from a mobile device. Is there any reason why this would detect a PC as a mobile device and assign the mobile template?
Also note that if I make the mobile template selectable, once a user selects it, they are unable to switch back to a PC template unless I totally disable the template. So right now, on my forum, I have the mobile template enabled and selectable, and I cannot switch back to the PC template without having to disable the template itself.
dartho
10-16-2009, 10:11 AM
Sounds like you had the mobile style as the default template, or some other configuration error.
rasp187
10-16-2009, 10:52 AM
Mobile style was never a default template...the green template is the default template.
The minute I enable the this product it switches my template to the mobile template, yet when I go into my account via the admincp, it says "default template" as the one assigned to my account, and the default template is the green template per what I have in the admincp.
So basically this is overriding any setting I have and basically determining everything to be a mobile device.
Division
10-21-2009, 06:28 AM
I havent been able to get the hack to work since i upgraded to 3.8 is their anything i need to update??
dartho
10-21-2009, 07:11 AM
Shouldn't be any issues with this under 3.8 - that's why I've not ported it as it would be the same ...
jjrambo
10-23-2009, 01:46 AM
i keep getting invalid file for this.
I'm running 3.7.0
dartho
10-23-2009, 05:48 AM
Are you trying to install it as a style? It is a product which should be installed via product manager
jjrambo
10-23-2009, 07:22 AM
Are you trying to install it as a style? It is a product which should be installed via product manager
i tried that and it kept saying invalid.
lowlight
10-27-2009, 02:59 PM
The following user agents are detected as "Mobile" by this script:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en; rv:1.8.1.23) Gecko/20090925 Camino/1.6.10 (like Firefox/2.0.0.23)
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/523.12.2 (KHTML, like Gecko) Version/3.0.4 Safari/523.12.2
dartho
10-28-2009, 01:00 AM
I'm not sure what is triggering that. You could add "Macintosh" to the exclusions section as a work around ...
dartho
10-28-2009, 08:22 AM
Yep
Virtualshiner
10-31-2009, 06:03 PM
Hi,
I installed this and tried to use it on my Nokia E63 however it isnt working. I get the usual message about javascript needing to be enabled even though it is but still.
Any ideas?
dartho
10-31-2009, 09:44 PM
Which style did you install with to work with this?
Virtualshiner
11-01-2009, 09:23 AM
The one created by you. Link (https://vborg.vbsupport.ru/showthread.php?t=174375&highlight=cell+phone)
boggseric
11-29-2009, 04:29 AM
Is there any way to allow the users to override this using the &styleid= on the URL? I had this mod and the iPhone skin (https://vborg.vbsupport.ru/showthread.php?t=171947&page=20) installed on a test board and I swear the normal button worked there. But now on our production board when a user clicks the normal button the &styleid is added to the URL but the mod just ignores it and sticks them with the iPhone skin.
If I use my computer and change to the iPhone skin, then click the normal button it does change back to the normal skin. Any ideas?
dartho
11-29-2009, 06:24 AM
Try teh attached in post 222 here: https://vborg.vbsupport.ru/showthread.php?p=1779571#post1779571
boggseric
11-29-2009, 05:24 PM
Try teh attached in post 222 here: https://vborg.vbsupport.ru/showthread.php?p=1779571#post1779571
Nope, I tried installing that over the top and also uninstalled and just installed the one in that post. No matter what the string in the url doesn't change the style. :(
I'm not sure if we installed the Patch Level 1 on the other server, maybe it has something to do with it?
edit: If I disable this mod using the option in vBulletin Options the styleid links work on the mobile devices.
sebben76
01-07-2010, 04:56 AM
Pardon me if this has been suggested or asked already...long day hehe
The way I've done redirects on the non forum part of my site is based on monitor width; over 1000 gets the grand web 2.0 javascript etc version, under it gets a blander version suitable for smaller monitors, googlebot, phones etc.
Perhaps in a future version there can be that option?
dartho
01-07-2010, 09:28 AM
It would be better now - but when I originally wrote this, I was accounting for phones with very basic browsers - ie. no javascript. One of many things to look at for a new version...
fanyap
01-12-2010, 07:14 PM
Can this please be upgraded to vB 4.0, also this is causing problems with my mac users.
Thanks for your work!
hex1848
01-14-2010, 08:22 PM
I had this installed with your mobile style and mobile options for 4.0. One thing I noticed is if this is on, you can't over ride the style from my mobile phone. I have it setup to show the style change link in the footer, but it won’t let you change to the default style if you want to. What would be cool is if it auto detected initially, but still let the mobile user choose to override it and use the default style.
SVTCobraLTD
01-15-2010, 04:12 PM
How can I give the option to choose the PC version of the site? Some users do not like the mobile version.
CR_TurboGuy
01-15-2010, 05:18 PM
How can I give the option to choose the PC version of the site? Some users do not like the mobile version.
This is how I handled it on my forum:
https://vborg.vbsupport.ru/showpost.php?p=1819823&postcount=283
--JOsh
SVTCobraLTD
01-16-2010, 02:34 PM
This is how I handled it on my forum:
https://vborg.vbsupport.ru/showpost.php?p=1819823&postcount=283
--JOsh
I did that. Now where do the user's change the settings? I went into my usercp while in mobile and do not see it anywhere.
Bounce
01-31-2010, 08:25 PM
Does this work on vb4? i've installed it but doesn't work for users on phones :(
Biker_GA
02-12-2010, 03:32 AM
Yo! Dartho! Down here!
Any plans on porting this jewel over to 4.0x? My users (namely the rich ones who have iPhones and Androids) are clamoring for the mobile style. Yet, vB sees the OS as a Desktop OS and gives 'em the default style for the site. This little jewel allows me to force those fancy mobile devices to the mobile style, which my mobile users prefer.
SVTCobraLTD
02-13-2010, 11:46 PM
I did that. Now where do the user's change the settings? I went into my usercp while in mobile and do not see it anywhere.
Anyone?
stardotstar
02-16-2010, 08:38 PM
Hi dartho, thanks for such a godsend suite of mobile goodness!
I am blind and the rest of this post was redundant - sorry about posting for help - the options were further up - my congratulations on great mods, support and attitude stand!
Will
Biker_GA
02-17-2010, 03:11 AM
Anyone?
Did you read what this modification does?
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.
There is no option for users to change the style. This allows you, as the Administrator, to force a specific style for mobile users.
dartho
02-17-2010, 04:32 AM
Yo! Dartho! Down here!
Any plans on porting this jewel over to 4.0x? My users (namely the rich ones who have iPhones and Androids) are clamoring for the mobile style. Yet, vB sees the OS as a Desktop OS and gives 'em the default style for the site. This little jewel allows me to force those fancy mobile devices to the mobile style, which my mobile users prefer.
This version should work under 4.0 - i held of releasing it as I was hoping to get time to look at a few changes. If I were to release it now as a 4.0 product, it would be identical code
Biker_GA
02-21-2010, 09:43 PM
Perfect! I'll give it a shot and report back if I run into any issues. :D
CR_TurboGuy
02-24-2010, 06:18 PM
I did that. Now where do the user's change the settings? I went into my usercp while in mobile and do not see it anywhere.
You'll need to visit your user control panel from a normal browser once to set that preference.
--JOsh
lowlight
03-12-2010, 02:33 AM
I added "Pre" to the custom definitions list. You asked us to report it here, so you here go :)
lowlight
03-12-2010, 02:40 AM
Problem is, putting "Pre" in the custom definitions causes all "Presto" browsers to be detected as mobile.
Is there any other way? This is the Palm Pre's useragent:
Mozilla/5.0 (webOS/1.4.0; U; en-CA) AppleWebKit/532.2 (KHTML, like Gecko) Version/1.0 Safari/532.2 Pre/1.0
lowlight
03-12-2010, 02:41 AM
Hmm I'll try "WebOS"
gopherhockey
04-02-2010, 11:14 AM
For those interested in fixing this so iPads don't see the mobile version of your site, find this bit of code and simply add "iPad" too it.
This of course assumes you are making an exception for iPhones already. It would be nice to have this as a separate setting.
$ipodbrowsers = array(
"iPod",
"iPad",
"iPhone"
);
dartho
04-02-2010, 11:27 AM
given the iPad's screen resolution, you'd be best off adding it to the user agent exceptions section ...
Zillo
04-13-2010, 05:43 PM
any chance you might get this ready to use with the new skyfire browser.... just got my beta and skyfire is awesome but this script does not redirect me to our mobile site like pocket IE does.
i dont know what specifically skyfire identifies itself as but its not currently working with this script and i suspet more and more users will be going to this browser because its awesome.
@aggiefan - Use your PDA to browse your site with Skyfire, then form your PC check who is online, turn on display user agent and check the User Agent string of your skyfire browser. You can post it here, or send me a PM. Although if it does indeed render pages that well, you might want to add it to the exceptions list!
Skyfire's user-agent is Firefox so there is no way to check who is using Skyfire just by checking the user-agent. Skyfire has its own HTTP headers: x_skyfire_phone , x_skyfire_screen and x_skyfire_version. That is the only way to check who is using Skyfire but I guess this script created by dartho does not detect any other header different than user-agent.
By the way Skyfire is probably the only way to watch flash videos and flash streaming on Windows Mobile and Symbian
jansen_berlin
04-22-2010, 01:02 PM
This addon disables the manually Style choice in vb 3.8.5. Anybode else has the same problem?
Wings69
07-07-2010, 01:48 PM
given the iPad's screen resolution, you'd be best off adding it to the user agent exceptions section ...
What do I have to put there? I tried googling the Ipad user agent string and putting it there but it didn't work.
dartho
07-07-2010, 11:20 PM
@Wings69 - add the word ipad to the user agent exceptions section.
AURFSCAN
07-08-2010, 06:18 AM
For those interested in fixing this so iPads don't see the mobile version of your site, find this bit of code and simply add "iPad" too it.
This of course assumes you are making an exception for iPhones already. It would be nice to have this as a separate setting.
$ipodbrowsers = array(
"iPod",
"iPad",
"iPhone"
);
tried that, doesnt work
do what dartho says above, that works
again, this works well on vb4
Majidm
05-16-2011, 09:52 PM
OK - try the attached. Basically, if a user has used the style chooser (ie. manually chosen a style), it won't override their choice.
example 1 - user visits via iPhone for first time, they get presented with iPhone skin as configured. If they change teh style to default skin, all visits from here on in will present them with default skin or what ever style they manually choose from then on
example 2 - users visits with small screen old nokia phone, they get presented with mopbile skin as configured. If they change the style to defualt skin, all visits from then on will present them with teh default skin. If their browser can't handle it and they can;t get back to the style chooser. they will not be able to view your site properly again.
proviso's - browser must accept cookeis for this to work (clearing browers cookies will reset)
Hi dartho, first off thanks for the great mod.
Secondly can you explain a bit more how to use this addition? Do I need to enable custom Style Selection for the user?
I'm using your mod in conjunction with custom PHP code.. basically I'm serving a different PHP header and footer if they come from a mobile device, using your code:
// Mobile Layout Start
if ($mobile || $pda || $ipod || $except_browser || $custom1) {
// Mobile header
} else {
// Desktop header
}
The header and footer are fed into vBulletin via a custom plugin..
Everything works great, I'm just not quite sure how to modify the detector to allow people to choose the desktop style when they are on a mobile device
dartho
05-16-2011, 11:00 PM
Styles have to be user selectable, but you don;t have to "Allow users to change styles"
Majidm
05-17-2011, 01:25 AM
Styles have to be user selectable, but you don;t have to "Allow users to change styles"
Ok so how would they change?
dartho
05-17-2011, 07:13 AM
I'm not sure I understand where you are having a problem - if you want them to change styles, then allow them to change styles?
Majidm
05-17-2011, 12:14 PM
I'm not sure I understand where you are having a problem - if you want them to change styles, then allow them to change styles?
Well my issue is that even if they switch styles, the detector still sees them coming from a $mobile device and triggers my custom templates to send the mobile header/footer... how do I determine which style they have selected using PHP?
dartho
05-17-2011, 09:47 PM
OK , now I see - you're having trouble with your plugins.
What you've got only checks their device - you probably need to set some flag or cookie when they change styles so you know if they are using your desktop or mobile headers/footer.
dinodonk
05-21-2011, 04:02 AM
vb 4.1.3 have built in mobile detection, any problem to run your mod together with it?
dartho
05-21-2011, 05:36 AM
this one would probably override the built in one?
BGObsession
08-06-2011, 01:40 PM
We're on 3.8 and adding 'ipad' to the exclusion list doesn't seem to be working for us - it's still forcing Ipad users to the mobile skin. Any ideas? I'm assuming capitalization doesn't matter (ie..'IPad' vs ''ipad' vs 'Ipad')?
dartho
08-06-2011, 02:01 PM
can;t remember if it is case sensative, but did you try 'iPad' and also ensured excpetions are enabled - also if you have more than ob exception, try iPad only; check no spaces between commas etc.
BGObsession
08-07-2011, 08:03 PM
it's not case-sensitive, I'm just embarrassed to admit that I didn't have the exclusion option turned on. Details - they're a *****! :) Worked fine once I did that.
BGObsession
08-07-2011, 08:07 PM
Dartho...I've got a user with a Nokia N900 who wants to be excluded... any idea what 'user string agent' I need to insert to exclude that model?
dartho
08-07-2011, 08:44 PM
the UA is "Mozilla/5.0 (X11; U; Linux armv7l; en-GB; rv:1.9.2a1pre) Gecko/20090928 Firefox/3.5 Maemo Browser 1.4.1.21 RX-51 N900", so i think N900 should do it or 1.9.2a1pre
It uses a Firefox browser, so you could also make all firefox browsers excluded by adding Firefox to teh exclusions?
BGObsession
08-09-2011, 10:34 PM
N900 worked like a charm. Thanks!
barakuda
10-24-2011, 09:05 AM
hi,
when i use this mode the other style can,'t work in firefox (https://www.vbulletin.com/forum/showthread.php/389976-my-vb-3.7.3-style-not-work-in-Firefox)?
dartho
10-24-2011, 09:41 AM
Disable "Enable user defined device detection" and/or remove the word "Firefox" from the "Custom/User Defined Useragent String"
barakuda
10-24-2011, 05:16 PM
Disable "Enable user defined device detection" and/or remove the word "Firefox" from the "Custom/User Defined Useragent String"
Solution number 1-Disable "Enable user defined device detection" is work but number 2-remove the word "Firefox" from the "Custom/User Defined Useragent String" not work.
is this mod still work if i choose Disable "Enable user defined device detection"?
Thank you
Best Regard
dartho
10-24-2011, 09:01 PM
Yes - the mod will still work
cronjob78
11-29-2011, 07:07 PM
Any one experiencing issues with the iphone 4 for this mod?
Works a treat on android but on iphone it just shows the normal full view style and not the mobile specific style.
Suggestions appreciated.
imported_silkroad
12-29-2011, 08:37 AM
Just a quick question before we change the code a bit....
Did not notice a feature in the AdminCP to only permit auto switching to the mobile skin for certain usergroups.
Did I miss something?
dartho
12-29-2011, 10:17 AM
there is no such feature
imported_silkroad
12-31-2011, 02:44 AM
No problem... easy enough to write and include this functionality. Basic theme makes a great building block for more advanced features.
imported_silkroad
12-31-2011, 02:48 AM
Dartho...I've got a user with a Nokia N900 who wants to be excluded... any idea what 'user string agent' I need to insert to exclude that model?
Suggest you also create a user cp option to be excluded. That way, any user who selects the "don't switch" option in their cp, will not be switched, if they so desire.
imported_stefan
01-30-2013, 03:47 PM
If I want to give all:
> 7' Users a certain style (like all tablet user)
how can I solve this?
So if you are online with a small screen use this template and if you use a bigger screen use that template.
Is it possible with this add on?
Thanks for answering :-).
Stefan
dartho
04-27-2014, 12:34 AM
You'd have to check for screen resolution or something other than useragent alone. This doesn't do that :(
viper357
03-19-2015, 01:52 PM
So I just got this message from Google :(
https://vborg.vbsupport.ru/external/2015/03/6.jpg
Dartho, If I install this mod along with a mobile theme, will it solve the above issue?
Thanks. :)
viper357
03-19-2015, 01:53 PM
Sorry, this should have been in the 3.8 thread, but nevermind. :p
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.