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)

b-roll 06-15-2008 11:17 AM

I love this mod. Thank you Dartho!

I works perfectly on iphone and touch, but I'm having problems with other devices. A number of my readers are using blackberrys. I've added the models independently in the custom list like this:

Quote:

BlackBerry8330, BlackBerry8703, BlackBerry8703e, BlackBerry8830, BlackBerry, LG-VX8700
Since I'm not sure how to see the user agents for these devices, I'm only guessing what to put in the system.

It was working for one Blackberry user, but now that I've added a new blackberry model, it's not working for them.

I'm confused as to what is automatically detected - and what should be "custom" detected.

Also, how can you verify the useragent? Someone mentioned a spot in the vbulletin CP, but I can't find it.

Thanks for all of you help!

kev

dartho 06-15-2008 12:07 PM

All blackberry devices should be detected by default. Make sure you have enabled "Mobile Device Detection" in addition to "Enable iPhone / iPod Device Detection?" These can point to the same style.

You can view a users useragent string by checking "Who's Online" and then setting the view useragent string option to Yes.

firefox100 06-18-2008 03:50 PM

There is any way to avoid that users can "choose" this Style?

I have the problem that my users choose from the menu "Select Style" and it's impossible to return to normal style.

Great work dartho. :)

dartho 06-18-2008 09:44 PM

I don't allow users to change styles (this can be set in vBulletin Options) but if you do allow users to change styles this might work for removing a particular style form the quick chooser:

Edit your 'options' template which should look like this:
Code:

<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
and change it to the following:
Code:

<if condition="($optionvalue!=x) && ($optiontitle!='yyyyyy')">
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
</if>

where x is the styleid of your mobile style and yyyyyy is the name of your mobile style. The name is case sensative!

This should stop it being added to the drop down list.

MissKalunji 06-18-2008 09:52 PM

Thanks Dartho Perfectly!

jbeam 06-21-2008 06:54 PM

I am not sure if it's the detection or the style causing the problem, but I do not get the style that is set for wireless devices until the user logs in.

Meaning, if I go to the main forum page on my WM5 phone, I get the default style. Once I login, I get the style spcified for wireless devices.

Anyone else have this problem?

I am running this detection add-on and the Mobile, Cell, Phone, PDA and iPhone style (https://vborg.vbsupport.ru/showthread.php?t=174375) with the Extend and customize add-on (https://vborg.vbsupport.ru/showthread.php?t=182692).

dartho 06-21-2008 10:09 PM

G'day jbeam,

I am guessing that your issue is that the style is not checked as user selectable in Style manager.

As you are an admin, you can view non-selectable styles - this explains why the style doesn't show up till you log in with admin credentials.

Venturing 06-22-2008 08:06 AM

Installed and seems to be working well for me. Many thanks!

firefox100 06-23-2008 01:46 PM

Quote:

Originally Posted by dartho (Post 1552979)
I don't allow users to change styles (this can be set in vBulletin Options) but if you do allow users to change styles this might work for removing a particular style form the quick chooser:

Edit your 'options' template which should look like this:
Code:

<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
and change it to the following:
Code:

<if condition="($optionvalue!=x) && ($optiontitle!='yyyyyy')">
<option value="$optionvalue" class="$optionclass" $optionselected>$optiontitle</option>
</if>

where x is the styleid of your mobile style and yyyyyy is the name of your mobile style. The name is case sensative!

This should stop it being added to the drop down list.

Thanks dharto, work perfectly!

Great Mod. :up:

reefland 06-26-2008 12:22 AM

Can I ask where <img src... is replaced by <a href...? I am trying to brand my mobile skin with a very light version of my logo but whenever, and where ever, I add <img src it is replaced with <a href


All times are GMT. The time now is 03:26 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.01139 seconds
  • Memory Usage 1,742KB
  • 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
  • (2)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