![]() |
Quote:
Code would be: PHP Code:
That is a bare bones plugin. It will change to the mobile style if a mobile device is detected. The problem is that no one could ever change back to the regular style on a mobile device. You probably want to add some code to deal with that. For example if you are doing this to appease Google then maybe you only want to make this plugin active if it's a guest viewing the site, and not a registered member. In that case add a check to the conditional- PHP Code:
If you want to get fancier you can use a cookie or something. |
Hello BOP5,
I have installed this plugin and want to make use it such that for tablets I want to show the users desktop style. The desktop style id is 16 and I used the below plugin Product: vbulletin Hook Location : style_fetch Code:
global $vbulletin; But I want to show the desktop style in tablets, How do I fix this. Thanks in advance. |
Hello all,
Any help is appreciated. Am looking to nail the issue. Thanks. |
Not support Search Engine Friendly Archive on vbulletin 4.2.3
you test Code:
http://www.siteforyou.com/forum/archive/index.php |
User cannot change style if it is detected as mobile device?
|
Quote:
|
Quote:
This code this not working in templates |
What template are you trying? This is very old anyway, not sure how useful it is anymore.
|
Hi,
On 4.2.4. , I am trying to use this templates : <vb:if condition="$vbulletin->detect->isMobile()"> {vb:raw test1} <vb:else /> {vb:raw test2} </vb:if> but it doesn't work. Any idea why? Thanks. |
Quote:
I have managed to create a vB 3 version of this, with additional functionality for responsive styles. If you permit, I will release it as a new mod. |
All times are GMT. The time now is 08:07 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:
|