![]() |
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 |
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?
|
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 |
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"; 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. |
Quote:
Replacement Variables are in your admincp - Styles and Templates, Style Manager, All Style Options (for the mobile style) right at the very end. |
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:
Quote:
You can see the test script here: http://www.vbclassified.com/test.php |
Good stuff, QB :up:
|
What do you need to edit in the template for only a few forums to show up?
Thanks. |
PSP is not detected. PSP drop-down menu will not auto-refresh when choosen "Mobile" style.
|
PSPs should be detected - what is the user agent string of the device?
|
All times are GMT. The time now is 01:47 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|