Page 1 of 1

Turn the portal on for specific styles

Posted: 23. March 2014 21:59
by usafbran
Your Portal Version: 1.0.0RC3
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Basic Knowledge
Boardlink: http://www.daggerfallalliance.com

MySQL Version: Issue

What have you done before the problem was there?
I installed a mobile device detector and style.

What have you already tryed to solve the problem?
No

Description and Message
I just want to turn the portal off when my mobile device style is used. When someone accesses my site on a mobile device, I just want it to bring up the forum index and skip the portal all together. However, when someone accesses from a computer or laptop (Full Site), have it continue on with the portal as normal. Can I select which styles use the portal and which do not?

Re: Turn the portal on for specific styles

Posted: 24. March 2014 17:32
by Kirk
Hi
Open: root/portal.php
Find:

Code: Select all

$user->setup('mods/portal');
Add after:

Code: Select all

if(defined('MOBILE_STYLE'))
{
redirect(append_sid('index.php'));
}
Who calls the forum on mobile device , redirect to Board index