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)

ceech 11-13-2008 03:53 PM

thanks for this. just installed.

RedTrinity 11-14-2008 09:45 AM

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 :)

zane99 11-14-2008 05:58 PM

ah ok i fix one problem now onto another lol:

https://vborg.vbsupport.ru/external/2008/11/48.jpg

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


Help?

dartho 11-14-2008 07:33 PM

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

gamerfu 11-15-2008 08:23 AM

Quote:

Originally Posted by dartho (Post 1664728)
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.

biome.pat 11-19-2008 05:17 PM

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.

omanmoon.net 11-23-2008 11:49 AM

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 ! @_@

TheWhite 11-27-2008 03:46 AM

Quote:

Originally Posted by dartho (Post 1655638)
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?

grecostimpy 11-30-2008 06:21 PM

Quote:

Originally Posted by dartho (Post 1658919)
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.

grecostimpy 12-01-2008 06:45 PM

Quote:

Originally Posted by grecostimpy (Post 1675918)
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!


All times are GMT. The time now is 05:01 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.02490 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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