Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mobile Phone / iPhone / PDA Detection and Style Assignment Details »»
Mobile Phone / iPhone / PDA Detection and Style Assignment
Version: 1.0.0, by dartho dartho is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.x Rating:
Released: 03-16-2008 Last Update: 03-16-2008 Installs: 957
Supported Uses Plugins
Translations  

This add-on will detect most mobile phones, iPhones, PDAs and other mobile browsing devices and automatically for the user to a specific vBulletin style.

What can it do?
Detects most mobile phones and force the user to a specific style (users will not be able to select other styles from a mobile device with this add-on installed). If you have multiple styles installed which are optimized for small screen mobile devices, iPhones, WIndows Mobile devices you can assign a specific style to each of these groups.

Whilst designed with mobile device users in mind, you could also assign styles to self defined browsers. For example you can assign an alternative style to Internet Explorer users whilst Firefox users get the default style. You could also assign an alternative style to Google or Yahoo spiders.

Instructions:
0. Install styles which you wish to assign to Mobile/PDA/iPhone users - some links will appear at the bottom of this post
1. Download the product file
2. Install via Product Manager
3. Configure options via vBulletin Options, Mobile Device Detection (should appear at end)
4. Start browsing from your mobile device!
5. Click "Mark as Installed"

If upgrading from a previous 3.5 or 3.6 version, you will need to uninstall that and the install this one.

To uninstall simply uninstall the product - there are no database changes or additional files.

Styles released on vBulletin which you can use:
Dartho's Mobile, Cell, Phone, PDA, iPhone Style for vBulletin 3.7 (<-- yep, that's mine)
ElForro's iPhone / iPod Touch Optimized Style
Zachery's vB Lite Style
vBMechanics Mobile Alabama Style

Due to the stripped down nature of these mobile styles, you will find that most for 3.5 and 3.6 will work quite happily on 3.5, 3.6 & 3.7 although additional features introduced in vBulletin in recent years such as Social Groups, Blogs and Photo Galleries will not show well on a small screen. All should display your actual forums well.

3.6 Version can be found here

Marked as Beta until I get some feedback, and 3.7 goes Gold

Release Information
1.0.0 Initial release for 3.7 ported over from 3.6.8 version

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
Don Z.

Comments
  #302  
Old 08-12-2009, 03:12 AM
ShackMaster ShackMaster is offline
 
Join Date: Apr 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #303  
Old 08-13-2009, 01:12 PM
Chicago_VLNU_4s Chicago_VLNU_4s is offline
 
Join Date: Mar 2006
Location: Chicago
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed on 3.8.2, works fine.
Reply With Quote
  #304  
Old 08-18-2009, 02:46 PM
jbeam jbeam is offline
 
Join Date: Mar 2008
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Anyone know how to make this work for the LG Dare?
Reply With Quote
  #305  
Old 08-23-2009, 09:18 AM
MozyMac MozyMac is offline
 
Join Date: Jul 2009
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

really helpful
Reply With Quote
  #306  
Old 08-25-2009, 12:53 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.


BTW, because if all our mods, I'm still running vBulletin 3.67pl1 and your code seems to work fine.

Regards,
Badger
:up:
Reply With Quote
  #307  
Old 08-25-2009, 04:21 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
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
Reply With Quote
  #308  
Old 08-25-2009, 10:25 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #309  
Old 08-25-2009, 10:44 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
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 View Post
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 View Post
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 View Post
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
Reply With Quote
  #310  
Old 08-27-2009, 10:31 PM
echamberlain's Avatar
echamberlain echamberlain is offline
 
Join Date: Aug 2006
Location: San Francisco
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BadgerDog View Post
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);

Reply With Quote
  #311  
Old 08-28-2009, 01:45 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05377 seconds
  • Memory Usage 2,339KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (4)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete