![]() |
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....
|
Worked like a charm Dartho :) Now I've got a neat, utilitarian, easy to use, clean mobile skin. Thanks again!
|
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: Code:
if($vbulletin->userinfo['field8'] == 'Use Standard Version') I added the above code snippet in two places, once after this block: Code:
$exceptbrowsers = explode(",",$vbulletin->options['brows_exceptions']); Code:
if ($vbulletin->options['custom1_skin_enabled'] == 1) 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 |
anyone know how to add google mobile ads (AdSense for Mobile Content) to this template?
|
|
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.
|
Anyone tested this under 3.8.x yet?
|
Quote:
|
This is working just fine with v3.8.3 - though if you've got ads running, it seems to stretch things out for banners.
|
That would be a style issue - nothing to do withthis add-on
|
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 |
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... |
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. |
Yeah :) my mistake was i put a comma where i shouldn't have...and it messed up the entire settings
Thanks! |
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! |
SHack Master - look at this post: https://vborg.vbsupport.ru/showpost....&postcount=222 that may be the functionality you are after?
|
So would I need the other mod by Josh if I use this?
|
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". |
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:
|
Yes, I'm after this modified auto detect/asign mod too ;)
|
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!
|
installed on 3.8.2, works fine.
|
I did a quick search but couldn't find it.
Anyone know how to make this work for the LG Dare? |
really helpful
|
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: |
Quote:
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 |
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. |
Quote:
Quote:
Quote:
Quote:
Thanks for your quick response... sweet product... appreciate your efforts .. :up: Regards, Badger |
Quote:
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: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
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: Code:
if (!$vbulletin->input->clean_gpc('c', COOKIE_PREFIX . 'styleid', TYPE_INT)) Code:
} (for 3.8 it would be Code:
if (!$vbulletin->input->clean_gpc('c', COOKIE_PREFIX . 'bbstyleid', TYPE_INT)) Code:
} |
Quote:
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 Code:
if($vbulletin->userinfo['field8'] == 'Use Standard Version') Code:
if($vbulletin->userinfo['field8'] == 'Use Standard Version') 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. |
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.
|
Hi Joey - have a look at the 3 posts preceding yours which have 3 ways of doing this.
|
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... :) |
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.
|
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? |
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. |
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: |
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 Code:
//disable "Stop the Registration Bots" |
: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? |
All times are GMT. The time now is 12:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|