EzPortal - Portal Software for Forums

EzPortal - Made to Fit Your SMF Forum - Glad You Found Us!
+- +-

UserBox

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Recent Posts

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Re: Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 02:09:24 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:55:53 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 01:47:42 pm

Re: Theme Select Box question? by Shades
March 09, 2023, 01:34:07 pm

Re: Theme Select Box question? by EzPortal
March 09, 2023, 12:20:17 pm

Re: Theme Select Box question? by EzPortal
March 02, 2023, 11:26:15 pm

+- HTML Menu


Sample HTML Block Usage - You May Custom Code it, as needed!

Recent Topics ezBlock

Smiley missing in shoutbox 2.1.4 by hustreamload
July 26, 2023, 08:14:02 am

Theme Select Box question? by Shades
March 15, 2023, 06:49:49 pm

Where is the facebook button color? by EzPortal
February 28, 2023, 06:45:09 pm

Display on Mobile - SMF 2.1.3 and EZ 5.5.2 by BugginIn
December 29, 2022, 04:07:13 pm

Blocks Help by Riggs1973
November 20, 2022, 12:59:30 pm

Surface ol lite theme release Free! by Steffen K.
November 18, 2022, 03:57:24 am

Undefined index: href by EzPortal
October 04, 2022, 08:49:59 pm

SMF-ezportal_column_5.cache): failed to open stream: No such file or directory by EzPortal
June 04, 2022, 11:40:13 am

Arcade block error: failed to open stream: No such file or directory by Shades
May 20, 2022, 02:47:13 pm

ezPortal 5.5 by EzPortal
May 20, 2022, 09:59:30 am

Author Topic: EZ Portal blank index on SMF4Mobile theme  (Read 8301 times)

0 Members and 1 Guest are viewing this topic.

Offline yameth

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
  • Gender: Male
EZ Portal blank index on SMF4Mobile theme
« on: April 04, 2016, 07:06:29 am »
Hi there!
I am running EZ Portal on SMF 2.0.11 and SMF4Mobile theme.
My problem is that on the mobile theme the index page is blank. This happened after installing EZ Portal.
It shows only the menu items. No forum categories or latest posts as it is supossed to.
Any ideas what might be causing this on the index?

Thanks.

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1298
  • Karma: 67
Re: EZ Portal blank index on SMF4Mobile theme
« Reply #1 on: April 04, 2016, 07:08:28 am »
Make sure for each ezblock that the "Hide on mobile devices" is not checked.
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline yameth

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
  • Gender: Male
Re: EZ Portal blank index on SMF4Mobile theme
« Reply #2 on: April 04, 2016, 08:27:10 am »
I'm sorry I don't follow.
The only relevant option I see is : "Disable ezPortal for mobile devices based on user agent" at Settings. (which is checked)

By the way, see attached screenshot.

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1298
  • Karma: 67
Re: EZ Portal blank index on SMF4Mobile theme
« Reply #3 on: April 04, 2016, 10:50:25 pm »
Quick fix in index.php try the following

Find
Code: [Select]
// EzPortal
global $ezpSettings;
if ($ezpSettings['ezp_portal_enable'] == 1 && empty($board) && empty($topic))
{
require_once($sourcedir . '/EzPortal2.php');
return 'EzPortalForumHomePage';
}


Change to
Code: [Select]
// EzPortal
global $ezpSettings;
if ($ezpSettings['ezp_portal_enable'] == 1 && empty($board) && empty($topic))
{


    if (!empty($ezpSettings['ezp_disablemobiledevices']))
    {

    $user_agents = array(
array('iPhone', 'iphone'),
array('iPod', 'ipod'),
array('PocketIE', 'iemobile'),
array('Opera Mini', isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA'])),
array('Opera Mobile', 'Opera Mobi'),
array('Android', 'android'),
array('Symbian', 'symbian'),
array('BlackBerry', 'blackberry'),
array('BlackBerry Storm', 'blackberry05'),
array('Palm', 'palm'),
array('Web OS', 'webos'),
);

foreach ($user_agents as $ua)
{
$string = $ua[1];
if ((is_bool($string) && $string == true) || (strpos(strtolower($_SERVER['HTTP_USER_AGENT']), $string)))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}

}
    }


require_once($sourcedir . '/EzPortal2.php');
return 'EzPortalForumHomePage';
}
      
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/
Like Like x 1 View List

Offline yameth

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
  • Gender: Male
Re: EZ Portal blank index on SMF4Mobile theme
« Reply #4 on: April 05, 2016, 02:35:22 am »
Thank you!
It worked.

Offline yameth

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
  • Gender: Male
Re: EZ Portal blank index on SMF4Mobile theme
« Reply #5 on: May 23, 2016, 11:14:33 am »
Hi, it's me again!  8)
The fix worked for mobiles but not iPad. It is a terrible mess as you can see on the attachment, with the right column showing.
I would be very grateful if we can do something about it.

Offline EzPortal

  • Administrator
  • *****
  • Posts: 1298
  • Karma: 67
Re: EZ Portal blank index on SMF4Mobile theme
« Reply #6 on: May 23, 2016, 11:51:50 am »
Just add ipad to the list after
array('iPod', 'ipod'),
Like ezPortal? Support me at https://www.patreon.com/vbgamer45/

Offline yameth

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
  • Gender: Male
Re: EZ Portal blank index on SMF4Mobile theme
« Reply #7 on: May 24, 2016, 02:04:25 am »
Thanks for the tip.
I tried it. The mobile theme has the same problem on iPad and iPad mini.
In addition the full site theme displays 3 columns (adding the main forum column in the middle) instead of the 2 selected, making it unreadable, so I removed array('iPad', 'ipad'),.
See attached image.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
7558 Views
Last post April 03, 2009, 12:38:19 am
by Sam
4 Replies
14987 Views
Last post November 15, 2009, 12:59:02 pm
by lumumba
8 Replies
29383 Views
Last post April 06, 2010, 12:45:15 pm
by frost
2 Replies
8316 Views
Last post April 08, 2010, 11:16:26 am
by midorocco
4 Replies
6991 Views
Last post April 21, 2014, 09:25:14 am
by EzPortal

+-SMF Gallery

Quick Menu


Powered by EzPortal