vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - Mobile Phone / iPhone / PDA Detection and Style Assignment (https://vborg.vbsupport.ru/showthread.php?t=226946)

dartho 10-27-2009 10:00 PM

Mobile Phone / iPhone / PDA Detection and Style Assignment
 
1 Attachment(s)
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.

Release Information
1.0.1 Initial release for 3.8 ported over from 3.7 version

THIS IS IDENTICAL CODE TO THE 3.7 RELEASE!

I only re-released as soooo many people ask the question "is this OK for 3.8" You do not need to upgrade if you already have installed! However - should there be any changes in the future, it will likely happen here.

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 & 3.8 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.

dartho 10-28-2009 10:01 AM

If there are features to add in, let me know.

As mentioned above, this is currently IDENTICAL CODE TO THE 3.7 RELEASE! Don't expect anything new.

However, I will release another version soon with the option to be able to override this addon if a user manually changes style.

TheChaosFactor 10-28-2009 10:04 AM

That's awesome... I've had a few complaints about this. Appreciate the links to the styles as well. :)

Installed, and nominated.

Kingdombuilder 10-30-2009 07:43 AM

Do you think that this mod will detect Blackberry phones? I have a blackberry site that I would love to be able to put up a mobile version of the sight.

dartho 10-30-2009 08:21 AM

There have been a couple people (out of over 1000) who have had issues with Blackberrys, but it should work fine and I'm happy to help if it doesn't.

MuddyPaws 11-01-2009 07:17 PM

I am getting a security tolkin error when I try to post from the mobile device. Any ideas?

dartho 11-01-2009 08:13 PM

That would be your Style causing the error ...

bart6767 11-01-2009 08:20 PM

Thanks very much this works well .

boggseric 11-27-2009 05:02 PM

Does this mod override the users adding styleid= to the url? One of the skins I'm using has a "Normal" button but the mobile device won't switch to the normal skin.

On my computer if I change to the mobile skin and click the normal button it does take me back to the normal skin.

Any thoughts?

HACKERS PAL 12-01-2009 12:27 AM

thanks buddy

aspen1018 12-09-2009 02:45 PM

will this work on vb4?

aspen1018 12-09-2009 02:48 PM

just tested it works great on 4.0

thanks

dutchbb 12-10-2009 11:10 AM

Problem/bug: iphone users can't change the style with automatic style assignment set to 'no' for them alone. How do I make the style chooser show for them?

dartho 12-10-2009 08:18 PM

That's by design. It's meant to detect most devices, and then has the option of assigning alternative styles to a couple familys of phone (PDA/iPhone)

To get around this for iPhones, edit the Detect Mobile Device and Assign Style plugin and find

Code:

        "Mazingo",
        "iPhone",
        "iPod",
        "Mobile",

and replace with

Code:

        "Mazingo",
        "Mobile",


dutchbb 12-10-2009 08:53 PM

Well the mod allows me to disable the automatic style assignment for iphone, so wouldn't it be logical then to allow the user to select the style he wants on the iphone? That's why I thought it is a bug :)

But thanks I'll try that.

PS: also, when changing the style on the PC to your mobile skin, there is no quick style chooser to change it back to normal...

hurricane_sh 12-11-2009 11:25 AM

For option Enable user defined device detection?

If I set Yes, forum will use mobile style for any clients including PC.

If I set No, no mobile style at all.

How should I setup this option?

I leave it blank for "Custom/User Defined Useragent String", do I have to input something?

Thanks!

dartho 12-11-2009 08:12 PM

unless you have any extra user agents to add, you should leave this blank and disabled. Enable the product, and enable mobile device detection - you can leave all other options disabled.

hurricane_sh 12-12-2009 07:08 AM

Weird, my forum can't detect any mobile device, no matter how I setup the options. Tested your own forum, it does work well.

dartho 12-12-2009 10:00 AM

A conflict with anotehr add-on could yield unexpexcted results. Try editing the Detect Mobile Device and Assign Style plugin and changing the execution order to 10. If that doesnt work, try changing to 1, if t hat doesnlt work..... we'll play it buy ear...

hurricane_sh 12-12-2009 10:40 AM

Doesn't work, there are only two plugins (including this one) in the same hook, no difference to put it before or after the other plugin.

I will try to add some debug code.

Thanks!

hurricane_sh 12-12-2009 04:56 PM

Fixed the problem, may be because I set the mobile style as 'not allow use selection'. Now I use your another mod to hide the mobile styple from the style chooser.

Thanks for your great work!

EWGF 12-28-2009 01:35 AM

Thank you, this works great!

ma3ali.net 01-01-2010 11:11 AM

Thank you.
It worked great on iPhone and Java based mobile phones..

However, it didn't work on HTC HD2 which is a windows based mobile. It has 2 browsers (IE and Opera). Both didn't work.

ma3ali.net 01-01-2010 12:08 PM

Quote:

Originally Posted by ma3ali.net (Post 1943885)
Thank you.
It worked great on iPhone and Java based mobile phones..

However, it didn't work on HTC HD2 which is a windows based mobile. It has 2 browsers (IE and Opera). Both didn't work.

solved by adding HTC_Touch_HD_T8282 to the custom user agents.

egclive 01-22-2010 07:29 PM

will this be available for vb 4x

doopz 01-27-2010 11:03 AM

Hmm, when I login using my phone I go to the normal default style again.. any fix for this?

Kingdombuilder 02-02-2010 05:41 AM

This works great on 4.0.1 for me... I do however need alittle help. It does not show the home screen well bet shows the forum awesome. Is there a way in the detection to get it to go straight to the forum with out fist going to the home page.

In the settings I set the home page as the forum so it works great as far as once the home link is hit. I just need theat little extra whatever to get me to the forum page when it first load up. Any help would be greatly appreciated. Once this is solved it can be set to 4.0.1 mod as well...

By the way this is a great mod...

dartho 02-02-2010 07:23 AM

what is your current default page - vBulletin CMS, vBAdvanced, Custom?

Kingdombuilder 02-02-2010 03:37 PM

Quote:

Originally Posted by dartho (Post 1972844)
what is your current default page - vBulletin CMS, vBAdvanced, Custom?

Well it was the CMS page, but i redirected it to the forum page from my site control panel. The only thing is that all visitors are bypassing the front CMS page. I just want the mobile surfers to by pass. If there is an adjust that I can make then i can lift the redirectand allow things to take their course. I'm truly grateful for your help bruh, thank you...

dartho 02-02-2010 08:18 PM

Try this:

Edit the vbcms_page template in the mobile style and replace

HTML Code:

{vb:raw toolbar}
<div class="vbcms_content">
{vb:raw layout}
</div>

with something like

HTML Code:

<div class="vbcms_content">
Home page unavailable in mobile view, click <a href="forum.php">HERE</a> to view forums.
</div>


LCN2007 03-10-2010 03:47 AM

Quote:

Originally Posted by dartho (Post 1973375)
Try this:

Edit the vbcms_page template in the mobile style and replace

HTML Code:

{vb:raw toolbar}
<div class="vbcms_content">
{vb:raw layout}
</div>

with something like

HTML Code:

<div class="vbcms_content">
Home page unavailable in mobile view, click <a href="forum.php">HERE</a> to view forums.
</div>


This fix didnt work for me, any ideas?

dartho 03-10-2010 03:54 AM

That would depend on what you are trying to fix? This template edit removes the CMS content and replaces it with a link direct to forums.

dutchbb 03-10-2010 06:34 AM

"users will not be able to select other styles from a mobile device with this add-on installed"

Do you have plans to add the ability to change this like on Google mobile style vs regular?

LCN2007 03-10-2010 11:07 PM

Quote:

Originally Posted by dartho (Post 2000682)
That would depend on what you are trying to fix? This template edit removes the CMS content and replaces it with a link direct to forums.

I did the edit as described above nad it does not remove the cms or make a link for it.

dartho 03-11-2010 12:11 AM

I made the edits as posted on a fresh install with no otehr addons and it worked as described.

I'll need more information in order to be able to help. A URL is always a good start, possibly admincp admin access to edit styles also

LCN2007 03-11-2010 01:39 AM

dartho,

Thank you for your hard work.

I reviewed my install and realized that i edited the wrong style.

Works great.

Only thing i noticed is a big gap under the header before it actually list the forums.

dartho 03-11-2010 04:13 AM

I would guess the gap is being created by another add-on you may have - do you have advertising or similar?

cTak 03-28-2010 10:57 AM

So this works on 4.0.2? Along with the style you made for 4.0?

dartho 03-28-2010 10:14 PM

yep

steve1966 04-02-2010 09:46 AM

hi i have installd this and its not detecting my mobile


All times are GMT. The time now is 08:29 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.01394 seconds
  • Memory Usage 1,820KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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