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)

ShackMaster 08-12-2009 03:12 AM

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!

Chicago_VLNU_4s 08-13-2009 01:12 PM

installed on 3.8.2, works fine.

jbeam 08-18-2009 02:46 PM

I did a quick search but couldn't find it.

Anyone know how to make this work for the LG Dare?

MozyMac 08-23-2009 09:18 AM

really helpful

BadgerDog 08-25-2009 12:53 PM

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:

BadgerDog 08-25-2009 04:21 PM

Quote:

Originally Posted by dartho (Post 1861059)
SHack Master - look at this post: https://vborg.vbsupport.ru/showpost....&postcount=222 that may be the functionality you are after?

Hi dartho.... :)

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

dartho 08-25-2009 10:25 PM

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.

BadgerDog 08-25-2009 10:44 PM

Quote:

Originally Posted by dartho (Post 1874420)
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.

Thanks.. just did that and overwrote, as I don't think that secondary mod was working ... ;)


Quote:

Originally Posted by dartho (Post 1874420)
1. No, however you could use the 'custom user agent' section to have a specific style for Blackberrys

I had a Blackberry user test your skin and he said it worked pretty darn good on their "Bold" Model, so I'll just leave it. :)

Quote:

Originally Posted by dartho (Post 1874420)
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)

Yes, I enabled the "Link on to of Navbar" option and it appears, but when it executes all I get is a screen refresh, although it shows the "xxx?style=2" statement on the browser bar, so I know it tried to do something on the iPhone. The iPhone Safari is set to use "cookies", but the forum stays in your "mobile" skin mode.

Quote:

Originally Posted by dartho (Post 1874420)
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.

Roger that ... :up: Understood....

Thanks for your quick response... sweet product... appreciate your efforts .. :up:

Regards,
Badger

echamberlain 08-27-2009 10:31 PM

Quote:

Originally Posted by BadgerDog (Post 1874180)
Hi dartho.... :)

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.

mobdetect-allow_change_b.xml doesn't appear to work. It's trying to set the bbstyleid cookie, which doesn't exist. It should be changing the styleid cookie.

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:

if ($vbulletin->options['mob_detect_enabled'] == 1)
  { 

to:

PHP Code:

// make the cookie name a constant
define('MOD_DETECT_FLAG','mod_detect_flag');

// clean cookie
$vbulletin->input->clean_array_gpc('c', array(COOKIE_PREFIX MOD_DETECT_FLAG => TYPE_BOOL,));
  
// we only need to do this once, if the cookie doesn't exist
if ($vbulletin->options['mob_detect_enabled'] == && 
    empty(
$vbulletin->GPC[COOKIE_PREFIX MOD_DETECT_FLAG]))
  {
  
  
// add the cookie, it only lasts as long as the session
  
vbsetcookie(MOD_DETECT_FLAGtruefalse); 

and the end of the plugin code, from:

PHP Code:

    //      echo "<!-- No Mobile Device-->";
  
}


to:

PHP Code:

    //      echo "<!-- No Mobile Device-->";
  
}
  
  
// add the cookie
  
vbsetcookie('styleid'$styleid);



dartho 08-28-2009 01:45 AM

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))
{

at the begining and
Code:

}
at the end not be simpler?

(for 3.8 it would be
Code:

if (!$vbulletin->input->clean_gpc('c', COOKIE_PREFIX . 'bbstyleid', TYPE_INT))
{

at the begining and
Code:

}
at the end)


All times are GMT. The time now is 11:31 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
  • Page Generation 0.01924 seconds
  • Memory Usage 1,765KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (6)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