vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - VB4 - Mobile Phone / iPhone / PDA Detection and Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=249967)

struff 09-12-2010 09:52 PM

This is sending ALL my users (not just mobile users) to the Mobile skin. Using IE and Chrome. Did I miss something in the settings?

Thanks.

dartho 09-12-2010 10:00 PM

Sounds like it - have you enabled custom useragent detection with no data?

struff 09-12-2010 11:05 PM

Quote:

Originally Posted by dartho (Post 2097315)
Sounds like it - have you enabled custom useragent detection with no data?

Aaah. That was it. Thank you!

wickedstangs 09-17-2010 04:07 AM

Installed and not sure if its working?

dartho 09-17-2010 05:39 AM

Doesn't look like it - have you installed a style for detected devices and configured it? You have no selectable style son your site that I can see...

Atakan KOC 09-21-2010 10:13 AM

Not working.

dartho 09-22-2010 12:19 AM

Yes it is :)

demonfatal 09-24-2010 05:30 PM

The old version 3.7 is working fine with Vb4.X, this new one have a lot of problem for detect some device and some navigator...
So uninstalled and old version re-installed and all is fine! :p

Taurus MFF 10-02-2010 04:30 PM

working great, installed!

is there a way to add an option to automatically direct someone to a specific location if they are detected to be coming in on a mobile device?

I'd like to have auto-detected mobile visitors be sent directly to forum.php instead of content.php

edit: in the meantime I used your advice found here so people can just click through after an explanation

8thos 10-08-2010 03:34 AM

It automatically detects mobile phone use but when I click on desktop link, it sends me right back to mobile style.

What am I doing wrong?

dartho 10-08-2010 07:23 AM

have you enabled detection override and are cookies enabled on your device?

johkalhaups 10-09-2010 01:26 AM

I cant get this to detect my Pantech Reveal and I had no problems with the 3.8 version.

Gomojoe 10-11-2010 11:10 PM

So I've installed it and it works, but trys to use the syle on my homepage which is a CMS homepage with articles and such. Is there a method to have it go directly to the forums page when it autodetects instead of my homepage?

RTWAP 10-26-2010 04:17 AM

Getting the following error when the plugin is enabled:

Quote:

Warning: preg_match() [function.preg-match]: Unknown modifier ' ' in [path]/includes/class_bootstrap.php(890) : eval()'d code on line 39

dartho 10-26-2010 05:29 AM

Quote:

Originally Posted by RTWAP (Post 2114299)
Getting the following error when the plugin is enabled:

turn off custom useragent detection if you have no user agents defined

OldSchoolDSL 10-26-2010 05:36 AM

Installed and working 4.0.8

It would be nice though if you either added full CMS & Blog support or if not that, edit this mod to automatically direct them to the forum.

dartho 10-26-2010 06:48 AM

CMS/Blog support has little to do with this mod, that would be up to the style to support. My styles don't but I'm sure others out there do. Also, vBulletin will be releasing a mobile/lightweight style soon which I'm sure will support both!

Dexter_kcd 10-29-2010 07:50 PM

Dartho,

I think there is a conflict between this mod and the Everywhere Sidebar 4 VB4 mod. The ESB mod includes an option to exclude styles from showing the sidebar. Obviously most sites do not want to show a sidebar in a mobile style, so they enter their mobile style id number into the option. But as I outline in this post, it seems that if a mobile style is chosen manually, the exclusion works. If the style is automatically via your mod, the exclusion gets ignored, and the sidebar ends up being shown in the mobile style.

Is there something in the way your mod is identifying the styleid of the forced mobile style that would conflict with another mod identifying it?

Dexter...

dartho 10-29-2010 10:16 PM

The sidebars everywhere hack is only checking what the users default style is, not what style is currently in use. Also, it is checking on global_start which happens before the mobile detect add-on does it's business and possible changes the style, modifying that particular plugin would not work anyway.

If you are using the Lightweight style I wrote, try installin the Lightweight STyle Options addon and add the line
Code:

// disable ESB
global $bbandSBactive=0;

to the disable add-ons section

Cicada 10-29-2010 10:39 PM

awesome. bookmarking

Dexter_kcd 10-29-2010 10:43 PM

Quote:

Originally Posted by dartho (Post 2115861)
The every style hack is only checking what the users default style is, not what style is currently in use. Also, it is checking on global_start which happens before the mobile detect add-on does it's business and possible changes the style, modifying that particular plugin would not work anyway.

If you are using the Lightweight style I wrote, try installin the Lightweight STyle Options addon and add the line
Code:

// disable ESB
global $bbandSBactive=0;

to the disable add-ons section


Yes, I am using your style. I will give this a try over the weekend and see how it works. Thanks for the quick reply, and thanks for these great add-ons. My members appreciate the mobile style a lot.

Cheers,

Dexter...

dartho 10-29-2010 11:40 PM

Sorry - where I said "The every style hack" - I meant the "The sidebars everywhere hack", but all else remains same

Dexter_kcd 10-30-2010 04:20 AM

I knew what you meant. :)

Unfortunately, that code did not do the trick. I added it to the disable addons option area just as you instructed, logged out from my iPhone, cleared cookies/cache/history, and then browsed to my site. The sidebar is still there. Do you have any other suggestions?

Dexter...

dartho 10-30-2010 06:07 AM

This might work - edit all the everysidebar templates in the lightweight style only, and delete the entire contents of each one

Dexter_kcd 11-15-2010 04:04 AM

Quote:

Originally Posted by dartho (Post 2115956)
This might work - edit all the everysidebar templates in the lightweight style only, and delete the entire contents of each one


Hi Dartho,

I finally had time to go back to this problem. The above suggestion worked. I will post it in the thread for the ESB mod.

Thanks for your help.

Dexter...

steve1966 11-23-2010 08:48 PM

hi my mobile devices are not being detected i have to use the style changer what have i done wrong to show the light style

edit if i use i older version 3.7 version it detects but when i click on pc mode it will not change back to the default style any ideas please it still does not detect using the 4.o or 4.01

dartho 11-23-2010 11:52 PM

clear your cookies, or if you want to be selective, just clear he cookies for your site and try again. As soon as you manually select a style, you are effectively turning off auto-detection. In theory, closing all your browser windows should then re-instate it, but it depends on your browser.

steve1966 11-24-2010 06:25 AM

Quote:

Originally Posted by dartho (Post 2125196)
clear your cookies, or if you want to be selective, just clear he cookies for your site and try again. As soon as you manually select a style, you are effectively turning off auto-detection. In theory, closing all your browser windows should then re-instate it, but it depends on your browser.

Thank you

SnapOff Racing 12-04-2010 09:41 PM

Would be nice if we could get this working with vB 3.8 as having the option to allow users to decide on whether or not they actually want to view a mobile version is the way to go.

dartho 12-05-2010 04:13 AM

Did you try it? As mentioned in teh first post, it probably will work

rughis 12-05-2010 08:16 AM

Excellent mod. It works without any problem on my 4.0.8 vBulletin site.

Thank you!

SnapOff Racing 12-05-2010 07:42 PM

Quote:

Originally Posted by dartho (Post 2129480)
Did you try it? As mentioned in teh first post, it probably will work

Yeah I tried it on VB 3.8.6 & 3.8.7b1 and it doesn't work at all. I even uninstalled the 3.8.6 version of this mod FIRST which was working just fine. Then I installed this version and it wasn't having any affect whatsoever. I was testing with my iPhone 4.

dartho 12-05-2010 08:21 PM

try again , but clear cookies first. If you have manually chosen a style at any time, you have essentially overridden autodetection

Joxpa 12-06-2010 11:34 PM

worked 1 time, after didnt worked again. also not using this:

http://www.testiphone.com/
http://emulator.mtld.mobi/emulator.php

:(

vidan 12-07-2010 12:02 AM

this mod work with vb4.1? can someone confirm it?
thanks

OldSchoolDSL 12-07-2010 06:04 AM

Uninstalled.

BadgerDog 01-01-2011 01:38 PM

Installed with thanks ... :)

I'm not sure how to test it?

Can someone with a PDA access our site and let me know if it works and I have it set up right? Thanks ...

Also, I have a 56kb dial-up users who complain the site is slow for them using a regular PC and browser, so I was wondering if this mod could be adapted to recognize a 56kb dial-up user and automatically present Dartho's great "Lightweight Style"?

I know our Google Analytics code reads data from someplace and shows me analysis of type of connect speeds used when accessing our site, so I think it's possible?

Regards,
Doug

el diablo 01-02-2011 07:49 PM

Not working for 4.1

smnet 01-18-2011 01:09 PM

Quote:

Originally Posted by el diablo (Post 2142887)
Not working for 4.1

Can you be a little more specific?

Does it break your board, work partially? Error messages?

rowedf 02-08-2011 06:41 PM

My mobile phone isn't detecting it and my board is on 4.1 as well. I'm using an HTC EVO 4 that is running Android 2.2


All times are GMT. The time now is 10:25 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.01362 seconds
  • Memory Usage 1,814KB
  • 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
  • (2)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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