Page 1 of 2 12 LastLast
Results 1 to 10 of 1514

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Responsive Sheffield Blue V 2.0!

    Quote Originally Posted by brittainmark View Post
    Hi Anne, Just started working with your excellent template. Think I have found out what is happening with the tabs. It appears that if the tab has no content then the section is not displayed which causes the Java script to fail. I simply removed the if statement and all works fine now. (just after the "<!-- bof:" and just before the "<!--eof:" statements.
    Before
    PHP Code:
    <!-- bof: specials -->
    <?php if ($zc_show_specials == true) { ?>

                    <section id="section-3">
    <div class="centerBoxWrapper" id="specialsDefault">
    <?php
    /**
     * require the columnar_display template to show the products
     */
      
    require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/tpl_columnar_display.php');
    ?>
    </div>
    </section>

    <?php ?>
    <!-- eof: specials -->
    After
    PHP Code:
    <!-- bof: specials -->

                    <section id="section-3">
    <div class="centerBoxWrapper" id="specialsDefault">
    <?php
    /**
     * require the columnar_display template to show the products
     */
      
    require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/tpl_columnar_display.php');
    ?>
    </div>
    </section>


    <!-- eof: specials -->
    if you remove these lines from the three template files tpl_modules_specials_default.php, tpl_modules_featured_products.php, tpl_modules_whats_new.php, in "includes\templates\responsive_sheffield_blue\templates\" All works fine. (not live yet. Soon hopefully)
    While a good catch (seeing that the javascript fails and finding that the code is trying to act on something that is not on screen) the solution is somewhat bass ackwards... The javascript displayed/sent to the browser should be modified to account for the program controlled non-display of those sections rather than forcing those sections of code to display undesirably.

    Javascript is something like an addon to html... If the base page display should be as desired without javascript and then javascript actions/code to build off of it. If there is javascript referencing html that was hidden/not displayed, then that javascript shouldn't be there to reference a non-existent portion of the page.
    .
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: Responsive Sheffield Blue V 2.0!

    Quote Originally Posted by mc12345678 View Post
    While a good catch (seeing that the javascript fails and finding that the code is trying to act on something that is not on screen) the solution is somewhat bass ackwards... The javascript displayed/sent to the browser should be modified to account for the program controlled non-display of those sections rather than forcing those sections of code to display undesirably.

    Javascript is something like an addon to html... If the base page display should be as desired without javascript and then javascript actions/code to build off of it. If there is javascript referencing html that was hidden/not displayed, then that javascript shouldn't be there to reference a non-existent portion of the page.
    .
    If you have another suggestion, please post it

    Thanks,

    Anne

  3. #3
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Responsive Sheffield Blue V 2.0!

    Quote Originally Posted by brittainmark View Post
    Hi Anne, Just started working with your excellent template. Think I have found out what is happening with the tabs. It appears that if the tab has no content then the section is not displayed which causes the Java script to fail. I simply removed the if statement and all works fine now. (just after the "<!-- bof:" and just before the "<!--eof:" statements.
    Before
    PHP Code:
    <!-- bof: specials -->
    <?php if ($zc_show_specials == true) { ?>

                    <section id="section-3">
    <div class="centerBoxWrapper" id="specialsDefault">
    <?php
    /**
     * require the columnar_display template to show the products
     */
      
    require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/tpl_columnar_display.php');
    ?>
    </div>
    </section>

    <?php ?>
    <!-- eof: specials -->
    After
    PHP Code:
    <!-- bof: specials -->

                    <section id="section-3">
    <div class="centerBoxWrapper" id="specialsDefault">
    <?php
    /**
     * require the columnar_display template to show the products
     */
      
    require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE$current_page_base,'common'). '/tpl_columnar_display.php');
    ?>
    </div>
    </section>


    <!-- eof: specials -->
    if you remove these lines from the three template files tpl_modules_specials_default.php, tpl_modules_featured_products.php, tpl_modules_whats_new.php, in "includes\templates\responsive_sheffield_blue\templates\" All works fine. (not live yet. Soon hopefully)
    Quote Originally Posted by mc12345678 View Post
    While a good catch (seeing that the javascript fails and finding that the code is trying to act on something that is not on screen) the solution is somewhat bass ackwards... The javascript displayed/sent to the browser should be modified to account for the program controlled non-display of those sections rather than forcing those sections of code to display undesirably.

    Javascript is something like an addon to html... If the base page display should be as desired without javascript and then javascript actions/code to build off of it. If there is javascript referencing html that was hidden/not displayed, then that javascript shouldn't be there to reference a non-existent portion of the page.
    .
    Finally had a chance to revisit this...

    To whom it may concern: Does/did the issue only occur if no such tabs are displayed (no featured, special nor new products), or does it occur if any one of the three tabs are not displayed when using the original code? (The sample site shows two tabs active on the main page, but does not appear to have a javascript error.)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jun 2014
    Posts
    157
    Plugin Contributions
    0

    Default Re: Responsive Sheffield Blue V 2.0!

    Quote Originally Posted by mc12345678 View Post
    Finally had a chance to revisit this...

    To whom it may concern: Does/did the issue only occur if no such tabs are displayed (no featured, special nor new products), or does it occur if any one of the three tabs are not displayed when using the original code? (The sample site shows two tabs active on the main page, but does not appear to have a javascript error.)
    The issue occurs, for example, if in admin>index listing "Show Specials on Main Page" is set to a positive value AND no specials products exist. In tpl_modules_specials_default.php $zc_show_specials is tested, which seems to be true, even if not any special product actually exists. I guess $zc_show_specials is from specials_index.php and seems to be true if $specials_index->RecordCount() > 0, even if no record exists .

    The same for new and featured products.

    The advantage of brittainmark's solution is that there is no need to change the admin settings (new, featured, specials) according to their existence. The disadvantage (a tab is present, even when empty) is acceptable.

    Cheers,

    jpda

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Responsive Sheffield Blue V 2.0!

    Quote Originally Posted by jpda View Post
    The issue occurs, for example, if in admin>index listing "Show Specials on Main Page" is set to a positive value AND no specials products exist. In tpl_modules_specials_default.php $zc_show_specials is tested, which seems to be true, even if not any special product actually exists. I guess $zc_show_specials is from specials_index.php and seems to be true if $specials_index->RecordCount() > 0, even if no record exists .

    The same for new and featured products.

    The advantage of brittainmark's solution is that there is no need to change the admin settings (new, featured, specials) according to their existence. The disadvantage (a tab is present, even when empty) is acceptable.

    Cheers,

    jpda
    Up front, I'm fine with agreeing to disagree... I find as a customer to other stores that it is almost aggravating that such an option is shown but there is nothing there. In some cases makes me wonder if there is something wrong with my computer/setup because obviously why would a store show an option like that when there is nothing there and it even allows clicking/selecting the tab but nothing happens when clicked? A number of other things come to mind as well.

    I guess I'm going to have to setup another template site with this installed to test it out... Seemed to me in only review of the code that it was only an issue if none of them were displayed... May require a modification to the javascript or one or more of the template files, but if nothing else, a feature was "added" to block the display of the tab, only unfortunately it is not currently compatible with another add-on to the template...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jun 2014
    Posts
    157
    Plugin Contributions
    0

    Default Re: Responsive Sheffield Blue V 2.0!

    Quote Originally Posted by mc12345678 View Post
    Up front, I'm fine with agreeing to disagree... I find as a customer to other stores that it is almost aggravating that such an option is shown but there is nothing there. In some cases makes me wonder if there is something wrong with my computer/setup because obviously why would a store show an option like that when there is nothing there and it even allows clicking/selecting the tab but nothing happens when clicked? A number of other things come to mind as well.

    I guess I'm going to have to setup another template site with this installed to test it out... Seemed to me in only review of the code that it was only an issue if none of them were displayed... May require a modification to the javascript or one or more of the template files, but if nothing else, a feature was "added" to block the display of the tab, only unfortunately it is not currently compatible with another add-on to the template...
    I agree! My point was 'acceptable compared to the alternative', i.e. having the js problem whenever one of the new, specials or featured are empty (which occurs automatically w/o notice). The best solution is to change the test in the tpl_modules_*_php files and only show the meaningful tabs.
    On the other hand, the links to new, featured and specials in info boxes or footer are always visible (once being activated), whether such products exist or not.

    unfortunately it is not currently compatible with another add-on
    Any idea which add-on could be incompatible?

    Cheers,

    jpda

  7. #7
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Responsive Sheffield Blue V 2.0!

    Quote Originally Posted by jpda View Post
    I agree! My point was 'acceptable compared to the alternative', i.e. having the js problem whenever one of the new, specials or featured are empty (which occurs automatically w/o notice). The best solution is to change the test in the tpl_modules_*_php files and only show the meaningful tabs.
    On the other hand, the links to new, featured and specials in info boxes or footer are always visible (once being activated), whether such products exist or not.


    Any idea which add-on could be incompatible?

    Cheers,

    jpda
    Gotcha, agree, needs to work. The "add-on" that seems to be the issue in regards to these three tabs seems to be includes/templates/responsive_sheffield_blue/jscript/cbpFWTabs.js

    Either when it is initially called in includes/templates/responsive_sheffield_blue/templates/tpl_index_default.php or in the code of the javascript. Either the javascript shouldnotbe shown/loaded at all, or if loaded should not cause issues if something else was purposefully missing. See javascript is an added feature. If the customer/guest were to access the site with javascript disabled, then one would expect that everything should work. It may not look as pretty, but it should still work... Then when the javascript is added it should not then prevent operation but instead slip intoo the mix... But sometimes little things don't quite work as expected or they are modified beyond original intent. Can't get it all every time. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #8
    Join Date
    Jun 2014
    Posts
    157
    Plugin Contributions
    0

    Default Re: Responsive Sheffield Blue V 2.0!

    Quote Originally Posted by mc12345678 View Post
    Gotcha, agree, needs to work. The "add-on" that seems to be the issue in regards to these three tabs seems to be includes/templates/responsive_sheffield_blue/jscript/cbpFWTabs.js

    Either when it is initially called in includes/templates/responsive_sheffield_blue/templates/tpl_index_default.php or in the code of the javascript. Either the javascript shouldnotbe shown/loaded at all, or if loaded should not cause issues if something else was purposefully missing. See javascript is an added feature. If the customer/guest were to access the site with javascript disabled, then one would expect that everything should work. It may not look as pretty, but it should still work... Then when the javascript is added it should not then prevent operation but instead slip intoo the mix... But sometimes little things don't quite work as expected or they are modified beyond original intent. Can't get it all every time. :)
    Found a rather simple solution:
    In includes\templates\responsive_sheffield_blue\templates\tpl_index_default.php:
    I added these lines (in red):
    Code:
     * Modified by Anne (Picaflor-Azul.com) Responsive Sheffield Blue v1.0 v2.0
     */
      include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_NEW_PRODUCTS));// added jpda
      include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_FEATURED_PRODUCTS_MODULE)); // added jpda
      include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_SPECIALS_INDEX));// added jpda
    
    (I'm not sure if this complies with ZC's rules and regulations, there might be a better way to get $zc_show_featured, $zc_show_specials and $zc_show_new_products?)

    And I added the code in red to these lines: (under //bof module navigation)
    Code:
    while (!$show_display_nav->EOF) {
      switch ($show_display_nav->fields['configuration_key']) {
      case 'SHOW_PRODUCT_INFO_MAIN_FEATURED_PRODUCTS':
        if ($zc_show_featured) echo '<li><a href="section-2" class="icon-shop"><span>' . BOX_HEADING_FEATURED_PRODUCTS . '</span></a></li>'. "\n";
        break;
      case 'SHOW_PRODUCT_INFO_MAIN_SPECIALS_PRODUCTS':
        if ($zc_show_specials) echo '<li><a href="section-3" class="icon-cup"><span>' . BOX_HEADING_SPECIALS . '</span></a></li>'. "\n";
        break;
      case 'SHOW_PRODUCT_INFO_MAIN_NEW_PRODUCTS':
        if ($zc_show_new_products) echo '<li><a href="section-1" class="icon-food"><span>' . BOX_HEADING_WHATS_NEW . '</span></a></li>'. "\n";
        break;
      }
      $show_display_nav->MoveNext();
    }
    Restored the next three files to the original template files from RSB v2.0 :
    includes\templates\responsive_sheffield_blue\templates\tpl_modules_specials_defa ult.php
    includes\templates\responsive_sheffield_blue\templates\tpl_modules_featured_prod ucts.php
    includes\templates\responsive_sheffield_blue\templates\tpl_modules_whats_new.php
    (However, I changed the section id's to be consistent with tpl_index_default.php)

    Only tabs will be shown that actually contain information AND are allowed by settings in admin>index listing.

    Cheers,

    jpda
    Last edited by jpda; 11 Oct 2015 at 09:15 AM.

  9. #9
    Join Date
    Aug 2011
    Posts
    11
    Plugin Contributions
    0

    Default Re: Responsive Sheffield Blue V 2.0!

    I am having some issues with position of the banner in the header slide show. It appears mostly in chrome, not in IE or firefox.
    See the images below.Click image for larger version. 

Name:	IE.jpg 
Views:	107 
Size:	17.6 KB 
ID:	16028Click image for larger version. 

Name:	chrome.jpg 
Views:	102 
Size:	16.0 KB 
ID:	16029

    The images showing the demopage from this template, but I am suffering from it on my own (current local) installation as well.

    But I see other online examples using the same templates who dont.
    http://onlinetest.batterybg.com/fres...ain_page=index

    Any Idea?

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

    Default Re: Responsive Sheffield Blue V 2.0!

    Quote Originally Posted by 2marco View Post
    I am having some issues with position of the banner in the header slide show. It appears mostly in chrome, not in IE or firefox.
    See the images below.Click image for larger version. 

Name:	IE.jpg 
Views:	107 
Size:	17.6 KB 
ID:	16028Click image for larger version. 

Name:	chrome.jpg 
Views:	102 
Size:	16.0 KB 
ID:	16029

    The images showing the demopage from this template, but I am suffering from it on my own (current local) installation as well.

    But I see other online examples using the same templates who dont.
    http://onlinetest.batterybg.com/fres...ain_page=index

    Any Idea?
    When I try your site I get a 403 error.

    Thanks,

    Anne

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Responsive Sheffield Blue v1.0
    By picaflor-azul in forum Addon Templates
    Replies: 1159
    Last Post: 23 Apr 2023, 01:20 AM
  2. 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
  3. v154 Responsive Sheffield Blue change menu links
    By Annie_zaz in forum Addon Templates
    Replies: 3
    Last Post: 7 May 2016, 11:33 PM
  4. v154 Responsive Sheffield Blue v.2.0 Pricing not showing
    By SilverHD in forum Addon Templates
    Replies: 13
    Last Post: 4 Nov 2015, 10:57 PM
  5. v154 Questions re: Responsive Sheffield Blue
    By dfontana in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Aug 2015, 02:43 AM

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