Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34
  1. #1
    Join Date
    Nov 2007
    Location
    USA
    Posts
    823
    Plugin Contributions
    5

    Idea or Suggestion Trouble with Layout Boxes Controller

    Found a bug?

    In layout Boxes Controller. When any sidebox is selected to be edited, the sidebox at the top of the list is automatically the sidebox being edited.

    No box can be individually edited without the same changes happening to the rest.

    When it is turned off/on, it cause all the boxes to do the same. So all Left off, or all right on. or both.

    Admin Reset for Responsive Classic works, and then side boxes do not show up..

    Where in the DB or files can I change this as I only have 155 files uploaded?

    Thx
    Attached Images Attached Images  
    Cheers! ><>

  2. #2
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,173
    Plugin Contributions
    17

    Default Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

    This is not a bug or at least i can't replicate it nor is it related to the responsive_classic theme.

    Make sure that you have replaced the ADMIN > layout_controller.php file with the newest available within v1.5.5.

    PHP Code:
    * @version $IdAuthorDrByte  Sat Aug 1 18:01:55 2015 -0400 Modified in v1.5.5 
    Some previous responsive versions altered this file and those changes were not ported to 1.5.5
    Last edited by rbarbour; 21 Mar 2016 at 10:02 PM.
    Website - Github. Like the ZCA Bootstrap 4 Template? Donations Welcome. Bootstrap Plugins?

  3. #3
    Join Date
    Nov 2007
    Location
    USA
    Posts
    823
    Plugin Contributions
    5

    Default Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

    Quote Originally Posted by rbarbour View Post
    This is not a bug or at least i can't replicate it nor is it related to the responsive_classic theme.

    Make sure that you have replaced the ADMIN > layout_controller.php file with the newest available within v1.5.5.

    PHP Code:
    * @version $IdAuthorDrByte  Sat Aug 1 18:01:55 2015 -0400 Modified in v1.5.5 
    Some previous responsive versions altered this file and those changes were not ported to 1.5.5
    Right on. Snagged from todays 155 update: @version $Id: Author: DrByte Sat Aug 1 18:01:55 2015 -0400 Modified in v1.5.5

    Manually replacing the files didn't help anything. Somethings whacked.
    Cheers! ><>

  4. #4
    Join Date
    Jan 2004
    Posts
    65,350
    Blog Entries
    7
    Plugin Contributions
    230

    Default Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

    This doesn't feel like an issue with the Responsive Classic template specifically.

    The admin/layout_controller.php file doesn't rely on much else. But I suppose if you've got something intercepting the $_GET['cID'] parameters, or if you've got something that's altered a bunch of /admin/includes/functions/*.php or /admin/includes/classes/*.php, or /includes/functions/*.php or /includes/classes/*.php files, then that could cause weirdness in various places.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Nov 2007
    Location
    USA
    Posts
    823
    Plugin Contributions
    5

    Default Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

    Thank you for your reply.

    I failed to mentioned in the default money green template, all the boxes work including the footer banners I left on.

    In the Responsive_Classic template I got blank side columns.

    Thus, the hunch on my back made me believe it was a template issue.

    Fresh install.

    Can you recommend a thread to move my Layout Box concerns to besides the round sidebox next to your desk?
    Cheers! ><>

  6. #6
    Join Date
    Jan 2004
    Posts
    65,350
    Blog Entries
    7
    Plugin Contributions
    230

    Default Re: Trouble with Layout Boxes Controller

    In your database, is the layout_id field of the layout_boxes table set as an "integer" and as an "auto increment" field?

    Are all the layout_id values unique, or are they all set to 0, particularly for the newest entries?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Nov 2007
    Location
    USA
    Posts
    823
    Plugin Contributions
    5

    Default Re: Trouble with Layout Boxes Controller

    However zc installer set up the db. Ill verify when I get to a computer.

    I had this issue after the fresh install and before importing the old db tables.
    Cheers! ><>

  8. #8
    Join Date
    Nov 2007
    Location
    USA
    Posts
    823
    Plugin Contributions
    5

    Default Re: Trouble with Layout Boxes Controller

    Integers

    CREATE TABLE `layout_boxes` (
    `layout_id` int(11) NOT NULL,
    `layout_template` varchar(64) NOT NULL DEFAULT '',
    `layout_box_name` varchar(64) NOT NULL DEFAULT '',
    `layout_box_status` tinyint(1) NOT NULL DEFAULT '0',
    `layout_box_location` tinyint(1) NOT NULL DEFAULT '0',
    `layout_box_sort_order` int(11) NOT NULL DEFAULT '0',
    `layout_box_sort_order_single` int(11) NOT NULL DEFAULT '0',
    `layout_box_status_single` tinyint(4) NOT NULL DEFAULT '0',
    `show_box_min_width` tinyint(1) NOT NULL DEFAULT '1'
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    Cheers! ><>

  9. #9
    Join Date
    Jan 2004
    Posts
    65,350
    Blog Entries
    7
    Plugin Contributions
    230

    Default Re: Trouble with Layout Boxes Controller

    Hmmm...

    The install SQL, all the way back to the original version, contains the auto-increment, and some indexes, but yours doesn't.
    Without the auto-increment, all the insertions of records for each setting, including when the "reset" button is used, are getting a value of 0, which is why the links are giving strange results on screen.

    This is how it should be, from the v155 install SQL:
    Code:
    CREATE TABLE layout_boxes ( 
      layout_id int(11) NOT NULL auto_increment,
      layout_template varchar(64) NOT NULL default '',
      layout_box_name varchar(64) NOT NULL default '',
      layout_box_status tinyint(1) NOT NULL default '0',
      layout_box_location tinyint(1) NOT NULL default '0',
      layout_box_sort_order int(11) NOT NULL default '0',
      layout_box_sort_order_single int(11) NOT NULL default '0',
      layout_box_status_single tinyint(4) NOT NULL default '0',
      PRIMARY KEY  (layout_id),
      KEY idx_name_template_zen (layout_template,layout_box_name),
      KEY idx_layout_box_status_zen (layout_box_status),
      KEY idx_layout_box_sort_order_zen (layout_box_sort_order)
    ) ENGINE=MyISAM;
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Nov 2007
    Location
    USA
    Posts
    823
    Plugin Contributions
    5

    Default Re: Trouble with Layout Boxes Controller

    Interesting

    Is `show_box_min_width` tinyint(1) NOT NULL DEFAULT '1' applicable to v155 or 160?

    Otherwise I am prepared to import this into SQL window:

    DROP TABLE IF EXISTS `layout_boxes`;
    /*!40101 SET @saved_cs_client = @@character_set_client */;
    /*!40101 SET character_set_client = utf8 */;
    CREATE TABLE layout_boxes (
    layout_id int(11) NOT NULL auto_increment,
    layout_template varchar(64) NOT NULL default '',
    layout_box_name varchar(64) NOT NULL default '',
    layout_box_status tinyint(1) NOT NULL default '0',
    layout_box_location tinyint(1) NOT NULL default '0',
    layout_box_sort_order int(11) NOT NULL default '0',
    layout_box_sort_order_single int(11) NOT NULL default '0',
    layout_box_status_single tinyint(4) NOT NULL default '0',
    PRIMARY KEY (layout_id),
    KEY idx_name_template_zen (layout_template,layout_box_name),
    KEY idx_layout_box_status_zen (layout_box_status),
    KEY idx_layout_box_sort_order_zen (layout_box_sort_order)
    ) ENGINE=MyISAM;
    /*!40101 SET character_set_client = @saved_cs_client */;
    Cheers! ><>

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. v154 layout boxes controller
    By cj.dekrijger in forum Customization from the Admin
    Replies: 2
    Last Post: 14 Jun 2016, 08:42 AM
  2. v155 Trouble with Layout Boxes Controller
    By DrByte in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 22 Mar 2016, 01:51 AM
  3. Layout Boxes Controller
    By NBordeau in forum General Questions
    Replies: 5
    Last Post: 11 May 2010, 02:50 AM
  4. Layout Boxes Controller
    By wotnow in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 17 Feb 2010, 10:50 PM
  5. Alignment/layout issue when using Layout Boxes Controller
    By nicknight in forum General Questions
    Replies: 0
    Last Post: 25 Oct 2008, 02:04 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