Page 4 of 4 FirstFirst ... 234
Results 31 to 32 of 32
  1. #31
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: EZPages not showing in mobile using responsive classic template

    Quote Originally Posted by barco57 View Post
    showing of ez-pages in the mobile menu work like this.

    tpl_modules_mobile_menu.php calls include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_header.php'));
    In the ezpage_bar-header.php file it checks the if it should dispaly
    Code:
    // test if bar should display:
    if (EZPAGES_STATUS_HEADER == '1' || (EZPAGES_STATUS_HEADER == '2' && (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) {
    So ezpages status header need to be enabled to cause it to populate the ezpage link list so that tpl_modules_mobile_menu.php can display it...
    It is a stupid design, but I get around the display of the ezpaze header links on the desktop version by ripping the code for it out of common/tpl_header.php if I am not going to be using it.
    Code:
    <!--bof header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php   require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof header ezpage links-->
    THANKS MIKE,

    Removing that code seems to have fixed the issue.

    It's above my paygrade to understand why the fix for zc158 did not have any effect, but at least now our customers have access to the appropriate pages when using mobile devices.
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  2. #32
    Join Date
    May 2022
    Location
    Canada
    Posts
    19
    Plugin Contributions
    0

    Default Re: EZPages not showing in mobile using responsive classic template

    Quote Originally Posted by RixStix View Post
    THANKS MIKE,

    Removing that code seems to have fixed the issue.

    It's above my paygrade to understand why the fix for zc158 did not have any effect, but at least now our customers have access to the appropriate pages when using mobile devices.
    I didn't get this part, however if you modify ezpages_bar_header.php to have these:
    AND e.status_header = 1
    AND e.header_sort_order > 0

    to be replaced with:

    AND e.status_sidebox = 1
    AND e.sidebox_sort_order > 0

    there will be an issue that the EZ pages will show up in header of your website in Desktop mode.
    Instead, I went to Admin ->Configuration -> EZ pages Setting and then disabled the header, then I went to admin->Tools-> EZ pages and set SideBox and Header both to YES and gave them a positive order number, in this case, it wont show up in Desktop Mode in the header, instead it'll show up in sidebox , also it will show up in Mobile Mode.
    So, you don't need to modify the codes.

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. v155 Method to show only subcategories in mobile menu Responsive Classic Stock 1.55f
    By twitchtoo in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 23 Oct 2020, 08:40 PM
  2. v156 How to Enable Mobile Menu (Jquery mmenu) on Desktop Layout of Responsive Classic?
    By RobertH in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 20 Jun 2019, 03:45 PM
  3. v155 ? on Customizing Responsive-Classic template v1.5.5f
    By byakudan in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 21 Oct 2018, 10:34 AM
  4. v155 Classic Responsive Template - file permissions
    By karine in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Jun 2018, 03:54 PM
  5. v155 Recommended Image Sizes using Responsive Classic?
    By Zean in forum Basic Configuration
    Replies: 4
    Last Post: 18 May 2016, 01:56 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR