Turn the portal on for specific styles

Current Version: 2.0.2
Released: 2013-10-27
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
usafbran
Active Member
Posts: 4
Joined: 23. March 2014 21:56
phpBB.com User: usafbran

Turn the portal on for specific styles

Post 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?
User avatar

Kirk
Dev
Posts: 1936
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: Turn the portal on for specific styles

Post 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
Gruß Udo
Locked

Return to “Board3 Portal 2.0.x - English Support”