![]() |
I have sent you a pm, thanks for the mod thus far. Works great.
|
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) |
Figured cookie would be the way to go for a start. You could add an option into vbulletin option to allow this feature to be off and on if you find an alternative to cookie.
An idea would be to have it check the serial of the mobile device and store it for a day as a mobile device that had been detected already. Once it does that it will no longer detect what skin it needs to be changed to. (Again this can be a feature admins can enable and disable and possible choose to manually flush the sql or have it automatically done x days) An alternative to sql could be a file in ftp. |
Added it to my forum and when I went to view a forum (not on mobile) I got this error:
http://evercube.net/images/errorA.png I am currently running 3.8.1 vbulletin, and I have reinstalled the old version of the mod. |
Bugger - looks like I missed a closing brace, I've updated the attachment above in my last post - give it another go!
|
Wow, its insanely lucky I checked this tonight.
Out of the blue, I thought it would be a good idea to check back here to see if there were any updates that DIDN'T force a user to use a predefined (assumably mobile) theme. It just so happens it payed off.. What are the odds.. Anyway, in the second scenario above, if a user changes his or her skin from the mobile skin, and are unable to change back, they can choose the style manually by typing the style id into the url. Example: Domain.com/forums/index.php?styleid=3. Thanks a lot dartho, I'm on my mobile device atm, but tomorow I'm going to be uninstalling the original hack, and installing this one. IMHO, you ought to develope this idea further. I think it will be well received by the community. To be honest, its extremely annoying to visit my own forum (on my phone) and not be able to choose my own style. There's only so much you can do with a mobile style, and some phones can handle the full skins. Forcing a user to use a skin doesn't make sense to me. IMO, defaulting a mobile user's to a mobile theme makes sense, not giving them the option to change it doesn't. As an idea for a future release (should you decide to make one) would be to make the "force" aspect of this mod a boolean, (am I phrasing this right?) so that users can turn it on/off in their admin cp's. Overall, I love this hack. This new release without the "force" just makes it that much better. Great job, and thanks dartho! |
Wow, its insanely lucky I checked this tonight.
Out of the blue, I thought it would be a good idea to check back here to see if there were any updates that DIDN'T force a user to use a predefined (assumably mobile) theme. It just so happens it payed off.. What are the odds.. Anyway, in the second scenario above, if a user changes his or her skin from the mobile skin, and are unable to change back, they can choose the style manually by typing the style id into the url. Example: Domain.com/forums/index.php?styleid=3. Thanks a lot dartho, I'm on my mobile device atm, but tomorow I'm going to be uninstalling the original hack, and installing this one. IMHO, you ought to develope this idea further. I think it will be well received by the community. To be honest, its extremely annoying to visit my own forum (on my phone) and not be able to choose my own style. There's only so much you can do with a mobile style, and some phones can handle the full skins. Forcing a user to use a skin doesn't make sense to me. IMO, defaulting a mobile user's to a mobile theme makes sense, not giving them the option to change it doesn't. As an idea for a future release (should you decide to make one) would be to make the "force" aspect of this mod a boolean, (am I phrasing this right?) so that users can turn it on/off in their admin cp's. Overall, I love this hack. This new release without the "force" just makes it that much better. Great job, and thanks dartho! |
Quote:
Quote:
Quote:
|
Ok, I give up. ever since upgrading to 3.8.1 this has not worked. Now i am running 3.8.2 and still no good. I have removed it, reinstalled it, adjusted the settings, and still nothin.
I really like this addon, as do several of my users, but it's not doing us any good now. also tried to put in a defined string for my phone.. TELECA-/2.0 (BREW 3.1.5; U; EN-US;SAMSUNG; SPH-M800; Teleca/Q05A/INT) MMP/2.0 Profile/MIDP-2.1 Configuration/CLDC-1.1 Still does not detect the mobile theme. |
try adding just "SPH-M800" as a user defined useragent string and see how you go. I know it's obvious, but you also need to configure a style for the custom/user defined section and enable it ...
|
All times are GMT. The time now is 03:27 AM. |
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:
|