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

Hybrid View

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

    Default Re: Winchester Responsive

    There are quite a few differences between the includes\classes\split_page_results.php file and the default one for Zen Cart v1.5.1.. As there are no code comments present, I am not sure which of these changes are related to one of the bundled modules.. Can you provide some insight as to what the changes are and for which bundled module do they relate to??

    Just taking a guess it looks like these are the some of the changes made.. Not sure if the rest are differences between Zen Cart versions or other changes that are a result of template related mods..

    Lines 44-48
    Code:
        if ($page == 'all') {
          $this->page_all = true;
          $override = $db->Execute($query);
          $max_rows = $override->RecordCount();
        }
    Lines 108-111
    Code:
        if ((!$this->page_all) && ($this->number_of_pages > 1)) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . 'all', $request_type) . '" title=" ' . SHOW_ALL_TITLE . ' ">' . SHOW_ALL_BUTTON . '</a>&nbsp;&nbsp;&nbsp;&nbsp;';
        elseif ($this->page_all) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters, $request_type) . '" title=" ' . SHOW_PAGEVIEW_TITLE . ' ">' . SHOW_PAGEVIEW_BUTTON . '</a>&nbsp;&nbsp;';
    Lines 125-132
    Code:
        // page nn button - visa inte om alla sidor visas
        if (!$this->page_all) {
        for ($jump_to_page = 1 + (($cur_window_num - 1) * $max_page_links); ($jump_to_page <= ($cur_window_num * $max_page_links)) && ($jump_to_page <= $this->number_of_pages); $jump_to_page++) {
          if ($jump_to_page == $this->current_page_number) {
            $display_links_string .= '&nbsp;<strong class="current">' . $jump_to_page . '</strong>&nbsp;';
          } else {
            $display_links_string .= '&nbsp;<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . $jump_to_page, $request_type) . '" title=" ' . sprintf(PREVNEXT_TITLE_PAGE_NO, $jump_to_page) . ' ">' . $jump_to_page . '</a>&nbsp;';
          }
    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.

  2. #2
    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
    There are quite a few differences between the includes\classes\split_page_results.php file and the default one for Zen Cart v1.5.1.. As there are no code comments present, I am not sure which of these changes are related to one of the bundled modules.. Can you provide some insight as to what the changes are and for which bundled module do they relate to??

    Just taking a guess it looks like these are the some of the changes made.. Not sure if the rest are differences between Zen Cart versions or other changes that are a result of template related mods..

    Lines 44-48
    Code:
        if ($page == 'all') {
          $this->page_all = true;
          $override = $db->Execute($query);
          $max_rows = $override->RecordCount();
        }
    Lines 108-111
    Code:
        if ((!$this->page_all) && ($this->number_of_pages > 1)) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . 'all', $request_type) . '" title=" ' . SHOW_ALL_TITLE . ' ">' . SHOW_ALL_BUTTON . '</a>########';
        elseif ($this->page_all) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters, $request_type) . '" title=" ' . SHOW_PAGEVIEW_TITLE . ' ">' . SHOW_PAGEVIEW_BUTTON . '</a>####';
    Lines 125-132
    Code:
        // page nn button - visa inte om alla sidor visas
        if (!$this->page_all) {
        for ($jump_to_page = 1 + (($cur_window_num - 1) * $max_page_links); ($jump_to_page <= ($cur_window_num * $max_page_links)) && ($jump_to_page <= $this->number_of_pages); $jump_to_page++) {
          if ($jump_to_page == $this->current_page_number) {
            $display_links_string .= '##<strong class="current">' . $jump_to_page . '</strong>##';
          } else {
            $display_links_string .= '##<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . $jump_to_page, $request_type) . '" title=" ' . sprintf(PREVNEXT_TITLE_PAGE_NO, $jump_to_page) . ' ">' . $jump_to_page . '</a>##';
          }
    The only changes I made to that file are the ones in this post for the view all link. I started from a fresh 1.5.1 version of the file:

    http://www.zen-cart.com/showthread.p...915#post551915



    Thanks,

    Anne

  3. #3
    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
    The only changes I made to that file are the ones in this post for the view all link. I started from a fresh 1.5.1 version of the file:

    http://www.zen-cart.com/showthread.p...915#post551915



    Thanks,

    Anne
    The split_page_results.php file that comes with your template appears to be EXACTLY the same as the one used in that post from 2008.. However, that split_page_results.php file appears to be a MUCH older version of the split_page_results.php file.

    From the top of the file that comes with this template:
    Code:
     * split_page_results Class.
     *
     * @package classes
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: split_page_results.php 3041 2006-02-15 21:56:45Z wilt $
    From the v1.5.1 fileset (just downloaded a FRESH copy of v1.5.1 just to sure..
    Code:
     * split_page_results Class.
     *
     * @package classes
     * @copyright Copyright 2003-2012 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version GIT: $Id: Author: Ian Wilson  Fri Aug 17 17:54:58 2012 +0100 Modified in v1.5.1 $
    Note the year for the file included with this template says 2006 vs 2012 from the v1.5.1 file..
    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.

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

    Default Re: Winchester Responsive

    Quote Originally Posted by DivaVocals View Post
    The split_page_results.php file that comes with your template appears to be EXACTLY the same as the one used in that post from 2008.. However, that split_page_results.php file appears to be a MUCH older version of the split_page_results.php file.

    From the top of the file that comes with this template:
    Code:
     * split_page_results Class.
     *
     * @package classes
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: split_page_results.php 3041 2006-02-15 21:56:45Z wilt $
    From the v1.5.1 fileset (just downloaded a FRESH copy of v1.5.1 just to sure..
    Code:
     * split_page_results Class.
     *
     * @package classes
     * @copyright Copyright 2003-2012 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version GIT: $Id: Author: Ian Wilson  Fri Aug 17 17:54:58 2012 +0100 Modified in v1.5.1 $
    Note the year for the file included with this template says 2006 vs 2012 from the v1.5.1 file..
    Looks like the file included is actually a v1.3.8 file.. Here's the v1.5.1 file with the changes incorporated:

    Code:
    <?php
    /**
     * split_page_results Class.
     *
     * @package classes
     * @copyright Copyright 2003-2012 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version GIT: $Id: Author: Ian Wilson  Fri Aug 17 17:54:58 2012 +0100 Modified in v1.5.1 $
     * Modified by Anne (Picaflor-Azul.com) Winchester Respnsive v1.0
     */
    if (!defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
    /**
     * Split Page Result Class
     *
     * An sql paging class, that allows for sql reslt to be shown over a number of pages using  simple navigation system
     * Overhaul scheduled for subsequent release
     *
     * @package classes
     */
    class splitPageResults extends base {
      var $sql_query, $number_of_rows, $current_page_number, $number_of_pages, $number_of_rows_per_page, $page_name;
    
      /* class constructor */
      function splitPageResults($query, $max_rows, $count_key = '*', $page_holder = 'page', $debug = false, $countQuery = "") {
        global $db;
        $max_rows = ($max_rows == '' || $max_rows == 0) ? 20 : $max_rows;
    
        $this->sql_query = preg_replace("/\n\r|\r\n|\n|\r/", " ", $query);
        if ($countQuery != "") $countQuery = preg_replace("/\n\r|\r\n|\n|\r/", " ", $countQuery);
        $this->countQuery = ($countQuery != "") ? $countQuery : $this->sql_query;
        $this->page_name = $page_holder;
    
        if ($debug) {
          echo '<br /><br />';
          echo 'original_query=' . $query . '<br /><br />';
          echo 'original_count_query=' . $countQuery . '<br /><br />';
          echo 'sql_query=' . $this->sql_query . '<br /><br />';
          echo 'count_query=' . $this->countQuery . '<br /><br />';
        }
        if (isset($_GET[$page_holder])) {
          $page = $_GET[$page_holder];
        } elseif (isset($_POST[$page_holder])) {
          $page = $_POST[$page_holder];
        } else {
          $page = '';
        }
    
    // BOF View All Changes 1 of 3
        if ($page == 'all') {
          $this->page_all = true;
          $override = $db->Execute($query);
          $max_rows = $override->RecordCount();
        }
    // EOF View All Changes 1 of 3
    
        if (empty($page) || !is_numeric($page)) $page = 1;
        $this->current_page_number = $page;
    
        $this->number_of_rows_per_page = $max_rows;
    
        $pos_to = strlen($this->countQuery);
    
        $query_lower = strtolower($this->countQuery);
        $pos_from = strpos($query_lower, ' from', 0);
    
        $pos_group_by = strpos($query_lower, ' group by', $pos_from);
        if (($pos_group_by < $pos_to) && ($pos_group_by != false)) $pos_to = $pos_group_by;
    
        $pos_having = strpos($query_lower, ' having', $pos_from);
        if (($pos_having < $pos_to) && ($pos_having != false)) $pos_to = $pos_having;
    
        $pos_order_by = strpos($query_lower, ' order by', $pos_from);
        if (($pos_order_by < $pos_to) && ($pos_order_by != false)) $pos_to = $pos_order_by;
    
        if (strpos($query_lower, 'distinct') || strpos($query_lower, 'group by')) {
          $count_string = 'distinct ' . zen_db_input($count_key);
        } else {
          $count_string = zen_db_input($count_key);
        }
        $count_query = "select count(" . $count_string . ") as total " . substr($this->countQuery, $pos_from, ($pos_to - $pos_from));
        if ($debug) {
          echo 'count_query=' . $count_query . '<br /><br />';
        }
        $count = $db->Execute($count_query);
    
        $this->number_of_rows = $count->fields['total'];
    
        $this->number_of_pages = ceil($this->number_of_rows / $this->number_of_rows_per_page);
    
        if ($this->current_page_number > $this->number_of_pages) {
          $this->current_page_number = $this->number_of_pages;
        }
    
        $offset = ($this->number_of_rows_per_page * ($this->current_page_number - 1));
    
        // fix offset error on some versions
        if ($offset <= 0) { $offset = 0; }
    
        $this->sql_query .= " limit " . ($offset > 0 ? $offset . ", " : '') . $this->number_of_rows_per_page;
      }
    
      /* class functions */
    
      // display split-page-number-links
      function display_links($max_page_links, $parameters = '') {
        global $request_type;
        if ($max_page_links == '') $max_page_links = 1;
    
        $display_links_string = '';
    
        $class = '';
    
        if (zen_not_null($parameters) && (substr($parameters, -1) != '&')) $parameters .= '&';
    // BOF View All Changes 2 of 3
        if ((!$this->page_all) && ($this->number_of_pages > 1)) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . 'all', $request_type) . '" title=" ' . SHOW_ALL_TITLE . ' ">' . SHOW_ALL_BUTTON . '</a>&nbsp;&nbsp;&nbsp;&nbsp;';
        elseif ($this->page_all) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters, $request_type) . '" title=" ' . SHOW_PAGEVIEW_TITLE . ' ">' . SHOW_PAGEVIEW_BUTTON . '</a>&nbsp;&nbsp;';  
    // EOF View All Changes 2 of 3
    
        // previous button - not displayed on first page
        if ($this->current_page_number > 1) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . ($this->current_page_number - 1), $request_type) . '" title=" ' . PREVNEXT_TITLE_PREVIOUS_PAGE . ' ">' . PREVNEXT_BUTTON_PREV . '</a>&nbsp;&nbsp;';
    
        // check if number_of_pages > $max_page_links
        $cur_window_num = intval($this->current_page_number / $max_page_links);
        if ($this->current_page_number % $max_page_links) $cur_window_num++;
    
        $max_window_num = intval($this->number_of_pages / $max_page_links);
        if ($this->number_of_pages % $max_page_links) $max_window_num++;
    
        // previous window of pages
        if ($cur_window_num > 1) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . (($cur_window_num - 1) * $max_page_links), $request_type) . '" title=" ' . sprintf(PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a>';
    
    // BOF View All Changes 3 of 3
        // page nn button - visa inte om alla sidor visas
        if (!$this->page_all) {
        for ($jump_to_page = 1 + (($cur_window_num - 1) * $max_page_links); ($jump_to_page <= ($cur_window_num * $max_page_links)) && ($jump_to_page <= $this->number_of_pages); $jump_to_page++) {
          if ($jump_to_page == $this->current_page_number) {
            $display_links_string .= '&nbsp;<strong class="current">' . $jump_to_page . '</strong>&nbsp;';
          } else {
            $display_links_string .= '&nbsp;<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . $jump_to_page, $request_type) . '" title=" ' . sprintf(PREVNEXT_TITLE_PAGE_NO, $jump_to_page) . ' ">' . $jump_to_page . '</a>&nbsp;';
          }
    // EOF View All Changes 3 of 3
          }
        }
    
        // next window of pages
        if ($cur_window_num < $max_window_num) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . (($cur_window_num) * $max_page_links + 1), $request_type) . '" title=" ' . sprintf(PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a>&nbsp;';
    
        // next button
        if (($this->current_page_number < $this->number_of_pages) && ($this->number_of_pages != 1)) $display_links_string .= '&nbsp;<a href="' . zen_href_link($_GET['main_page'], $parameters . 'page=' . ($this->current_page_number + 1), $request_type) . '" title=" ' . PREVNEXT_TITLE_NEXT_PAGE . ' ">' . PREVNEXT_BUTTON_NEXT . '</a>&nbsp;';
    
        if ($display_links_string == '&nbsp;<strong class="current">1</strong>&nbsp;') {
          return '&nbsp;';
        } else {
          return $display_links_string;
        }
      }
    
      // display number of total products found
      function display_count($text_output) {
        $to_num = ($this->number_of_rows_per_page * $this->current_page_number);
        if ($to_num > $this->number_of_rows) $to_num = $this->number_of_rows;
    
        $from_num = ($this->number_of_rows_per_page * ($this->current_page_number - 1));
    
        if ($to_num == 0) {
          $from_num = 0;
        } else {
          $from_num++;
        }
    
        if ($to_num <= 1) {
          // don't show count when 1
          return '';
        } else {
          return sprintf($text_output, $from_num, $to_num, $this->number_of_rows);
        }
      }
    }
    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. #5
    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
    Looks like the file included is actually a v1.3.8 file.. Here's the v1.5.1 file with the changes incorporated:

    Code:
    <?php
    /**
     * split_page_results Class.
     *
     * @package classes
     * @copyright Copyright 2003-2012 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version GIT: $Id: Author: Ian Wilson  Fri Aug 17 17:54:58 2012 +0100 Modified in v1.5.1 $
     * Modified by Anne (Picaflor-Azul.com) Winchester Respnsive v1.0
     */
    if (!defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
    /**
     * Split Page Result Class
     *
     * An sql paging class, that allows for sql reslt to be shown over a number of pages using  simple navigation system
     * Overhaul scheduled for subsequent release
     *
     * @package classes
     */
    class splitPageResults extends base {
      var $sql_query, $number_of_rows, $current_page_number, $number_of_pages, $number_of_rows_per_page, $page_name;
    
      /* class constructor */
      function splitPageResults($query, $max_rows, $count_key = '*', $page_holder = 'page', $debug = false, $countQuery = "") {
        global $db;
        $max_rows = ($max_rows == '' || $max_rows == 0) ? 20 : $max_rows;
    
        $this->sql_query = preg_replace("/\n\r|\r\n|\n|\r/", " ", $query);
        if ($countQuery != "") $countQuery = preg_replace("/\n\r|\r\n|\n|\r/", " ", $countQuery);
        $this->countQuery = ($countQuery != "") ? $countQuery : $this->sql_query;
        $this->page_name = $page_holder;
    
        if ($debug) {
          echo '<br /><br />';
          echo 'original_query=' . $query . '<br /><br />';
          echo 'original_count_query=' . $countQuery . '<br /><br />';
          echo 'sql_query=' . $this->sql_query . '<br /><br />';
          echo 'count_query=' . $this->countQuery . '<br /><br />';
        }
        if (isset($_GET[$page_holder])) {
          $page = $_GET[$page_holder];
        } elseif (isset($_POST[$page_holder])) {
          $page = $_POST[$page_holder];
        } else {
          $page = '';
        }
    
    // BOF View All Changes 1 of 3
        if ($page == 'all') {
          $this->page_all = true;
          $override = $db->Execute($query);
          $max_rows = $override->RecordCount();
        }
    // EOF View All Changes 1 of 3
    
        if (empty($page) || !is_numeric($page)) $page = 1;
        $this->current_page_number = $page;
    
        $this->number_of_rows_per_page = $max_rows;
    
        $pos_to = strlen($this->countQuery);
    
        $query_lower = strtolower($this->countQuery);
        $pos_from = strpos($query_lower, ' from', 0);
    
        $pos_group_by = strpos($query_lower, ' group by', $pos_from);
        if (($pos_group_by < $pos_to) && ($pos_group_by != false)) $pos_to = $pos_group_by;
    
        $pos_having = strpos($query_lower, ' having', $pos_from);
        if (($pos_having < $pos_to) && ($pos_having != false)) $pos_to = $pos_having;
    
        $pos_order_by = strpos($query_lower, ' order by', $pos_from);
        if (($pos_order_by < $pos_to) && ($pos_order_by != false)) $pos_to = $pos_order_by;
    
        if (strpos($query_lower, 'distinct') || strpos($query_lower, 'group by')) {
          $count_string = 'distinct ' . zen_db_input($count_key);
        } else {
          $count_string = zen_db_input($count_key);
        }
        $count_query = "select count(" . $count_string . ") as total " . substr($this->countQuery, $pos_from, ($pos_to - $pos_from));
        if ($debug) {
          echo 'count_query=' . $count_query . '<br /><br />';
        }
        $count = $db->Execute($count_query);
    
        $this->number_of_rows = $count->fields['total'];
    
        $this->number_of_pages = ceil($this->number_of_rows / $this->number_of_rows_per_page);
    
        if ($this->current_page_number > $this->number_of_pages) {
          $this->current_page_number = $this->number_of_pages;
        }
    
        $offset = ($this->number_of_rows_per_page * ($this->current_page_number - 1));
    
        // fix offset error on some versions
        if ($offset <= 0) { $offset = 0; }
    
        $this->sql_query .= " limit " . ($offset > 0 ? $offset . ", " : '') . $this->number_of_rows_per_page;
      }
    
      /* class functions */
    
      // display split-page-number-links
      function display_links($max_page_links, $parameters = '') {
        global $request_type;
        if ($max_page_links == '') $max_page_links = 1;
    
        $display_links_string = '';
    
        $class = '';
    
        if (zen_not_null($parameters) && (substr($parameters, -1) != '&')) $parameters .= '&';
    // BOF View All Changes 2 of 3
        if ((!$this->page_all) && ($this->number_of_pages > 1)) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . 'all', $request_type) . '" title=" ' . SHOW_ALL_TITLE . ' ">' . SHOW_ALL_BUTTON . '</a>########';
        elseif ($this->page_all) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters, $request_type) . '" title=" ' . SHOW_PAGEVIEW_TITLE . ' ">' . SHOW_PAGEVIEW_BUTTON . '</a>####';  
    // EOF View All Changes 2 of 3
    
        // previous button - not displayed on first page
        if ($this->current_page_number > 1) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . ($this->current_page_number - 1), $request_type) . '" title=" ' . PREVNEXT_TITLE_PREVIOUS_PAGE . ' ">' . PREVNEXT_BUTTON_PREV . '</a>####';
    
        // check if number_of_pages > $max_page_links
        $cur_window_num = intval($this->current_page_number / $max_page_links);
        if ($this->current_page_number % $max_page_links) $cur_window_num++;
    
        $max_window_num = intval($this->number_of_pages / $max_page_links);
        if ($this->number_of_pages % $max_page_links) $max_window_num++;
    
        // previous window of pages
        if ($cur_window_num > 1) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . (($cur_window_num - 1) * $max_page_links), $request_type) . '" title=" ' . sprintf(PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a>';
    
    // BOF View All Changes 3 of 3
        // page nn button - visa inte om alla sidor visas
        if (!$this->page_all) {
        for ($jump_to_page = 1 + (($cur_window_num - 1) * $max_page_links); ($jump_to_page <= ($cur_window_num * $max_page_links)) && ($jump_to_page <= $this->number_of_pages); $jump_to_page++) {
          if ($jump_to_page == $this->current_page_number) {
            $display_links_string .= '##<strong class="current">' . $jump_to_page . '</strong>##';
          } else {
            $display_links_string .= '##<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . $jump_to_page, $request_type) . '" title=" ' . sprintf(PREVNEXT_TITLE_PAGE_NO, $jump_to_page) . ' ">' . $jump_to_page . '</a>##';
          }
    // EOF View All Changes 3 of 3
          }
        }
    
        // next window of pages
        if ($cur_window_num < $max_window_num) $display_links_string .= '<a href="' . zen_href_link($_GET['main_page'], $parameters . $this->page_name . '=' . (($cur_window_num) * $max_page_links + 1), $request_type) . '" title=" ' . sprintf(PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a>##';
    
        // next button
        if (($this->current_page_number < $this->number_of_pages) && ($this->number_of_pages != 1)) $display_links_string .= '##<a href="' . zen_href_link($_GET['main_page'], $parameters . 'page=' . ($this->current_page_number + 1), $request_type) . '" title=" ' . PREVNEXT_TITLE_NEXT_PAGE . ' ">' . PREVNEXT_BUTTON_NEXT . '</a>##';
    
        if ($display_links_string == '##<strong class="current">1</strong>##') {
          return '##';
        } else {
          return $display_links_string;
        }
      }
    
      // display number of total products found
      function display_count($text_output) {
        $to_num = ($this->number_of_rows_per_page * $this->current_page_number);
        if ($to_num > $this->number_of_rows) $to_num = $this->number_of_rows;
    
        $from_num = ($this->number_of_rows_per_page * ($this->current_page_number - 1));
    
        if ($to_num == 0) {
          $from_num = 0;
        } else {
          $from_num++;
        }
    
        if ($to_num <= 1) {
          // don't show count when 1
          return '';
        } else {
          return sprintf($text_output, $from_num, $to_num, $this->number_of_rows);
        }
      }
    }
    Thank you for posting this ;) You will also need to change line 76 of the includes/languages/winchester_responsive/english.php file to:

    Code:
    define('SHOW_PAGEVIEW_BUTTON', 'View Less');
    Thanks,

    Anne

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

    Default Re: Winchester Responsive

    I just caught a spelling error which is causing problems in includes/templates/winchester_responsive/css/stylesheet.css line 411:

    Code:
    .review-write-left{float:left;width:40%;text-align:center;}
    Thanks,

    Anne

  7. #7
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    530
    Plugin Contributions
    2

    Default Re: Winchester Responsive

    Hi

    I have installed this great template here.

    The Robot Coupe image and canvas has been resized to 1600x480px, but loads "squashed".

    Please help

  8. #8
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    530
    Plugin Contributions
    2

    Default Re: Winchester Responsive

    Edited below

    Quote Originally Posted by Parafanaylya View Post
    Hi

    I have installed this great template here.

    The Robot Coupe image and canvas has been resized to 1600x480px, but loads "squashed".

    Please help
    I have tried various resize options including image and canvas - but the image remains squashed.

    Then, how to remove the red wrapper at top of main page?

  9. #9
    Join Date
    Jul 2005
    Location
    Hoedspruit
    Posts
    530
    Plugin Contributions
    2

    Default Re: Winchester Responsive

    Couple of issues have arisen since I started populating the site.

    Fresh install 1.5.4

    Plugins:
    IH4
    Easy Populate - not used at this stage
    Cross-sell advanced

    Issues:
    Attribute drop down not working - displaying elected radio buttons
    Cross sell not working
    Image handler not working

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

    Default Re: Winchester Responsive

    Quote Originally Posted by Parafanaylya View Post
    Couple of issues have arisen since I started populating the site.

    Fresh install 1.5.4

    Plugins:
    IH4
    Easy Populate - not used at this stage
    Cross-sell advanced

    Issues:
    Attribute drop down not working - displaying elected radio buttons
    Cross sell not working
    Image handler not working
    These issues are not template related. My guess is that you have not properly installed the plugins.

    Thanks,

    Anne

 

 
Page 1 of 2 12 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

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