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)

Mansour 09-07-2008 08:48 PM

Hi

Good job, I was looking for something like this. thanks.

I have some suggestions, is it possible to show the number of user who are accessing the forum through a mobile device?
  • Add the total number of mobile users in "Currently Active Users".
  • Show mobile icon next to a username in "What's Going On?" box.
  • Show mobile icon next to a username in the post if he currently logged on using mobile.

Thanks for this grate add-on.

dartho 09-11-2008 12:17 PM

Nice suggestions - I guess these would be done based on which style a user is viewing your site with. I'm a bit busy, but if I have a moment of clarity, I'll have a go - if anyone else has an idea how to do this, I'd be happy to incorporate it or you could make an add-on ...

codemafia 09-14-2008 04:16 PM

it would really be nice if this mod not only switched the skin for mobile users but also only displayed certain forums for forum users aswell. If this may have sparked a light bulb for you and its something you code in the future please update me!

sweede 09-15-2008 09:08 PM

Nokia sidekick user agent
Mozilla/5.0 (Danger hiptop 3.4; U; rv:1.7.12) Gecko/20050920

kyle1745 09-18-2008 01:30 AM

Ok I installed this and it seems to adjust to the mobile style on my Blackberry but I am unable to see my forums. I did have to add the recommended template change to disable vbadvanced, but even with that I get the mobile page, but I am unable to see any forums. Its just a page with title links and footer.

I am running vBulletin 3.7.3 Patch Level 1...

Thanks for any ideas,
Kyle

inbrissy 09-18-2008 02:22 AM

might be a silly question, but would it be possible to have an option to set for specific users to NOT view the optimized skin?

Mainly because things like "Who is online" options are not available in these optimized skins, which is useful for the moderators and admins.

With this enabled, you can't go back to the original skin.

dartho 09-18-2008 02:32 AM

Kyle - could you let meknow your sites address and I'll have a look

inbrissy - I wouldn't iumagine it would be too difficult, there are probably other addon's which can stop speficied users/groups from using specific styles.

MentaL 09-20-2008 01:47 AM

This work with a PSP browser?

MentaL 09-20-2008 02:00 AM

Anyone wanting to help me make a SEO friendly list Ide appreciate it, ive got so far.

Quote:

Googlebot
MSNbot
Yahoo Slurp

dartho 09-20-2008 03:38 AM

Yep - works on PSPs

As for the search engines list, keep an eye on Who's Online for a few days with Display User Agent turned on and you'll soon find the active ones on your site

kyle1745 09-21-2008 09:09 PM

Sent you a PM with my site.

Quote:

Originally Posted by dartho (Post 1624513)
Kyle - could you let meknow your sites address and I'll have a look

inbrissy - I wouldn't iumagine it would be too difficult, there are probably other addon's which can stop speficied users/groups from using specific styles.


dethfire 09-26-2008 07:39 PM

is it confirmed this detects all mobile devices?

dartho 09-26-2008 09:10 PM

no, it doesn;t detect all mobile devices

dethfire 09-26-2008 09:24 PM

Quote:

Originally Posted by dartho (Post 1631223)
no, it doesn;t detect all mobile devices

is there a list that could be added so it does?

dartho 09-26-2008 09:48 PM

no, as the list is variable and rather large. Suffice to say it detects many, if not most, and there is a facility for the site admin to manually add detection of any unsupported devices he or she may discover

ekantnl 09-29-2008 07:50 AM

Hello Dartho,

your mod is working like a charme on the mobile devices I have seen till now. Thank you for your work!

I have a question / feature request. I dont know if it is possible or not to code it.

Some forums and subforums are redirected (Forum Link) to vbulletin scripts like vbclassified, reviewpost etc. These scripts do not look good on a mobile device.

So.. Is it possible to exclude certain forums to show up when viewing with a mobile device?

Eric

dartho 09-29-2008 11:44 AM

You just want to hide the forums from forumhome, or you don;t even want posts to show which are in these forums (say in "New Posts")?

You could possibly hide forums with a few extra conditionals in your templates - but to hide threads/posts from searches etc also is a bit more involved.

It may be easier to disable the add-ons rather than hide them so that mobile users will see them as normal forums and still get the content without the bells and whistles...

SIINSI 10-08-2008 12:41 AM

For some reason, some of my users are getting the "Posted via Mobile Device" under there posts even when posting from a PC. Any ideas why?

I have 3 styles. A light style a dark style and your mobile style.

Thanks,
Miguel

dartho 10-08-2008 12:51 AM

That won't be related to this - what addon are you using to append that message?

robgtheengineer 10-11-2008 02:29 PM

Not working on Zavine.com. Installed this plugin with the mobile theme.

Fungsten 10-12-2008 08:00 PM

Quote:

Originally Posted by SIINSI (Post 1639854)
For some reason, some of my users are getting the "Posted via Mobile Device" under there posts even when posting from a PC. Any ideas why?

I have 3 styles. A light style a dark style and your mobile style.

Thanks,
Miguel

Some of my users are getting that too. I left a message for the author of the Mobi style.

dartho 10-12-2008 11:56 PM

Quote:

Originally Posted by robgtheengineer (Post 1642714)
Not working on Zavine.com. Installed this plugin with the mobile theme.

I'm guessing it is mis-configured - or possibly conflicting with another add-on.

nhlchuck 10-20-2008 10:44 PM

Is there a way, on the users end, if the site has auto detect on that I can view the standard style on an Ipod and not the mobile?

dartho 10-21-2008 12:36 AM

you can specify which style to display to ipod/iphone users.

m@ilm@n 10-28-2008 04:23 PM

Silly question im sure, everything seems to be working great but any time the user post his/her signature is not attached to the post? Is there any way to edit this so that if you do post from your mobile that your sig will be attached so when you get back on your PC your sig is in your posts?

trigatch4 10-29-2008 03:31 PM

1) When users are viewing the mobile version, there is no way to change BACK to the other styles, even with style selection enabled and numerous styles active.

2) I LOVE the fact that its optimized for mobile, but most of my mobile users are visiting from phones that have "full web browsers" and I was hoping for a style that, while optimized for mobile, still includes graphics and pictures and all that jazz... just quicker to load and with proper dimensions...

Appreciate help on either of these!

dartho 10-29-2008 09:20 PM

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

nureeves 10-30-2008 02:35 AM

hello ..
i've installed it on my forum, but my default style still loaded rather than its mobile style
did i miss something? i use opera on mobile

trigatch4 10-30-2008 02:56 PM

Dartho... you make good points. The thing is, I want to FORCE the user to the mobile version initially but be able to switch/use the full version if they wish. Otherwise, if it STARTS on the full version and they are able to switch TO the mobile version, I think they are much less likely to see where/how to switch since there is so much going on. Whereas a link to use the FULL VERSION on the mobile theme would be easily spotted.

Secondly, where can I find the Replacement Variables?

EDIT: Regardless, I should add you've done a great job and thanks for the valuable addition to the community!

gim 10-31-2008 06:14 PM

Thanks for this great plugin :)

zane99 11-02-2008 02:55 PM

Hi, great mod.

However seems to be running ok for some users and not others. at the moment i think its the majority of blackberry users which it is not working for.

any ideas?

cheers

dartho 11-02-2008 07:45 PM

They are probably new models which have a useragent which sin;t detected by this add-on. could you check their useragent strings and post back here or PM me?

wma 11-03-2008 08:57 PM

hello,

a great work! it works fine for my mobile users, include iphone & co.

now, some users ask to change the rule, how the detector works. some iphone user (and others) want to visit my board with the original style. i think i can realize taht with the following steps:


1. make a subdomain like mobile.exampleforum.com

2. route the new subdomain (http forwarding at the server) to one of the mobile style url, to let the detector find wich style is prefered (cellular or iphone)

3. if a mobile user want to visit the board with normaly style, he can visit www.exampleboard.com

4. but ... i must find the variable $_SERVER['HTTP_USER_AGENT'] in the normaly style to kill them. because the detector want to route the mobile users to the style.

and 5th: my problem is, i didn't find your variable $_SERVER['HTTP_USER_AGENT'] in the styles. can you give me a tipp please?

and the next problem is, i don't want that the PC users can visit my mobile styles. and i didn't know how i can solve these problem.

i think, i install the add-on but only on my mobile style...


is there any way to solve my wish?


sorry for my bad english ;-)

best regards,
tom

dartho 11-03-2008 09:59 PM

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.

dartho 11-03-2008 10:05 PM

Quote:

Originally Posted by trigatch4 (Post 1656045)
Dartho... you make good points. The thing is, I want to FORCE the user to the mobile version initially but be able to switch/use the full version if they wish. Otherwise, if it STARTS on the full version and they are able to switch TO the mobile version, I think they are much less likely to see where/how to switch since there is so much going on. Whereas a link to use the FULL VERSION on the mobile theme would be easily spotted.

Secondly, where can I find the Replacement Variables?

EDIT: Regardless, I should add you've done a great job and thanks for the valuable addition to the community!

Check the post above for a work around which may make it possible for mobile users to choose to view the site via it's default style.

Replacement Variables are in your admincp - Styles and Templates, Style Manager, All Style Options (for the mobile style) right at the very end.

Quarterbore 11-03-2008 11:44 PM

dartho,

Can we work on a small test script that would show the user what useragents are associated with their mobile device? I am going to play with the code and post here if I get a fix but I have one member that this is not working for and they can't help me figure out what the issue is either.

I'll post what I come up with...

That was easier then I expected...

Create a file "test.php" and to that file add:

PHP Code:

<?php
echo 'User Agen Test Script.<p>';
echo 
'Your user agent: <p>';
echo 
$_SERVER['HTTP_USER_AGENT'];
exit();
?>

When your users access the file their browser says something like:

Quote:

User Agent Test Script:

Your use agent:

BlackBerry8310/4.2.2Profile/MDP-2.0 Configuration/CLDC-1.1 VendorID/102
From that, you can add useragents to give access to mobile users!

You can see the test script here:

http://www.vbclassified.com/test.php

dartho 11-04-2008 02:59 AM

Good stuff, QB :up:

fredang85 11-06-2008 03:54 PM

What do you need to edit in the template for only a few forums to show up?

Thanks.

gamerfu 11-13-2008 06:29 AM

PSP is not detected. PSP drop-down menu will not auto-refresh when choosen "Mobile" style.

dartho 11-13-2008 07:31 AM

PSPs should be detected - what is the user agent string of the device?


All times are GMT. The time now is 03: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.01500 seconds
  • Memory Usage 1,827KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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