vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Mobile Device Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=130983)

bigwest 08-27-2007 09:44 PM

Quote:

Originally Posted by dartho (Post 1326948)
@ bigwest - If there are no plug-ins, it could be that you edited the global.php file...

That's what I was thinking so I replaced my global.php file with an original but still no luck.

Any other ideas?

Oh and thank you for your response, I really do appreciate it.

dartho 08-28-2007 01:06 AM

You could also check the includes/init.php file. Some style stuff is assigned in here also I believe. Should be a section towards the end of the file - just search "$styleid"

bigwest 08-28-2007 02:29 PM

Quote:

Originally Posted by dartho (Post 1327077)
You could also check the includes/init.php file. Some style stuff is assigned in here also I believe. Should be a section towards the end of the file - just search "$styleid"

I don't see anything in there that looks out of place in that file.

Is there anyway it could be something in the database?

I wonder what would happen if I deleted the mobile style I have installed?

I read earlier in this thread that this plugin detects the iPhone, that is AMAZING!!! That's the main reason I am wanting to solve this problem. I have iPhone users that want to view my site in it's regular form on their iPhone and they can't switch the style.

dbirosel 09-19-2007 11:20 PM

Quote:

Originally Posted by Spika (Post 1277529)
Hello!
I?ve a problem, from mobiles devices works fine, but If ahythig choose dartho Mobile alabama style in a PC, after cannot back to default style, even turn off the browser (IE7 or Firefox), Mobile Style is not default style in ACP. And isn?t possible choose style in dartho mobile alabama skin, I can not view this option.
Thanks in advanced
(sorry for my english)

I'm having this problem too!! Any solution yet???

dbirosel 09-19-2007 11:20 PM

works well in IE and Opera though. Firefox it points to the mobile alabama template.

dartho 09-20-2007 10:22 AM

You will need to add a link somewhere in teh alabama style which points to your default style, if you add something like

<a href=http://www.mydomain.com/index.php?styleid=xx>Default Style</a>

(where xx is teh styleid number of your default style) to your footer template, that will give users a link back to the default home page - of course modify the URL to reflect your own domain/configuration.

Tralala 09-28-2007 04:35 AM

Hi and thanks for the iPhone exclusion support. Now can we please add iPod Touch to the list of excluded devices? :)

User Agent:

Mozilla/5.0 (iPod; U; CPU like Mac OS X; en)
AppleWebKit/420.1 (KHTML, like Gecko)
Version/3.0 Mobile/3A100a Safari/419.3

dartho 09-28-2007 05:02 AM

I think you should be able to add it yourself in the AdminCP. In the "User Agent Exceptions" section it has iPhone by default, if you make it 'iPhone, Mozilla/5.0 (iPod; U; CPU like Mac OS X; en)' that should do it. Any other browsers with that same portion of USERAGENT string would also not be detected as a mobile device either.

ALternatively, you could probably just go with "iPhone, iPod" if no other iPod devices have web browsers in them?

The exceptions just need to be any portion of the user agent string. I would assume that any device with Mozilla/5.0 in teh useragent string should be able to cope with the standard VB styles, so that may be worth trying out also?

dartho 09-28-2007 05:06 AM

Just found the following useragents via google - all apparently from iPhones and an iPod. Common among them are "Mozilla/5.0", "Safari/419" and "AppleWebKit/420" One of these strings would trap both iPhones and iPods
Code:

[28/Feb/2007:23:14:06 +0000] "Mozilla/5.0 (iPhone; U; ARM OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Safari/419.3 Version/3.0 Mobile/241"
[15/Mar/2007:06:17:14 +0000] "Mozilla/5.0 (iPhone; U; XXXXX OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Safari/419.3 Version/3.0 Mobile/241"
[22/Mar/2007:06:39:15 +0000] "Mozilla/5.0 (iPhone; U; XXXXX like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Safari/419.3 Version/3.0 Mobile/241"
[28/Apr/2007:07:50:00 +0100] "Mozilla/5.0 (iPhone; U; PPC like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A001a Safari/419.3"
[15/May/2007:01:00:58 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A523a Safari/419.3"
[28/May/2007:00:00:35 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A537a Safari/418.4"
[12/Jun/2007:04:13:45 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3"
[21/Jun/2007:16:42:06 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A538a Safari/419.3"
[01/Aug/2007:18:23:01 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1C25 Safari/419.3"
[22/Aug/2007:03:58:51 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1C28 Safari/419.3"
[07/Sep/2007:00:20:48 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko)" - spoof?
[08/Sep/2007:13:54:10 +0100] "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A538b Safari/419.3" - spoof?
[09/Sep/2007:02:32:03 +0100] "Mozilla/5.0 (iPod; U; CPU like Mac OS X; en) AppleWebKit/420.1 (KHTML,like Gecko) Version/3.0 Mobile/3A100a Safari/419.3"


Tralala 09-28-2007 08:37 AM

Great, thanks dartho... much appreciated.


All times are GMT. The time now is 12:09 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
  • Page Generation 0.01342 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete