vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Display Enhancements - Mobile Phone / iPhone / PDA Detection and Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=173239)

CR_TurboGuy 09-08-2009 12:19 PM

Quote:

Originally Posted by ShackMaster (Post 1861047)
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
Code:

if($vbulletin->userinfo['field8'] == 'Use Standard Version')
    {
          $custom1=1;
    }

to
Code:

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
Code:

//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?


All times are GMT. The time now is 06:33 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.01446 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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