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
  #252  
Old 05-12-2009, 07:02 AM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dt-pain View Post
Seems the Nextel Blackberry Curve is not working well for this mod. Is there a way to add it and make it work? Or is there a new version out yet?
Please visit http://vbdev.org/test-mob-detect.php from your device and copy/paste the output here.

Here's a sample of what it will display to you (I visited in Firefox from my desktop):

Code:
No Mobile Device Detected

HTTP_USER_AGENT: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Reply With Quote
  #253  
Old 05-12-2009, 03:12 PM
dt-pain dt-pain is offline
 
Join Date: Dec 2003
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Biker_GA View Post
Define not working. I have members using many different Blackberry models (including the Curve) and they're singing my praises for this mod. LOL

This is what they said:

I'm useing my Nextel Balckberry Curve and I am on the Home page. I put in Ballerscafe.com.
Everything came up real quick compared to usual which will make me want to use my phone to log on more often.
But on the left under the strip of field and stores list all I' getting is a whole line about 8 Capitol Edge Icons and the last one is the USPN Icon.
I'm not seeing Davis Dg,Extreme or any of the others
Reply With Quote
  #254  
Old 05-12-2009, 03:22 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bingo.. You have vBAdvanced on the main page. Replace your adv_portal template with something like this:

Code:
$stylevar[htmldoctype]
<html>
<head>
$headinclude
<meta http-equiv="Refresh" content="2; URL=http://your forum domain/forum/index.php" />
</head>
<body>

$header

$navbar
<div align="center"><a href="http://your forum domain/forum/index.php">Portal Disabled in Mobile View - Click here if your browser does not automatically redirect you.</a></div>

$footer

</body>
</html>
This will redirect your mobile users right into the forums. There's an issue with CMS and this mod working well together.

Once you do this, your mobile users will be kneeling and kissing your feet.
Reply With Quote
  #255  
Old 05-12-2009, 05:29 PM
dt-pain dt-pain is offline
 
Join Date: Dec 2003
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes I did do that. I made some changes thinking this will force the redirect to the mobile style. However I don't think anyone else is having this issue only that one person.

PHP Code:
$stylevar[htmldoctype]
<
html>
<
head>
$headinclude
<meta http-equiv="Refresh" content="2; URL=http://www.ballerscafe.com/forum/index.php?styleid=15" />
</
head>
<
body>

$header

$navbar
<div align="center"><a href="http://www.ballerscafe.com/forum/index.php?styleid=15">Portal Disabled in Mobile View Click here if your browser does not automatically redirect you.</a></div>

$footer

</body>
</
html
Reply With Quote
  #256  
Old 05-12-2009, 05:37 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd take the style ID out. This particular mod is supposed to force mobile devices to the mobile style.

How competent is your Blackberry user? It's possible they have some browser settings that aren't right on the decvice. (Ensure javascript is turned on, etc etc etc.)

I'd also tell the user to do a hard reset on the device. Remove the battery while the device is still operating. Leave the battery out for 30 seconds, then put it back in. This will cure many issues a user may be having with the Blackberry, including rendering issues on some sites.
Reply With Quote
  #257  
Old 05-13-2009, 08:56 PM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Biker_GA View Post
Why should something that is "by design" be fixed? It's SUPPOSED to be that way.
OH COME ON!!...I'm pretty sure this was not "DESIGNED" to be this way. It happens to be this way because the mod redirects people automatically to a particular style.

Thank you for your sarcasm. It truly is a pleasure to read your replies, but if you don't mind, could you please allow the coder of this mod to give me an answer.
Reply With Quote
  #258  
Old 05-13-2009, 10:02 PM
dartho dartho is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 2,303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually - it was by design, I wanted to *know* that a mobile user could read the forum OK using a specific style. By giving mobile users a choice, they could load up a style that does not render on their device and never be able to get back again.

Also, I don't think there was any sarcasm in Biker_GA's comment. He has gone out of his way to help you in the last couple pages.

Anyway - if you head back to around post #219 and read on from there, you will find a post with an attached variation to this mod that will do what you seem to be asking for.
Reply With Quote
  #259  
Old 05-14-2009, 12:04 AM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you dartho.

That worked for me. My apologies to Biker. Thank you also for your help.
Reply With Quote
  #260  
Old 05-14-2009, 12:16 AM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would be cool to incorporate a floating notification asking the user if they want to switch back to the mobile style.

Similar to this. Of course this would only appear if the user is on a mobile browser.
Reply With Quote
  #261  
Old 05-15-2009, 12:59 AM
dancue dancue is offline
 
Join Date: Feb 2008
Posts: 569
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dartho,
Is there an if condition that I could use on a template that would allow me to detect if the user is on a mobile browser?

I want to say "If user is on mobile device then do not show"
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 04:24 AM.


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.04892 seconds
  • Memory Usage 2,323KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (3)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_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