Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,622
    Plugin Contributions
    123

    Default Important Links (EZ Pages) in mobile view from hamburger menu

    includes/templates/responsive_classic/templates/tpl_modules_mobile_menu.php line 128 in 1.5.5e or 1.5.5f does

    Code:
    include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_header.php'));
    I believe this is an error and that the code should read

    Code:
    include(DIR_WS_MODULES . zen_get_module_directory('ezpages.php'));
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,668
    Plugin Contributions
    11

    Default Re: Important Links (EZ Pages) in mobile view from hamburger menu

    @swguy...

    i do not think so.... what makes you think that is wrong?

    i'm running earlier versions of 1.5.5 and i see all code refer to what you think is wrong.

    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,622
    Plugin Contributions
    123

    Default Re: Important Links (EZ Pages) in mobile view from hamburger menu

    You're replicating sidebox functionality here in a mobile environment. Why would you not use the code that builds the sidebox list of ezpages?

    OTOH, who knows, maybe what you really want is a new module that selects for

    Code:
    select * from " . TABLE_EZPAGES . " where 
    (status_sidebox = 1 and sidebox_sort_order > 0) OR 
    (status_header = 1 and header_sort_order > 0) OR 
    (status_footer = 1 and footer_sort_order > 0)
    ... but then the ordering would be complicated. Not sure what the best option is.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,668
    Plugin Contributions
    11

    Default Re: Important Links (EZ Pages) in mobile view from hamburger menu

    @swguy, i'm still not convinced....

    the code is:

    PHP Code:
    <?php
      
    include(DIR_WS_MODULES zen_get_module_directory('ezpages_bar_header.php'));
      if (
    sizeof($var_linksList) >= 1) {
        for (
    $i=1$n=sizeof($var_linksList); $i<=$n$i++) {
          echo 
    '<li><a href="' $var_linksList[$i]['link'] . '">' $var_linksList[$i]['name'] . '</a></li>' "\n";
        }
      }
    ?>
    the line that you think is wrong, just does an include of a script. that script is located here:

    https://github.com/zencart/zencart/b...bar_header.php

    and it looks like the reason for the script is to create the variable:

    $var_linksList

    which is the subject of the next if statement listed above.

    your line would do something completely different as it would include the sideboxes module. and i'm not sure that is what is intended.

    i could be wrong....
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  5. #5
    Join Date
    May 2006
    Location
    Montana
    Posts
    291
    Plugin Contributions
    20

    Default Re: Important Links (EZ Pages) in mobile view from hamburger menu

    I know this is an old thread but thought it might be helpful to others to know in case they find this thread like I did searching for a solution.

    I noticed my EZ pages were not showing up in a 1.5.6C site I just upgraded, and once I applied the code Scott provided below, I was able to see them.

    Hope this helps someone. Thanks Scott for the info! Worked great!

    Quote Originally Posted by swguy View Post
    includes/templates/responsive_classic/templates/tpl_modules_mobile_menu.php line 128 in 1.5.5e or 1.5.5f does

    Code:
    include(DIR_WS_MODULES . zen_get_module_directory('ezpages_bar_header.php'));
    I believe this is an error and that the code should read

    Code:
    include(DIR_WS_MODULES . zen_get_module_directory('ezpages.php'));

  6. #6
    Join Date
    Feb 2009
    Location
    atlanta GA
    Posts
    274
    Plugin Contributions
    0

    Default Re: Important Links (EZ Pages) in mobile view from hamburger menu

    Quote Originally Posted by stellarweb View Post
    I know this is an old thread but thought it might be helpful to others to know in case they find this thread like I did searching for a solution.

    I noticed my EZ pages were not showing up in a 1.5.6C site I just upgraded, and once I applied the code Scott provided below, I was able to see them.

    Hope this helps someone. Thanks Scott for the info! Worked great!
    This is old and i know its probably common knowledge at this point. But i just upgraded my test site from 1.5.5f to 1.5.6c and was just about to sign off on the real upgrade when i noticed that those links where not showing on mobile as well. Thank you so much for this. I was going through and undoing any changes i made to try to remove the home footer button in hopes to fix anything i might have messed up. Your post saved me so much time !
    Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online www.missingcord.com

  7. #7
    Join Date
    Feb 2009
    Location
    atlanta GA
    Posts
    274
    Plugin Contributions
    0

    Default Re: Important Links (EZ Pages) in mobile view from hamburger menu

    And celebrated to soon i guess. I get my links showing in mobile under important links. But now I am getting mydebug errors for the

    PHP Warning: include(): Failed opening 'includes/modules/ezpages.php' for inclusion (include_path='.:') in /domain.com/includes/templates/responsive_classic_v1/templates/tpl_modules_mobile_menu.php on line 128.
    Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online www.missingcord.com

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,622
    Plugin Contributions
    123

    Default Re: Important Links (EZ Pages) in mobile view from hamburger menu

    If you compare includes/templates/responsive_classic/templates/tpl_modules_mobile_menu.php in 1.5.6c to 1.5.5f, you'll notice this change was not included. :)

    Not sure what I was thinking. includes/modules/ezpages.php is not even a core file.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #9
    Join Date
    Feb 2009
    Location
    atlanta GA
    Posts
    274
    Plugin Contributions
    0

    Default Re: Important Links (EZ Pages) in mobile view from hamburger menu

    Hey , i appreciate you trying to help us mere mortals here. I deleted the test site because i got discouraged. I think I might try again later tonight. In any event Thank you , thank you. If not for people like you , non coders like me would have given up a long time ago.
    Zencart 1.5.6c PHP 7.2 Order Replacement AC Adapters and Power Cords Online www.missingcord.com

  10. #10
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,622
    Plugin Contributions
    123

    Default Re: Important Links (EZ Pages) in mobile view from hamburger menu

    There's a new post on this topic where I showed an alternative solution:
    https://www.zen-cart.com/showthread....assic-template
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 TIP: Customizing 3 Bar (hamburger) menu color for your mobile
    By pixelpadre in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Mar 2020, 12:53 AM
  2. v150 Adding links to footer 'Important Links' box
    By gwyllion in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Jul 2012, 05:29 PM
  3. EZ Pages links in Information instead of Important links?
    By ddye in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Mar 2011, 04:30 PM
  4. How to change font size on links in Important Links side box (EZpages)??
    By Argyle in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 18 Jun 2010, 07:37 AM
  5. Mobile friendly & Adding links to pictures in EZ Pages
    By salib in forum General Questions
    Replies: 5
    Last Post: 22 Apr 2010, 02:11 AM

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