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
  #162  
Old 11-13-2008, 03:53 PM
ceech ceech is offline
 
Join Date: May 2003
Location: Santa Clara, California
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this. just installed.
Reply With Quote
  #163  
Old 11-14-2008, 09:45 AM
RedTrinity's Avatar
RedTrinity RedTrinity is offline
 
Join Date: Mar 2008
Location: QLD, Australia
Posts: 265
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great add-on, installed and testing at the moment!

One of my users (who is using her phone internet to test the site) has reported that it all works well with accessing/login etc, but when she tries to submit a post, she gets logged out.

Strangely enough, the post was still made, but it was blank apart from the "Posted via mobile device" auto message.

Any ideas? Appreciate your help
Reply With Quote
  #164  
Old 11-14-2008, 05:58 PM
zane99 zane99 is offline
 
Join Date: Jan 2006
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah ok i fix one problem now onto another lol:



When users try to post it says security token missing or something........


Help?
Reply With Quote
  #165  
Old 11-14-2008, 07:33 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GamerGirl - That would be related to the style, not this addon. I see you're using the one I wrote and the add-on that goes with it. Are you using the latest version? I also see it's been modified slightly. Do you still get errors if you revert all templates to their original state (make a backup forst so you can re-implment your changes)

Zane - that's related to the style which isn't my one, however if you do a search in that style for:
HTML Code:
<input type="hidden" name="s" value="$session[sessionhash]" />
and add this underneath:

HTML Code:
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
that should fix it
Reply With Quote
  #166  
Old 11-15-2008, 08:23 AM
gamerfu gamerfu is offline
 
Join Date: Apr 2008
Location: 台灣,&
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
PSPs should be detected - what is the user agent string of the device?
I will ask my user what browser and PSP version they are using.
Reply With Quote
  #167  
Old 11-19-2008, 05:17 PM
biome.pat biome.pat is offline
 
Join Date: Aug 2008
Location: Toronto, ON, Canada
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just noting that Google Chrome pretends to be safari, so if you have an exception for a safari style, google chrome will use it too.
Reply With Quote
  #168  
Old 11-23-2008, 11:49 AM
omanmoon.net omanmoon.net is offline
 
Join Date: Apr 2007
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mmmmm
now it's not work after upgrade to 3.7.4 PL1

after sign in the page change to white color only !!

before logged in the forum showing no problem ! @_@
Reply With Quote
  #169  
Old 11-27-2008, 03:46 AM
TheWhite TheWhite is offline
 
Join Date: Nov 2006
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
1) That is correct - it is by design. If you wish to allow users to change between styles, then you don't need this add-on

2) Assuming you ar eusing the mobile style I made, you can 'enable' smiles and images by removing the 'replacement variables' defined in the style
What do i have to do to add just the smiles in the posts and replying?
Reply With Quote
  #170  
Old 11-30-2008, 06:21 PM
grecostimpy grecostimpy is offline
 
Join Date: Mar 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dartho View Post
I think it may be easier to go about this in the opposite manner.

This is untested!

Create a sub-domain like "pc.exampleforum.com" and park it on the same web space as your main forum

Create a new plugin called "Force to Default Style" on "fetch_style" hook execution order 10 with the following code:
Code:
$pc_url= "pc.exampleforum.com";
if(preg_match('/'.$pc_url.'/i', $_SERVER['HTTP_HOST'], $match))
    {
      $styleid=x;
    }
change the x on th line $styleid=x; to be the styleid number of your default style.

Tell your mobile users that if they wish to view the default style, they should visit pc.exampleforum.com or add a link in your mobile style navbar to this subdomain called "Default STyle" or some such thing.

This way mobile visitors to your site are still detected and given a mobile skin, but they can choose to view the site using the default style.

If you make your mobile styles not user selectable, they will not be able to view you site form their PC's via the mobile style (they could with User Agent spoofing - but there's not much you can do about that)

Hope this helps.

nb - this will only work correctly if all your links are relative - hard code full path links and addons such as VBSEO may break this.
To get around the detection (since some users like the full version on their phone and some like the mobile version) and accomplish a much less intricate way of what you propose above, can I just create a subdomain mobile.mydomain.com that redirects to the styleid of the mobile style on the main domain?

If you want the mobile style, you visit mobile.mydomain.com (and get redirected to the styleid of the mobile style) ...if you want the full version you visit mydomain.com. Would there be any effects from doing this? Would it work correctly? My guess would be that they may get cookied and stuck in the mobile style....

OR....could a second instance of VB be created on the subdomain (pointing to the same database) and somehow just use the mobile style? (I believe you already have a hack for this)

Thanks! EXCELLENT mods dartho, my users are raving.
Reply With Quote
  #171  
Old 12-01-2008, 06:45 PM
grecostimpy grecostimpy is offline
 
Join Date: Mar 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by grecostimpy View Post
To get around the detection (since some users like the full version on their phone and some like the mobile version) and accomplish a much less intricate way of what you propose above, can I just create a subdomain mobile.mydomain.com that redirects to the styleid of the mobile style on the main domain?

If you want the mobile style, you visit mobile.mydomain.com (and get redirected to the styleid of the mobile style) ...if you want the full version you visit mydomain.com. Would there be any effects from doing this? Would it work correctly? My guess would be that they may get cookied and stuck in the mobile style....

OR....could a second instance of VB be created on the subdomain (pointing to the same database) and somehow just use the mobile style? (I believe you already have a hack for this)

Thanks! EXCELLENT mods dartho, my users are raving.
Nevermind my last post above....I parked a subdomain on top of my main domain and used your Diff Domains / Diff Styles mod. Works perfectly! Thanks!
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 06:44 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.05098 seconds
  • Memory Usage 2,327KB
  • Queries Executed 27 (?)
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
  • (1)bbcode_code
  • (2)bbcode_html
  • (4)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
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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