Page 15 of 96 FirstFirst ... 513141516172565 ... LastLast
Results 141 to 150 of 953
  1. #141
    Join Date
    Apr 2014
    Posts
    154
    Plugin Contributions
    0

    Default Re: Winchester Responsive

    Quote Originally Posted by rbarbour View Post
    The reason it was not working is because it was looking for a $_SESSION on page load which did not exist, I fixed that!

    Now the php-detect class renders the proper responsive files on page load and YES, sets the $_SESSION after a link is clicked.

    My fix will be added to the update of the DIY Responsive Template Default for v1.5.x package, Anne may use or choose to go your route or any other as she sees fit. Just looking at what you provided, I'm sure it works but have not tested.
    Got it. Just wanted to mention the fix in case anyone was developing a site and depended on the switches to test the layouts. Just did not want anyone to waste their development time to only find out later they were not modifying the correct files.

    A note to Anne is that the fix you implemented has not solved the switches. The demo site looks like it is using the updated version you submitted, but if you were to use the switches on the homepage, it will not work. The files being pulled are static. If you don't have the fix from rbarour, you can use the workaround I posted above by including the session is blank and it will now allow the switches to change display. I have tested it this and works fine.

    And your templates are top notch that is very user friendly for customers and shop owners.

  2. #142
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Winchester Responsive

    The code below from post #115 is correct, works as intended and should be the ONLY code used. Using alternate code will only make future template upgrades that more difficult.

    I personally updated the php-mobile-detect code within the html_header.php file of this DEMO first time around and did not inform Anne it should also be replaced in any file she used the php-mobile-detect code to call device specific code, my apologies.

    I have just updated the rest of this DEMOS php-mobile-detect code and tested. I am confident that as soon as time permits, Anne will resubmit!

    Again, my apologies.

    Anne, my hat is off to you, this template is truly a masterpiece and most definitely the next generation of Zen Cart responsive templates.

    Code:
    if ($detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {
    
        echo $responsive_mobile;
    
    } else if ($detect->isTablet() or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){
    
        echo $responsive_tablet;
    
    } else if ($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){
    
        echo '';
    
    } else {
    
        echo $responsive_default;
    
      }
    Last edited by rbarbour; 19 May 2014 at 10:22 PM.

  3. #143
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Winchester Responsive

    Quote Originally Posted by rbarbour View Post
    The code below from post #115 is correct, works as intended and should be the ONLY code used. Using alternate code will only make future template upgrades that more difficult.

    I personally updated the php-mobile-detect code within the html_header.php file of this DEMO first time around and did not inform Anne it should also be replaced in any file she used the php-mobile-detect code to call device specific code, my apologies.

    I have just updated the rest of this DEMOS php-mobile-detect code and tested. I am confident that as soon as time permits, Anne will resubmit!

    Again, my apologies.

    Anne, my hat is off to you, this template is truly a masterpiece and most definitely the next generation of Zen Cart responsive templates.

    Code:
    if ($detect->isMobile() && !$detect->isTablet() or $detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile') {
    
        echo $responsive_mobile;
    
    } else if ($detect->isTablet() or $detect->isMobile() && $_SESSION['display_mode']=='isTablet' or $detect->isTablet() && $_SESSION['display_mode']=='isTablet' or $_SESSION['display_mode']=='isTablet'){
    
        echo $responsive_tablet;
    
    } else if ($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $detect->isTablet() && $_SESSION['display_mode']=='isDesktop' or $_SESSION['display_mode']=='isNonResponsive'){
    
        echo '';
    
    } else {
    
        echo $responsive_default;
    
      }
    rbarbour, thank you so much for your help with this! The php mobile detect should be working 100% now thanks to the edits made by rbarbour

    I am in the process of packaging up all of the changes and other found bugs and will be submitting an update later today.


    Thanks,

    Anne

  4. #144
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Winchester Responsive

    Quote Originally Posted by picaflor-azul View Post
    I am in the process of packaging up all of the changes and other found bugs and will be submitting an update later today.
    If it's not too late, may I suggest a small addition.. in the "includes/templates/winchester_responsive/templates/tpl_modules_mobile_categories_tabs.php" file add an admin control for turning the EZ Pages menu item on or off.. Not adding pages to the menu is not enough to stop the dropdown from appearing..

    Code:
           <?php if (SHOW_EZ_PAGES_MENU == 'true') { ?>
        <li><a href="#"><?php echo TITLE_EZ_PAGES; ?></a>
        <ul>
      <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
        </ul>
        </li>
          <?php } ?>
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #145
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Winchester Responsive

    Quote Originally Posted by DivaVocals View Post
    If it's not too late, may I suggest a small addition.. in the "includes/templates/winchester_responsive/templates/tpl_modules_mobile_categories_tabs.php" file add an admin control for turning the EZ Pages menu item on or off.. Not adding pages to the menu is not enough to stop the dropdown from appearing..

    Code:
           <?php if (SHOW_EZ_PAGES_MENU == 'true') { ?>
        <li><a href="#"><?php echo TITLE_EZ_PAGES; ?></a>
        <ul>
      <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
        </ul>
        </li>
          <?php } ?>
    Ok, I will take a look at this, thank you for the suggestion. I will also be fixing the mobile menu (I hope ;) before submitting the update.

    Thanks,

    Anne

  6. #146
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Winchester Responsive

    Quote Originally Posted by DivaVocals View Post
    If it's not too late, may I suggest a small addition.. in the "includes/templates/winchester_responsive/templates/tpl_modules_mobile_categories_tabs.php" file add an admin control for turning the EZ Pages menu item on or off.. Not adding pages to the menu is not enough to stop the dropdown from appearing..

    Code:
           <?php if (SHOW_EZ_PAGES_MENU == 'true') { ?>
        <li><a href="#"><?php echo TITLE_EZ_PAGES; ?></a>
        <ul>
      <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
        </ul>
        </li>
          <?php } ?>
    I tried to incorporate this switch, adding the constant to the database and it does turn on and off the ezpages in the header menu, but when turned on it is not showing the ezpages marked as on in the header with a sort order.

    Thanks,

    Anne

  7. #147
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Winchester Responsive

    Quote Originally Posted by picaflor-azul View Post
    I tried to incorporate this switch, adding the constant to the database and it does turn on and off the ezpages in the header menu, but when turned on it is not showing the ezpages marked as on in the header with a sort order.

    Thanks,

    Anne
    Disregard this post, I think I have it working now ;)

    Thanks,

    Anne

  8. #148
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Winchester Responsive

    Quote Originally Posted by picaflor-azul View Post
    Disregard this post, I think I have it working now ;)

    Thanks,

    Anne
    Cool!!!
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  9. #149
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Winchester Responsive

    I just submitted an update with these changes:

    05/27/2014------Added admin control for turning the EZ Pages menu item on or off in includes/templates/winchester_responsive/templates/tpl_modules_mobile_categories_tabs.php

    05/27/2014------Added includes/templates/winchester_responsive/css/responsive.css div#mobile-nav1.hidenav1 {display:none;}

    05/27/2014------Fixed class "onerow-fluids" includes/templates/winchester_responsive/common/tpl_footer.php, includes/templates/winchester_responsive/common/tpl_header.php, includes/templates/winchester_responsive/common/tpl_header_mobile.php, includes/templates/winchester_responsive/common/tpl_header_tablet.php, includes/templates/winchester_responsive/common/tpl_main_page.php

    05/27/2014------Added code to exclude main image and additional image popups from being responsive /includes/templates/winchester_responsive/common/html_header.php

    05/27/2014------Fixed php mobile detect script includes/templates/winchester_responsive/templates/tpl_modules_mobile_categories_tabs.php

    05/27/2014------Fixed php mobile detect script includes/templates/winchester_responsive/common/tpl_main_page.php

    Thanks,

    Anne

  10. #150
    Join Date
    Apr 2014
    Location
    Bronx, New York, United States
    Posts
    83
    Plugin Contributions
    0

    Default Re: Winchester Responsive

    hi... i want copy only header from (westmister_new) to this template please help .. i want add this header to this template Name:  Screenshot_2.jpg
Views: 559
Size:  12.0 KB (this header From westmister_new template )

 

 
Page 15 of 96 FirstFirst ... 513141516172565 ... LastLast

Similar Threads

  1. v154 Winchester Black Responsive Template
    By picaflor-azul in forum Addon Templates
    Replies: 497
    Last Post: 24 Apr 2023, 09:29 PM
  2. v155 Winchester Black responsive - looking for Social media icon flexible footer fix
    By MattA66 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 8 Jun 2021, 05:34 PM
  3. v155 Responsive Classic vs Responsive Sheffield Blue vs ?
    By Zean in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 May 2016, 07:01 AM
  4. v154 Where do I find the images for sliders, using Winchester Responsive Black
    By zbdude in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Apr 2016, 12:00 AM
  5. v153 Winchester Responsive - Trouble resizing carousel size?
    By hols.club in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Nov 2014, 05:09 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